/* ============================================================
   QUALIA PRICE PAGE CSS — Complete (with Accordion)
   ============================================================ */

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #b89d6a;
  --primary-light: #d4b97a;
  --primary-dark: #8a7040;
  --bg-main: #faf7f2;
  --border: #e8dfd3;
  --text-main: #2a2017;
  --text-sub: #6b5d4a;
  --text-light: #a89880;
  --font-ja: 'Noto Serif JP', 'Yu Mincho', serif;
  --font-en: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 10px;
}

body {
  font-family: var(--font-ja);
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.row {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only {
  display: inline;
}

/* ============================================================
   PAGE HERO
   ============================================================ */

.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #f5efe6 0%, #ede4d4 50%, #d8c9b0 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(184, 157, 106, 0.08) 0%, transparent 60%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--bg-main), transparent);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__content {
  max-width: 800px;
}

.page-hero__tl-ja {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.page-hero__tl-en {
  display: block;
  font-family: var(--font-en);
  font-size: 5.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.2;
}

.page-hero__sub {
  font-size: 1.4rem;
  color: var(--text-sub);
  margin-top: 20px;
  letter-spacing: 0.04em;
}

/* ============================================================
   PRICE ANCHOR NAV
   ============================================================ */

.price-nav {
  position: sticky;
  top: 80px;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: top var(--transition);
}

.price-nav__inner {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.price-nav__inner::-webkit-scrollbar {
  display: none;
}

.price-nav__list {
  display: flex;
  gap: 0;
  white-space: nowrap;
  padding: 0;
  max-width: 960px;
  margin: 0 auto;
}

.price-nav__link {
  display: inline-block;
  padding: 16px 20px;
  font-family: var(--font-ja);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.price-nav__link:hover,
.price-nav__link.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============================================================
   PRICE BODY
   ============================================================ */

.price-body {
  padding: 60px 0 100px;
}

/* ============================================================
   PRICE CATEGORY
   ============================================================ */

.price-cat {
  margin-bottom: 80px;
  scroll-margin-top: 160px;
}

.price-cat:last-of-type {
  margin-bottom: 0;
}

.price-cat__head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.price-cat__num {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 300;
  color: var(--primary-light);
  opacity: 0.4;
  line-height: 1;
  position: absolute;
  top: -8px;
  right: 0;
}

.price-cat__tl {
  font-family: var(--font-ja);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.4;
}

.price-cat__sub {
  font-family: var(--font-en);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-top: 6px;
}

/* === SUBCATEGORY LABEL === */

.price-subcat-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-light);
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(184, 157, 106, 0.3);
  width: 100%;
}

.price-subcat-label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 2px;
}

/* ============================================================
   ACCORDION
   ============================================================ */

.price-accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow var(--transition);
}

.price-accordion:hover {
  box-shadow: 0 2px 12px rgba(184, 157, 106, 0.08);
}

/* --- Trigger button --- */
.price-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ja);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-align: left;
  transition: background var(--transition);
  line-height: 1.5;
}

.price-accordion__trigger:hover {
  background: rgba(184, 157, 106, 0.03);
}

.price-accordion__trigger-title {
  flex: 1;
}

.price-accordion__trigger-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
  transition: transform 0.3s ease;
  margin-left: 16px;
}

.price-accordion__trigger-icon svg {
  width: 100%;
  height: 100%;
}

.price-accordion.is-open .price-accordion__trigger-icon {
  transform: rotate(180deg);
}

/* --- Accordion body --- */
.price-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}

.price-accordion.is-open .price-accordion__body {
  max-height: 8000px;
  padding: 0 28px 28px;
}

/* ============================================================
   PRICE TABLE (inside accordion)
   ============================================================ */

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.price-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-ja);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  background: rgba(184, 157, 106, 0.06);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.price-table thead th:last-child {
  text-align: right;
}

.col-group-head {
  width: 110px;
  padding: 12px 10px;
  background: rgba(184, 157, 106, 0.06);
  border-bottom: 2px solid var(--border);
  border-right: 1px solid var(--border);
}

.price-table tbody td,
.price-table tbody th {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(232, 223, 211, 0.5);
  color: var(--text-sub);
  line-height: 1.7;
  vertical-align: top;
}

.price-table tbody tr:last-child td,
.price-table tbody tr:last-child th {
  border-bottom: none;
}

.price-table tbody tr {
  transition: background var(--transition);
}

.price-table tbody tr:hover {
  background: rgba(184, 157, 106, 0.03);
}

/* --- Group label cell --- */
.price-table .col-group {
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-sub);
  background: rgba(184, 157, 106, 0.04);
  text-align: center;
  vertical-align: middle;
  width: 110px;
  padding: 12px 10px;
  border-right: 1px solid var(--border);
}

.price-table .col-menu {
  color: var(--text-sub);
}

.price-table .col-price {
  text-align: right;
  white-space: nowrap;
  width: 130px;
  vertical-align: top;
}

/* === Menu cell parts === */

.menu-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 2px;
}

.qty-label {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--text-light);
  background: rgba(184, 157, 106, 0.06);
  padding: 1px 8px;
  border-radius: 3px;
  margin-right: 4px;
  margin-top: 2px;
  line-height: 1.6;
}

.row-note {
  display: block;
  font-size: 1.15rem;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.7;
}

/* === Price value === */

.price-val {
  display: block;
  text-align: right;
  font-family: var(--font-en);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding-top: 2px;
}

/* === Price badges === */

.price-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
}

.price-badge--campaign {
  background: rgba(184, 157, 106, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(184, 157, 106, 0.35);
}

.price-badge--monitor {
  background: rgba(120, 140, 170, 0.1);
  color: #6a7d9a;
  border: 1px solid rgba(120, 140, 170, 0.3);
}

.price-badge--first {
  background: rgba(140, 170, 130, 0.1);
  color: #6a9a60;
  border: 1px solid rgba(140, 170, 130, 0.3);
}

/* ============================================================
   CHILD GROUP (inside accordion)
   ============================================================ */

.price-child-group {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.price-child-group:last-child {
  margin-bottom: 0;
}

.price-child-group__title {
  font-family: var(--font-ja);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  background: rgba(184, 157, 106, 0.06);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   PRICE NOTICE
   ============================================================ */

.price-notice {
  margin-top: 48px;
  padding: 28px 32px;
  background: rgba(184, 157, 106, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(184, 157, 106, 0.1);
}

.price-notice li {
  font-size: 1.3rem;
  color: var(--text-sub);
  line-height: 2;
}

.price-notice li::before {
  content: '※ ';
  color: var(--text-light);
}

/* ============================================================
   PRICE CTA
   ============================================================ */

.price-cta {
  margin-top: 80px;
}

.price-cta__inner {
  background: linear-gradient(135deg, #f5efe6 0%, #ede4d4 100%);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  border: 1px solid rgba(184, 157, 106, 0.15);
}

.price-cta__text {
  font-family: var(--font-ja);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-main);
  margin-bottom: 28px;
}

.price-cta__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.price-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  transition: all var(--transition);
}

.price-cta__btn--web {
  background: var(--primary);
}

.price-cta__btn--web:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 157, 106, 0.25);
}

.price-cta__btn--line {
  background: #06c755;
}

.price-cta__btn--line:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.25);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero__tl-en {
    font-size: 3.8rem;
  }

  .price-nav {
    top: 64px;
  }

  .price-nav__link {
    padding: 14px 16px;
    font-size: 1.2rem;
  }

  .price-body {
    padding: 40px 0 80px;
  }

  .price-cat {
    margin-bottom: 60px;
    scroll-margin-top: 140px;
  }

  .price-cat__head {
    margin-bottom: 24px;
  }

  .price-cat__tl {
    font-size: 2rem;
  }

  .price-cat__num {
    font-size: 3.6rem;
  }

  /* --- Accordion SP --- */
  .price-accordion__trigger {
    padding: 16px 20px;
    font-size: 1.5rem;
  }

  .price-accordion__body {
    padding: 0 16px;
  }

  .price-accordion.is-open .price-accordion__body {
    padding: 0 16px 20px;
  }

  .price-accordion__trigger-icon {
    width: 18px;
    height: 18px;
  }

  /* --- Table SP --- */
  .price-table {
    table-layout: fixed;
    width: 100%;
    font-size: 1.3rem;
  }

  .price-table thead th {
    padding: 5px 5px;
    font-size: 0.75rem;
    word-break: keep-all;
    white-space: normal;
  }

  .price-table tbody td,
  .price-table tbody th {
    padding: 12px 10px;
  }

  .price-table .col-group {
    font-size: 1.1rem;
    width: 80px;
    padding: 10px 8px;
  }

  .col-group-head {
    width: 80px;
  }

  .menu-label {
    font-size: 1.3rem;
  }

  .qty-label {
    font-size: 1.05rem;
  }

  .row-note {
    font-size: 1.05rem;
  }

  .price-val {
    font-size: 1.5rem;
  }

  .price-badge {
    font-size: 0.95rem;
    padding: 1px 6px;
  }

  .price-child-group__title {
    font-size: 1.2rem;
    padding: 10px 14px;
  }

  /* テーブル横スクロール */
  .price-accordion__body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* --- 各カラムの幅を均等寄りに --- */
  .price-table .col-menu {
    width: 46%;
  }

  .price-table .col-price {
    width: 18%;
    text-align: right;
  }

  .price-cta__inner {
    padding: 40px 24px;
  }

  .price-cta__text {
    font-size: 1.7rem;
  }

  .price-cta__btns {
    flex-direction: column;
  }

  .price-cta__btn {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .page-hero__tl-en {
    font-size: 4.8rem;
  }

  .price-cat__tl {
    font-size: 2.2rem;
  }
}

/* ============================================================
   PRICE TYPE COLUMNS — 通常/キャンペーン/モニター 明確化
   ============================================================ */

/* --- Header styling --- */
.col-price-head {
  text-align: right !important;
  white-space: nowrap;
  min-width: 110px;
}

.col-price-head--campaign {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.04) !important;
}

.col-price-head--monitor {
  color: #2980b9;
  background: rgba(41, 128, 185, 0.04) !important;
}

/* --- Cell styling --- */
.col-price--regular .price-val {
  color: var(--text-main);
  font-weight: 500;
}

.col-price--campaign {
  background: rgba(192, 57, 43, 0.02);
}

.col-price--campaign .price-val--campaign {
  color: #c0392b;
  font-weight: 700;
  font-size: 1.8rem;
}

.col-price--monitor {
  background: rgba(41, 128, 185, 0.02);
}

.col-price--monitor .price-val--monitor {
  color: #2980b9;
  font-weight: 700;
  font-size: 1.8rem;
}

.price-val--na {
  color: var(--text-light) !important;
  font-weight: 400 !important;
  font-size: 1.3rem !important;
}

/* --- SP: column headers as labels in cells --- */
@media (max-width: 768px) {

  .col-price-head {
    word-break: break-word;
    font-size: 1.0rem;
    min-width: 70px;
  }

  .col-price-head--campaign,
  .col-price-head--monitor {
    font-size: 1.0rem;
    min-width: 80px;
  }

  .col-price--campaign .price-val--campaign,
  .col-price--monitor .price-val--monitor {
    font-size: 1.5rem;
  }

  .sp-only {
    display: block;
    white-space: nowrap; 
  }
}

/* ============================================================
   ACCORDION DESC — FSC風 施術共通の注記（アコーディオン開時のみ表示）
   ============================================================ */

.price-accordion__desc {
  padding: 0 0 12px;
  font-size: 1.2rem;
  line-height: 2;
  color: #636363;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .price-accordion__desc {
    font-size: 1.1rem;
    padding: 0 0 10px;
  }
}

/* ============================================================
   DEPARTMENT NAV — 美容皮膚科 / 美容外科 大分類ボタン
   ============================================================ */

.price-dept-nav {
  padding: 0 0 12px;
}

.price-dept-nav__inner {
  max-width: var(--width-content, 1080px);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  padding: 0 20px;
}

.price-dept-nav__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  font-family: var(--font-ja, 'Shippori Mincho', serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.price-dept-nav__btn--derm {
  background: linear-gradient(135deg, rgba(184, 149, 106, 0.1) 0%, rgba(184, 149, 106, 0.04) 100%);
  border: 1.5px solid rgba(184, 149, 106, 0.3);
  color: var(--color-primary, #b8956a);
}

.price-dept-nav__btn--derm:hover {
  background: var(--color-primary, #b8956a);
  color: #fff;
}

.price-dept-nav__btn--surg {
  background: linear-gradient(135deg, rgba(58, 50, 38, 0.06) 0%, rgba(58, 50, 38, 0.02) 100%);
  border: 1.5px solid rgba(58, 50, 38, 0.2);
  color: var(--text-main, #3a3226);
}

.price-dept-nav__btn--surg:hover {
  background: var(--text-main, #3a3226);
  color: #fff;
}

@media (max-width: 768px) {
  .price-dept-nav__btn {
    padding: 14px 16px;
    font-size: 1.4rem;
  }
}

/* 備考行（二重埋没同時など） */
.price-table__note-row td.col-note {
  font-size: 1.2rem;
  color: var(--color-primary, #b8956a);
  background: rgba(184, 149, 106, 0.04);
  padding: 6px 16px 10px 32px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(232, 223, 211, 0.4);
}