/* File: assets/styles.css */
/* ============================================================
   にこにこキッズデンタル — 小児歯科LP テンプレート
   モバイルファースト / @color トークン / CSSカウンター
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&family=Mochiy+Pop+One&family=Quicksand:wght@500;600;700&display=swap');

/* ---- Color tokens ---- */
:root {
  /* @color メインカラー */
  --c-primary: #FF924C;
  --c-primary-rgb: 255, 146, 76;

  /* @color メインカラー（濃いめ：影・押下） */
  --c-primary-deep: #F2742A;
  --c-primary-deep-rgb: 242, 116, 42;

  /* @color アクセント（イエロー） */
  --c-accent: #FFC64B;
  --c-accent-rgb: 255, 198, 75;

  /* @color サブアクセント（コーラル） */
  --c-coral: #FF8472;
  --c-coral-rgb: 255, 132, 114;

  /* @color サブアクセント（ミント） */
  --c-mint: #5FC9A6;
  --c-mint-rgb: 95, 201, 166;

  /* @color サブアクセント（スカイ） */
  --c-sky: #79CFE8;
  --c-sky-rgb: 121, 207, 232;

  /* @color 見出し・本文の文字色 */
  --c-ink: #574234;
  --c-ink-rgb: 87, 66, 52;

  /* @color 背景色（クリーム） */
  --c-bg: #FFFBF3;
  --c-bg-rgb: 255, 251, 243;

  /* @color カード・白背景 */
  --c-paper: #FFFFFF;

  /* LINE ブランド色（固定・ユーザー変更不可） */
  --c-line: #06C755;
  --c-line-deep: #04A445;

  /* @color やわらかい背景（ピーチ） */
  --c-peach: #FFEAD2;
  --c-peach-rgb: 255, 234, 210;

  /* 派生色（@colorなし＝内部用。元変数から導出） */
  --c-ink-soft:   rgba(var(--c-ink-rgb), .62);
  --c-ink-faint:  rgba(var(--c-ink-rgb), .38);
  --c-primary-soft: rgba(var(--c-primary-rgb), .58);
  --c-peach-deep: rgba(var(--c-primary-rgb), .26);
  --c-cream-2:    rgba(var(--c-accent-rgb), .14);
  --c-mint-soft:  rgba(var(--c-mint-rgb), .34);
  --c-sky-soft:   rgba(var(--c-sky-rgb), .30);

  /* type */
  --font-round: 'Zen Maru Gothic', 'M PLUS Rounded 1c', sans-serif;
  --font-pop:   'Mochiy Pop One', 'Zen Maru Gothic', sans-serif;
  --font-en:    'Quicksand', 'Zen Maru Gothic', sans-serif;

  /* shape */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-xl: 44px;

  /* shadow */
  --sh-sm: 0 6px 16px rgba(var(--c-primary-deep-rgb), .12);
  --sh-md: 0 14px 32px rgba(var(--c-primary-deep-rgb), .16);
  --sh-lg: 0 26px 60px rgba(var(--c-primary-deep-rgb), .20);

  --maxw: 1440px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-round);
  color: var(--c-ink);
  background: var(--c-bg);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.4; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; min-height: 52px;
  border: none; border-radius: 999px;
  background: var(--c-primary); color: #fff;
  font-family: var(--font-round); font-weight: 700; font-size: 16px; letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 7px 0 var(--c-primary-deep), var(--sh-md);
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s, filter .16s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--c-primary-deep), var(--sh-lg); filter: saturate(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--c-primary-deep), var(--sh-sm); }
.btn .ico { width: 20px; height: 20px; flex: none; }

.btn--ghost {
  background: var(--c-paper); color: var(--c-primary-deep);
  border: 2px solid var(--c-peach-deep);
  box-shadow: 0 7px 0 var(--c-peach-deep), var(--sh-sm);
}
.btn--ghost:hover { box-shadow: 0 10px 0 var(--c-peach-deep), var(--sh-md); }
.btn--ghost:active { box-shadow: 0 3px 0 var(--c-peach-deep); }

.btn--block { width: 100%; }

/* ============================================================
   Section title block
   ============================================================ */
.sec-head { text-align: center; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: .14em;
  color: var(--c-primary-deep); text-transform: uppercase;
}
.sec-kicker::before, .sec-kicker::after {
  content: ""; width: 22px; height: 4px; border-radius: 999px; background: var(--c-accent);
}
.sec-title {
  font-family: var(--font-pop); font-weight: 400;
  font-size: clamp(27px, 6vw, 50px);
  margin: 14px 0 0; color: var(--c-ink);
}
.sec-title b { color: var(--c-primary-deep); }
.sec-lead {
  margin: 16px auto 0; max-width: 640px;
  color: var(--c-ink-soft); font-size: 16px;
}

.chip {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--c-peach); color: var(--c-primary-deep); font-weight: 700; font-size: 13px;
}

/* ============================================================
   Image placeholders (.ph) + replaced image (.editable-img)
   ============================================================ */
.ph {
  width: 100%; aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(var(--c-primary-rgb), .10) 0 12px, rgba(var(--c-primary-rgb), .04) 12px 24px),
    var(--c-cream-2);
  /* アップロード画像は枠を固定したまま全面を覆うようリサイズ（はみ出し・見切れ防止） */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  color: var(--c-primary-deep); font-family: var(--font-en); font-weight: 700;
  font-size: 12px; letter-spacing: .06em; text-align: center;
  overflow: hidden;
}
.ph[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.ph[data-ratio="3/4"]  { aspect-ratio: 3 / 4; }
.ph[data-ratio="1/1"]  { aspect-ratio: 1 / 1; }
.ph[data-ratio="3/2"]  { aspect-ratio: 3 / 2; }

.editable-img {
  width: 100%; height: auto; display: block;
  object-fit: cover; object-position: center;
  aspect-ratio: 4 / 3; border-radius: var(--r-lg);
}
.editable-img[data-ratio="16/9"] { aspect-ratio: 16 / 9; }
.editable-img[data-ratio="3/4"]  { aspect-ratio: 3 / 4; }
.editable-img[data-ratio="1/1"]  { aspect-ratio: 1 / 1; }
.editable-img[data-ratio="3/2"]  { aspect-ratio: 3 / 2; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--pop   { transform: scale(.9); }
.reveal--left.is-in, .reveal--right.is-in, .reveal--pop.is-in { transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* idle motion */
@keyframes bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob2  { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-9px) rotate(3deg); } }
@keyframes sway  { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes pulse-soft { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes blobmorph {
  0%,100% { border-radius: 42% 58% 56% 44% / 50% 46% 54% 50%; }
  50%     { border-radius: 56% 44% 40% 60% / 44% 56% 44% 56%; }
}
.bob  { animation: bob 4.5s ease-in-out infinite; }
.bob2 { animation: bob2 5s ease-in-out infinite; }
.sway { animation: sway 4s ease-in-out infinite; transform-origin: bottom center; }
.pulse { animation: pulse-soft 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bob, .bob2, .sway, .pulse, .hero-blob, .floaty { animation: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.solid {
  background: rgba(var(--c-bg-rgb), .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(var(--c-primary-deep-rgb), .10);
}
.header-inner {
  width: 100%; max-width: var(--maxw); padding-inline: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-logo .logo-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--c-primary); color: #fff;
  border-radius: 50% 50% 50% 14px;
  font-family: var(--font-pop); font-weight: 400; font-size: 20px; line-height: 1; letter-spacing: 0;
  box-shadow: var(--sh-sm);
}
.logo-text { line-height: 1.15; min-width: 0; }
.logo-text .logo-ja { display: block; font-family: var(--font-pop); font-weight: 400; font-size: 17px; color: var(--c-primary-deep); }
.logo-text .logo-en { display: block; font-family: var(--font-en); font-size: 9px; letter-spacing: .14em; color: var(--c-ink-soft); font-weight: 700; }

.nav-toggle {
  width: 46px; height: 46px; border: none; background: var(--c-primary); border-radius: 14px;
  display: grid; place-content: center; gap: 5px; flex: none; box-shadow: var(--sh-sm);
}
.nav-toggle span { display: block; width: 22px; height: 3px; border-radius: 999px; background: #fff; transition: transform .3s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(var(--c-bg-rgb), .98);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.header-nav.open { opacity: 1; visibility: visible; }
.header-nav a { padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 19px; color: var(--c-ink); }
.header-nav a:hover { background: var(--c-peach); color: var(--c-primary-deep); }
.header-nav .nav-cta { margin-top: 14px; }

.header-actions { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 70px;
  background:
    radial-gradient(120% 70% at 80% 0%, var(--c-peach) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-cream-2) 0%, var(--c-bg) 100%);
}
.hero-inner { position: relative; display: grid; gap: 32px; align-items: center; }
.hero-copy { position: relative; z-index: 3; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: var(--c-paper);
  border-radius: 999px; padding: 8px 18px 8px 10px; box-shadow: var(--sh-sm);
  font-weight: 700; font-size: 13px; color: var(--c-primary-deep); margin-bottom: 20px;
}
.hero-badge .dot { width: 24px; height: 24px; border-radius: 999px; background: var(--c-accent); display: grid; place-items: center; flex: none; }
.hero-badge .dot svg { display: block; }
.hero h1 {
  font-family: var(--font-pop); font-weight: 400;
  font-size: clamp(30px, 8vw, 58px); line-height: 1.42; margin: 0; color: var(--c-ink);
}
.hero h1 .hl { position: relative; color: var(--c-primary-deep); white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: 4px; height: 14px; z-index: -1; background: rgba(var(--c-accent-rgb), .55); border-radius: 999px; }
.hero-lead { margin: 22px auto 0; font-size: 17px; color: var(--c-ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.hero-mini { display: flex; justify-content: center; gap: 22px; margin-top: 30px; }
.hero-mini .mi b { font-family: var(--font-en); font-size: 26px; color: var(--c-primary-deep); display: block; line-height: 1; }
.hero-mini .mi span { font-size: 12px; color: var(--c-ink-soft); font-weight: 700; }

.hero-visual { position: relative; height: 340px; max-width: 460px; margin: 0 auto; width: 100%; }
.hero-blob {
  position: absolute; inset: 0; margin: auto; width: 78%; max-width: 360px; aspect-ratio: 1;
  background: linear-gradient(160deg, var(--c-primary-soft), var(--c-primary));
  border-radius: 42% 58% 56% 44% / 50% 46% 54% 50%; box-shadow: var(--sh-lg);
  animation: blobmorph 14s ease-in-out infinite;
}
.hero-photo {
  position: absolute; inset: 0; margin: auto; width: 70%; max-width: 320px; aspect-ratio: 1;
  border-radius: 44% 56% 52% 48% / 50% 48% 52% 50%; overflow: hidden;
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.5);
}
.hero-photo .ph, .hero-photo .editable-img {
  width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; color: #fff;
  object-fit: cover; object-position: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 14px, rgba(255,255,255,.05) 14px 28px),
    linear-gradient(160deg, var(--c-primary-soft), var(--c-primary));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-mascot { position: absolute; z-index: 4; }
.hero-mascot--tooth { width: 92px; right: 2%; top: 0; }
.hero-mascot--bear  { width: 76px; left: 0; bottom: 8%; }

.deco { position: absolute; z-index: 1; pointer-events: none; }
.deco--c1 { width: 50px; top: 12%; left: 4%; }
.deco--c2 { width: 64px; top: 6%; right: 6%; opacity: .85; }
.deco--star1 { width: 30px; bottom: 16%; left: 30%; }
.deco--bubble { border-radius: 999px; }

.wave-b { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.wave-b svg { width: 100%; height: 50px; display: block; }

/* ============================================================
   Section base + alt background
   ============================================================ */
.section { padding: 64px 0; }
.pad-y { padding: 64px 0; }
.section.alt { background: var(--c-paper); }
.sec-services { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-peach) 100%); }
.sec-staff { background: linear-gradient(180deg, var(--c-peach) 0%, var(--c-bg) 100%); }
.sec-hours { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-cream-2) 100%); }

/* ============================================================
   Features (3つのやくそく) — CSS counter
   ============================================================ */
.feat-grid { display: grid; gap: 30px; margin-top: 44px; counter-reset: feat; }
.feat-card {
  counter-increment: feat;
  background: var(--c-bg); border-radius: var(--r-lg); padding: 38px 26px 30px; text-align: center;
  position: relative; box-shadow: var(--sh-sm); border: 2px solid var(--c-peach);
}
.feat-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-weight: 700; font-size: 14px;
  background: var(--c-primary); color: #fff; padding: 5px 16px; border-radius: 999px; box-shadow: var(--sh-sm);
}
.feat-num::before { content: "No." counter(feat, decimal-leading-zero); }
.feat-icon { width: 96px; height: 96px; margin: 6px auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--c-peach); }
.feat-icon svg { width: 52px; height: 52px; display: block; }
.feat-card:nth-child(2) .feat-icon { background: var(--c-sky-soft); }
.feat-card:nth-child(3) .feat-icon { background: var(--c-mint-soft); }
.feat-card h3 { font-family: var(--font-round); font-weight: 900; font-size: 21px; margin: 0 0 10px; }
.feat-card p { margin: 0; color: var(--c-ink-soft); font-size: 15px; }

/* ============================================================
   Services (診療案内)
   ============================================================ */
.svc-grid { display: grid; gap: 22px; margin-top: 44px; }
.svc-card {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  background: var(--c-paper); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm);
}
.svc-thumb { width: 100%; }
.svc-body h3 { font-weight: 900; font-size: 21px; margin: 0 0 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.svc-body h3 .em { font-family: var(--font-en); font-size: 12px; color: var(--c-primary); letter-spacing: .08em; font-weight: 700; }
.svc-body p { margin: 0 0 12px; color: var(--c-ink-soft); font-size: 15px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.med-note {
  margin: 30px auto 0; max-width: 920px; background: var(--c-bg); border: 2px dashed var(--c-peach-deep);
  border-radius: var(--r-md); padding: 20px 22px; color: var(--c-ink-soft); font-size: 13.5px; line-height: 1.85;
}
.med-note b { color: var(--c-primary-deep); }

/* ============================================================
   Kids space / interior
   ============================================================ */
.kids-hero { display: grid; gap: 30px; align-items: center; margin-top: 40px; }
.kids-hero .copy h3 { font-family: var(--font-pop); font-weight: 400; font-size: clamp(22px, 5.5vw, 30px); margin: 0 0 14px; color: var(--c-ink); }
.kids-hero .copy h3 b { color: var(--c-primary-deep); }
.kids-hero .copy p { color: var(--c-ink-soft); font-size: 16px; margin: 0; }
.kids-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.kids-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: 15px; }
.kids-points li .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c-mint); display: grid; place-items: center; }
.kids-points li .tick svg { display: block; }
.kids-photo { width: 100%; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.gallery .ph { aspect-ratio: 4 / 3; }

/* ============================================================
   Staff (院長・スタッフ)
   ============================================================ */
.director { display: grid; gap: 36px; align-items: center; margin-top: 40px; }
.director-photo { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.director-photo .ph, .director-photo .editable-img { aspect-ratio: 1; border-radius: var(--r-xl); }
.director-photo .stamp {
  position: absolute; bottom: -16px; right: -8px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--c-primary); color: #fff; display: grid; place-content: center; text-align: center;
  font-weight: 900; font-size: 13px; line-height: 1.4; box-shadow: var(--sh-md);
}
.director-body .chip { margin-bottom: 16px; }
.director-body h3 { font-size: 26px; margin: 0 0 4px; font-weight: 900; }
.director-body h3 .en { font-family: var(--font-en); font-size: 15px; color: var(--c-ink-soft); margin-left: 10px; font-weight: 700; }
.director-body .role { color: var(--c-primary-deep); font-weight: 700; margin: 0 0 18px; font-size: 15px; }
.director-body .msg p { color: var(--c-ink-soft); font-size: 16px; margin: 0 0 14px; }
.director-sign { font-family: var(--font-pop); font-size: 22px; color: var(--c-ink); margin-top: 18px; }

.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.staff-card { background: var(--c-paper); border-radius: var(--r-lg); padding: 18px; text-align: center; box-shadow: var(--sh-sm); }
.staff-card .ph, .staff-card .editable-img { aspect-ratio: 1; border-radius: var(--r-md); margin-bottom: 14px; }
.staff-card .role { font-size: 12px; color: var(--c-primary-deep); font-weight: 700; }
.staff-card h4 { margin: 3px 0 0; font-size: 17px; font-weight: 900; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 920px; margin: 40px auto 0; display: grid; gap: 14px; }
.faq-item { background: var(--c-bg); border: 2px solid var(--c-peach); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--c-primary); }
.faq-q {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: 0;
  padding: 18px 18px; font-family: var(--font-round); font-weight: 700; font-size: 16px; color: var(--c-ink);
}
.faq-q .mark { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-pop); display: grid; place-items: center; font-size: 17px; line-height: 1; padding-top: 2px; box-sizing: border-box; }
.faq-q .plus { margin-left: auto; flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--c-primary); border-radius: 999px; }
.faq-q .plus::before { width: 16px; height: 3.5px; }
.faq-q .plus::after { width: 3.5px; height: 16px; transition: transform .3s; }
.faq-item.open .plus::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { display: flex; gap: 14px; padding: 0 18px 22px; color: var(--c-ink-soft); font-size: 15px; }
.faq-a .mark { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: #fff; font-family: var(--font-pop); display: grid; place-items: center; font-size: 17px; line-height: 1; padding-top: 2px; box-sizing: border-box; }

/* ============================================================
   Hours & fees
   ============================================================ */
.hours-wrap { display: grid; gap: 26px; margin-top: 40px; align-items: start; }
.table-card { background: var(--c-paper); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--sh-sm); overflow-x: auto; }
table.hours-table { width: 100%; border-collapse: collapse; font-weight: 700; min-width: 460px; }
.hours-table th, .hours-table td { padding: 12px 4px; text-align: center; border-bottom: 2px solid var(--c-peach); white-space: nowrap; }
.hours-table thead th { color: var(--c-ink-soft); font-size: 14px; }
.hours-table thead th:first-child { background: var(--c-peach); border-radius: var(--r-sm) 0 0 0; }
.hours-table tbody th { background: var(--c-bg); color: var(--c-primary-deep); text-align: left; padding-left: 14px; width: 120px; }
.hours-table td { font-family: var(--font-en); font-size: 16px; color: var(--c-ink); }
.hours-table .x { color: var(--c-ink-faint); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-note { margin: 14px 4px 0; color: var(--c-ink-soft); font-size: 13px; }
.fee-card { background: var(--c-primary); color: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-md); }
.fee-card h3 { font-family: var(--font-pop); font-weight: 400; font-size: 22px; margin: 0 0 16px; }
.fee-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fee-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px dashed rgba(255,255,255,.4); }
.fee-list li b { font-family: var(--font-en); font-size: 20px; white-space: nowrap; }
.fee-list li span { font-weight: 700; min-width: 0; }
.fee-note { margin: 18px 0 0; font-size: 12.5px; opacity: .92; line-height: 1.8; }

/* ============================================================
   Access
   ============================================================ */
.access-wrap { display: grid; gap: 24px; margin-top: 40px; }
.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.map-card .ph { border-radius: 0; aspect-ratio: 16 / 9; }
.access-info { background: var(--c-bg); border-radius: var(--r-lg); padding: 28px; border: 2px solid var(--c-peach); }
.access-info h3 { font-family: var(--font-pop); font-weight: 400; font-size: 24px; margin: 0 0 18px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 2px dotted var(--c-peach-deep); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .k { flex: none; width: 76px; font-weight: 900; color: var(--c-primary-deep); display: flex; align-items: center; gap: 6px; font-size: 14px; }
.info-row .v { font-weight: 700; min-width: 0; font-size: 15px; }
.info-row .v small { display: block; color: var(--c-ink-soft); font-weight: 500; font-size: 13px; }
.info-row .v.tel { font-family: var(--font-en); font-size: 20px; color: var(--c-primary-deep); }
.access-info .btn { margin-top: 22px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; padding: 72px 0; background: linear-gradient(140deg, var(--c-primary) 0%, var(--c-primary-deep) 100%); overflow: hidden; text-align: center; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--font-pop); font-weight: 400; color: #fff; font-size: clamp(26px, 6.5vw, 50px); margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 16px; margin: 0 0 30px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.cta-actions .btn { width: 100%; max-width: 360px; }
.cta-band .btn--ghost { color: var(--c-primary-deep); border-color: #fff; box-shadow: 0 7px 0 rgba(0,0,0,.12); }
.cta-band .btn--line { background: var(--c-line); color: #fff; box-shadow: 0 7px 0 var(--c-line-deep), var(--sh-md); }
.cta-band .btn--line:active { box-shadow: 0 3px 0 var(--c-line-deep); }
.cta-deco { position: absolute; z-index: 1; pointer-events: none; }
.wave-top { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; z-index: 1; }
.wave-top svg { width: 100%; height: 44px; }
.wave-top path { fill: var(--c-paper); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--c-ink); color: #fff; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.footer-brand .logo-ja { color: #fff; font-family: var(--font-pop); font-size: 21px; display: block; }
.footer-brand .logo-en { font-family: var(--font-en); font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.55); font-weight: 700; }
.footer-brand p { color: rgba(255,255,255,.6); margin: 14px 0 0; font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 15px; margin: 0 0 14px; color: rgba(var(--c-accent-rgb), .92); }
.footer-col a { display: block; color: rgba(255,255,255,.78); padding: 6px 0; font-weight: 500; font-size: 14px; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 6px; color: rgba(255,255,255,.5); font-size: 12px; }

/* ============================================================
   Mobile fine-tuning (<= 767px)
   ============================================================ */
@media (max-width: 767px) {
  /* 診療時間表を 375px 幅に収める（横スクロール不要・行の膨張防止） */
  table.hours-table { min-width: 0; }
  .hours-table th, .hours-table td { padding: 9px 2px; }
  .hours-table thead th { font-size: 11.5px; }
  .hours-table tbody th { width: auto; padding-left: 8px; font-size: 12px; letter-spacing: -.02em; }
  .hours-table td { font-size: 14px; }
}

/* ============================================================
   Tablet (>= 768px)
   ============================================================ */
@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .container, .header-inner { padding-inline: 40px; }
  body { font-size: 16px; }

  .hero { padding: calc(var(--header-h) + 56px) 0 90px; }
  .hero-copy { text-align: left; }
  .hero-actions { flex-direction: row; }
  .hero-mini { justify-content: flex-start; gap: 30px; }
  .hero-visual { height: 440px; max-width: 520px; }
  .hero-mascot--tooth { width: 120px; }
  .hero-mascot--bear { width: 98px; }
  .wave-b svg { height: 70px; }

  .section { padding: 88px 0; }
  .pad-y { padding: 88px 0; }
  .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card { grid-template-columns: 150px 1fr; align-items: center; }
  .svc-thumb { width: 150px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery .ph:first-child { grid-row: span 2; }
  .staff-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hours-wrap { grid-template-columns: 1.4fr .8fr; }
  .access-wrap { grid-template-columns: 1fr 1fr; }
  .cta-actions { flex-direction: row; justify-content: center; }
  .cta-actions .btn { width: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   Desktop (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .container, .header-inner { padding-inline: 48px; }

  .nav-toggle { display: none; }
  .header-nav {
    position: static; inset: auto; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    flex-direction: row; gap: 2px; opacity: 1; visibility: visible;
  }
  .header-nav a { padding: 9px 14px; font-size: 15px; }
  .header-nav .nav-cta { display: none; }
  .header-actions { display: flex; align-items: center; gap: 16px; }
  .header-tel { text-align: right; line-height: 1.1; }
  .header-tel .lbl { font-size: 10px; color: var(--c-ink-soft); font-weight: 700; }
  .header-tel .num { display: block; font-family: var(--font-en); font-size: 21px; color: var(--c-primary-deep); font-weight: 700; white-space: nowrap; }
  .header-actions .btn { padding: 12px 22px; min-height: 46px; }
  .site-logo .logo-mark { width: 48px; height: 48px; font-size: 24px; }
  .logo-text .logo-ja { font-size: 21px; }
  .logo-text .logo-en { font-size: 10px; }

  .hero-inner { grid-template-columns: 1.12fr .88fr; gap: 36px; }
  .hero h1 { font-size: clamp(46px, 4vw, 60px); }
  .hero-visual { height: 540px; max-width: 600px; }
  .hero-mascot--tooth { width: 148px; }
  .hero-mascot--bear { width: 112px; }
  .wave-b svg { height: 90px; }

  .section { padding: 108px 0; }
  .pad-y { padding: 108px 0; }
  .director { grid-template-columns: .82fr 1.18fr; gap: 54px; }
  .director-photo { max-width: none; }
  .wave-top svg { height: 80px; }
  .cta-band { padding: 116px 0; }
}
