/* ==========================================================================
   貝塚歯科クリニック — styles.css
   Palette: ocean blue (primary) × warm apricot (accent) × cream surface
   ========================================================================== */

:root {
  --c-primary: #2f80d4;
  --c-primary-strong: #1f5fa8;
  --c-primary-soft: #e3eefb;
  --c-primary-tint: #f1f6fd;
  --c-accent: #f08a4b;
  --c-accent-strong: #d9733a;
  --c-accent-soft: #fdeee3;
  --c-ink: #1c2733;
  --c-ink-soft: #3d4f63;
  --c-ink-faint: #74879b;
  --c-line: #dce4ee;
  --c-surface: #ffffff;
  --c-bg: #fbfaf6;
  --c-bg-alt: #f2f6fa;
  --c-closed: #c9d4d1;

  --font-display: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 14px 40px rgba(31, 60, 100, 0.08);
  --shadow-card: 0 8px 24px rgba(31, 60, 100, 0.10);
  --shadow-cta: 0 10px 24px rgba(240, 138, 75, 0.35);

  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --section-y: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::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.9;
  color: var(--c-ink);
  background: var(--c-bg);
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.4; margin: 0; letter-spacing: 0.04em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--tint { background: var(--c-primary-tint); }

.sp-only { display: none; }
@media (max-width: 900px) { .sp-only { display: inline; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* --- Section heading ---------------------------------------------------- */
.sec-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .en {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.sec-head h2::after {
  content: "";
  display: block;
  width: 44px; height: 5px;
  margin: 14px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.sec-head p { color: var(--c-ink-soft); margin-top: 16px; }
.sec-head--left { text-align: left; }
.sec-head--left h2::after { margin-inline: 0; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: var(--shadow-cta); }
.btn--accent:hover { background: var(--c-accent-strong); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 10px 24px rgba(47,128,212,.3); }
.btn--primary:hover { background: var(--c-primary-strong); }
.btn--ghost { background: #fff; color: var(--c-primary-strong); border-color: var(--c-primary-soft); }
.btn--ghost:hover { border-color: var(--c-primary); background: var(--c-primary-tint); }
.btn--lg { padding: 18px 36px; font-size: 1.1rem; }
.btn--sm { padding: 10px 20px; font-size: .9rem; }

/* --- Header ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(221, 232, 230, .7);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 60, 100, .08); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 36px; width: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-ink-soft);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.header__cta { display: flex; align-items: center; gap: 10px; }
.header__tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; color: var(--c-primary-strong);
  font-size: 1.05rem; white-space: nowrap; flex: none;
}
.header__tel svg { width: 18px; height: 18px; }
.header__tel small { display: block; font-size: .7rem; font-weight: 500; color: var(--c-ink-faint); line-height: 1; letter-spacing: .05em; }
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0; background: var(--c-primary-soft); border-radius: 14px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 14px; width: 20px; height: 2px; background: var(--c-primary-strong); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav a { padding: 8px 10px; font-size: .88rem; }
  .header__tel { display: none; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .header__cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-surface);
    padding: 12px 16px 24px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 20px 40px rgba(31, 60, 100, .12);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav .nav__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .nav .nav__cta .btn { display: inline-flex; }
}
.nav__cta { display: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--c-primary-soft) 0%, transparent 60%),
    radial-gradient(800px 400px at -10% 100%, var(--c-accent-soft) 0%, transparent 60%),
    var(--c-bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--c-line);
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--c-primary-strong);
  box-shadow: 0 4px 14px rgba(31,60,100,.06);
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.35;
  margin-top: 20px;
  letter-spacing: .05em;
}
.hero h1 .accent { color: var(--c-primary); }
.hero__lead { margin-top: 20px; color: var(--c-ink-soft); font-size: 1.05rem; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--c-ink-soft); font-weight: 500; }
.hero__points svg { width: 20px; height: 20px; color: var(--c-primary); }
.hero__visual { position: relative; }
.hero__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 5 / 4;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__float {
  position: absolute;
  left: -24px; bottom: 28px;
  background: #fff; border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
}
.hero__float .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-strong); display: grid; place-items: center; }
.hero__float .ic svg { width: 24px; height: 24px; }
.hero__float strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.hero__float small { color: var(--c-ink-faint); font-size: .8rem; }
.hero__blob {
  position: absolute; z-index: -1; right: -60px; top: -40px;
  width: 260px; height: 260px;
  background: var(--c-primary-soft);
  border-radius: 58% 42% 55% 45% / 50% 60% 40% 50%;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__photo { aspect-ratio: 16 / 10; }
  .hero__float { left: 12px; bottom: -18px; }
  .hero__copy { margin-top: 36px; }
  .hero h1 { margin-top: 20px; }
}

/* --- Quick info bar ----------------------------------------------------- */
.quick {
  margin-top: -1px;
  background: var(--c-surface);
  border-block: 1px solid var(--c-line);
}
.quick__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick__item {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--c-line);
}
.quick__item:last-child { border-right: 0; }
.quick__item .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary-strong); flex: none; }
.quick__item .ic svg { width: 22px; height: 22px; }
.quick__item strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.quick__item span { font-size: .85rem; color: var(--c-ink-faint); }
@media (max-width: 760px) {
  .quick__inner { grid-template-columns: 1fr; }
  .quick__item { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 14px 4px; }
  .quick__item:last-child { border-bottom: 0; }
}

/* --- News --------------------------------------------------------------- */
.news-strip {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 40px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
}
.news-strip__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.news-strip__title .en { font-size: .7rem; letter-spacing: .25em; color: var(--c-primary); display: block; }
.news-list li + li { border-top: 1px dashed var(--c-line); }
.news-list a { display: flex; gap: 16px; align-items: baseline; padding: 10px 0; transition: color .2s; }
.news-list a:hover { color: var(--c-primary-strong); }
.news-list time { font-family: var(--font-display); color: var(--c-ink-faint); font-size: .9rem; flex: none; }
.news-list .tag { flex: none; font-size: .72rem; padding: 2px 10px; border-radius: 99px; background: var(--c-accent-soft); color: var(--c-accent-strong); font-weight: 700; }
@media (max-width: 760px) {
  .news-strip { grid-template-columns: 1fr; gap: 10px; }
  .news-list a { flex-wrap: wrap; gap: 6px 12px; }
}

/* --- Hours & Access ----------------------------------------------------- */
.info-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3.5vw, 40px);
}
.card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.card h3 svg { width: 26px; height: 26px; color: var(--c-primary); }

.hours { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--font-display); text-align: center; }
.hours th, .hours td { padding: 12px 4px; font-size: .98rem; }
.hours thead th { color: var(--c-ink-faint); font-weight: 700; font-size: .9rem; border-bottom: 2px solid var(--c-line); }
.hours thead th:first-child { text-align: left; }
.hours tbody th { text-align: left; font-weight: 700; white-space: nowrap; font-size: .95rem; }
.hours tbody tr + tr td, .hours tbody tr + tr th { border-top: 1px solid var(--c-line); }
.hours .sat { color: var(--c-primary-strong); }
.hours .sun, .hours .hol { color: #d9603a; }
.hours .o { color: var(--c-primary); font-size: 1.25rem; }
.hours .c { color: var(--c-closed); }
.hours .sat-only { font-size: .78rem; font-weight: 700; color: var(--c-primary-strong); background: var(--c-primary-soft); border-radius: 8px; padding: 4px 6px; display: inline-block; line-height: 1.3; }
@media (max-width: 560px) {
  .hours { table-layout: fixed; }
  .hours th, .hours td { padding: 10px 1px; font-size: .82rem; }
  .hours thead th:first-child, .hours tbody th { width: 5.6em; font-size: .72rem; letter-spacing: 0; }
  .hours .o { font-size: 1rem; }
  .hours .sat-only { font-size: .62rem; padding: 3px 2px; }
}
.hours-note { margin-top: 16px; font-size: .9rem; color: var(--c-ink-soft); display: grid; gap: 6px; }
.hours-note li { display: flex; gap: 8px; align-items: baseline; }
.hours-note li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); flex: none; transform: translateY(-2px); }
.hours-pill { display: inline-flex; gap: 8px; align-items: center; background: var(--c-accent-soft); color: var(--c-accent-strong); font-weight: 700; padding: 6px 14px; border-radius: 99px; font-size: .85rem; margin-top: 16px; font-family: var(--font-display); }

.access__addr { font-size: 1.02rem; line-height: 1.8; }
.access__addr strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.access__ways { margin-top: 18px; display: grid; gap: 12px; }
.access__ways li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.access__ways .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--c-primary-soft); color: var(--c-primary-strong); display: grid; place-items: center; flex: none; }
.access__ways .ic svg { width: 20px; height: 20px; }
.access__ways b { font-family: var(--font-display); }
.map {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .9rem; color: var(--c-primary-strong); font-weight: 700; }
.map-link svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }

/* --- Greeting ----------------------------------------------------------- */
.greet { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.greet__photo { position: relative; }
.greet__photo img { border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.greet__photo::after {
  content: ""; position: absolute; z-index: -1; inset: auto -18px -18px auto; width: 60%; height: 60%;
  background: var(--c-accent-soft); border-radius: var(--radius-xl);
}
.greet h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.5; }
.greet h2 em { font-style: normal; color: var(--c-primary); }
.greet p + p { margin-top: 14px; }
.greet__body { color: var(--c-ink-soft); margin-top: 20px; }
.greet__keys { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.greet__keys span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 8px 20px; border-radius: 99px;
  background: var(--c-primary); color: #fff;
}
.greet__keys span:nth-child(2) { background: var(--c-accent); }
.doctor {
  margin-top: 28px; padding: 20px 24px; border-radius: var(--radius-md);
  background: var(--c-bg-alt); border: 1px solid var(--c-line);
}
.doctor h3 { font-size: 1rem; color: var(--c-primary-strong); margin-bottom: 8px; }
.doctor li { font-size: .92rem; color: var(--c-ink-soft); display: flex; gap: 8px; }
.doctor li::before { content: "・"; color: var(--c-primary); }
@media (max-width: 900px) { .greet { grid-template-columns: 1fr; } }

/* --- Features ----------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--c-surface); border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-soft); text-align: center;
  transition: transform .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature .num { font-family: var(--font-display); font-size: .8rem; letter-spacing: .25em; color: var(--c-accent); }
.feature .ic { width: 72px; height: 72px; margin: 10px auto 18px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-primary-soft), #fff); color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-line); }
.feature .ic svg { width: 36px; height: 36px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { font-size: .95rem; color: var(--c-ink-soft); text-align: left; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* --- Services ----------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--c-surface); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-soft); border: 1px solid transparent;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); border-color: var(--c-primary-soft); box-shadow: var(--shadow-card); }
.service .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--c-primary-soft); color: var(--c-primary-strong); display: grid; place-items: center; }
.service .ic svg { width: 30px; height: 30px; }
.service h3 { font-size: 1.2rem; }
.service p { font-size: .93rem; color: var(--c-ink-soft); flex: 1; }
.service .more { font-family: var(--font-display); font-weight: 700; color: var(--c-primary-strong); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.service .more svg { width: 16px; height: 16px; transition: transform .2s; }
.service:hover .more svg { transform: translateX(4px); }
.service--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-strong) 100%); color: #fff; }
.service--wide .ic { background: rgba(255,255,255,.18); color: #fff; }
.service--wide p { color: rgba(255,255,255,.9); }
.service--wide .more { color: #fff; }
.service--wide:hover { border-color: transparent; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service--wide { flex-direction: column; align-items: flex-start; } }

/* --- Gallery ------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); grid-column: span 2; }
.gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: span 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: 6px 14px; border-radius: 99px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--c-ink);
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure, .gallery figure:nth-child(1), .gallery figure:nth-child(2) { grid-column: span 1; }
  .gallery figure:nth-child(1) { grid-column: span 2; }
}

/* --- Reservation CTA ---------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--c-primary) 0%, #3b95e3 60%, #6bb3ef 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12);
}
.cta::before { width: 320px; height: 320px; left: -100px; top: -140px; }
.cta::after { width: 240px; height: 240px; right: -60px; bottom: -120px; }
.cta > * { position: relative; }
.cta .en { font-family: var(--font-display); letter-spacing: .3em; font-size: .8rem; opacity: .9; }
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-top: 8px; }
.cta p { margin-top: 12px; opacity: .95; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }
.cta__actions .btn--white { background: #fff; color: var(--c-primary-strong); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.cta__actions .btn--white:hover { background: var(--c-primary-tint); }
.cta__tel { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: .05em; display: inline-flex; align-items: center; gap: 10px; }
.cta__tel svg { width: 1em; height: 1em; }
.cta__sub { font-size: .9rem; opacity: .9; margin-top: 6px; }
.cta__epark { margin-top: 24px; display: inline-block; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 20px rgba(0,0,0,.12); transition: transform .2s; }
.cta__epark:hover { transform: translateY(-2px); }
.cta__epark img { height: 64px; width: auto; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: #172a3d; color: #d7e3ee; padding-top: clamp(48px, 6vw, 72px); }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 40px; opacity: .95; }
.footer__brand p { margin-top: 18px; font-size: .92rem; line-height: 1.9; }
.footer__brand .tel { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.footer__brand .tel svg { width: 20px; height: 20px; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .15em; margin-bottom: 14px; }
.footer li { font-size: .92rem; }
.footer li + li { margin-top: 8px; }
.footer__hours { font-size: .9rem; }
.footer__hours dt { color: #9bb0c4; font-size: .8rem; letter-spacing: .1em; margin-top: 8px; }
.footer__hours dd { margin: 0; }
.footer__bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #9bb0c4; }
.footer__bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__bottom li + li { margin: 0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* --- Fixed mobile bar --------------------------------------------------- */
.mobar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobar .btn { flex: 1; padding: 12px 10px; font-size: .95rem; }
@media (max-width: 860px) {
  .mobar { display: flex; }
  body { padding-bottom: 72px; }
}

/* --- Subpage ------------------------------------------------------------ */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 300px at 90% 0%, var(--c-primary-soft) 0%, transparent 60%),
    radial-gradient(600px 300px at 0% 100%, var(--c-accent-soft) 0%, transparent 60%),
    var(--c-bg);
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--c-line);
}
.page-hero .en { font-family: var(--font-display); letter-spacing: .3em; font-size: .8rem; color: var(--c-primary); text-transform: uppercase; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 6px; }
.page-hero p { margin-top: 12px; color: var(--c-ink-soft); max-width: 40em; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--c-ink-faint); margin-bottom: 16px; }
.crumbs a { color: var(--c-primary-strong); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }

.page-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); background: var(--c-surface); border-radius: var(--radius-md); padding: 10px; box-shadow: var(--shadow-soft); }
.side-nav a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--c-ink-soft); transition: background .2s, color .2s; }
.side-nav a:hover, .side-nav a.is-active { background: var(--c-primary-soft); color: var(--c-primary-strong); }
@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 8px; -webkit-overflow-scrolling: touch; }
  .side-nav a { white-space: nowrap; }
}

.article { background: var(--c-surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-soft); scroll-margin-top: calc(var(--header-h) + 24px); }
.article + .article { margin-top: 32px; }
.article__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--c-primary-soft); }
.article__head .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--c-primary-soft); color: var(--c-primary-strong); display: grid; place-items: center; flex: none; }
.article__head .ic svg { width: 30px; height: 30px; }
.article__head .en { display: block; font-family: var(--font-display); font-size: .72rem; letter-spacing: .25em; color: var(--c-primary); }
.article__head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; padding-left: 14px; border-left: 4px solid var(--c-accent); line-height: 1.5; }
.article h4 { font-size: 1.02rem; margin: 20px 0 6px; color: var(--c-primary-strong); }
.article p { color: var(--c-ink-soft); }
.article p + p { margin-top: 14px; }
.article .note { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--c-accent-soft); color: var(--c-accent-strong); font-size: .92rem; }
.article .lead { font-size: 1.05rem; color: var(--c-ink); font-weight: 500; }
.article time { font-size: .85rem; color: var(--c-ink-faint); font-family: var(--font-display); }
.article figure { margin: 24px 0 0; }
.article figure img { border-radius: var(--radius-md); }
.article figcaption { font-size: .85rem; color: var(--c-ink-faint); margin-top: 8px; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--c-primary-tint); border: 1px solid var(--c-primary-soft); border-radius: var(--radius-md); padding: 20px 24px; margin-top: 20px; }
.callout .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--c-primary); display: grid; place-items: center; }
.callout .ic svg { width: 22px; height: 22px; }
.callout strong { font-family: var(--font-display); display: block; margin-bottom: 4px; }

.age-list { display: grid; gap: 10px; margin-top: 12px; }
.age-list li { display: grid; grid-template-columns: 7em 1fr; gap: 12px; align-items: center; background: var(--c-bg-alt); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .95rem; }
.age-list li b { font-family: var(--font-display); color: var(--c-primary-strong); }
@media (max-width: 520px) { .age-list li { grid-template-columns: 1fr; gap: 2px; } }

.method { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 12px; }
.method > div { background: var(--c-bg-alt); border-radius: var(--radius-md); padding: 20px; }
.method h4 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.method h4 svg { width: 22px; height: 22px; color: var(--c-accent); }
.method p { font-size: .93rem; }
@media (max-width: 640px) { .method { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; gap: 12px; margin-top: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 12px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); width: 100%; }
.gallery-grid figcaption { font-family: var(--font-display); font-weight: 700; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.gallery-grid figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c-accent); }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* --- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 18px; margin-top: 8px; }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field label .req { font-size: .7rem; color: #fff; background: var(--c-accent); border-radius: 6px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.field label .opt { font-size: .7rem; color: var(--c-ink-faint); background: var(--c-bg-alt); border-radius: 6px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 13px 16px;
  border: 2px solid var(--c-line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.field textarea { min-height: 160px; resize: vertical; }
.form__foot { font-size: .85rem; color: var(--c-ink-faint); }
.form__foot a { color: var(--c-primary-strong); text-decoration: underline; text-underline-offset: 3px; }
.contact-tel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-tel .card { text-align: center; }
.contact-tel .big { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; color: var(--c-primary-strong); display: inline-flex; align-items: center; gap: 8px; }
.contact-tel .big svg { width: .9em; height: .9em; }
.contact-tel small { display: block; color: var(--c-ink-faint); margin-top: 6px; font-size: .88rem; }
@media (max-width: 760px) { .contact-tel { grid-template-columns: 1fr; } }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert--ok { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.alert--ng { background: #fdecea; color: #b3261e; }

/* --- Reveal animation --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* --- Page top ----------------------------------------------------------- */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 39;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--c-primary); color: #fff; box-shadow: var(--shadow-card);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.totop.is-show { opacity: 1; pointer-events: auto; transform: none; }
.totop svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .totop { bottom: 86px; } }

/* --- Worries ------------------------------------------------------------ */
.worries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.worry { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s; }
.worry:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.worry img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.worry span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--c-ink); }
.worry span::after { content: "→"; color: var(--c-primary); flex: none; }
@media (max-width: 900px) { .worries { grid-template-columns: repeat(2, 1fr); gap: 14px; } .worry span { font-size: .9rem; padding: 12px; } }

/* --- Service card image ---------------------------------------------------- */
.service { padding-top: 0; }
.service__img { margin: 0 -28px 18px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service__img img { transform: scale(1.05); }

/* --- Article photo ---------------------------------------------------------- */
.article__photo { margin: 0 0 22px; }
.article__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-md); }

/* --- Group / Head clinic ---------------------------------------------------- */
.section--group { background: linear-gradient(135deg, #eaf2fc 0%, #f4f8fd 60%, #fbfaf6 100%); }
.group { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.group__photo { position: relative; }
.group__photo > img:first-child { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.group__logo { position: absolute; left: 18px; bottom: 18px; height: 52px; width: auto; background: rgba(255,255,255,.95); padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow-card); }
.group__eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .2em; color: var(--c-primary-strong); background: #fff; border: 1px solid var(--c-line); border-radius: 99px; padding: 6px 16px; }
.group__corp { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--c-primary-strong); letter-spacing: .08em; }
.group h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.3; margin-top: 2px; }
.group__lead { margin-top: 16px; color: var(--c-ink-soft); font-size: 1.02rem; }
.group__list { margin-top: 20px; display: grid; gap: 10px; }
.group__list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: var(--radius-md); padding: 14px 18px; box-shadow: var(--shadow-soft); font-size: .95rem; color: var(--c-ink-soft); }
.group__list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 6px; background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.group__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.group__tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--c-primary-strong); }
.group__tel svg { width: 20px; height: 20px; }
.group__addr { margin-top: 10px; font-size: .88rem; color: var(--c-ink-faint); }
@media (max-width: 900px) { .group { grid-template-columns: 1fr; } .group__logo { height: 44px; } }

.section--group { margin-top: 0; }
#reserve { padding-bottom: var(--section-y); }
