/* =============================================================
   うえの鍼灸接骨院  style.css
   テーマ: clinic（オレンジ・温かみ） / beauty（水色〜青・清潔感）
   ============================================================= */

/* ---------- design tokens ---------- */
:root {
  --c-primary: #F0801E;
  --c-primary-dark: #C9640F;
  --c-primary-light: #FFE7CE;
  --c-accent: #F7C531;
  --c-bg: #FFFBF5;
  --c-bg-alt: #FFF2E2;
  --c-surface: #FFFFFF;
  --c-text: #3B2A1E;
  --c-muted: #7D6A5C;
  --c-line: #F0DCC6;
  --c-footer: #3B2A1E;
  --c-line-brand: #06C755;
  --c-insta: #D6336C;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(120, 70, 20, .10);
  --shadow-sm: 0 3px 10px rgba(120, 70, 20, .08);
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --header-h: 72px;
  --pattern: radial-gradient(rgba(240, 128, 30, .10) 1.2px, transparent 1.2px);
}
[data-theme="beauty"] {
  --c-primary: #2B9BD8;
  --c-primary-dark: #1A7DB4;
  --c-primary-light: #D9EEFB;
  --c-accent: #8ADCF7;
  --c-bg: #F6FBFF;
  --c-bg-alt: #E7F4FC;
  --c-text: #1E3648;
  --c-muted: #5B7387;
  --c-line: #D3E6F2;
  --c-footer: #1E3648;
  --shadow: 0 10px 30px rgba(30, 100, 160, .10);
  --shadow-sm: 0 3px 10px rgba(30, 100, 160, .08);
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --pattern: radial-gradient(rgba(43, 155, 216, .10) 1.2px, transparent 1.2px);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }
.container { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 860px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5em 1em; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-size: .88rem; color: var(--c-muted); }
.lead { font-size: 1.08rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
strong { color: var(--c-primary-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 700; text-decoration: none;
  line-height: 1.3; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
  min-height: 48px; cursor: pointer; text-align: center;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary-light); }
.btn--tel { background: #fff; color: var(--c-primary-dark); border-color: var(--c-primary); font-family: var(--font-head); font-size: 1.05rem; }
.btn--line { background: var(--c-line-brand); color: #fff; }
.btn--line:hover { background: #05b04c; color: #fff; }
.btn--insta { background: var(--c-insta); color: #fff; }
.btn--insta:hover { background: #b8285a; color: #fff; }
.btn--white { background: #fff; color: var(--c-primary-dark); }
.btn--white:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn--lg { padding: 1.05em 2.2em; font-size: 1.1rem; }
.btn--sm { padding: .5em 1.1em; font-size: .9rem; min-height: 40px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* backdrop-filter は使わない: 子孫の position:fixed（モバイルナビ）の基準がヘッダーになってしまうため */
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--c-text); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 10px; background: var(--c-primary); flex: none;
  position: relative;
}
.brand__mark::before, .brand__mark::after {
  content: ""; position: absolute; background: #fff; border-radius: 2px; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.brand__mark::before { width: 8px; height: 24px; }
.brand__mark::after { width: 24px; height: 8px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--c-primary-dark); }
[data-theme="beauty"] .brand__name { color: var(--c-text); }
.brand__sub { font-size: .72rem; color: var(--c-muted); margin-top: .2em; }

.nav-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 60px; height: 56px; border: 0; background: transparent; color: var(--c-primary-dark); cursor: pointer; border-radius: 10px;
}
.nav-toggle__bar { position: relative; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: background .2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s;
}
.nav-toggle__bar::before { top: -8px; }
.nav-toggle__bar::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle__label { font-size: .65rem; font-weight: 700; }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav__list a { display: block; padding: .9em 1rem; text-decoration: none; color: var(--c-text); font-weight: 500; border-bottom: 1px solid var(--c-line); }
.nav__list a:hover, .nav__list a.is-active { color: var(--c-primary-dark); }
.nav__cta { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; }

@media (max-width: 1023.98px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-bg); overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; z-index: 90; padding-bottom: 5rem;
  }
  .nav.is-open { transform: none; }
  body.nav-open { overflow: hidden; }
}
.header-cta { display: none; }
@media (min-width: 1024px) {
  .site-header .container { width: min(100% - 2.5rem, 1320px); }
  .nav-toggle { display: none; }
  .brand { order: 1; }
  .brand__name { white-space: nowrap; }
  .nav { order: 2; display: flex; align-items: center; }
  .nav__list { flex-direction: row; gap: .1rem; }
  .nav__list a { padding: .5em .6rem; border: 0; font-size: .9rem; white-space: nowrap; position: relative; }
  .nav__list a::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .1em; height: 2px; background: var(--c-primary); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
  .nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
  .nav__cta { display: none; }
  .header-cta { order: 3; display: flex; gap: .5rem; }
  .header-cta .btn { padding: .55em 1.1em; min-height: 42px; font-size: .9rem; white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  /* ロゴ + CTA を1段目、ナビを2段目に */
  .site-header__inner { flex-wrap: wrap; min-height: 0; padding-top: .6rem; }
  .header-cta { order: 2; }
  .nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--c-line); margin-top: .5rem; }
  .nav__list a { padding: .55em .7rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--white { background: var(--c-surface); }
.section--pattern { background-color: var(--c-bg-alt); background-image: var(--pattern); background-size: 18px 18px; }
.section-title { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title .sunflower { width: 40px; margin: 0 auto .6rem; }
.section-title h2 { margin-bottom: .35em; }
.section-title p { color: var(--c-muted); margin: 0; }
.section-title--left { text-align: left; }
.section-title--left .sunflower { margin-inline: 0; }
.sunflower--sm { width: 28px; }
[data-theme="beauty"] .section-title .sunflower { display: none; }
[data-theme="beauty"] .section-title h2::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--c-primary); margin: 0 auto .8rem;
}
[data-theme="beauty"] .section-title--left h2::before { margin-inline: 0; }

/* ---------- hero (top) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF6EA 0%, #FFE9CF 55%, #FFF3E3 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 20px 20px; opacity: .6; pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 2rem; align-items: center; }
.hero__badge {
  display: inline-block; background: #fff; color: var(--c-primary-dark); border-radius: 999px; padding: .3em 1em;
  font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); line-height: 1.35; letter-spacing: .04em; }
.hero h1 .accent { color: var(--c-primary); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero__hours { display: inline-flex; flex-wrap: wrap; gap: .3em 1.2em; font-size: .9rem; color: var(--c-muted); margin-top: 1.2rem; }
.hero__visual { position: relative; }
.hero__visual img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 46% 54% 52% 48% / 42% 46% 54% 58%;
  box-shadow: var(--shadow);
}
.hero__visual .deco { position: absolute; width: clamp(60px, 9vw, 110px); filter: drop-shadow(0 4px 8px rgba(120,70,20,.2)); }
.hero__visual .deco--a { right: -6px; top: -14px; transform: rotate(12deg); }
.hero__visual .deco--b { left: -10px; bottom: 6px; width: clamp(44px, 6vw, 72px); transform: rotate(-20deg); }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
}

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary));
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-hero--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero__inner { position: relative; }
.page-hero__eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: .12em; opacity: .9; margin-bottom: .3em; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { margin: 0; max-width: 40em; font-size: 1.02rem; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4em; font-size: .82rem; opacity: .9; }
.breadcrumb li + li::before { content: "›"; margin-right: .4em; }
.breadcrumb a { color: #fff; }

/* ---------- info strip ---------- */
.info-strip { margin-top: -1.5rem; position: relative; z-index: 2; }
.info-strip__grid { display: grid; gap: 1rem; }
.info-card {
  background: var(--c-surface); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--c-primary);
}
.info-card h3 { font-size: 1rem; color: var(--c-primary-dark); margin-bottom: .4em; display: flex; align-items: center; gap: .4em; }
.info-card p { margin: 0; font-size: .95rem; }
.info-card .big { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--c-text); line-height: 1.3; }
@media (min-width: 720px) { .info-strip__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.card__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card__more { color: var(--c-primary-dark); font-weight: 700; font-size: .92rem; margin-top: .8rem; display: inline-block; }

.feature { position: relative; padding-top: 1.2rem; overflow: visible; }
.feature__num {
  position: absolute; top: -1rem; left: 1.2rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.feature .card__body { padding-top: 1.8rem; }

/* symptom chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0 0 1.5rem; justify-content: center; }
.chips li { background: #fff; border: 1.5px solid var(--c-line); border-radius: 999px; padding: .45em 1.1em; font-weight: 500; font-size: .95rem; }
.chips li::before { content: "●"; color: var(--c-accent); font-size: .6em; vertical-align: middle; margin-right: .5em; }
[data-theme="beauty"] .chips li::before { color: var(--c-primary); }

/* symptom detailed list */
.symptom { background: var(--c-surface); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); border-left: 6px solid var(--c-primary); }
.symptom h3 { margin-bottom: .3em; }
.symptom__tag { font-size: .8rem; color: var(--c-primary-dark); font-weight: 700; margin-bottom: .6em; display: inline-block; background: var(--c-primary-light); padding: .15em .8em; border-radius: 999px; }
.symptom p { font-size: .95rem; }
.symptom p:last-child { margin-bottom: 0; }

/* ---------- media rows (text + photo) ---------- */
.media { display: grid; gap: 1.8rem; align-items: center; }
.media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 860px) {
  .media { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .media--rev .media__visual { order: 2; }
}

/* ---------- hours table ---------- */
.hours-table { background: var(--c-surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .95rem; }
.hours-table th, .hours-table td { padding: .75em .5em; text-align: center; border-bottom: 1px solid var(--c-line); }
.hours-table thead th { background: var(--c-primary); color: #fff; font-weight: 700; }
.hours-table tbody th { background: var(--c-bg-alt); font-weight: 700; white-space: nowrap; text-align: left; padding-left: 1em; }
.hours-table tr:last-child td, .hours-table tr:last-child th { border-bottom: 0; }
.hours-table .ok { color: var(--c-primary); font-weight: 700; font-size: 1.15em; }
.hours-table .ng { color: #bbb; }
.hours-wrap { overflow-x: auto; }
.hours-notes { margin-top: 1rem; font-size: .92rem; }
.hours-notes li { margin-bottom: .3em; }

/* mini hours (footer) */
.mini-hours th, .mini-hours td { text-align: left; padding: .35em .5em .35em 0; vertical-align: top; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.mini-hours th { font-weight: 700; white-space: nowrap; padding-right: 1em; }

/* ---------- price table ---------- */
.price { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.price__head { background: var(--c-primary); color: #fff; padding: 1rem 1.5rem; }
.price__head h3 { color: #fff; margin: 0; }
.price__head p { margin: .2em 0 0; font-size: .9rem; opacity: .95; }
.price__body { padding: .5rem 1.5rem 1.2rem; }
.price table th, .price table td { padding: .8em .2em; border-bottom: 1px dashed var(--c-line); text-align: left; vertical-align: middle; }
.price table th { font-weight: 500; }
.price table td { text-align: right; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--c-primary-dark); }
.price table td small { font-size: .75rem; font-weight: 500; color: var(--c-muted); font-family: var(--font-body); }
.price table tr:last-child th, .price table tr:last-child td { border-bottom: 0; }
.price__note { font-size: .85rem; color: var(--c-muted); margin: .8rem 0 0; }
.ticket {
  background: linear-gradient(120deg, var(--c-primary), var(--c-primary-dark)); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem;
  display: grid; gap: .6rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.ticket::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ticket h3 { color: #fff; margin: 0; }
.ticket__price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1.2; }
.ticket p { margin: 0; font-size: .95rem; }
@media (min-width: 720px) { .ticket { grid-template-columns: 1fr auto; align-items: center; column-gap: 2rem; } .ticket h3, .ticket p { grid-column: 1; } .ticket__price { grid-column: 2; grid-row: 1 / span 3; } }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.step { background: var(--c-surface); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.3rem 4.4rem; position: relative; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.2rem; top: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { margin: 0; font-size: .95rem; }
@media (min-width: 860px) { .steps--row { grid-template-columns: repeat(4, 1fr); } .steps--row .step { padding: 3.6rem 1.2rem 1.4rem; text-align: center; } .steps--row .step::before { left: 50%; transform: translateX(-50%); top: 1rem; } }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--c-primary-light); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: .45em; width: 17px; height: 17px; border-radius: 50%; background: var(--c-primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c-primary-light); }
.timeline time { display: block; font-weight: 700; color: var(--c-primary-dark); font-family: var(--font-head); }
.timeline p { margin: 0; font-size: .95rem; }

.hero__kicker { display: block; font-family: var(--font-body, inherit); font-size: clamp(.95rem, 1.8vw, 1.1rem); font-weight: 700; color: var(--c-muted); letter-spacing: .04em; margin-bottom: .7em; }

/* ---------- faq ---------- */
.faq { background: var(--c-surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-bottom: .8rem; }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 3.2rem; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 1.1rem; top: .95rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-head); display: grid; place-items: center; font-size: .9rem; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: .8rem; font-size: 1.5rem; color: var(--c-primary); line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.4rem 1.2rem 3.2rem; font-size: .95rem; }
.faq__body p:last-child { margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } .gallery--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- definition table ---------- */
.def-table { background: var(--c-surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.def-table th, .def-table td { padding: .9em 1.1em; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.def-table th { width: 9em; background: var(--c-bg-alt); font-weight: 700; white-space: nowrap; }
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: 0; }
@media (max-width: 599.98px) { .def-table th, .def-table td { display: block; width: auto; } .def-table th { border-bottom: 0; padding-bottom: .2em; } }

/* ---------- beauty banners (top page) ---------- */
.beauty-banner {
  display: grid; gap: 1.2rem;
}
.beauty-card {
  position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; min-height: 260px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow); transition: transform .15s;
}
.beauty-card:hover { transform: translateY(-4px); color: #fff; }
.beauty-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beauty-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,80,130,0) 20%, rgba(20,80,130,.85) 100%); }
.beauty-card__body { position: relative; z-index: 1; padding: 1.5rem 1.6rem; }
.beauty-card__label { display: inline-block; background: #2B9BD8; border-radius: 999px; padding: .2em .9em; font-size: .78rem; font-weight: 700; margin-bottom: .5em; }
.beauty-card h3 { color: #fff; margin-bottom: .3em; font-family: "Zen Kaku Gothic New", var(--font-body); font-size: 1.4rem; }
.beauty-card p { margin: 0; font-size: .92rem; }
@media (min-width: 720px) { .beauty-banner { grid-template-columns: 1fr 1fr; } .beauty-card { min-height: 320px; } }

/* ---------- CTA block ---------- */
.cta { background: linear-gradient(120deg, var(--c-primary), var(--c-primary-dark)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px); background-size: 22px 22px; }
.cta__inner { position: relative; text-align: center; }
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { max-width: 36em; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.cta__tel { display: inline-flex; flex-direction: column; align-items: center; background: #fff; color: var(--c-primary-dark); border-radius: var(--radius); padding: 1rem 2rem; text-decoration: none; min-width: 260px; box-shadow: var(--shadow); }
.cta__tel strong { font-family: var(--font-head); font-size: 1.9rem; line-height: 1.2; color: var(--c-primary-dark); }
.cta__tel small { font-size: .82rem; color: var(--c-muted); }
.cta__tel:hover { transform: translateY(-2px); color: var(--c-primary-dark); }

/* ---------- map ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10; background: #e9e9e9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.route-map { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem; }
.route-map img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.route-steps li { margin-bottom: .5em; }

/* ---------- footer ---------- */
.site-footer { background: var(--c-footer); color: #fff; padding: 3rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin-bottom: .5em; }
.site-footer__about p { margin: 0 0 .5em; font-size: .93rem; }
.site-footer__tel a { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.site-footer__social { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.site-footer__heading { font-weight: 700; margin-bottom: .6em; border-left: 3px solid var(--c-accent); padding-left: .6em; }
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer__nav a { display: block; padding: .3em 0; text-decoration: none; font-size: .93rem; opacity: .9; }
.site-footer__nav a:hover { opacity: 1; text-decoration: underline; }
.site-footer__copy { text-align: center; font-size: .8rem; opacity: .7; margin: 2.5rem 0 0; }
@media (min-width: 860px) { .site-footer__grid { grid-template-columns: 1.3fr 1.2fr .8fr; gap: 3rem; } }

/* ---------- mobile bottom bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--c-line); backdrop-filter: blur(8px);
}
.mobile-bar__item { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; border-radius: 12px; padding: .5em .4em; color: #fff; line-height: 1.25; min-height: 52px; }
.mobile-bar__label { font-weight: 700; font-size: .92rem; }
.mobile-bar__sub { font-size: .68rem; opacity: .9; }
.mobile-bar__item--tel { background: var(--c-primary); }
.mobile-bar__item--line { background: var(--c-line-brand); }
.mobile-bar__item--hair, .mobile-bar__item--whitening { background: #2B9BD8; }
body.page-clinic .mobile-bar__item--tel, body.page-clinic .mobile-bar__item--line { display: flex; }
body.page-hair .mobile-bar__item--tel, body.page-hair .mobile-bar__item--hair { display: flex; }
body.page-whitening .mobile-bar__item--tel, body.page-whitening .mobile-bar__item--whitening { display: flex; }
body { padding-bottom: 76px; }
@media (min-width: 1024px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card--link, .beauty-card { transition: none; }
}

/* ---------- misc ---------- */
.notice { background: #fff; border: 2px dashed var(--c-accent); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .92rem; }
[data-theme="beauty"] .notice { border-color: var(--c-primary); }
.badge { display: inline-block; background: var(--c-primary-light); color: var(--c-primary-dark); border-radius: 999px; padding: .15em .8em; font-size: .8rem; font-weight: 700; }
.icon-list { list-style: none; padding: 0; margin: 0 0 1em; }
.icon-list li { position: relative; padding-left: 1.6em; margin-bottom: .4em; }
.icon-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--c-primary); font-weight: 700; }
.error-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-page .big { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 7rem); color: var(--c-primary); line-height: 1; margin: 0; }
