@charset "utf-8";
/* =========================================================
   春風クリニック トップページ（提案デモ）
   PC表示（横並びメニュー）：1024px以上
   ========================================================= */
:root {
  --base: #FAF7F2;
  --main: #4A3428;
  --accent: #B07D56;
  --accent-dark: #8F6141;
  --btn-grad: linear-gradient(to bottom, #9C6C47 0%, #8F6141 50%, #7A5236 100%);
  --btn-grad-hover: linear-gradient(to bottom, #9C6C47 0%, #946645 50%, #80573A 100%);
  --btn-glass-grad: linear-gradient(to bottom, rgba(255,255,255,.16), rgba(255,255,255,.08));
  --btn-glass-grad-hover: linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,.12));
  --btn-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 12px rgba(74,52,40,.18);
  --btn-shadow-hover: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px rgba(74,52,40,.24);
  --sub: #F1E6DF;
  --text: #3D3430;
  --muted: #74675F;
  --line: #E4D8CE;
  --white: #fff;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --en: "Cormorant Garamond", serif;
  --radius: 6px;
  --header-h: 60px;
  --bar-h: 64px;
  --shadow: 0 6px 24px rgba(74, 52, 40, .10);
}
@media (min-width: 1024px) {
  :root { --header-h: 108px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 1024px) { html { scroll-padding-top: 84px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  font-feature-settings: "palt" 0;
  padding-bottom: var(--bar-h); /* スマホ下部固定バーの分 */
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -0.18em; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--main); color: #fff; padding: 8px 16px; }
.skip:focus { left: 8px; top: 8px; }
.br-sp { display: inline; }
.br-pc { display: none; }
@media (min-width: 768px) { .br-sp { display: none; } .br-pc { display: inline; } }
.center { text-align: center; }
.note { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 28px;
  border-radius: 999px; text-decoration: none; font-weight: 500; letter-spacing: .05em;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  line-height: 1.4;
}
.btn-sm { min-height: 44px; padding: 8px 22px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent-dark); color: #fff; box-shadow: 0 4px 14px rgba(176, 125, 86, .35); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border: 1.5px solid var(--main); color: var(--main); background: transparent; }
.btn-outline:hover { background: var(--main); color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.85); color: #fff; background: rgba(0,0,0,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-light { border: 1.5px solid var(--sub); color: var(--sub); }
.btn-light:hover { background: var(--sub); color: var(--main); }

.link-more {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--main); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.link-more:hover .ico { transform: translateX(3px); }
.link-more .ico { transition: transform .2s; }

/* ---------- 見出し ---------- */
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head--left { text-align: left; margin-bottom: 20px; }
.sec-en {
  display: block; font-family: var(--en); font-style: italic; font-size: 18px;
  color: var(--accent); letter-spacing: .06em; line-height: 1.2; margin-bottom: 4px;
}
.sec-head h2 {
  font-family: var(--serif); font-weight: 600; color: var(--main);
  font-size: clamp(24px, 5.4vw, 34px); line-height: 1.5; letter-spacing: .08em;
}
.sec-head:not(.sec-head--left) h2::after {
  /* ダマスク柄の代わりの小さな飾り */
  content: ""; display: block; width: 64px; height: 10px; margin: 14px auto 0;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / 24px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right center / 24px 1px no-repeat,
    radial-gradient(circle, var(--accent) 2.5px, transparent 3px) center / 10px 10px no-repeat;
}
.sec-lead { margin-top: 20px; color: var(--text); }

.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 104px 0; } }
.section-sub { background: var(--sub); }
.section-dark { background: var(--main); color: #F4ECE5; }
.section-dark .sec-head h2 { color: #fff; }
.section-dark .sec-en { color: #D9AE8A; }
.section-dark .sec-lead { color: #F4ECE5; }
.section-dark .sec-head h2::after {
  background:
    linear-gradient(#D9AE8A, #D9AE8A) left center / 24px 1px no-repeat,
    linear-gradient(#D9AE8A, #D9AE8A) right center / 24px 1px no-repeat,
    radial-gradient(circle, #D9AE8A 2.5px, transparent 3px) center / 10px 10px no-repeat;
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--base); color: var(--main);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.topbar { display: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark { width: 36px; height: 36px; flex: none; color: currentColor; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo-sub { font-size: 11px; letter-spacing: .12em; opacity: .85; }
.logo-name { font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: .04em; white-space: nowrap; }

.gnav { display: none; }

.sp-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.sp-tel, .menu-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius); color: var(--main);
}
.sp-tel .ico { width: 24px; height: 24px; color: var(--accent); }
.menu-lines { display: flex; flex-direction: column; gap: 6px; width: 24px; margin-bottom: 5px; }
.menu-lines span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.menu-label { font-size: 10px; letter-spacing: .04em; white-space: nowrap; line-height: 1; }
.menu-btn[aria-expanded="true"] .menu-lines span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 1024px) {
  .topbar { display: block; font-size: 13px; border-bottom: 1px solid var(--line); transition: margin .3s, opacity .3s; }
  .topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
  .topbar-addr { display: flex; align-items: center; gap: 6px; }
  .topbar-links { display: flex; align-items: center; gap: 24px; }
  .topbar-links a { text-decoration: none; }
  .topbar-links a:hover { text-decoration: underline; }
  .topbar-tel { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; letter-spacing: .04em; margin-right: 8px; }
  .topbar-note { opacity: .85; }

  .header-inner { height: 72px; transition: height .3s; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-name { font-size: 19px; }
  .sp-actions { display: none; }
  .gnav { display: flex; align-items: center; gap: 28px; }
  .gnav ul { display: flex; gap: 26px; }
  .gnav ul a { text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .05em; padding: 6px 0; position: relative; }
  .gnav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
  .gnav ul a:hover::after { transform: scaleX(1); }

  /* ファーストビュー上：透明＋白文字 */
  .is-top .site-header { background: transparent; color: #fff; box-shadow: none; }
  .is-top .topbar { border-bottom-color: rgba(255,255,255,.3); }
  .is-top .site-header .logo-mark { color: #fff; }
  .is-top .site-header .btn-accent { box-shadow: none; }

  /* スクロール後：細い固定ヘッダー */
  body:not(.is-top) .topbar { margin-top: -37px; opacity: 0; }
  body:not(.is-top) .header-inner { height: 64px; }
}

/* ---------- スマホ全画面メニュー ---------- */
.sp-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; /* 下部固定バーより前面 */
  background: var(--base);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.sp-menu[hidden] { display: none; }
.sp-menu-inner { padding: 8px 20px 40px; max-width: 560px; margin: 0 auto; }
.sp-menu-list li { border-bottom: 1px solid var(--line); }
.sp-menu-list a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; text-decoration: none; font-size: 17px; font-weight: 500; color: var(--main); }
.sp-menu-list a::after { content: ""; width: 8px; height: 8px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); margin-right: 6px; }
.sp-menu-cta { display: grid; gap: 12px; margin-top: 28px; }
.sp-menu-note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 4px; }
@media (min-width: 1024px) { .sp-menu { display: none !important; } }

/* ---------- スマホ下部固定バー ---------- */
.sp-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  height: var(--bar-h); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(74, 52, 40, .15);
}
.sp-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.sp-bar-tel { background: var(--white); color: var(--main); }
.sp-bar-tel .ico { color: var(--accent); }
.sp-bar-web { background: var(--accent-dark); color: #fff; }
@media (min-width: 1024px) { .sp-bar { display: none; } }

/* =========================================================
   1. ファーストビュー
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: #fff;
  height: 100vh; height: 100svh; min-height: 560px;
  margin-top: var(--header-h);
  height: calc(100svh - var(--header-h) - var(--bar-h));
  min-height: 520px;
  display: flex; align-items: flex-end;
  background: var(--main);
}
@media (min-width: 1024px) {
  .hero { margin-top: 0; height: 100vh; min-height: 640px; align-items: center; }
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-slide picture { width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; object-position: center; }
.hero-slide.is-active img { animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; }
}


.hero-inner { position: relative; z-index: 1; padding-bottom: 76px; }
@media (min-width: 1024px) { .hero-inner { padding-top: 60px; padding-bottom: 40px; } }
.hero-text { max-width: 640px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero h1 { font-weight: 400; }
.hero-name { display: block; font-size: 13px; letter-spacing: .08em; margin-bottom: 14px; opacity: .95; }
.hero-catch {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(26px, 7.2vw, 52px); line-height: 1.5; letter-spacing: .06em;
}
@media (min-width: 768px) { .hero-name { font-size: 15px; } }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-tags li { border: 1px solid rgba(255,255,255,.75); padding: 3px 14px; font-size: 14px; border-radius: 999px; background: rgba(0,0,0,.12); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-btns .btn { text-shadow: none; }
@media (max-width: 480px) { .hero-btns .btn { flex: 1 1 100%; } }

.hero-ctrl { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; }
@media (min-width: 1024px) { .hero-ctrl { right: 32px; bottom: 96px; } }
.hero-dots { display: flex; gap: 8px; }
.hero-dots li { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s; }
.hero-dots li.is-active { background: #fff; }
.hero-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.8); color: #fff; background: rgba(0,0,0,.25);
}
.hero-toggle .ico { width: 18px; height: 18px; }
.hero-toggle .ico-play { display: none; }
.hero-toggle.is-paused .ico-play { display: block; }
.hero-toggle.is-paused .ico-pause { display: none; }

/* =========================================================
   2. 来院目的別
   ========================================================= */
.purpose { position: relative; z-index: 3; padding-block: 24px; }
.purpose-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.purpose-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  height: 100%; min-height: 128px; padding: 18px 8px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; text-align: center; color: var(--main);
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.purpose-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.purpose-ico { width: 44px; height: 44px; margin-bottom: 8px; color: var(--main); }
.purpose-label { font-weight: 700; font-size: 15px; line-height: 1.45; letter-spacing: .02em; }
.purpose-note { margin-top: 8px; font-size: 12px; line-height: 1.5; background: var(--sub); color: var(--main); padding: 4px 8px; border-radius: 4px; font-weight: 500; }
@media (min-width: 768px) {
  .purpose-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  .purpose { margin-top: -72px; padding-top: 0; }
  .purpose-list { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .purpose-item { min-height: 168px; padding: 24px 10px 18px; }
  .purpose-ico { width: 52px; height: 52px; }
}

/* =========================================================
   3. 重要なお知らせ
   ========================================================= */
.alert { margin-top: 28px; }
.alert[hidden] { display: none; }
.alert-box {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 14px 48px 14px 16px;
}

.alert-text { flex: 1; font-size: 15px; line-height: 1.75; }
.alert-text a { color: var(--main); font-weight: 500; }
.alert-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.alert-close:hover { background: var(--sub); }
@media (min-width: 768px) { .alert-box { padding: 16px 56px 16px 20px; } }

/* =========================================================
   4. 外来のご案内＋お知らせ
   ========================================================= */
.info { padding-top: 56px; }
.info-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; } }
.info-box { background: var(--white); border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .info-box { padding: 36px 32px; } }
.table-wrap { overflow-x: auto; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; min-width: 300px; }
.hours caption { text-align: left; font-weight: 700; color: var(--main); margin-bottom: 8px; font-size: 15px; }
.hours th, .hours td { border-bottom: 1px solid var(--line); padding: 10px 2px; }
.hours thead th { background: var(--sub); color: var(--main); font-weight: 500; font-size: 13px; }
.hours tbody th { text-align: left; font-weight: 500; white-space: nowrap; padding-left: 4px; }
.hours tbody th span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.hours td { color: var(--accent); }
.hours td.off { color: var(--muted); }
.info-dl { display: grid; gap: 4px; margin: 16px 0 8px; }
.info-dl div { display: flex; gap: 16px; }
.info-dl dt { font-weight: 700; color: var(--main); min-width: 5em; }
.info-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.info-tel { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--main); font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .04em; }
.info-tel .ico { color: var(--accent); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { padding: 10px 14px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; min-height: 44px; }
.tabs button[aria-pressed="true"] { color: var(--main); border-bottom-color: var(--main); font-weight: 700; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li[hidden] { display: none; }
.news-list a { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "date cat ." "title title title"; gap: 4px 12px; align-items: center; padding: 16px 4px; text-decoration: none; }
.news-list a:hover .news-title { text-decoration: underline; }
.news-list time { grid-area: date; font-size: 14px; color: var(--muted); font-family: var(--sans); letter-spacing: .04em; }
.cat { grid-area: cat; font-size: 12px; padding: 1px 10px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.6; }
.cat-info { color: var(--main); }
.cat-obs { color: var(--accent-dark); }
.cat-gyn { color: #7A6A60; }
.news-title { grid-area: title; line-height: 1.7; }
@media (min-width: 768px) {
  .news-list a { grid-template-columns: 6.5em 5.5em 1fr; grid-template-areas: "date cat title"; }
}
.news-empty { padding: 20px 4px; color: var(--muted); }
.news .link-more { margin-top: 20px; }

/* =========================================================
   5. 3つの特色
   ========================================================= */
.feature { display: grid; gap: 24px; align-items: center; margin-top: 48px; }
.feature:first-of-type { margin-top: 0; }
.feature-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-num { display: block; font-family: var(--en); font-size: 44px; line-height: 1; color: var(--accent); margin-bottom: 6px; }
.feature-body h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 4.6vw, 26px); color: var(--main); letter-spacing: .08em; line-height: 1.5; margin-bottom: 14px; }
.feature-body p + p { margin-top: 10px; }
.feature-body .link-more { margin-top: 18px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.05fr 1fr; gap: 56px; margin-top: 72px; }
  .feature--rev .feature-img { order: 2; }
  .feature-img { max-width: 560px; width: 100%; justify-self: center; }
}

/* =========================================================
   6. 無痛分娩の体制
   ========================================================= */
.flow-title { font-family: var(--serif); font-weight: 600; text-align: center; font-size: 19px; letter-spacing: .08em; color: #fff; margin: 8px 0 28px; }
.flow { display: grid; gap: 14px; counter-reset: flow; }
.flow-step {
  position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-areas: "ico num" "ico label" "ico desc";
  column-gap: 16px; align-items: center;
  background: rgba(250, 247, 242, .06); border: 1px solid rgba(241, 230, 223, .2); border-radius: var(--radius);
  padding: 18px 18px;
}
.flow-step:not(:last-child)::after {
  /* 次のステップへの矢印（縦） */
  content: ""; position: absolute; left: 50px; bottom: -12px; width: 12px; height: 12px;
  border-right: 1.5px solid #D9AE8A; border-bottom: 1.5px solid #D9AE8A; transform: rotate(45deg); background: var(--main);
  z-index: 1;
}
.flow-ico { grid-area: ico; width: 64px; height: 64px; }
.flow-num { grid-area: num; font-family: var(--en); font-size: 16px; letter-spacing: .1em; color: #D9AE8A; line-height: 1.2; }
.flow-label { grid-area: label; font-weight: 700; color: #fff; line-height: 1.5; font-size: 17px; }

.flow-desc { grid-area: desc; font-size: 14px; line-height: 1.7; margin-top: 4px; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .flow-step { grid-template-columns: 1fr; grid-template-areas: "ico" "num" "label" "desc"; justify-items: center; text-align: center; padding: 28px 18px; row-gap: 6px; }
  .flow-ico { width: 72px; height: 72px; margin-bottom: 6px; }
  .flow-label br { display: inline; }
  .flow-step:not(:last-child)::after { left: auto; right: -21px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }
}
.painless-notes { margin: 40px auto 0; max-width: 820px; border-left: 3px solid #D9AE8A; padding: 4px 0 4px 18px; }
.painless-notes p + p { margin-top: 10px; }
.painless-notes strong { color: #fff; }
.painless-info { margin: 32px auto; max-width: 820px; background: rgba(250, 247, 242, .07); border-radius: var(--radius); padding: 8px 20px; }
.painless-info div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(241, 230, 223, .18); }
.painless-info div:last-child { border-bottom: 0; }
.painless-info dt { font-weight: 700; color: #fff; font-size: 15px; }
.painless-info dd { font-size: 15px; }
.painless-info a { color: #fff; }
@media (min-width: 768px) {
  .painless-info { padding: 8px 32px; }
  .painless-info div { grid-template-columns: 11em 1fr; gap: 16px; }
}

/* =========================================================
   7. 入院生活
   ========================================================= */
.stay-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 560px) { .stay-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
@media (min-width: 1000px) { .stay-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; } }
.stay-img { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--sub); }
.stay-img img, .stay-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.stay-card h3 { font-family: var(--serif); font-weight: 600; color: var(--main); font-size: 18px; letter-spacing: .06em; margin-bottom: 6px; }
.stay-card p { font-size: 15px; line-height: 1.8; }
#stay .note { margin-top: 32px; }
#stay .btn { margin-top: 20px; }

/* =========================================================
   8. 出産費用
   ========================================================= */
.cost-list { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .cost-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.cost-card { background: var(--white); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow); }
.cost-card h3 { font-family: var(--serif); font-weight: 600; color: var(--main); font-size: 18px; letter-spacing: .08em; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.cost-price { font-family: var(--serif); font-size: 36px; color: var(--main); line-height: 1.3; }
.cost-price span { font-size: 16px; margin-left: 2px; }
.cost-tbd { font-size: 13px; color: var(--muted); }
.note-list { max-width: 900px; margin: 24px auto 32px; font-size: 14px; color: var(--muted); }
.note-list li { padding-left: 1.2em; text-indent: -1.2em; }
.note-list li::before { content: "※ "; }

/* =========================================================
   9. 院内紹介
   ========================================================= */
.video { max-width: 880px; margin: 0 auto 40px; }
.video-facade, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 0; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: filter .3s; }
.video-facade:hover img { filter: brightness(.6); }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); width: 72px; height: 72px; border-radius: 50%; background: rgba(250, 247, 242, .92); color: var(--main); display: grid; place-items: center; }
.video-play .ico { width: 28px; height: 28px; margin-left: 4px; }
.video-caption { position: absolute; left: 0; right: 0; bottom: 18px; color: #fff; font-size: 15px; text-align: center; letter-spacing: .06em; padding: 0 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gallery figure { position: relative; }
.gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: 14px; margin-top: 6px; color: var(--main); }

/* =========================================================
   10. アクセス
   ========================================================= */
.access-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .access-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; } }
.access-photo { border-radius: var(--radius); width: 100%; max-width: 450px; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; }
.access-dl div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.access-dl dt { font-weight: 700; color: var(--main); }
.access-dl a { color: var(--main); font-weight: 700; font-size: 18px; }
.access-info .link-more { margin-top: 20px; }
.map { min-height: 320px; border-radius: var(--radius); overflow: hidden; background: #E9DED5; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-facade {
  width: 100%; height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--main);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(74, 52, 40, .07) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(74, 52, 40, .07) 39px 40px),
    #EDE3DA;
}
.map-facade .ico { width: 40px; height: 40px; color: var(--accent); }
.map-facade span { font-weight: 700; font-size: 17px; }
.map-facade small { font-size: 13px; color: var(--muted); }

/* =========================================================
   11. フッター
   ========================================================= */
.site-footer { background: var(--main); color: #EFE5DD; padding: 56px 0 0; font-size: 14px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; color: #fff; margin-bottom: 16px; letter-spacing: .04em; }
.footer-logo .logo-mark { width: 40px; height: 40px; color: #fff; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address a { color: #fff; font-weight: 700; font-size: 17px; }
.footer-hours { margin-top: 10px; line-height: 1.9; }
.footer-map { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: #fff; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
@media (min-width: 560px) { .footer-nav ul { grid-template-columns: repeat(3, 1fr); } }
.footer-nav a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-policy { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(239, 229, 221, .2); font-size: 13px; }
.copyright { text-align: center; margin-top: 48px; padding: 18px 0; border-top: 1px solid rgba(239, 229, 221, .15); font-size: 12px; letter-spacing: .06em; color: #CDBFB4; }

/* ---------- 表示確認後の調整 ---------- */
.hero-name span { display: inline-block; }
.hero-name span:first-child { margin-right: 1em; }
@media (max-width: 559px) {
  .purpose-label { font-size: 14px; }
  .alert-box { flex-direction: column; gap: 8px; padding: 14px 44px 14px 16px; }

}
@media (min-width: 900px) {
  .flow-step { align-content: start; }
}
.logo-name span, .footer-logo span span { display: inline-block; }
.logo-name { white-space: normal; }
@media (max-width: 767px) {
  .cost-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "name tbd"; align-items: center; text-align: left; padding: 16px 20px; column-gap: 12px; }
  .cost-card h3 { grid-area: name; border: 0; padding: 0; margin: 0; }
  .cost-price { grid-area: price; font-size: 28px; text-align: right; }
  .cost-tbd { grid-area: tbd; text-align: right; }
}

/* =========================================================
   スマホ版FVのバランス調整（767px以下のみ。PCは変更なし）
   ========================================================= */
@media (max-width: 767px) {
  /* 高さ：ヘッダー込みで画面の82%。下に目的別ボタンの1段目が見える */
  .hero { height: calc(82svh - var(--header-h)); min-height: 440px; }
  .purpose { padding-block: 16px; }

  /* 写真の切り抜き位置（写真ごとに --sp-pos で指定） */
  .hero-slide img { object-position: var(--sp-pos, 50%) center; }
  .hero-slide[data-pc-only] { display: none; }
  .hero-dots li[data-pc-only] { display: none; }



  /* 文字：下の余白に再生ボタンの段を確保して、重ならないようにする */
  .hero-inner { padding-bottom: 68px; }
  .hero-name { font-size: 11px; letter-spacing: .04em; margin-bottom: 8px; white-space: nowrap; }
  .hero-name span:first-child { margin-right: .7em; }
  .hero-catch { font-size: clamp(22px, 6.4vw, 30px); line-height: 1.45; letter-spacing: .05em; }
  .hero-tags { gap: 6px; margin-top: 14px; }
  .hero-tags li { font-size: 12px; padding: 1px 10px; }

  /* ボタン：予約は下部の固定バーに任せ、FVは「出産費用を見る」だけ */
  .hero-btn-reserve { display: none; }
  .hero-btns { margin-top: 18px; }
  .hero-btns .btn.hero-btn-cost { flex: 0 0 auto; min-height: 44px; padding: 8px 20px; font-size: 14px; border-width: 1px; }

  /* 再生／停止ボタンとドット：右下の余白内（文字ブロックより下の段） */
  .hero-ctrl { right: 12px; bottom: 12px; gap: 8px; }
  .hero-dots { gap: 6px; }
  .hero-dots li { width: 6px; height: 6px; }
}

/* 外部レビュー反映 */
.menu-open .sp-bar { display: none; }
.sp-menu-inner { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.sp-menu-list ul { padding-left: 20px; }
.sp-menu-list ul a { font-size: 15px; min-height: 48px; }
.alert-close { width: 44px; height: 44px; }
.alert-box { padding-right: 68px; }
.footer-nav a, .footer-map { min-height: 44px; display: inline-flex; align-items: center; }
.hero-condition { font-size: 13px; line-height: 1.65; margin-top: 12px; max-width: 580px; }
.hero-btn-cost, .section-dark .btn-outline { background: white; color: var(--main); border-color: var(--line); text-shadow: none; }
.sp-bar-tel { background: var(--accent-dark); color: white; border-right: 1px solid #ffffff55; }
.sp-bar-tel .ico { color: white; }
.hours { min-width: 0; table-layout: fixed; font-size: 13px; }
.hours th, .hours td { overflow-wrap: anywhere; }
.hours td { color: var(--text); }
.table-wrap { overflow-x: visible; }
.transfer-summary { margin-top: 32px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.transfer-summary h2 { font-family: var(--serif); font-size: 22px; color: var(--main); margin-bottom: 12px; }
.transfer-summary .btn { margin-top: 12px; }
@media (max-width: 767px) {
 .hero-slide picture img { object-position: center; }
 .hero-condition { font-size: 12px; }
 .hero-name { white-space: normal; }
 .hero { min-height: 520px; }
 .tabs { gap: 0; }
 .tabs button { padding-inline: 10px; font-size: 14px; }
}

/* 下層ページと共通階層ナビ */
@media (min-width: 1024px) {
 .topbar-links { gap: 16px; }
 .gnav { gap: 18px; }
 .gnav > ul { gap: 20px; }
 .nav-parent { position: relative; }
 .gnav .dropdown, .topbar .dropdown {
   display: none; position: absolute; top: 100%; left: 0; width: 270px;
   background: var(--base); color: var(--main); padding: 12px 20px;
   box-shadow: var(--shadow); border: 1px solid var(--line); z-index: 120;
 }
 .nav-parent:hover > .dropdown, .nav-parent:focus-within > .dropdown { display: block; }
 .nav-parent.dropdown-closed > .dropdown { display: none; }
 .dropdown li a { display: block; min-height: 44px; padding-block: 8px; }
 .subpage .topbar { margin-top: 0; opacity: 1; }
 .subpage .header-inner { height: 72px; }
}
.footer-nav .dropdown { display: block; padding-left: 12px; }
.footer-nav .dropdown a { font-size: 12px; }
.page-title { margin-top: var(--header-h); padding: 48px 0 40px; background: var(--sub); }
.page-title h1 { font-family: var(--serif); color: var(--main); font-size: clamp(26px, 5vw, 38px); line-height: 1.5; font-weight: 600; }
.page-title .sec-en { margin-bottom: 10px; }
.breadcrumb { padding-block: 16px; font-size: 12px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; }
.article { max-width: 1000px; padding-top: 32px; padding-bottom: 80px; overflow-wrap: anywhere; }
.article > section { margin-bottom: 64px; }
.article h2 { font-family: var(--serif); font-size: clamp(23px,4.5vw,30px); line-height: 1.6; color: var(--main); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article h3 { font-size: 18px; color: var(--main); margin-top: 28px; margin-bottom: 12px; }
.article p + p { margin-top: 16px; }
.article ul:not(.gallery), .article ol { padding-left: 1.4em; }
.article ul:not(.gallery) { list-style: disc; }
.article li + li { margin-top: 8px; }
.article a { text-underline-offset: 4px; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article .toc { padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 48px; }

.toc .toc-en {
 display: block; font-family: var(--en); font-style: italic; font-size: 18px;
 line-height: 1.2; color: #B07D56; margin-bottom: 6px;
}
.article .toc h2 { font-size: 26px; margin-bottom: 16px; padding: 0; border: 0; }
.article .toc ul { list-style: none; padding: 0; display: grid; gap: 0 28px; }
.article .toc li { margin: 0; border-bottom: 1px solid #F1E6DF; }
.toc a {
 display: flex; align-items: center; justify-content: space-between; gap: 16px;
 min-height: 52px; padding-block: 10px; text-decoration: none;
}
.toc a::after { content: '↓'; flex-shrink: 0; color: var(--accent-dark); }
.toc a:hover { color: var(--accent-dark); }
.toc a:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
@media (min-width: 768px) { .article .toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.article .lead { font-family: var(--serif); font-size: 21px; line-height: 1.9; color: var(--main); margin-bottom: 32px; }
.article .notice { padding: 20px 24px; border-left: 3px solid var(--accent-dark); background: white; margin-block: 24px; }
.article .check { font-size: 14px; font-family: var(--sans); font-weight: 500; color: #805338; }
.article .data-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; margin-block: 24px; }
.data-table th, .data-table td { text-align: left; border: 1px solid var(--line); padding: 16px; overflow-wrap: anywhere; vertical-align: top; }
.data-table th { background: var(--sub); color: var(--main); }
.data-table caption { text-align: left; font-weight: 700; margin-bottom: 12px; }
.article .steps { list-style: none; counter-reset: steps; padding-left: 0; display: grid; gap: 16px; }
.steps li { position: relative; counter-increment: steps; padding: 20px 24px 20px 68px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(steps); position: absolute; left: 22px; top: 20px; color: var(--accent-dark); font-family: var(--en); font-size: 30px; line-height: 1.2; }
.steps li:not(:last-child)::after { content: '↓'; position: absolute; bottom: -22px; left: 30px; color: var(--accent-dark); z-index: 1; }
.article .steps h3 { margin: 0 0 6px; }
.anatomy { width: 100%; height: auto; max-width: 680px; display: block; margin-inline: auto; }
.article details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.article summary { cursor: pointer; font-weight: 700; color: var(--main); min-height: 44px; }
.article details p { margin-top: 12px; }
.contact-block { padding: 32px; background: var(--sub); border-radius: var(--radius); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px; }
.related a { min-height: 44px; display: inline-flex; align-items: center; }
.article .news-list { list-style: none; padding-left: 0; }
.article .news-list li + li { margin-top: 0; }
@media (max-width: 767px) {
 .page-title { padding-block: 32px; }
 .article { padding-top: 16px; }
 .article > section { margin-bottom: 44px; }
 .data-table th, .data-table td { padding: 10px 8px; font-size: 13px; }
 .contact-block { padding: 24px 20px; }
 .contact-actions .btn { width: 100%; }
 .article .toc { padding: 20px; }
 .article .gallery { padding-left: 0; }
}
/* 固定バーの塗りと、明るい背景での小さな文字の可読性 */
.sec-en { color: var(--accent-dark); }
.section-dark .sec-en { color: #D9AE8A; }
.subpage { scroll-padding-top: var(--header-h); }
html:has(.subpage) { scroll-padding-top: calc(var(--header-h) + 16px); }

/* 7項目のヘッダーと現在地 */
@media (min-width: 1024px) {
 .header-inner { gap: 12px; }
 .header-inner > .logo { flex-shrink: 0; }
 .gnav { gap: 12px; flex-shrink: 0; }
 .gnav > ul { gap: 12px; flex-wrap: nowrap; }
 .gnav > ul > li > a { font-size: 13px; letter-spacing: 0; white-space: nowrap; }
 .gnav > .btn { font-size: 13px; padding-inline: 16px; white-space: nowrap; }
 .purpose-label { font-size: 13px; letter-spacing: 0; }
 .purpose-label > span { display: inline-block; }
 .purpose-label wbr { display: initial; }
}
@media (min-width: 1280px) {
 .gnav { gap: 18px; }
 .gnav > ul { gap: 16px; }
 .gnav > ul > li > a { font-size: 14px; }
}
.gnav a[aria-current="page"]::after { transform: scaleX(1); height: 2px; }
.sp-menu-list a[aria-current="page"] { color: var(--accent-dark); background: var(--sub); }
.topbar-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.footer-nav a[aria-current="page"] { text-decoration: underline; }
.purpose-item:focus-visible { border-color: var(--accent-dark); }

/* カテゴリー表示 */
.cat { width: 80px; justify-self: start; display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 1px 10px; }
.news-title { display: flex; align-items: flex-start; gap: 8px; }
.news-title-text { min-width: 0; }

@media (max-width: 1023px) { .purpose-label wbr { display: none; } }

.important-prefix { color: var(--accent-dark); font-size: inherit; }


@media(min-width:1024px){.header-inner{min-height:82px}}


.sp-menu-secondary { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; }
@media(min-width:1024px){.gnav{gap:12px}.gnav>ul{gap:12px}.gnav>ul>li>a{font-size:12px;letter-spacing:0;white-space:nowrap}.gnav>.btn{padding-inline:12px}.header-inner{gap:10px}}
@media(min-width:1280px){.gnav>ul{gap:20px}.gnav>ul>li>a{font-size:14px}}

/* 三本柱と季節の入院生活 */
.pillar-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; list-style:none; padding:0; }




.pillar-card { background:var(--base,#FAF7F2);overflow:hidden; }
.pillar-card>img { width:100%;height:260px;object-fit:cover; }
.pillar-card>div,.class-card { padding:28px; }
.pillar-card h3,.class-card h3 { font-family:var(--serif);font-size:23px;margin-bottom:16px; }
.pillar-card p { margin-bottom:22px; }
.hospitality { background:#F1E6DF; }
.hospitality-links { display:flex;flex-wrap:wrap;gap:12px 32px;list-style:none;padding:20px 0; }
.hospitality-links a { display:block;border-bottom:1px solid #B07D56;padding:10px 0; }
.class-card { border:1px solid var(--line); }
.class-note { text-align:center;margin-top:32px; }
.photo-pair { display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-bottom:32px; }
.photo-pair figure:nth-child(2) { margin-top:50px; }
.photo-pair img { width:100%;height:300px;object-fit:cover;border-radius:10px; }
@media(max-width:767px){.pillar-grid{grid-template-columns:1fr}.pillar-card>img{height:240px}.photo-pair{gap:12px}.photo-pair img{height:190px}.class-note{text-align:left}}

.gallery-staggered { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.gallery-staggered li:nth-child(even){margin-top:36px}
.gallery-staggered img{height:240px;object-fit:cover}
@media(max-width:767px){.gallery-staggered img{height:130px}}

/* 病院受領の正式マーク＋病院名 */
.brand-marks { display:block;flex:none;width:17px;height:40px; }
.brand-mark { width:100%;height:100%;object-fit:contain; }
.brand-white { display:none; }
.brand-text { display:flex;flex-direction:column;line-height:1.45;color:var(--main); }
.brand-sub { font-size:10px;letter-spacing:.12em; }
.brand-name { font-family:var(--serif);font-weight:600;font-size:14px;letter-spacing:.025em;max-width:220px; }
.header-inner { min-height:64px; }
.is-top .site-header { background:transparent;color:#fff;box-shadow:none; }
.is-top .site-header .brand-text { color:#fff; }
.is-top .site-header .brand-brown { display:none; }
.is-top .site-header .brand-white { display:block; }
.is-top .site-header .sp-tel,.is-top .site-header .sp-tel .ico,.is-top .menu-btn {color:#fff}
.is-top .menu-lines span {background:#fff}
.footer-brand { background:#FAF7F2;padding:16px 18px;border-radius:4px;max-width:340px; }
.footer-brand .brand-marks {height:48px;width:20.28px}
.footer-brand .brand-name {font-size:17px}
@media(min-width:1024px){.brand-marks{height:48px;width:20.28px}.brand-name{font-size:16px;max-width:255px}.header-inner{min-height:76px}.logo{gap:12px}}
@media(max-width:390px){.brand-name{max-width:185px;font-size:13px}.logo{gap:8px}.sp-tel,.menu-btn{width:44px}}

/* PC予約ボタン：本文の上に重ねて表示 */
.side-reservation { display:none; }
@media(min-width:1024px){
 .site-header { right:0; width:auto; }
 .side-reservation { position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:90;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;width:52px;min-height:230px;padding:20px 10px;border-radius:9px 0 0 9px;background:var(--accent-dark);color:#fff;text-decoration:none;box-shadow:0 4px 16px #4A34281a; }
 .side-reservation span { writing-mode:vertical-rl;text-orientation:upright;font-family:var(--serif);font-size:17px;letter-spacing:.24em; }
 .side-reservation .ico {width:22px;height:22px;flex:none}
 .side-reservation:hover { background:#70492F;color:#fff; }
 .side-reservation:focus-visible {outline:3px solid var(--main);outline-offset:4px;box-shadow:0 0 0 7px #FAF7F2}
 .gnav>ul {gap:20px}
 .gnav>ul>li>a {font-size:13px}
}
@media(min-width:1280px){.gnav>ul{gap:24px}.gnav>ul>li>a{font-size:14px}}
.menu-open .side-reservation,.modal-open .side-reservation,body:has(dialog[open]) .side-reservation,body:has([aria-modal="true"]:not([hidden])) .side-reservation {display:none}

.seasonal-gallery { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px; }
.seasonal-gallery figure{margin:0}.seasonal-gallery img{aspect-ratio:1;object-fit:cover}.seasonal-gallery figcaption{font-size:13px;margin-top:10px}
.article .class-souvenir{max-width:360px}.article .class-souvenir img{object-fit:contain;height:auto}
@media(max-width:600px){.seasonal-gallery{grid-template-columns:1fr;gap:24px}}

/* 現行サイトの英字病院名＋日本語補足 */
.brand-text { gap:5px;min-width:0;line-height:1; }
.brand-wordmarks { display:block;width:270px;max-width:100%; }
.brand-wordmark { width:100%;height:auto; }
.wordmark-white { display:none; }
.is-top .site-header .wordmark-brown {display:none}
.is-top .site-header .wordmark-white {display:block}
.brand-tagline { font-family:var(--sans);font-size:11px;line-height:1.45;letter-spacing:.04em;white-space:nowrap; }
.footer-brand {max-width:350px}
@media(max-width:1023px){
 .header-inner {height:64px;min-height:64px;padding-inline:12px;gap:8px}
 .site-header .logo {gap:8px;min-width:0;flex:1}
 .site-header .brand-text {width:calc(100% - 25px);max-width:265px}
 .site-header .brand-wordmarks {width:100%}
 .site-header .brand-tagline {font-size:11px;letter-spacing:.015em}
 .sp-actions {gap:0}.sp-tel{width:32px}.menu-btn{width:36px}
}
@media(min-width:1024px) and (max-width:1279px){.brand-wordmarks{width:250px}.gnav>ul{gap:16px}}

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

/* FV：写真を画面上端から表示し、中央の白文字を支える */

.hero-text {text-shadow:0 1px 8px rgba(0,0,0,.35)}

@media(max-width:1023px){
 :root{--header-h:64px}
 .hero{margin-top:0;height:82svh;min-height:0}
 .is-top .site-header,.is-top .header-main{background:transparent}
}

/* 1. SPのFV：上部の写真は明るく、文字を下部へ */
@media(max-width:767px){
 .hero{height:78svh;min-height:480px}

 .hero-inner{padding-bottom:44px}
 .hero-catch{font-size:clamp(22px,6.1vw,28px);line-height:1.45}
 .hero-tags{margin-top:10px}.hero-btns{margin-top:12px}
}

/* 2. SPの病院名と操作領域 */
@media(max-width:767px){
 .header-inner{height:64px;min-height:64px;padding-inline:10px;gap:4px}
 .site-header .logo{gap:6px}.site-header .brand-text{width:238px;max-width:none}
 .site-header .brand-wordmarks{width:196px}
 .site-header .brand-tagline{font-size:11.5px;letter-spacing:0;white-space:nowrap}
 .sp-actions{flex-shrink:0}.sp-tel,.menu-btn{width:44px;min-width:44px;height:44px}
 .is-top .site-header,.is-top .header-main{background:#FAF7F2}
 .is-top .site-header .wordmark-brown,.is-top .site-header .brand-brown{display:block}
 .is-top .site-header .wordmark-white,.is-top .site-header .brand-white{display:none}
 .is-top .site-header{color:#4A3428}
}
@media(max-width:359px){.site-header .brand-marks{display:none}.header-inner{padding-inline:6px}.site-header .brand-text{width:auto}}

/* 3. 予約を主、電話を副に。セーフエリアもバー高に含める */
@media(max-width:1023px){
 body{padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom))}
 .sp-bar{height:calc(var(--bar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:white}
 .sp-bar-tel{background:white;color:#8F6141;border:1px solid #8F6141}
 .sp-bar-tel .ico{color:inherit}.sp-bar-web{background:#8F6141;color:white}
}


#news .news-list a{display:grid;grid-template-columns:7em 6em minmax(0,1fr);gap:16px;align-items:center;padding:16px 0}
#news .news-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#news .news-title-text{display:inline}
@media(max-width:767px){#news .news-list a{grid-template-columns:5.6em 4.8em minmax(0,1fr);gap:6px;font-size:12px}#news .cat{font-size:10px;padding:2px 4px}}

/* 5. 隣接するセクションの背景を切り替える */
body:not(.subpage) #features{background:#F1E6DF}#painless{background:#FAF7F2}#stay{background:#F1E6DF}
#tour{background:white}#classes{background:#FAF7F2}
#outpatient{background:#F1E6DF}#info{background:white}#echo{background:#FAF7F2}#cost{background:white}#access{background:#F1E6DF}

.painless-intro{padding-bottom:36px}.painless-intro>p{font-size:16px;line-height:1.8;max-width:36em}.painless-intro .sec-head{text-align:left}
.painless-flow{background:#4A3428;color:white;padding:36px 0}.painless-flow h3{font:500 22px var(--serif);margin-bottom:26px}
.care-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}.care-flow li{display:flex;gap:14px;text-align:left}.care-num{font:500 28px var(--en);color:#F1E6DF}.care-flow h4{font-size:16px;line-height:1.7;margin:0 0 8px}.care-flow p{font-size:15px;line-height:1.75}
.painless-summary{padding-top:28px}.painless-summary p{font-size:15px}.painless-links{display:flex;flex-wrap:wrap;gap:12px 32px}
@media(max-width:767px){.care-flow{grid-template-columns:1fr;gap:24px}.care-num{min-width:32px}.painless-flow h3{font-size:19px}}

.confirm{display:none}.show-confirm .confirm{display:inline-block;font:400 12px/1.5 var(--sans);letter-spacing:0;color:#4A3428;background:#F1E6DF;border:1px solid #B07D56;border-radius:4px;padding:2px 7px;margin-inline:4px;vertical-align:middle}

.facility-marquee{overflow:hidden;margin:32px 0 24px}.facility-track{display:flex;width:max-content;animation:facility-drift 85s linear infinite}.facility-photos{display:flex;gap:20px;padding-right:20px}.facility-photos li{flex:0 0 320px;width:320px}.facility-photos img{height:240px;width:100%;object-fit:cover;border-radius:var(--radius)}.facility-photos figcaption{font-size:13px;margin-top:8px}
@keyframes facility-drift{to{transform:translateX(-50%)}}.facility-marquee:hover .facility-track,.facility-marquee:focus-within .facility-track{animation-play-state:paused}
@media(max-width:767px){.facility-photos li{flex-basis:220px;width:220px}.facility-photos img{height:160px}.facility-photos{gap:14px;padding-right:14px}}
@media(prefers-reduced-motion:reduce){.facility-marquee{overflow-x:auto}.facility-track{animation:none}.facility-photos[aria-hidden]{display:none}}

.article-lead-photo{margin:0 0 36px}.article-lead-photo img{width:100%;height:360px;object-fit:cover;border-radius:var(--radius)}.article-lead-photo figcaption{font-size:13px;margin-top:8px}@media(max-width:767px){.article-lead-photo img{height:240px}}

/* 11. 共通フッター：4グループ */
.footer-grid{grid-template-columns:1fr;gap:36px}.footer-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}.footer-group h2{font:500 17px var(--serif);color:white;margin-bottom:18px}.footer-nav .footer-group ul{display:flex;flex-direction:column;gap:9px}.footer-nav .footer-group a{padding:0;min-height:0;display:inline;line-height:1.7;font-size:14px}.copyright{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px 32px}.copyright>a{font-size:12px}
@media(min-width:1280px){.footer-grid{grid-template-columns:340px 1fr;gap:48px}.footer-groups{gap:18px}}
@media(max-width:767px){.footer-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}.footer-group h2{font-size:16px;margin-bottom:12px}.footer-nav .footer-group a{font-size:13px}.site-footer{padding-top:36px}}

/* 表示確認での補正：重要通知とSPヘッダーの可読性 */

body.hospitality-page .page-title>.container,body.hospitality-page .breadcrumb{max-width:1000px}
@media(max-width:767px){
 .hero{min-height:0}
 .is-top .site-header .brand-text,.is-top .site-header .sp-tel,.is-top .site-header .sp-tel .ico,.is-top .site-header .menu-btn{color:#4A3428}
 .is-top .site-header .menu-lines span{background:#4A3428}
}

/* 歴史・実績を中心にしたFV */

.hero-inner { padding: 100px 64px 120px; width: 100%; }
.hero-shade { position: absolute; inset: 0; background: rgba(40,28,20,.26); }
.hero-text { max-width: 1040px; margin-inline: auto; padding: 48px; background: rgba(40,28,20,.35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); text-align: center; text-shadow: 0 1px 5px rgba(40,28,20,.25); }
.hero-history { display: block; font: italic 36px/1.3 var(--en); margin-bottom: 16px; }
.hero-catch { font: 400 clamp(28px,3.2vw,46px)/1.5 var(--serif); letter-spacing: .06em; }
.hero-lead { font-size: 16px; margin-top: 18px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 960px; margin: 32px auto 0; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 12px; }
.hero-stats li + li { border-left: 1px solid rgba(255,255,255,.4); }
.hero-stats strong { color: white; font: 400 clamp(36px,3.5vw,44px)/1.4 var(--serif); white-space: nowrap; }
.hero-stats li > span { font: 400 14px/1.7 var(--sans); }
.hero-stats small:has(.confirm) { display: none; }
.show-confirm .hero-stats small { display: block; }
.hero-btns { justify-content: center; margin-top: 32px; }
.hero-btns .hero-btn-painless { color: white; border-color: white; background: transparent; }
.hero-btns .hero-btn-reserve { display: inline-flex; background: #8F6141; }
@media (max-width:1023px) { .hero { align-items: center; } .hero-inner { padding: 88px 32px 64px; } }
@media (max-width:767px) {
 .hero { height: 86svh; min-height: min(600px,calc(100svh - var(--bar-h))); }
 .hero-inner { padding: 88px 16px 56px; }
 .hero-text { padding: 24px; }
 .hero-history { font-size: 28px; margin-bottom: 12px; }
 .hero-catch { font-size: 25px; letter-spacing: .02em; }
 .hero-lead { font-size: 14px; line-height: 1.8; max-width: 22em; margin: 16px auto 0; }
 .hero-stats { margin-top: 24px; }
 .hero-stats li { padding-inline: 4px; gap: 8px; }
 .hero-stats strong { font-size: 18px; letter-spacing: -.03em; }
 .hero-stats li > span { font-size: 10px; }
 .hero-btns { flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
 .hero-btns .btn { flex: 0 0 auto; width: 260px; max-width: 100%; min-height: 46px; padding: 10px 14px; font-size: 14px; }
}

/* 夜間・休日の受診の流れ：周囲の背景に白いカード */
.painless-flow { background: transparent; color: var(--text); }
.care-flow { gap: 32px; }
.care-flow li { position: relative; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; flex-direction: column; gap: 10px; }
.care-num { color: var(--accent); }
.care-flow p { font-size: 15px; line-height: 1.7; }
.care-flow li:not(:last-child)::after { content: ''; position: absolute; width: 20px; height: 12px; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M0 6h19m-5-5 5 5-5 5' fill='none' stroke='%23B07D56' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width:767px) {
 .care-flow { gap: 36px; }
 .care-flow li { flex-direction: row; padding: 20px; }
 .care-flow li:not(:last-child)::after { left: 50%; top: calc(100% + 12px); transform: translateX(-50%) rotate(90deg); }
}

@media(min-width:1024px){.purpose{margin-top:-72px;padding-top:0;padding-bottom:0}}

@media(min-width:768px){.hero-stats .sp-only{display:none}}
/* 既存の2段用grid-area指定を解除し、お知らせを1件1行に保つ */
#news .news-list a { grid-template-areas: "date cat title"; }
#news .news-title { display: block; }
@media(max-width:767px){#news .news-list time{font-size:12px;letter-spacing:0}}
@media(max-width:767px){#news .cat{width:100%;min-width:0}}

/* 共通ボタンの控えめな立体感。固定予約とFVにも同じ色を適用 */
.btn, .side-reservation, .sp-bar a { transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s; }
.btn-accent, .hero-btns .hero-btn-reserve, .side-reservation, .sp-bar-web {
 background: var(--btn-grad); color: white; box-shadow: var(--btn-shadow);
}
.btn-accent:hover, .hero-btns .hero-btn-reserve:hover, .side-reservation:hover, .sp-bar-web:hover {
 background: var(--btn-grad-hover); box-shadow: var(--btn-shadow-hover);
}
.is-top .site-header .btn-accent { box-shadow: var(--btn-shadow); }
.btn-outline, .btn-light, .hero-btn-cost, .section-dark .btn-outline, .sp-bar-tel {
 background: var(--white); color: var(--main); box-shadow:none;
}
.btn-outline:hover, .btn-light:hover, .hero-btn-cost:hover, .section-dark .btn-outline:hover, .sp-bar-tel:hover {
 background: var(--sub); color: var(--main); box-shadow:none;
}
.hero-btns .hero-btn-painless, .btn-ghost { background: var(--btn-glass-grad); color: white; }
.hero-btns .hero-btn-painless:hover, .btn-ghost:hover { background: var(--btn-glass-grad-hover); color: white; }

/* SPのトップ見出しは文言を保ってコンパクトに */
body:not(.subpage) .sec-head h2 { word-break: keep-all; text-wrap: balance; }
.transfer-summary h2 { word-break: keep-all; text-wrap: balance; }
@media (max-width:767px) {
 body:not(.subpage) .sec-head h2 { font-size:22px; letter-spacing:.02em; word-break:keep-all; text-wrap:balance; }
 .transfer-summary h2 { font-size:18px; letter-spacing:.02em; }
}

@media (max-width:767px) {
 .sec-lead { text-wrap:balance; }
}

/* 共通ヘッダー：44px以上の3本線メニュー */
.menu-btn { min-width:44px; min-height:44px; }
.menu-lines { margin-bottom:0; }
.menu-btn[aria-expanded="true"] .menu-lines span:first-child { transform:translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines span:nth-child(2) { opacity:0; }
.menu-btn[aria-expanded="true"] .menu-lines span:last-child { transform:translateY(-8px) rotate(-45deg); }

/* 入院生活：同じ高さの写真とキャプションを組ごとにフェード */
.hospitality-slides { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.hospitality-slides a { min-width:0; text-decoration:none; }
.hospitality-slides img { width:100%; height:290px; object-fit:cover; border-radius:12px; box-shadow:0 10px 24px #4A34281a; }
.hospitality-slides figcaption { font-family:var(--serif); margin-top:14px; }
.hospitality-slider.is-ready .hospitality-slides { grid-template-columns:minmax(0,1fr); gap:0; }
.hospitality-group { grid-area:1 / 1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; opacity:0; visibility:hidden; transition:opacity 1s ease, visibility 0s linear 1s; }
.hospitality-group.is-active { opacity:1; visibility:visible; transition-delay:0s; }
.hospitality-dots { display:flex; justify-content:center; gap:2px; margin-top:12px; }
.hospitality-dots button { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; }
.hospitality-dots button::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--line); border:1px solid var(--accent-dark); }
.hospitality-dots button[aria-pressed="true"]::before { background:var(--accent-dark); }
@media(max-width:767px) {
 .hospitality-slides, .hospitality-group { grid-template-columns:minmax(0,1fr); }
 .hospitality-slides img { height:260px; }
}
@media(prefers-reduced-motion:reduce) { .hospitality-group { transition:none; } }

/* 白地の線ボタン：FVの白枠は従来のまま */
.btn-outline, .btn-light, .hero-btn-cost, .section-dark .btn-outline {
 border:1.5px solid transparent;
 background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#B07D56 0%,#4A3428 55%,#8F6141 100%) border-box;
 color:var(--main);box-shadow:none;
}
.btn-outline:hover, .btn-light:hover, .hero-btn-cost:hover, .section-dark .btn-outline:hover {
 background:linear-gradient(#FAF7F2,#FAF7F2) padding-box,linear-gradient(135deg,#B07D56 0%,#4A3428 55%,#8F6141 100%) border-box;
 color:var(--main);box-shadow:none;
}
.hero-btns .hero-btn-painless { border-color:white; background:var(--btn-glass-grad);color:white; }
.hero-btns .hero-btn-painless:hover { background:var(--btn-glass-grad-hover);color:white; }

/* 下層本文：トップのセクション装飾と分離して共通の組版に */
.subpage .page-title > .container, .subpage .breadcrumb { max-width:1000px; }
.subpage .article { font-size:16px; line-height:1.95; }
.subpage .article .article-intro { font-family:var(--sans);font-size:17px;line-height:1.9;margin:0 0 28px; }
.subpage .article figure { text-align:center; }
.subpage .article figure img { display:block;width:100%;height:auto;max-height:none;margin-inline:auto;object-fit:contain; }
.subpage .article .article-lead-photo { margin:0 0 36px; }
.subpage .article .article-lead-photo img { max-height:360px;object-fit:contain; }
.subpage .article .gallery { grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start; }
.subpage .article .gallery figure { margin:0;min-width:0; }
.subpage .article .gallery img { aspect-ratio:auto; }
.subpage .article .contact-block { padding:36px; }
.subpage .article .btn { max-width:100%;white-space:normal;text-align:center; }
.subpage .article .notice { padding:32px; }
.subpage .article h2,.subpage .page-title h1 { line-break:strict;text-wrap:pretty;word-break:normal;overflow-wrap:anywhere; }
@media(max-width:767px) {
 .subpage .article .article-intro { font-size:16px;margin-bottom:24px; }
 .subpage .article .article-lead-photo img { max-height:240px; }
 .subpage .article .contact-block,.subpage .article .notice { padding:24px 20px; }
 .subpage .article .gallery { gap:20px 14px; }
 .subpage .article h2 { font-size:22px;letter-spacing:.01em; }
 .subpage .article h3 { font-size:17px; }
 .subpage .page-title h1 { font-size:26px;letter-spacing:.01em; }
 .subpage .article .data-table { font-size:14px; }
 .subpage .article .data-table th,.subpage .article .data-table td { font-size:14px;line-height:1.8; }
}

.subpage .article .article-lead-photo img { height:360px;object-fit:cover; }
.subpage .article .news-list { list-style:none;padding-left:0; }
@media(max-width:767px) { .subpage .article .article-lead-photo img { height:224px; } }

/* 同一サイト内のページ切り替え。非対応ブラウザは通常の遷移になる。 */
@view-transition { navigation:auto; }
::view-transition-old(root), ::view-transition-new(root) {
 animation-duration:.5s;
 animation-timing-function:ease;
}
/* 固定UIは新しいページの姿をそのまま表示し、二重表示や点滅を避ける。 */
.site-header { view-transition-name:site-header; }
.sp-bar { view-transition-name:mobile-actions; }
.side-reservation { view-transition-name:side-reservation; }
::view-transition-group(site-header),
::view-transition-group(mobile-actions),
::view-transition-group(side-reservation) { animation:none;z-index:10; }
::view-transition-old(site-header),
::view-transition-old(mobile-actions),
::view-transition-old(side-reservation) { display:none; }
::view-transition-new(site-header),
::view-transition-new(mobile-actions),
::view-transition-new(side-reservation) { animation:none;mix-blend-mode:normal; }
@media (prefers-reduced-motion:reduce) {
 @view-transition { navigation:none; }
 ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation:none !important; }
}

/* Safariを含む見出し・リード：文節の候補はHTMLのwbrで指定する。 */
.sec-head h2, .sec-lead, .transfer-summary h2,
.subpage .page-title h1, .subpage .article .article-intro,
.subpage .article h2, .subpage .article h3 {
 word-break:keep-all;
 overflow-wrap:anywhere;
}

/* 架空の案内図：既存の地図枠に合わせる */
.map { position:relative; }
.map .portfolio-map { position:absolute; inset:0; width:100%; height:100%; min-height:320px; object-fit:cover; display:block; }

/* 架空の文字ロゴ：旧ロゴの細長い枠と重複表記を解消 */
.portfolio-wordmark { display:block; font-family:var(--serif); font-size:25px; font-weight:600; line-height:1.25; letter-spacing:.06em; white-space:nowrap; }
.site-header .brand-text { color:inherit; }
.footer-brand .brand-text { color:inherit; }
.footer-brand .portfolio-wordmark { display:block; }
@media(max-width:767px) {
 .site-header .brand-text { width:auto; max-width:100%; }
 .site-header .brand-wordmarks { width:auto; }
 .portfolio-wordmark { font-size:21px; }
}

/* 春風ロゴ：背景に応じた色と正方形マーク */
.harukaze-symbol { width:48px; height:48px; object-fit:contain; flex:none; }
.site-header .logo, .footer-brand { gap:10px; }
.footer-brand { color:var(--main); }
.footer-brand .brand-text { color:var(--main); }
.footer-brand .brand-wordmarks { width:auto; }
.is-top .site-header .harukaze-symbol { filter:brightness(0) invert(1); }
@media(max-width:767px) {
 .harukaze-symbol { width:36px; height:36px; }
 .site-header .logo { gap:7px; }
 .is-top .site-header .harukaze-symbol { filter:none; }
 .site-header .brand-text { flex:0 1 auto; min-width:0; }
 .site-header .portfolio-wordmark { font-size:20px; letter-spacing:.03em; }
 .footer-brand .harukaze-symbol { width:40px; height:40px; }
}
