/* ==========================================================================
   おかのうえ助産院 — style.css
   モダンCSS: カスタムプロパティ / clamp() / grid / container query /
   scroll-driven animation / view transitions / <details name> / <dialog>
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green: #95c23f;
  --green-deep: #6f9a2a;
  --green-ink: #4d6f1c;
  --green-pale: #eef5df;
  --green-soft: #dcebbd;
  --peach: #e9b8aa;
  --peach-deep: #d9968a;
  --peach-pale: #fbeee8;
  --cream: #fbf8f2;
  --sand: #f3eee3;
  --white: #fff;
  --ink: #3a3a37;
  --muted: #7a7a72;
  --line: #e6e1d6;
  --line-strong: #d6cfbf;
  --line-brand: #06c755;

  --font-ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Quicksand", "Zen Maru Gothic", sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 10px 30px -12px rgb(90 80 50 / .18);
  --shadow-lg: 0 24px 60px -24px rgb(90 80 50 / .28);

  --container: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
  --sec-pad: clamp(64px, 9vw, 120px);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong, b { font-weight: 700; }
em { font-style: normal; color: var(--green-ink); font-weight: 700; }
small { font-size: .85em; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } .sp { display: none; } }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- View Transitions（ページ遷移フェード） ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - var(--gutter) * 2, 860px); margin-inline: auto; }
.section { padding-block: var(--sec-pad); position: relative; }
.section--tint { background: var(--white); }
.section--sand { background: var(--sand); }
.section--green { background: var(--green-pale); }

.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head--center { text-align: center; }
.sec-head__en {
  font-family: var(--font-en); font-weight: 700; font-size: .85rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.sec-head--center .sec-head__en { justify-content: center; }
.sec-head__en::before { content: ""; width: 28px; height: 2px; background: var(--green); border-radius: 2px; }
.sec-head__ja {
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.4rem); font-weight: 700; line-height: 1.4;
  letter-spacing: .04em; text-wrap: balance;
}
.sec-head__lead strong { color: var(--green-ink); }
.sec-head__lead { margin-top: 14px; color: var(--muted); font-size: clamp(.95rem, .9rem + .3vw, 1.05rem); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.9em; border-radius: 999px; font-weight: 700; line-height: 1.2;
  font-size: 1rem; letter-spacing: .04em; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background-color .25s, color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -10px rgb(149 194 63 / .8); }
.btn--primary:hover { background: var(--green-deep); }
.btn--line { background: var(--line-brand); color: #fff; box-shadow: 0 10px 24px -10px rgb(6 199 85 / .7); }
.btn--line:hover { background: #05b04b; }
.btn--peach { background: var(--peach); color: #fff; }
.btn--peach:hover { background: var(--peach-deep); }
.btn--ghost { background: var(--white); color: var(--green-ink); box-shadow: inset 0 0 0 2px var(--green-soft); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--green); }
.btn--s { padding: .6em 1.15em; font-size: .88rem; }
.btn--l { padding: 1.1em 2.4em; font-size: 1.08rem; }
.btn--wide { width: 100%; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-solid, body:not(.page-home) .header {
  background: rgb(251 248 242 / .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(0 0 0 / .05);
}
.header__inner {
  height: 100%; display: flex; align-items: center; gap: 20px;
  width: min(100% - 32px, 1320px); margin-inline: auto;
}
.header__logo { flex: none; display: block; width: clamp(150px, 20vw, 210px); }
.header__logo img { width: 100%; }
.gnav { display: none; margin-left: auto; }
.gnav__list { display: flex; gap: clamp(8px, 1.2vw, 20px); }
.gnav__list a {
  display: flex; flex-direction: column; align-items: center; line-height: 1.2;
  font-size: .9rem; font-weight: 700; padding: 6px 4px; position: relative; white-space: nowrap;
}
.gnav__en { font-family: var(--font-en); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 2px; }
.gnav__list a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.gnav__list a:hover::after, .gnav__list a[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { display: none; gap: 8px; margin-left: 8px; }
.menu-btn {
  margin-left: auto; width: 48px; height: 48px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; gap: 0; position: relative; z-index: 120; box-shadow: var(--shadow);
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--green-ink); border-radius: 2px; transition: transform .3s, opacity .3s; margin: 2.5px 0; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) {
  .gnav, .header__cta { display: flex; }
  .menu-btn { display: none; }
}
@media (min-width: 1024px) and (max-width: 1240px) {
  .header__cta .btn--ghost { display: none; }
}

/* ---------- Drawer (<dialog>) ---------- */
.drawer {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100dvh; background: var(--cream); color: var(--ink);
  inset: 0;
}
.drawer::backdrop { background: rgb(58 58 55 / .35); }
.drawer[open] { animation: drawer-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-12px); } }
.drawer__inner { padding: 16px 20px 40px; min-height: 100%; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.drawer__logo { width: 160px; }
.drawer__close { width: 48px; height: 48px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; color: var(--green-ink); }
.drawer__list a {
  display: flex; align-items: baseline; gap: 14px; padding: 15px 4px; font-size: 1.1rem; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.drawer__list .gnav__en { min-width: 84px; }
.drawer__list a[aria-current="page"] { color: var(--green-deep); }
.drawer__cta { display: grid; gap: 10px; }
.drawer__hours { font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Hero (トップ) ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h)); margin-top: calc(var(--header-h) * -1);
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 8vw, 88px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
@media (max-width: 767px) { .hero__bg img { object-position: 32% 50%; } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(251 248 242 / .55) 0%, rgb(251 248 242 / 0) 28%),
    linear-gradient(0deg, rgb(251 248 242 / .96) 0%, rgb(251 248 242 / .75) 32%, rgb(251 248 242 / 0) 70%);
}
.hero__inner { position: relative; }
.hero__badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: rgb(255 255 255 / .85); backdrop-filter: blur(6px); font-size: .8rem; font-weight: 700; color: var(--green-ink);
  box-shadow: 0 4px 14px -6px rgb(0 0 0 / .2);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pill--peach::before { background: var(--peach-deep); }
.hero__copy {
  font-size: clamp(2.2rem, 1.4rem + 5vw, 4.6rem); font-weight: 700; line-height: 1.25; letter-spacing: .06em;
  text-wrap: balance;
}
.hero__line { display: block; overflow: hidden; }
.hero__line span { display: inline-block; animation: line-up .9s cubic-bezier(.2,.8,.2,1) both; }
.hero__line:nth-child(2) span { animation-delay: .12s; }
.hero__line:nth-child(3) span { animation-delay: .24s; }
@keyframes line-up { from { transform: translateY(110%); opacity: 0; } }
.hero__lead {
  margin-top: 18px; font-size: clamp(1rem, .95rem + .5vw, 1.2rem); font-weight: 500; max-width: 34em;
  animation: fade-up .9s .4s ease both; text-wrap: pretty;
}
.hero__place { margin-top: 10px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 6px; animation: fade-up .9s .5s ease both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; animation: fade-up .9s .6s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
.hero__scroll {
  position: absolute; right: clamp(18px, 4vw, 40px); bottom: 24px; display: none; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-en); font-size: .7rem; letter-spacing: .3em; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 44px; background: var(--muted); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--green); animation: scroll-line 1.8s ease-in-out infinite; }
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (min-width: 768px) { .hero__scroll { display: flex; } .hero { align-items: center; } }

/* 背景の浮遊ブロブ */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: -1; }
.blob--a { width: 46vw; height: 46vw; background: var(--green-soft); left: -12vw; bottom: -18vw; animation: float 14s ease-in-out infinite; }
.blob--b { width: 34vw; height: 34vw; background: var(--peach-pale); right: -8vw; top: 8vw; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(4%, -6%) scale(1.06); } }

/* ---------- Trustbar ---------- */
.trustbar { position: relative; z-index: 2; margin-top: -28px; }
.trustbar__inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-lg);
}
.trust { background: var(--white); padding: 22px 16px; text-align: center; display: grid; gap: 2px; }
.trust__label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.trust__num { font-family: var(--font-en); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 700; color: var(--green-deep); line-height: 1.2; letter-spacing: .02em; }
.trust__num small { font-size: .5em; font-family: var(--font-ja); margin-left: 2px; }
.trust__note { font-size: .78rem; color: var(--ink); }
@media (min-width: 768px) { .trustbar__inner { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 産後ケア（トップ） ---------- */
.care-intro { overflow: hidden; }
.care-intro__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .care-intro__grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.care-card {
  position: relative; background: var(--white); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto 1fr; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.care-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.care-card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.care-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.care-card:hover .care-card__img img { transform: scale(1.04); }
.care-card__body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.care-card__tag { font-family: var(--font-en); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--green-deep); font-weight: 700; }
.care-card__title { font-size: 1.3rem; font-weight: 700; line-height: 1.4; }
.care-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--font-en); font-size: 1.9rem; font-weight: 700; color: var(--green-deep); line-height: 1; }
.price small { font-size: .55em; font-family: var(--font-ja); color: var(--muted); font-weight: 500; }
.care-card__list { display: grid; gap: 4px; font-size: .92rem; }
.care-card__list li { padding-left: 1.4em; position: relative; }
.care-card__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: .85em; height: .85em; border-radius: 50%; background: var(--green-pale); box-shadow: inset 0 0 0 2px var(--green); }
.care-cards { display: grid; gap: 18px; }
@media (min-width: 600px) and (max-width: 899px) { .care-cards { grid-template-columns: 1fr 1fr; } }

.steps { background: var(--white); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.steps__title { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.steps__title .num { font-family: var(--font-en); color: var(--green-deep); }
.steps__list { display: grid; gap: 14px; counter-reset: step; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-pale); color: var(--green-deep); font-family: var(--font-en); font-weight: 700; font-size: 1rem;
}
.step h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 2px; }
.step p { font-size: .9rem; color: var(--muted); }
.steps__note { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 12px; }

.areas { margin-top: clamp(32px, 5vw, 48px); }
.areas__title { text-align: center; font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--green-soft); font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.marquee__track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- 診察メニュー ---------- */
.menu-grid { display: grid; gap: 18px; container-type: inline-size; }
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.menu-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--green-pale); z-index: 0; transition: transform .5s; }
.menu-card:hover::after { transform: scale(1.4); }
.menu-card > * { position: relative; z-index: 1; }
.menu-card__num { font-family: var(--font-en); font-weight: 700; color: var(--green); font-size: .9rem; letter-spacing: .2em; }
.menu-card__title { font-size: 1.18rem; font-weight: 700; line-height: 1.4; }
.menu-card__title small { display: block; font-size: .78rem; color: var(--peach-deep); font-weight: 700; margin-bottom: 2px; }
.menu-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; color: var(--muted); }
.menu-card__price { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.menu-card__price b { font-family: var(--font-en); font-size: 1.35rem; color: var(--green-deep); }
.menu-card__price span { font-size: .82rem; color: var(--muted); }
.menu-card__text { font-size: .92rem; color: var(--ink); }
.menu-card__link { margin-top: 6px; font-weight: 700; color: var(--green-deep); display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.menu-card--lunch { background: linear-gradient(135deg, var(--peach-pale), #fff 60%); }
.menu-card--lunch::after { background: var(--peach-pale); }
@container (min-width: 700px) { .menu-card--wide { grid-column: span 2; } }

/* ---------- 選ばれる理由 ---------- */
.reasons { position: relative; overflow: hidden; }
.reason-list { display: grid; gap: clamp(36px, 6vw, 72px); }
.reason { display: grid; gap: 20px; align-items: center; }
.reason__img { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.reason__img img { width: 100%; height: 100%; object-fit: cover; }
.reason__num { font-family: var(--font-en); font-size: 3rem; font-weight: 700; color: var(--green-soft); line-height: 1; }
.reason__title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: 700; line-height: 1.45; margin: 6px 0 12px; text-wrap: balance; }
.reason__text { color: var(--ink); text-wrap: pretty; }
@media (min-width: 800px) {
  .reason { grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
  .reason:nth-child(even) .reason__img { order: 2; }
}

/* ---------- ご利用の流れ ---------- */
.flow { display: grid; gap: 14px; counter-reset: flow; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow__item { background: var(--white); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); position: relative; display: grid; gap: 6px; align-content: start; }
.flow__item::before { counter-increment: flow; content: "STEP 0" counter(flow); font-family: var(--font-en); font-size: .72rem; letter-spacing: .2em; color: var(--green-deep); font-weight: 700; }
.flow__item h3 { font-size: 1.02rem; font-weight: 700; }
.flow__item p { font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) {
  .flow__item:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 0; height: 0; border: 8px solid transparent; border-left-color: var(--green); transform: translateY(-50%); }
}

/* ---------- 院長 ---------- */
.director { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .director { grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); } }
.director__photo { position: relative; }
.director__photo img { border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-lg); }
.director__photo::before { content: ""; position: absolute; inset: 10% -6% -6% 10%; background: var(--green-pale); border-radius: 48% 52% 40% 60% / 50% 40% 60% 50%; z-index: -1; }
.director__name { font-size: 1.35rem; font-weight: 700; margin: 12px 0 14px; }
.director__name small { font-size: .82rem; color: var(--muted); display: block; font-weight: 500; }
.director__text { text-wrap: pretty; }
.director__text + .director__text { margin-top: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--green-soft); color: var(--green-ink); font-weight: 700; }

/* ---------- Instagram / カレンダー ---------- */
.social-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .social-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.embed-card { background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.embed-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.embed-card__title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.embed-card__title .ico { color: var(--green-deep); }
.embed-card__body { position: relative; background: var(--sand); }
.embed-card__body iframe { width: 100%; border: 0; }
.embed-card--insta iframe { height: 620px; }
.embed-card--cal iframe { height: 600px; }
.embed-card__foot { padding: 14px 22px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 1fr 28px; gap: 12px; align-items: center;
  padding: 18px 20px; font-weight: 700; font-size: 1.02rem; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-en); font-weight: 700; color: var(--green-deep); font-size: 1.2rem; text-align: center; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; border-right: 2px solid var(--green-deep); border-bottom: 2px solid var(--green-deep);
  transform: rotate(45deg); justify-self: center; transition: transform .3s; margin-top: -6px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq__a { padding: 0 20px 20px 66px; color: var(--ink); font-size: .95rem; position: relative; text-wrap: pretty; }
.faq__a::before { content: "A"; position: absolute; left: 20px; top: -2px; width: 34px; text-align: center; font-family: var(--font-en); font-weight: 700; color: var(--peach-deep); font-size: 1.2rem; }
.faq__a p + p { margin-top: 8px; }
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- アクセス ---------- */
.access { display: grid; gap: 24px; }
@media (min-width: 900px) { .access { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.access__map { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand); }
.access__map iframe { width: 100%; height: 100%; border: 0; }
.access__info { display: grid; gap: 16px; }
.info-row { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; font-size: .95rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.info-row dt { font-weight: 700; color: var(--green-ink); }
.info-row dd small { color: var(--muted); display: block; }
.hours { width: 100%; font-size: .88rem; text-align: center; background: var(--white); border-radius: var(--radius-s); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.hours th, .hours td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.hours thead th { background: var(--green-pale); color: var(--green-ink); font-weight: 700; }
.hours tbody th { font-weight: 500; text-align: left; padding-left: 10px; white-space: nowrap; }
.hours .on { color: var(--green-deep); font-weight: 700; }
.hours .alt { color: var(--peach-deep); }
.hours__notes { font-size: .82rem; color: var(--muted); display: grid; gap: 2px; margin-top: 8px; }
.hours__notes li { padding-left: 1.2em; text-indent: -1.2em; }

/* ---------- Contact band ---------- */
.contact {
  padding-block: var(--sec-pad); position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--green-pale) 0%, #f6f9ec 55%, var(--peach-pale) 100%);
}
.contact .sec-head__lead { color: var(--ink); }
.contact__grid { display: grid; gap: 14px; }
@media (min-width: 820px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--white); border-radius: var(--radius-l); padding: 26px 22px; box-shadow: var(--shadow); text-align: center;
  display: grid; gap: 6px; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; border-top: 6px solid var(--green);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card--line { border-top-color: var(--line-brand); }
.contact-card--tel { border-top-color: var(--peach); }
.contact-card__label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact-card__main { font-family: var(--font-en); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; color: var(--green-deep); line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.contact-card--line .contact-card__main { color: var(--line-brand); }
.contact-card--tel .contact-card__main { color: var(--ink); }
.contact-card__note { font-size: .8rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0 calc(24px + 74px); }
@media (min-width: 1024px) { .footer { padding-bottom: 28px; } }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer__inner { grid-template-columns: 1.3fr .8fr 1fr; } }
.footer__mark { width: 84px; }
.footer__name { font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.footer__addr, .footer__hours { font-size: .9rem; margin-top: 6px; }
.footer__addr small, .footer__hours small { color: var(--muted); }
.footer__tel { font-family: var(--font-en); font-size: 1.3rem; font-weight: 700; margin-top: 6px; color: var(--green-deep); }
.footer__nav ul { display: grid; gap: 8px; font-size: .92rem; }
.footer__nav a { display: inline-flex; align-items: center; gap: 8px; }
.footer__nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.footer__sns { display: grid; gap: 8px; align-content: start; font-size: .92rem; }
.footer__sns-title { font-weight: 700; margin-bottom: 4px; }
.sns-link { display: inline-flex; align-items: center; gap: 8px; }
.sns-link .ico { color: var(--green-deep); }
.footer__copy { text-align: center; font-family: var(--font-en); font-size: .75rem; color: var(--muted); letter-spacing: .1em; margin-top: 32px; }

/* ---------- Fixed CTA (mobile) ---------- */
.fixed-cta {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 90;
  display: grid; grid-template-columns: .7fr 1.2fr 1fr; gap: 6px; padding: 6px;
  background: rgb(255 255 255 / .9); backdrop-filter: blur(10px); border-radius: 18px; box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 20px)); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.fixed-cta.is-show { transform: none; }
.fixed-cta__btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; border-radius: 12px; font-weight: 700; font-size: .82rem; color: #fff; }
.fixed-cta__btn--tel { background: var(--peach-deep); }
.fixed-cta__btn--line { background: var(--line-brand); }
.fixed-cta__btn--web { background: var(--green); }
@media (min-width: 1024px) { .fixed-cta { display: none; } }

/* ---------- 下層ページ共通 ---------- */
.page-hero {
  position: relative; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px);
  overflow: hidden; isolation: isolate; min-height: 46svh; display: grid; align-items: end;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(251 248 242 / .97) 0%, rgb(251 248 242 / .7) 45%, rgb(251 248 242 / .15) 100%); }
.page-hero__en { font-family: var(--font-en); letter-spacing: .3em; text-transform: uppercase; color: var(--green-deep); font-weight: 700; font-size: .85rem; }
.page-hero__title { font-size: clamp(1.9rem, 1.4rem + 3vw, 3.2rem); font-weight: 700; line-height: 1.3; letter-spacing: .05em; margin-top: 6px; }
.page-hero__lead { margin-top: 12px; max-width: 40em; text-wrap: pretty; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); margin-top: 18px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { color: var(--green-deep); }

.lead { font-size: clamp(1rem, .95rem + .4vw, 1.12rem); text-wrap: pretty; }
.lead + .lead { margin-top: 14px; }
.note { font-size: .85rem; color: var(--muted); }
.box { background: var(--white); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.box--green { background: var(--green-pale); box-shadow: none; }
.box--peach { background: var(--peach-pale); box-shadow: none; }
.box + .box { margin-top: 20px; }
.h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.check-list { display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 1.9em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--green); }
.check-list li::after { content: ""; position: absolute; left: .38em; top: .62em; width: .42em; height: .24em; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.two-col { display: grid; gap: 20px; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.figure { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure--square img { aspect-ratio: 1; }
.figure--tall img { aspect-ratio: 3 / 4; }

/* 料金カード（産後ケア） */
.plan { background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; }
.plan__head { padding: 24px 26px; background: var(--green-pale); display: grid; gap: 4px; }
.plan--peach .plan__head { background: var(--peach-pale); }
.plan__tag { font-family: var(--font-en); letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; font-weight: 700; color: var(--green-deep); }
.plan--peach .plan__tag { color: var(--peach-deep); }
.plan__title { font-size: 1.45rem; font-weight: 700; }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.plan__body { padding: 24px 26px; display: grid; gap: 22px; }
.plan__body h4 { font-size: 1rem; font-weight: 700; color: var(--green-ink); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.plan__body h4::before { content: ""; width: 18px; height: 2px; background: var(--green); }
.plan__body .check-list { font-size: .94rem; }
.plan__body .dot-list { display: grid; gap: 4px; font-size: .92rem; }
.dot-list li { padding-left: 1.2em; position: relative; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* 診察内容 詳細カード */
.service { background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow); overflow: hidden; display: grid; }
@media (min-width: 860px) { .service { grid-template-columns: 2fr 3fr; } .service:nth-child(even) .service__img { order: 2; } }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 12px; align-content: center; }
.service__num { font-family: var(--font-en); font-weight: 700; color: var(--green); letter-spacing: .2em; }
.service__title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: 700; line-height: 1.4; }
.service__title small { display: block; font-size: .8rem; color: var(--peach-deep); }
.service__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.service__meta span { background: var(--green-pale); color: var(--green-ink); padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.service__price { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
.service__price b { font-family: var(--font-en); font-size: 1.5rem; color: var(--green-deep); }
.service__price span { font-size: .85rem; color: var(--muted); }
.service__text { font-size: .95rem; text-wrap: pretty; }
.service + .service { margin-top: 22px; }
.service__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* プロフィール */
.profile { display: grid; gap: 28px; }
@media (min-width: 900px) { .profile { grid-template-columns: 340px 1fr; gap: 48px; align-items: start; } .profile__side { position: sticky; top: calc(var(--header-h) + 20px); } }
.profile__side img { border-radius: var(--radius-l); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-lg); }
.profile__name { font-size: 1.4rem; font-weight: 700; margin-top: 16px; }
.profile__name small { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }
.profile__text p + p { margin-top: 14px; }
.cv { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 700px) { .cv { grid-template-columns: 1fr 1fr; } }
.cv h3 { font-size: 1.05rem; font-weight: 700; color: var(--green-ink); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cv h3::before { content: ""; width: 18px; height: 2px; background: var(--green); }
.cv ul { display: grid; gap: 4px; font-size: .92rem; }
.cv li { padding-left: 1.1em; position: relative; }
.cv li::before { content: ""; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* 性教育 */
.target-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .target-grid { grid-template-columns: repeat(3, 1fr); } }
.target-grid li { background: var(--white); border-radius: var(--radius); padding: 18px 14px; text-align: center; font-weight: 700; box-shadow: var(--shadow); font-size: .95rem; }
.fee-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .fee-grid { grid-template-columns: repeat(3, 1fr); } }
.fee { background: var(--white); border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow); display: grid; gap: 4px; }
.fee__label { font-size: .9rem; font-weight: 700; color: var(--muted); }
.fee__price { font-family: var(--font-en); font-size: 1.7rem; font-weight: 700; color: var(--green-deep); line-height: 1.2; }
.fee__price small { font-size: .5em; font-family: var(--font-ja); color: var(--muted); }
.fee__note { font-size: .8rem; color: var(--muted); }

/* ---------- 基本理念 ---------- */
.philosophy { background: linear-gradient(180deg, var(--cream) 0%, var(--green-pale) 100%); }
.creed {
  margin-top: 18px; font-size: clamp(1.05rem, .95rem + .8vw, 1.45rem); font-weight: 700; line-height: 1.85;
  color: var(--green-ink); text-wrap: balance;
}
.philosophy__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .philosophy__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.philosophy .box { background: var(--white); box-shadow: var(--shadow); }
.philosophy .box p { text-wrap: pretty; }
.creed-list { display: grid; gap: 12px; }
.creed-list li {
  background: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
  border-left: 6px solid var(--green); display: grid; gap: 4px;
}
.creed-list h4 { font-size: 1.02rem; font-weight: 700; color: var(--green-ink); }
.creed-list p { font-size: .92rem; text-wrap: pretty; }

/* ---------- 産後ケア: 料金のかわりの案内文 ---------- */
.care-card__fee, .plan__fee {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .92rem;
  color: var(--green-ink); background: var(--green-pale); border-radius: 999px; padding: 8px 16px;
  line-height: 1.5; text-wrap: pretty;
}
.plan__fee { background: var(--white); }
.plan--peach .plan__fee { background: var(--white); color: var(--peach-deep); }
.care-card__fee::before, .plan__fee::before { content: "ℹ"; font-size: 1.1em; }

/* ---------- 信頼帯: 長いラベル ---------- */
.trust__num--sm { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
.trust__num--sm small { font-size: .7em; }

/* ---------- トップのアクセス（地図のみ） ---------- */
.access__map--wide { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .access__map--wide { aspect-ratio: 21 / 8; } }

/* ---------- 講演料目安: 文字を小さめに ---------- */
.fee-grid--sm .fee__price { font-size: clamp(1.15rem, 1rem + .6vw, 1.35rem); }
.fee-grid--sm .fee__label { font-size: .85rem; }
.fee-grid--sm .fee__note { font-size: .76rem; }

/* ---------- 契約自治体タグ（トップ産後ケア） ---------- */
.tag-list--center { justify-content: center; }
.areas__note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 12px; }
/* ヒーロー直下に信頼帯が無くなったので理念の上余白を少し詰める */
.philosophy { padding-top: clamp(48px, 7vw, 88px); }

/* ---------- Reveal（スクロール駆動アニメ + フォールバック） ---------- */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.no-sda .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); animation: none; }
.no-sda .reveal.is-view { opacity: 1; transform: none; }
.reveal--d1 { animation-delay: .1s; transition-delay: .1s; }
.reveal--d2 { animation-delay: .2s; transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal, .no-sda .reveal { opacity: 1; transform: none; }
}
