/*==============================================================================
  メニュー選択ページ スタイル（レディース）
  対象: select_menu.html
  ファイル: common/css/select_menu.css

  構成:
    1. ページ背景グラデーション（ladies 固有: ウォームベージュ）
    2. メニューカード（共通レイアウト / ladies カラー）
    3. カード内要素 — メニュー名・タグ・写真ギャラリー・時間/価格・説明文
    4. ヘアカラー サブフィルター（カット込み/カット無しの絞り込み）
    5. 予約ボタンエリア（ladies 予約 + メンズ誘導ボタンの 2 段構成）
    6. レスポンシブ（スマホ: 写真を詳細展開時のみ表示 / タブレット / PC）

  依存:
    - common/css/tokens.css（--ka-orange, --ka-orange-soft, --ka-radius-pill, --ka-subtext）
    - system/js/select_menu.js（Swiper 初期化・カードの DOM 生成）

  ⚠️ 変更時の注意:
    mens/common/css/select_menu.css に対応ファイルあり。
    レイアウト・構造の変更は両ファイルに適用すること。
    色のみ異なる（ladies = ウォームブラウン系 / mens = スチールブルー系）。

  ladies 固有 vs mens 固有:
    ladies 固有 → ページ背景の radial-gradient、各色値（#2f2722, #6d6258, #b79d88 等）
    mens   固有 → ページ背景なし（grstyle.css のデフォルト背景を使用）、色値が teal 系
    共通        → カードレイアウト・Swiper 設定・サブフィルター・ボタン構造
==============================================================================*/


/* ─── 0. アコーディオン: カテゴリ一覧行 ─────────────────────────────── */

/* menutab.css の display:flex を上書き → アコーディオンを全幅ブロックに */
#reserve.menu .menu-tabs {
  display: block;
  margin-top: 8px;
}

.menu-accordion {
  width: 100%;
  margin-top: 0;
}

.menu-accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.menu-accordion-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.menu-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.menu-accordion-header:focus {
  outline: none;
}

.menu-accordion-header:focus-visible {
  outline: 2px solid var(--ka-orange);
  outline-offset: -2px;
}

.menu-accordion-header:hover {
  background: rgba(183, 157, 136, 0.05);
  border-left: 2px solid rgba(255, 101, 0, 0.5);
  padding-left: 14px;
}

.menu-accordion-item.is-open .menu-accordion-header {
  border-left: 2px solid var(--ka-orange);
  padding-left: 14px;
}

.menu-accordion-img {
  width: 90px;
  height: 78px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  flex-shrink: 0;
}

.menu-accordion-name {
  flex: 1;
  font-family: 'Cormorant SC', 'Cormorant', serif;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 500;
  letter-spacing: 0.10em;
  color: #1f1f1f;
  line-height: 1;
}

.menu-accordion-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(47, 39, 34, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
  color: #2f2722;
  font-size: 18px;
}

.menu-accordion-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform 0.25s;
}

.menu-accordion-item.is-open .menu-accordion-arrow {
  background: #2f2722;
  border-color: #2f2722;
  color: #fff;
}

.menu-accordion-item.is-open .menu-accordion-arrow::after {
  transform: rotate(90deg);
}

/* 閉じているときは body を非表示 */
.menu-accordion-body {
  display: none;
  padding: 16px 8px 24px;
}

.menu-accordion-item.is-open .menu-accordion-body {
  display: block;
}

/* サブフィルターとメニュー一覧の間隔 */
.menu-accordion-body .color-sub-filter {
  margin-bottom: 8px;
}


/* ─── 1. ページ背景（ladies 固有: ウォームベージュグラデーション） ──────── */
#reserve.menu {
  background:
    radial-gradient(
      circle at top,
      rgba(212, 169, 120, 0.08),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #f5f1eb 0%,
      #f0ebe3 100%
    );
}

/* メニューカードを広げる: 左右マージンを16px→8pxに縮小 */
#reserve.menu {
  --reservation-content-width: min(1080px, calc(100vw - 16px));
}

/* shopInfo の後に #gallery-staff-banner(display:none) があるため :last-child が効かず
   shopInfo-row の border-bottom と shopInfo 自体の border-bottom で2重線になるのを防ぐ */
#reserve.menu .shopInfo {
  border-bottom: none;
}

/* メニュータブの上下マージンを統一（Bootstrap my-0 を上書き） */
#reserve.menu .menu-tabs {
  margin-top: 6px !important;
}



/* Login area (top) */

#reserve.menu .selectWrap p.headTit {
  margin-bottom: 2em;
  font-size: 14px;
  color: #000000;
}

/* .pre_res styles → grstyle.css の共通ルールを使用 */


/* Menu list */

#reserve.menu .selectWrap .selectInner {
  background-color: transparent;
}


/* ─── カード ─────────────────────────────────────────────────────────── */

#reserve.menu .selectWrap .selectInner .menuInfo {
  margin-bottom: 12px;
  border: 1px solid rgba(140, 110, 80, 0.08);
  padding: 24px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(50, 30, 10, 0.05), 0 2px 10px rgba(50, 30, 10, 0.03);
  transition: all 0.35s ease;
  cursor: pointer;
}

#reserve.menu .selectWrap .selectInner .menuInfo:first-child {
  border-top: 1px solid rgba(140, 110, 80, 0.08);
}

#reserve.menu .selectWrap .selectInner .menuInfo:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(50, 30, 10, 0.10), 0 6px 18px rgba(50, 30, 10, 0.06);
  transform: translateY(-3px);
}

#reserve.menu .selectWrap .selectInner .menuInfo.last {
  margin-bottom: 0;
}

#reserve.menu .selectWrap .selectInner .menuInfo p {
  text-align: left;
  padding: 0 auto;
  margin: 0 auto;
}

#reserve.menu .selectWrap .selectInner .menuInfo p.tit {
  text-align: left;
  padding-top: 0;
}

#reserve.menu .selectWrap .selectInner .menuInfo p.disp {
  text-align: left;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menuTitle {
  margin-bottom: 0;
}


/* ─── メニュー名: 視線の起点として濃く ────────────────────────────────── */

#reserve.menu .selectWrap .selectInner .menuInfo .menuName {
  font-weight: 700;
  color: #1f1f1f;
  font-size: 16px;
  letter-spacing: 0.03em;
}


/* ─── タグ: 楕円チップ ───────────────────────────────────────────────── */

#reserve.menu .selectWrap .selectInner .menuInfo .menu-tags {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menu-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  background-color: transparent;
  color: rgba(26, 23, 18, 0.55);
  border: 1px solid rgba(26, 23, 18, 0.18);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menu-tag + .menu-tag::before {
  content: none;
}


/* 画像ギャラリー */

#reserve.menu .selectWrap .selectInner .menuInfo .swiper {
  margin-top: 16px;
}

/* スライドの <a>: グラデーションオーバーレイのラッパー */
#reserve.menu .selectWrap .selectInner .menuInfo .swiper-slide a {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}

#reserve.menu .selectWrap .selectInner .menuInfo .swiper-slide a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.14), transparent 42%);
  border-radius: inherit;
  pointer-events: none;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menu-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 14px;
  filter: saturate(.92) contrast(.98) brightness(.98);
  box-shadow: 0 8px 22px rgba(40, 20, 10, 0.08);
  transition: transform .4s ease, box-shadow .4s ease;
  display: block;
}

#reserve.menu .selectWrap .selectInner .menuInfo .swiper-slide a:hover .menu-thumb {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 50px rgba(40, 20, 10, 0.18);
}


/* ─── 所要時間・価格: 軽め ────────────────────────────────────────────── */

#reserve.menu .selectWrap .selectInner .menuInfo .extime {
  text-align: left;
  color: #6d6258;
  font-size: 15px;
  font-weight: 400;
  margin: 14px 0 0;
  letter-spacing: 0.02em;
}


/* ─── 説明文トグル ────────────────────────────────────────────────────── */

#reserve.menu .selectWrap .selectInner .menuInfo .menuData-toggle {
  margin-top: 18px;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menuData-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #b79d88;
  letter-spacing: 0.24em;
  cursor: pointer;
  user-select: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(183, 157, 136, 0.35);
}

#reserve.menu .selectWrap .selectInner .menuInfo .menuData-summary::-webkit-details-marker {
  display: none;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menuData-summary::after {
  content: "+";
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  color: var(--ka-subtext);
}

#reserve.menu .selectWrap .selectInner .menuInfo .menuData-toggle[open] .menuData-summary::after {
  content: "−";
}

/* ─── 説明文 ──────────────────────────────────────────────────────────── */

#reserve.menu .selectWrap .selectInner .menuInfo .menuData {
  padding-top: 0;
  margin-top: 10px;
  border-top: none;
  color: #7a6a62;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menuData p span {
  margin-left: 2em;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menuData p.dataM span {
  padding: 0.3em 1em;
  color: #fff;
  font-weight: bold;
  background-color: #c9caca;
  font-size: 10px;
  margin-left: 0em;
  margin-right: 0.5em;
  line-height: 2.2em;
}


/* ─── ヘアカラー サブフィルター（カット込み／カット無し） ───────────────── */

.color-sub-filter {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.color-sub-filter::-webkit-scrollbar {
  display: none;
}

.color-sub-btn {
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid #c0b8b0;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #5a4a40;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.color-sub-btn.is-active {
  background: rgba(255, 101, 0, 0.10);
  border-color: rgba(255, 101, 0, 0.35);
  color: #c44e00;
}

.color-menu-desc {
  min-height: 1em;
  margin: 4px 0 8px;
  font-size: 12px;
  color: var(--ka-subtext, #888);
  line-height: 1.6;
}


/* ─── 予約ボタンエリア ────────────────────────────────────────────────── */

#reserve.menu .selectWrap .selectInner .menuInfo .menu_btn {
  margin: 16px 0 0;
  border-top: none;
  color: #000000;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 0;
}

/* ボタンサイズ */
#reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn a.ka-btn {
  padding: 8px 44px;
  font-size: 15px;
  min-width: auto;
  width: auto;
  display: inline-flex;
  justify-content: center;
  font-family: var(--font-ka);
  font-weight: 700;
  letter-spacing: 0;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn {
  margin-top: 0;
  width: auto;
}

#reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn_mens {
  margin-top: 6px;
  width: auto;
  align-self: flex-start;
}

/* 「メンズの方はこちらから」— 小さめボタン（元のメンズカラーを維持） */
#reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn_mens a.ka-btn-mens {
  font-size: 11px;
  font-weight: 400;
  padding: 5px 14px;
  min-width: auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ka-radius-pill);
  letter-spacing: 0.04em;
}


/* ─── 戻るボタン ──────────────────────────────────────────────────────── */

#reserve.menu .fluid.selectWrap .btn_pre {
  margin: 1.5em auto;
  width: 100%;
  text-align: center;
}

/* 戻るボタン <a> — .ka-btn.ka-btn-outline を使用 */


/* ─── スマホ（768px 以下）: コンパクト＋写真を詳細内に ─────────────── */

@media (max-width: 768px) {

  /* カード: 左右2カラム flex */
  #reserve.menu .selectWrap .selectInner .menuInfo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    margin-bottom: 6px;
  }

  /* 左列: メニュー情報 */
  #reserve.menu .selectWrap .selectInner .menuInfo .menu-info-left {
    flex: 1;
    min-width: 0;
  }

  /* メニュー名 */
  #reserve.menu .selectWrap .selectInner .menuInfo .menuName {
    font-size: 14px;
  }

  /* タグ */
  #reserve.menu .selectWrap .selectInner .menuInfo .menu-tags {
    margin-top: 6px;
  }

  /* 価格・時間 */
  #reserve.menu .selectWrap .selectInner .menuInfo .extime {
    font-size: 13px;
    margin-top: 4px;
  }

  /* 詳細トグル */
  #reserve.menu .selectWrap .selectInner .menuInfo .menuData-toggle {
    margin-top: 6px;
  }

  /* 写真: デフォルト非表示、詳細展開時のみ表示 */
  #reserve.menu .selectWrap .selectInner .menuInfo .swiper {
    display: none;
    margin-top: 10px;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menuData-toggle[open] ~ .swiper {
    display: block;
  }

  /* 右列: ボタンエリア */
  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn {
    flex-shrink: 0;
    margin-top: 0;
    width: 76px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn {
    width: 100%;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn a.ka-btn {
    width: 100%;
    padding: 8px 6px;
    font-size: 13px;
    justify-content: center;
    min-width: 0;
    letter-spacing: 0;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn_mens {
    width: 100%;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn_mens a.ka-btn-mens {
    width: 100%;
    font-size: 9px;
    padding: 5px 4px;
    text-align: center;
    justify-content: center;
    min-width: 0;
  }

}


/* ─── レスポンシブ（タブレット 481px 以上） ──────────────────────────── */

@media only screen and (min-width: 481px) {

  #reserve.menu .fluid.selectWrap .selectInner {
    border: none;
    padding: 1em;
  }

  #reserve.menu .selectInner .menuInfo {
    background-color: transparent;
  }

  #reserve.menu .selectInner .menuInfo .menuData .btn {
    text-align: center;
  }

  #reserve.menu .fluid.selectWrap .btn_pre {
    margin: 1em auto;
    width: 100%;
  }

}


/* ─── レスポンシブ（PC 769px 以上） ─────────────────────────────────── */

@media only screen and (min-width: 769px) {

  /* PC: ボタンを右上に absolute 配置 */
  #reserve.menu .selectWrap .selectInner .menuInfo {
    position: relative;
    padding: 28px 228px 28px 16px;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .swiper {
    margin-top: 20px;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .swiper-slide {
    width: 120px;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .swiper-slide .menu-thumb {
    width: 100%;
    height: 152px;
    border-radius: 16px;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .swiper-slide a {
    border-radius: 16px;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn {
    position: absolute;
    top: 28px;
    right: 16px;
    width: 200px;
    margin: 0;
    padding-top: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn {
    width: 100%;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn a.ka-btn {
    width: 100%;
    padding: 8px 24px;
    font-size: 14px;
    display: flex;
    justify-content: center;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn_mens {
    width: 100%;
    align-self: stretch;
    text-align: center;
  }

  #reserve.menu .selectWrap .selectInner .menuInfo .menu_btn .reserve_btn_mens a.ka-btn-mens {
    display: inline-flex;
    width: auto;
  }

}


/* ─── 指名スタッフバナー（HPからの予約時）────────────────────────────────── */

.gallery-staff-banner {
  flex-direction: column;
  gap: 0;
  padding: 12px 14px;
  margin-top: 10px;
  background: #fdf5ee;
  border: 1px solid rgba(164, 128, 117, 0.18);
  border-radius: 10px;
}

.gallery-staff-banner__selected-label {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ka-orange);
  display: block;
  margin-bottom: 8px;
}

.gallery-staff-banner__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-staff-banner__img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  min-width: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  display: block;
}

.gallery-staff-banner__img--noimg {
  width: 52px;
  height: 52px;
  max-width: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #e0d6cc;
  flex-shrink: 0;
}

.gallery-staff-banner__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.gallery-staff-banner__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ka-ink);
}

.gallery-staff-banner__kana {
  font-family: 'Cormorant SC', serif;
  font-size: 11px;
  font-weight: normal;
  color: var(--ka-subtext);
  letter-spacing: 0.08em;
}

/* ─── モバイル: メニューカテゴリカードをコンパクトに ─────────────────────── */
@media (max-width: 768px) {
  .menu-accordion-header {
    padding: 6px 16px;
    gap: 12px;
  }

  .menu-accordion-img {
    width: 72px;
    height: 60px;
  }

  .menu-accordion-body {
    padding: 10px 8px 16px;
  }

  .color-sub-btn {
    padding: 4px 12px;
    font-size: 12px;
  }

  .color-sub-filter {
    margin-bottom: 4px;
  }

  .menu-accordion-body .color-sub-filter {
    margin-bottom: 4px;
  }

  .color-menu-desc:empty {
    display: none;
    margin: 0;
  }

  .color-menu-desc {
    margin: 2px 0 4px;
  }
}

.gallery-staff-banner__rank {
  font-size: 11px;
  color: var(--ka-orange);
  margin-top: 1px;
}
