@charset "UTF-8";

/*──────────────────────────────────────────────────
  下層ページ専用の追加スタイル
──────────────────────────────────────────────────*/

/* ★★★ ABOUTセクションと後続セクションの余白を調整 ★★★ */
.about.wrapper .inner.section-wrapper {
    padding-bottom: 40px; /* 下の余白を調整 */
}
.about.wrapper + .burgers-page.wrapper .inner.section-wrapper {
    padding-top: 60px; /* 上の余白を調整 */
}

.burgers-page__title {
  font-family: "Oswald", "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin: 0 auto 40px; /* 下に余白を取る */
  color: #111;
  position: relative;
  --underline-progress: 0;
}
.burgers-page__title::after {
  content: "";
  display: block;
  width: calc(var(--underline-progress) * 100%);
  height: 4px;
  background-color: #9f7916;
  margin: 10px auto 0;
  transition: width 0.2s ease;
}
/* is-active で下線を 50% 表示 */
.burgers-page__title.is-active::after {
  width: 50%;
}

/* ────────────────────────────────────────────────
   BURGERS グリッドレイアウト
──────────────────────────────────────────────── */
.burgers-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: stretch; 
  margin: 0 auto;
  max-width: 920px;
}

/* 各バーガーアイテム */
.burger-item {
  background-color: #fafafa;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 240px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.burger-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 画像ラッパー */
.burger-item__img-wrapper {
  width: 100%;
  height: 0;
  padding-top: 75%;
  position: relative;
  overflow: hidden;
}
.burger-item__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.burger-item__name, .burger-item__price {
    padding-left: 12px;
    padding-right: 12px;
}

/* 名前・価格 */
.burger-item__name {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 12px 0 4px;
  flex-grow: 1;
}
.burger-item__price {
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: #9f7916;
  margin-bottom: 12px;
  margin-top: auto;
}

/* ===================================
   GOODS セクション用スタイル (旧)
   =================================== */
.goods.wrapper {
  padding-top: 80px;
  padding-bottom: 80px;
}
.goods__title {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}
.goods__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "item1 item2"
    "item3 text";
  grid-gap: 40px;
  align-items: center;
  margin-top: 20px;
}
.goods__item--1 {
  grid-area: item1;
}
.goods__item--2 {
  grid-area: item2;
}
.goods__item--3 {
  grid-area: item3;
}
.goods__text {
  grid-area: text;
  font-size: 1.25rem;
  line-height: 1.6;
  text-align: left;
  color: #222;
}
.goods__item {
  text-align: center;
}
.goods__img-wrapper {
  width: 100%;
  overflow: hidden;
}
.goods__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.goods__name {
  margin-top: 16px;
  font-size: 1rem;
  color: #222;
}
.goods__price {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
}

/* ===================================
   モーダルウィンドウ (★★★ 修正箇所 ★★★)
   =================================== */
.modal {
  display: none; /* JSで表示を制御 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  /* Flexによる中央揃えは不要になったため削除 */
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.8);
  cursor: pointer;
}

.modal-content {
  /* position: relative; を変更 */
  position: absolute; /* 親要素(.modal)を基準に絶対配置 */
  top: 50%;           /* 上から50%の位置に */
  left: 50%;          /* 左から50%の位置に */
  transform: translate(-50%, -50%); /* 要素の大きさの半分だけ移動して中央揃え */
  
  z-index: 10001;
  width: 90%;
  max-width: 800px;
  background-color: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  display: flex;
  gap: 30px;
  align-items: center;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}
.modal-close:hover {
  background-color: #9f7916;
}
.modal-img-wrapper {
  flex: 1 1 45%;
  max-width: 350px;
}
.modal-img-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.modal-text-wrapper {
  flex: 1 1 55%;
}
.modal-name {
  font-family: "Oswald", sans-serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: #222;
  margin: 0 0 15px;
}
.modal-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin: 0 0 20px;
}
.modal-price {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #9f7916;
  text-align: right;
}
body.no-scroll {
  overflow: hidden;
}
/* グッズページの背景設定（最終版） */

/* まず、親要素の背景色を透明にします */
body.page-template-page-goods .about.wrapper,
body.page-template-page-goods .burgers-page.wrapper {
    background-color: transparent;
}

/* 次に、実際に背景画像を設定する要素のスタイルを定義します */
body.page-template-page-goods .inner.section-wrapper {
    /* 念のためこちらも背景色を透明に */
    background-color: transparent;

    /* 背景画像を設定します。画像のパスが違う場合はここを修正してください。 */
    /* 例： url('../img/bgimg.jpg') */
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url('../img/goods-bgimg.jpg');

    background-repeat: repeat;
    background-attachment: fixed;
    background-size: 300px;
}
/* 上のセクションの下パディングをなくし、つなぎ目を消します */
body.page-template-page-goods .about.wrapper .inner.section-wrapper {
    padding-bottom: -0.02px; /* ここで下の余白をなくします */
}

/* 下のセクションの上パディングで、セクション間のスペースを確保します */
body.page-template-page-goods .burgers-page.wrapper .inner.section-wrapper {
    /* この数値を変更すると、GOODS LINEUPタイトル上の余白を調整できます */
    padding-top: 60px; 
}
/* グッズアイテムの背景は元の色に戻して見やすくします */
body.page-template-page-goods .burger-item {
    background-color: #fafafa;
}

/* ===================================
   CONTACT フォーム (Contact Form 7用) - 最終修正版
   =================================== */

/* ページのbodyタグから指定することで、スタイルの優先度を最大にします */
body.page-template-page-contact .contact-page-wrapper.inner.section-wrapper {
    background-color: #b58a3f !important; /* デザインに合わせた背景色を強制適用 */
    background-image: none !important; /* 既存の背景画像を無効化 */
}

body.page-template-page-contact .contact-page-wrapper .burgers-page__title,
body.page-template-page-contact .contact-page-wrapper .contact-intro {
    color: #fff; /* タイトルと説明文を白に */
}
body.page-template-page-contact .contact-page-wrapper .burgers-page__title::after {
    background-color: #fff; /* タイトルの下線を白に */
}
body.page-template-page-contact .contact-page-wrapper .contact-intro {
    text-align: center;
    margin-bottom: 40px;
}

/* Contact Form 7 全体 */
body.page-template-page-contact .wpcf7-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: left;
}

/* CF7は各項目をpタグで囲むので、そのpタグの不要な余白をリセット */
body.page-template-page-contact .wpcf7-form p {
    margin: 0 0 24px 0;
}

/* ラベルのスタイル */
body.page-template-page-contact .wpcf7-form label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    color: #fff; /* ラベルの文字色を白に */
    margin-bottom: 10px;
}

/* 入力欄（text, email, textarea）の共通スタイル */
body.page-template-page-contact .wpcf7-form .wpcf7-form-control.wpcf7-text,
body.page-template-page-contact .wpcf7-form .wpcf7-form-control.wpcf7-email,
body.page-template-page-contact .wpcf7-form .wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    margin-top: 10px;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    padding: 15px;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
}

/* プレースホルダーのスタイル */
body.page-template-page-contact .wpcf7-form .wpcf7-form-control::placeholder {
    color: #aaa; /* グレー系の色に */
    opacity: 1;
}

/* テキストエリアの高さ調整 */
body.page-template-page-contact .wpcf7-form .wpcf7-textarea {
    min-height: 160px;
    resize: vertical;
}

/* ▼▼▼ 修正箇所 ▼▼▼ */
/* 送信ボタンのラッパー（pタグ）を中央寄せに */
body.page-template-page-contact .wpcf7-form p:has(.wpcf7-submit) {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative; /* スピナーを絶対配置するための基準点 */
}

/* 送信ボタンのスタイル */
body.page-template-page-contact .wpcf7-form .wpcf7-submit {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    background-color: #222;
    color: #fff; /* ボタンの文字色を白に */
    font-size: 1.2rem;
    font-weight: 500;
    font-family: "Oswald", sans-serif;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

body.page-template-page-contact .wpcf7-form .wpcf7-submit:hover {
    background-color: #444;
}

/* スピナーをレイアウトから切り離して配置 */
body.page-template-page-contact .wpcf7-form .wpcf7-spinner {
    position: absolute; /* 通常のレイアウトフローから除外 */
    top: 50%;
    /* ボタンの右側に配置されるように調整 */
    left: calc(50% + 200px + 10px); /* (フォーム幅の半分 + ボタン幅の半分 + 余白) */
    transform: translateY(-50%);
    margin: 0;
}
/* ▲▲▲ 修正箇所 ▲▲▲ */
