/* ============================================================
   demo: dental — あおぞら歯科クリニック
   テンプレ非依存。明るい・清潔・安心（白×ミント、丸み）。
   ============================================================ */

:root {
  --bg:      #f3fafb;
  --surface: #ffffff;
  --soft:    #e7f5f7;
  --ink:     #173b45;
  --muted:   #5e7b82;
  --line:    #d9ecef;
  --accent:  #16b3c6;
  --accent-d:#0e94a5;
  --accent-ink: #ffffff;

  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --body:    "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif;

  --r:    24px;
  --r-sm: 14px;
  --shadow:    0 22px 50px -28px rgba(14, 80, 92, .45);
  --shadow-sm: 0 10px 26px -18px rgba(14, 80, 92, .4);
  --wrap: 1140px;
  --pad:  clamp(20px, 5vw, 48px);
  --sec:  clamp(70px, 11vw, 130px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); color: var(--ink); background: var(--bg);
  line-height: 1.85; font-size: clamp(15px, 1.05vw, 16.5px); letter-spacing: .01em;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.section--soft { background: var(--soft); }

.eyebrow { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: .9rem; letter-spacing: .08em; }
.head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 68px); }
.head--left { text-align: left; margin-inline: 0; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.4; margin-top: .4em; }
.accent { color: var(--accent); }

/* ── ボタン ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  padding: .95em 1.8em; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), background-color .25s, box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-3px); background: var(--accent-d); border-color: var(--accent-d); box-shadow: 0 16px 32px -16px var(--accent); }
.btn--ghost { background: var(--surface); color: var(--accent-d); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { padding: .6em 1.2em; font-size: .9rem; }
.btn--lg { padding: 1.1em 2.4em; font-size: 1.05rem; }

/* ── ヘッダー ───────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.hdr.is-scrolled { box-shadow: 0 6px 24px -16px rgba(14, 80, 92, .5); }
.hdr__inner { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; }
.brand__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.brand__icon svg { width: 24px; height: 24px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; font-family: var(--display); font-weight: 500; font-size: .95rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.tel { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.tel span { font-size: .68rem; color: var(--muted); }
.tel b { font-family: var(--display); font-size: 1.15rem; color: var(--ink); letter-spacing: .02em; }
.burger { display: none; flex-direction: column; gap: 5px; margin-left: auto; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { display: none; flex-direction: column; gap: .3rem; padding: 1rem var(--pad) 1.5rem; border-top: 1px solid var(--line); background: var(--surface); font-family: var(--display); }
.drawer a { padding: .8rem .2rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer a.btn { border: 2px solid var(--accent); margin-top: .8rem; }

/* ── HERO ───────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 110px) var(--sec); }
.hero__blob { position: absolute; top: -20%; right: -10%; width: 70vw; max-width: 820px; aspect-ratio: 1; border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%; background: radial-gradient(circle at 35% 35%, #cdeef3, #e7f5f7 70%); filter: blur(6px); z-index: 0; }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 660px; }
.hero__h { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.22; margin-block: .4em .5em; }
.hero__lead { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.hero__points li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.1em; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.hero__points li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ── SERVICES ───────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.7rem, 3vw, 2.4rem); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc__ic { width: 60px; height: 60px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc__ic svg { width: 32px; height: 32px; }
.svc h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: .4rem; }
.svc p { color: var(--muted); font-size: .96rem; }

/* ── REASONS ────────────────────────────────── */
.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.reason { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.3rem); position: relative; }
.reason b { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: color-mix(in srgb, var(--accent) 40%, var(--soft)); line-height: 1; }
.reason h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: .3rem 0 .5rem; }
.reason p { color: var(--muted); font-size: .96rem; }

/* ── ACCESS ─────────────────────────────────── */
.access { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hours { margin: 1.5rem 0 2rem; }
.hours table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .95rem; }
.hours th, .hours td { padding: .8em .4em; text-align: center; border: 1px solid var(--line); }
.hours thead th { background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; }
.hours tbody th { background: var(--soft); font-family: var(--display); white-space: nowrap; }
.hours td { color: var(--accent-d); font-weight: 700; }
.hours__note { font-size: .85rem; color: var(--muted); margin-top: .7rem; }
.access__list { display: grid; gap: 1rem; }
.access__list div { display: grid; grid-template-columns: 6em 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.access__list dt { font-family: var(--display); font-weight: 700; color: var(--accent-d); }
.map-stub { aspect-ratio: 4/5; background: var(--soft); border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: var(--r); display: grid; place-content: center; justify-items: center; gap: .8rem; color: var(--muted); text-align: center; padding: 1.5rem; }
.map-stub svg { width: 48px; height: 48px; color: var(--accent); }
.map-stub span { font-size: .85rem; max-width: 18ch; }

/* ── FAQ ────────────────────────────────────── */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__list { display: grid; gap: 1rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15em 3.2em 1.15em 1.4em; font-family: var(--display); font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.3em; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4em; font-weight: 700; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.4em 1.3em; color: var(--muted); font-size: .96rem; }

/* ── RESERVE CTA ────────────────────────────── */
.reserve { background: linear-gradient(135deg, var(--accent), var(--accent-d)); color: #fff; padding-block: clamp(60px, 9vw, 110px); }
.reserve__inner { text-align: center; max-width: 660px; margin-inline: auto; }
.reserve h2 { font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.4; }
.reserve > .wrap > p, .reserve__inner > p { color: color-mix(in srgb, #fff 86%, transparent); margin-top: 1rem; }
.reserve__cta { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: center; margin-top: 2.2rem; }
.reserve .btn { background: #fff; color: var(--accent-d); border-color: #fff; }
.reserve .btn:hover { background: #fff; transform: translateY(-3px); }
.tel--lg { color: #fff; text-align: center; }
.tel--lg span { color: color-mix(in srgb, #fff 80%, transparent); font-size: .8rem; }
.tel--lg b { color: #fff; font-size: 1.5rem; }
.reserve__note { font-size: .8rem; margin-top: 1.6rem !important; color: color-mix(in srgb, #fff 72%, transparent) !important; }

/* ── FOOTER ─────────────────────────────────── */
.ftr { background: var(--ink); color: color-mix(in srgb, #fff 82%, transparent); padding-block: clamp(40px, 6vw, 60px); }
.ftr__inner { display: grid; gap: 1.4rem; }
.ftr__brand .brand__name { color: #fff; font-family: var(--display); font-size: 1.15rem; }
.ftr__brand p { font-size: .88rem; margin-top: .4rem; }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.ftr__nav a { color: color-mix(in srgb, #fff 78%, transparent); font-size: .92rem; transition: color .2s; }
.ftr__nav a:hover { color: var(--accent); }
.ftr__copy { font-size: .82rem; color: color-mix(in srgb, #fff 60%, transparent); }

/* ── reveal ─────────────────────────────────── */
[data-up] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-up].is-in { opacity: 1; transform: none; }
[data-up].is-in[data-up-d="1"] { transition-delay: .08s; }
[data-up].is-in[data-up-d="2"] { transition-delay: .16s; }
[data-up].is-in[data-up-d="3"] { transition-delay: .24s; }

/* ── レスポンシブ ───────────────────────────── */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .access, .faq { grid-template-columns: 1fr; }
  .head--left { text-align: center; }
}
@media (max-width: 680px) {
  .nav, .hdr .tel, .hdr__inner > .btn { display: none; }
  .burger { display: flex; }
  .drawer:not([hidden]) { display: flex; }
  .svc-grid, .reason-grid { grid-template-columns: 1fr; }
  .hours { overflow-x: auto; }
  .hours table { min-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-up] { opacity: 1; transform: none; transition: none; }
}
