/* 021 白映美容皮膚科 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f7f6f4;
  --c-white: #ffffff;
  --c-ink: #111214;
  --c-accent: #9ca3af;
  --c-accent-text: #52575f;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #dcdad6;
  --font: "Noto Sans JP", sans-serif;
  --font-ja: "Zen Old Mincho", serif;
  --font-en: "Cormorant Garamond", serif;
  --font-hand: "Klee One", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; letter-spacing: .04em; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1080px) { .wrap { padding: 0 48px; } }
.en { font-family: var(--font-en); font-size: 18px; letter-spacing: .3em; color: var(--c-accent-text); margin-bottom: 12px; }
.en--light { color: var(--c-accent); }
.h2 { font-family: var(--font-ja); font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.6; letter-spacing: .12em; color: var(--c-ink); }
.h2--light { color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; text-decoration: none; letter-spacing: .14em; white-space: nowrap; flex: none; transition: background-color .4s, color .4s; }
.btn--ink { background: var(--c-ink); color: #fff; }
.btn--ink:hover { background: #3a3d42; }
.btn--white { background: #fff; color: var(--c-ink); }
.btn--white:hover { background: var(--c-line); }
.btn--line { border: 1px solid rgba(255, 255, 255, .7); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .12); }
.btn--lg { min-height: 60px; padding: 0 36px; font-size: 16px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: var(--c-ink); background: linear-gradient(rgba(247, 246, 244, .9), rgba(247, 246, 244, .55)); transition: background-color .5s, box-shadow .5s; }
.header.is-scrolled { background: rgba(247, 246, 244, .96); box-shadow: 0 1px 0 var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 12px 0 20px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: baseline; gap: 12px; min-height: 48px; align-items: center; text-decoration: none; white-space: nowrap; flex: none; }
.logo__en { font-family: var(--font-en); font-weight: 500; font-size: 24px; letter-spacing: .3em; line-height: 1; }
.logo__ja { font-family: var(--font-ja); font-size: 15px; letter-spacing: .12em; }
@media (max-width: 599px) { .logo__ja { display: none; } }
.gnav { display: none; }
.header__btn { margin-left: auto; }
@media (min-width: 1080px) {
  .header__inner { height: 84px; padding: 0 48px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; letter-spacing: .12em; }
  .header__btn { margin-left: 0; }
}

/* スマホのメニュー（JSが無くても開閉できる details 要素） */
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg); padding: 8px 20px 24px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(0, 0, 0, .12); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-ink); text-decoration: none; font-family: var(--font-ja); border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①（A04）：ロゴの幕 ===== */
.curtain { display: none; }
.is-motion .curtain { display: flex; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; background: var(--c-bg); pointer-events: none; }
.curtain__logo { font-family: var(--font-en); font-weight: 500; font-size: clamp(44px, 8vw, 96px); letter-spacing: .3em; line-height: 1; color: var(--c-ink); padding-left: .3em; white-space: nowrap; }

/* ===== メインビジュアル ===== */
.hero { position: relative; background: var(--c-bg); padding-top: 68px; }
.hero__photo { overflow: hidden; }
.hero__photo img { width: 100%; height: 56vh; min-height: 320px; object-fit: cover; }
.hero__text { padding: 40px 20px 72px; }
.hero__text .en { font-style: italic; letter-spacing: .14em; }
.hero__title { font-family: var(--font-ja); font-weight: 500; font-size: clamp(34px, 5vw, 68px); line-height: 1.5; letter-spacing: .14em; color: var(--c-ink); }
.hero__lead { margin-top: 20px; font-size: 16px; color: var(--c-text); }
@media (min-width: 1080px) {
  .hero { padding-top: 0; height: 100vh; min-height: 680px; }
  .hero__photo { position: absolute; inset: 0; }
  .hero__photo img { height: 100%; }
  .hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 246, 244, .94) 0%, rgba(247, 246, 244, .8) 34%, rgba(247, 246, 244, 0) 62%); }
  .hero__text { position: absolute; z-index: 1; left: 0; bottom: 14vh; padding: 0 0 0 8vw; max-width: 46vw; }
}

/* ===== ごあいさつ ===== */
.about { padding: 112px 0; text-align: center; }
.about__inner { max-width: 760px; }
.about__body { margin-top: 40px; text-align: left; }
.about__body p + p { margin-top: 20px; }
@media (min-width: 768px) { .about { padding: 180px 0; } .about__body { text-align: center; } }

/* ===== 治療 ===== */
.treat { padding: 0 0 112px; }
.treat__list { margin-top: 48px; border-top: 1px solid var(--c-line); }
.treat__item { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 28px 0; border-bottom: 1px solid var(--c-line); }
.treat__no { grid-row: span 2; font-variant-numeric: lining-nums; font-family: var(--font-en); font-size: 28px; line-height: 1.2; color: var(--c-accent-text); }
.treat__item h3 { font-family: var(--font-ja); font-weight: 500; font-size: 21px; color: var(--c-ink); letter-spacing: .1em; }
@media (min-width: 1080px) {
  .treat { padding-bottom: 180px; }
  .treat__list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .treat__item { grid-template-columns: 1fr; padding: 32px 28px 40px; border-bottom: 0; border-left: 1px solid var(--c-line); }
  .treat__item:last-child { border-right: 1px solid var(--c-line); }
  .treat__no { grid-row: auto; font-size: 40px; margin-bottom: 16px; }
}

/* ===== 演出②（G02）：ビフォー・アフター ===== */
.case { background: var(--c-ink); color: #e5e7eb; padding: 112px 0; }
.case__inner { display: grid; gap: 40px; }
.case__hint { margin-top: 16px; color: #d1d5db; }
.ba { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba__img { position: relative; background: #2a2c30; }
.ba__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ba__img figcaption { position: absolute; top: 12px; left: 12px; padding: 2px 12px; background: rgba(17, 18, 20, .8); color: #fff; font-size: 15px; letter-spacing: .14em; }
.ba__line, .ba__range { display: none; }
/* JSがあるとき：2枚を重ね、縦線で見比べる（動きを減らす設定でも、自分で動かす操作なので使える） */
.is-ba .ba { display: block; aspect-ratio: 1; overflow: hidden; touch-action: pan-y; }
.is-ba .ba__img { position: absolute; inset: 0; }
.is-ba .ba__img img { height: 100%; }
.is-ba .ba__img--after { clip-path: inset(0 0 0 var(--pos)); }
.is-ba .ba__img--after figcaption { left: auto; right: 12px; }
.is-ba .ba__line { display: block; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.ba__knob::before, .ba__knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.ba__knob::before { left: 9px; border-right-color: var(--c-ink); }
.ba__knob::after { right: 9px; border-left-color: var(--c-ink); }
.is-ba .ba__range { display: block; position: absolute; inset: 0; }
.ba__range input { width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within .ba__knob { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.case__info div { padding: 16px 0; border-bottom: 1px solid #3a3d42; }
.case__info dt { font-family: var(--font-ja); color: #fff; font-size: 16px; }
.case__info dd { color: #e5e7eb; }
.case__note { font-size: 15px; color: #d1d5db; }
@media (min-width: 1080px) {
  .case { padding: 160px 0; }
  .case__inner { grid-template-columns: minmax(0, 560px) 1fr; gap: 40px 72px; align-items: start; }
  .case__head { grid-column: 1 / -1; }
  .ba { grid-row: span 2; }
  .case__info div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; }
}

/* ===== 演出③（B07）：医師・スタッフ ===== */
.staff { padding: 112px 0 40px; }
.staff__head { margin-bottom: 40px; }
.staff__stage { display: grid; gap: 64px; padding: 0 20px; max-width: 1160px; margin: 0 auto; }
.person { display: grid; gap: 24px; }
.person__photo { overflow: hidden; background: #e7e5e1; }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.person__role { font-size: 15px; letter-spacing: .14em; color: var(--c-accent-text); }
.person__name { font-family: var(--font-ja); font-weight: 500; font-size: 24px; letter-spacing: .2em; color: var(--c-ink); }
.person__career { margin-top: 8px; color: var(--c-sub); font-size: 15px; }
.hand { margin-top: 24px; font-family: var(--font-hand); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.7; color: var(--c-ink); }
.hand span { display: block; width: fit-content; }
.staff__count { display: none; }
@media (min-width: 768px) {
  .staff__stage { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
@media (min-width: 1080px) { .staff__stage { padding: 0 48px; } .staff { padding-top: 160px; } }
/* 動く版：画面を止め、人ごとに入れ替える */
.is-motion .staff__stage { display: block; position: relative; height: 100vh; max-width: none; padding: 0; overflow: hidden; background: var(--c-bg); }
.is-motion .person { position: absolute; inset: 0; grid-template-rows: 46% 1fr; gap: 0; padding: 72px 0 0; }
.is-motion .person__photo { height: 100%; }
.is-motion .person__photo img { height: 100%; aspect-ratio: auto; }
.is-motion .person__body { padding: 20px 20px 0; }
.is-motion .hand { margin-top: 12px; }
.is-motion .staff__count { display: block; position: absolute; z-index: 2; right: 20px; top: 84px; font-family: var(--font-en); font-size: 22px; letter-spacing: .2em; color: var(--c-ink); background: rgba(247, 246, 244, .9); padding: 0 12px; }
@media (min-width: 1080px) {
  .is-motion .person { grid-template-columns: 44% 1fr; grid-template-rows: none; padding: 0; align-items: center; }
  .is-motion .person__photo { height: 100vh; }
  .is-motion .person__body { padding: 0 10vw 0 7vw; }
  .is-motion .hand { margin-top: 40px; font-size: clamp(28px, 2.8vw, 40px); }
  .is-motion .staff__count { top: auto; bottom: 48px; right: 48px; font-size: 28px; }
}

/* ===== 料金 ===== */
.price { padding: 112px 0; }
.price__inner { display: grid; gap: 40px; }
.price__lead { margin-top: 20px; }
.price__photo { margin-top: 32px; overflow: hidden; }
.price__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 20px 0; border-bottom: 1px solid var(--c-line); text-align: left; font-weight: 400; }
.ptable th { color: var(--c-ink); }
.ptable td { text-align: right; font-family: var(--font-ja); white-space: nowrap; padding-left: 16px; }
@media (min-width: 1080px) { .price { padding: 160px 0; } .price__inner { grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; } }

/* ===== ご予約 ===== */
.reserve { position: relative; background: var(--c-ink); color: #e5e7eb; padding: 112px 0; overflow: hidden; }
.reserve__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reserve::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(17, 18, 20, .82); }
.reserve__inner { position: relative; z-index: 2; max-width: 860px; }
.reserve__inner > p:not(.en) { margin-top: 20px; }
.reserve__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 48px; }
.reserve__btns .btn { flex: 1 1 260px; }
.hours { width: 100%; border-collapse: collapse; text-align: center; font-size: 15px; }
.hours th, .hours td { padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, .25); font-weight: 400; }
.hours th[scope="row"] { text-align: left; white-space: nowrap; }
.reserve__note { font-size: 15px; }
@media (min-width: 1080px) { .reserve { padding: 160px 0; } }

/* ===== アクセス ===== */
.access { padding: 112px 0; }
.access__inner { display: grid; gap: 32px; }
.info div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-family: var(--font-ja); color: var(--c-ink); }
@media (min-width: 768px) { .access__inner { grid-template-columns: 1fr 2fr; gap: 64px; } .info div { grid-template-columns: 7em 1fr; gap: 24px; } }

/* ===== フッター ===== */
.footer { background: var(--c-ink); color: #e5e7eb; padding: 72px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-en); font-size: 32px; letter-spacing: .3em; color: #fff; line-height: 1.4; }
.footer__logo small { display: block; font-family: var(--font-ja); font-size: 15px; letter-spacing: .2em; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 24px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
