/* =========================================================================
   あしやプラスクリニック — 和テイスト Design System
   明朝体 / 生成り(washi) / 墨(sumi) / 苔緑(moss) — palette-switchable
   ========================================================================= */

/* =========================================================================
   PALETTE TOKENS
   ========================================================================= */
:root {
  /* grounds — fabric palette cream base */
  --washi:      #f7f2ea;   /* warm cream ground (washi-F7F2EA) */
  --washi-2:    #e5dac0;   /* fabric cream (washi-E5DAC0) */
  --washi-3:    #d9ccb0;   /* deeper cream border/fill */
  --paper-card: #f8f2e6;   /* raised card */

  /* washi texture tiles */
  --washi-base-color: #f7f2ea;
  --washi-base: url(img/texture/washi-F7F2EA.webp);
  --washi-cream-color: #e5dac0;
  --washi-cream: url(img/texture/washi-E5DAC0.png);
  --washi-tile: 620px 620px;

  /* ink */
  --sumi:       #2b2823;   /* primary text, warm near-black */
  --sumi-2:     #454037;   /* secondary text */
  --sumi-3:     #6f665a;   /* tertiary / captions */
  --hairline:   rgba(43,40,35,0.14);
  --hairline-2: rgba(43,40,35,0.28);

  /* accent = navy #4B5D6A — sophisticated & calm */
  --accent:       #4b5d6a;
  --accent-deep:  #36454f;
  --accent-soft:  #6b7e8a;
  --accent-pale:  #c4cdd3;
  --accent-wash:  #dce3e7;
  --accent-ink:   #1e2e38;  /* text on pale accent */
  --on-accent:    #f0f3f5;  /* text on deep accent */
  --philosophy-filter: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-pale) 40%, transparent) 0%,
    color-mix(in srgb, var(--accent-pale) 16%, transparent) 100%
  );

  /* main button — olive #6B7668 gradient */
  --accent-olive: #6b7668;
  --btn-gradient: linear-gradient(135deg, #4d574a 0%, #6b7668 52%, #8a9386 100%);
  --btn-gradient-hover: linear-gradient(135deg, #424b3f 0%, #5f6a5c 52%, #7a8476 100%);
  --on-olive: #f5f3ef;

  /* dark hero ground — olive #6B7668 */
  --night:      #3d403a;
  --night-2:    #474a43;
  --on-night:   #ede8de;
  --on-night-2: #c8c2b8;

  /* effects */
  --washi-opacity: 0.12;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.55) inset, 0 18px 40px -28px rgba(43,40,35,0.38);

  /* type */
  --font-display: "Shippori Mincho", "Noto Serif JP", serif;
  --font-body:    "Noto Serif JP", "Shippori Mincho", serif;
  --font-en:      "Cormorant Garamond", "Shippori Mincho", serif;

  --maxw: 1180px;

  /* legacy subpage tokens — updated to fabric palette */
  --ink: #2A2722;
  --ink-light: #4c463f;
  --ink-faint: #6f665d;
  --ivory: #f0e7d8;
  --ivory-light: #f8f2e6;
  --cream: #e5dac0;
  --warm-gray: #cdcbc1;
  --teal-deep: #36454f;   /* navy deep */
  --teal-mid: #4b5d6a;    /* navy mid */
  --teal-light: #dce3e7;  /* navy wash */
  --logo-blue: #4b5d6a;
  --logo-blue-light: #dce3e7;
  --tob-deep: #36454f;
  --tob-mid: #4b5d6a;
  --tob-light: #dce3e7;
  --coral: #967562;       /* brown from palette */
  --coral-light: #f0e7d8;
  --border: #cdcbc1;      /* lightgray */
  --border-light: #e5dac0;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --section-padding: clamp(4rem, 8vw, 7rem);
  --container: min(1200px, 90vw);
}

/* SP final line-break tuning: keep semantic units together without changing PC copy. */
@media (max-width: 768px) {
  main .info-row dd.addr-text br {
    display: block !important;
  }

  body.page-contact .page-hero-sub {
    font-size: 15px !important;
    letter-spacing: 0 !important;
  }

  body.page-contact .page-hero-sub > span[style] {
    display: block;
    margin-top: 0.65rem;
  }

  main .form-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 4px;
  }

  main .form-label :where(.required, .optional) {
    margin-left: 0;
  }

  body.page-privacy .page-section :where(ul, ol) {
    padding-inline-start: 1.35rem;
  }

  body.page-privacy .page-section li {
    letter-spacing: 0 !important;
  }
}

/* SPナビの開閉・階層メニューアニメーション */
@media (max-width: 1080px) {
  .site-header .nav {
    display: flex;
    max-height: 0;
    margin-top: 0;
    padding-block: 0;
    border-top-color: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    overflow: hidden;
    transition: max-height .48s cubic-bezier(.22, 1, .36, 1),
                padding .32s ease, margin .32s ease, border-color .25s ease,
                opacity .25s ease, transform .38s cubic-bezier(.22, 1, .36, 1),
                visibility 0s linear .48s;
  }
  .site-header .nav.open {
    max-height: calc(100dvh - 72px);
    margin-top: 8px;
    padding-block: 18px 12px;
    border-top-color: var(--hairline);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
    transition-delay: 0s;
  }
  .nav-links > *,
  .site-header .nav .header-cta {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .28s ease, transform .36s cubic-bezier(.22, 1, .36, 1);
  }
  .nav.open .nav-links > *,
  .nav.open .header-cta { opacity: 1; transform: translateY(0); }
  .nav.open .nav-links > *:nth-child(1) { transition-delay: .08s; }
  .nav.open .nav-links > *:nth-child(2) { transition-delay: .11s; }
  .nav.open .nav-links > *:nth-child(3) { transition-delay: .14s; }
  .nav.open .nav-links > *:nth-child(4) { transition-delay: .17s; }
  .nav.open .nav-links > *:nth-child(5) { transition-delay: .20s; }
  .nav.open .nav-links > *:nth-child(6) { transition-delay: .23s; }
  .nav.open .header-cta { transition-delay: .26s; }
  .site-header .nav-sub {
    display: flex;
    max-height: 0;
    padding-block: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .34s cubic-bezier(.22, 1, .36, 1),
                padding .3s ease, opacity .22s ease;
  }
  .site-header .nav-item.sub-open > .nav-sub {
    display: flex;
    max-height: 240px;
    padding-block: 2px 6px;
    opacity: 1;
  }
}

/* SP固定メニュー：電話・LINE・メール */
.floating-cta-phone {
  background: var(--accent-deep);
  color: var(--on-accent);
  border: 1px solid var(--accent-deep);
}
.floating-cta-phone:hover { background: var(--accent); border-color: var(--accent); }

@media (max-width: 640px) {
  .floating-cta .floating-cta-btn span {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav,
  .nav-links > *,
  .site-header .nav .header-cta,
  .site-header .nav-sub { transition: none !important; }
}

/* ---- palette: brown — fabric brown as accent ---- */
:root[data-palette="brown"] {
  --accent: #967562; --accent-deep: #6e5043; --accent-soft: #b09080;
  --accent-pale: #e0d0c4; --accent-wash: #ede3dc; --accent-ink: #4a3226;
  --on-accent: #f5ede8;
  --night: #3d3028; --night-2: #473930; --on-night: #ede5dc; --on-night-2: #b0a096;
}
/* ---- palette: olive — fabric olive as accent ---- */
:root[data-palette="olive"] {
  --accent: #6b7668; --accent-deep: #4d574a; --accent-soft: #8a9386;
  --accent-pale: #cdd2cb; --accent-wash: #dde1dc; --accent-ink: #2e3a2b;
  --on-accent: #edf0ec;
  --night: #2e3229; --night-2: #383c32; --on-night: #e8ebe4; --on-night-2: #a2a89a;
}
/* ---- palette: graygreen — fabric graygreen as accent ---- */
:root[data-palette="graygreen"] {
  --accent: #858a87; --accent-deep: #616766; --accent-soft: #a0a5a3;
  --accent-pale: #d4d8d6; --accent-wash: #e3e7e5; --accent-ink: #3a3f3d;
  --on-accent: #f0f2f1;
  --night: #32373a; --night-2: #3c4144; --on-night: #e8eaec; --on-night-2: #a2a8aa;
}

/* =========================================================================
   BASE
   ========================================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--sumi);
  background-color: var(--washi-base-color);
  background-image: var(--washi-base);
  background-size: var(--washi-tile);
  background-repeat: repeat;
  background-attachment: fixed;
  line-height: 1.95;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* washi grain texture overlay (behind page content) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: var(--washi-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
button,
input,
select,
textarea { font: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, #fff);
  outline-offset: 4px;
  border-radius: 4px;
}

:where(h1, h2, h3, h4, .ttl, .section-title, .page-hero-title, .info-card-title, .step-title, .strength-title, .clinic-name, .access-name) {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* 語尾や意味のまとまりだけが次行に孤立するのを防ぐ */
.keep-together { white-space: nowrap; }
.sp-break { display: none; }
.content-break { display: block; }

/* 外来診療の診療科名は、単語の途中で折り返さない */
body.page-outpatient .card-grid .info-card-title {
  white-space: nowrap;
  word-break: keep-all !important;
  overflow-wrap: normal;
}

:where(p, li, dt, dd, th, td, .page-hero-sub, .section-lead, .info-card-desc, .strength-desc, .step-desc, .faq-a, .access-detail-value, .parking-lead, .hours-note) {
  line-break: strict;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

@supports (word-break: auto-phrase) {
  :where(body, p, li, dt, dd, th, td, .page-hero-sub, .section-lead, .info-card-desc, .strength-desc, .step-desc, .faq-a, .access-detail-value, .parking-lead, .hours-note) {
    word-break: auto-phrase;
  }
}

::selection { background: var(--accent); color: var(--on-accent); }

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  background: var(--accent-deep);
  color: var(--on-accent);
  border-radius: 999px;
  box-shadow: 0 14px 28px -18px rgba(43, 40, 35, 0.55);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: translateY(0); }
:where(main, section)[tabindex="-1"]:focus { outline: none; }
.nowrap { white-space: nowrap; }

/* =========================================================================
   LAYOUT HELPERS
   ========================================================================= */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 9vw, 132px) 0; }

/* ---- washi section layers (page base = washi-F7F2EA, sections tint on top) ---- */
.washi-surface-base {
  background-color: var(--washi-base-color);
  background-image: var(--washi-base);
  background-size: var(--washi-tile);
  background-repeat: repeat;
}
.washi-surface-cream {
  background-color: var(--washi-cream-color);
  background-image:
    linear-gradient(color-mix(in srgb, var(--washi-cream-color) 85%, transparent),
                    color-mix(in srgb, var(--washi-cream-color) 85%, transparent)),
    var(--washi-cream);
  background-size: auto, var(--washi-tile);
  background-repeat: no-repeat, repeat;
  background-blend-mode: multiply, normal;
}

/* 市松 (ichimatsu) checkerboard — subtle, tone-on-tone, for image-less sections */
.ichimatsu {
  --ichi-c: color-mix(in srgb, var(--sumi) 4.5%, transparent);
  --ichi-size: 68px;
  background-image: repeating-conic-gradient(var(--ichi-c) 0% 25%, transparent 0% 50%);
  background-size: var(--ichi-size) var(--ichi-size);
  background-position: center top;
}
.philosophy.ichimatsu { --ichi-c: color-mix(in srgb, var(--accent-deep) 8%, transparent); }
.access.ichimatsu, .doctor.ichimatsu { --ichi-c: color-mix(in srgb, var(--accent) 5%, transparent); }

/* English eyebrow label */
.eyebrow {
  font-family: var(--font-en);
  font-size: 0.92rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* Section heading (horizontal) */
.sec-head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .ttl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: 0.14em;
  margin: 0.5em 0 0;
  line-height: 1.5;
}
.sec-head .lead {
  margin: 1.4em auto 0;
  max-width: 720px;
  color: var(--sumi-2);
  font-size: 1.02rem;
  line-height: 2.1;
}

/* big faint English watermark behind headings */
.watermark {
  position: absolute;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.08;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* 落款 / seal stamp */
.seal {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  writing-mode: vertical-rl;
  font-size: 0.84rem;
  letter-spacing: 0.32em;
  line-height: 1.18;
  padding: 6px 0;
  box-shadow: 0 6px 18px -10px rgba(43,40,35,0.6);
}

/* rounded primary button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  min-height: 44px;
  padding: 0.95em 1.7em;
  background: var(--btn-gradient);
  color: var(--on-olive);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.16em;
  border: none;
  border-radius: 999px;
  position: relative;
  white-space: nowrap;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s;
  box-shadow: 0 12px 26px -16px rgba(77, 87, 74, 0.55);
}
.btn .arrow { transition: transform .35s; }
.btn:hover {
  transform: translateY(-2px);
  background: var(--btn-gradient-hover);
  box-shadow: 0 18px 34px -14px rgba(77, 87, 74, 0.62);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost {
  background: transparent;
  color: var(--sumi);
  border: 1px solid var(--hairline-2);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--accent-wash); border-color: var(--accent-olive); color: var(--accent-ink); }
.btn.on-night { background: var(--on-night); color: var(--night); box-shadow: none; }
.btn.on-night:hover { background: var(--on-night); color: var(--night); transform: translateY(-2px); }
.btn.line { background: #06c755; color: #fff; box-shadow: 0 12px 26px -16px rgba(6, 199, 85, 0.35); }

/* underline text-link with arrow */
.txt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  color: var(--accent-ink);
  font-weight: 600;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  white-space: nowrap;
  transition: gap .3s, color .3s;
}
.txt-link:hover { gap: 1em; }
.txt-link .arrow { transition: transform .3s; }
.txt-link:hover .arrow { transform: translateX(3px); }

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="in"] { opacity: 1; transform: none; }
[data-reveal-v] { /* vertical text reveal: slide up + clip */
  opacity: 0; transform: translateY(34px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
[data-reveal-v="in"] { opacity: 1; transform: none; }

:root[data-motion="off"] [data-reveal],
:root[data-motion="off"] [data-reveal-v] { opacity: 1 !important; transform: none !important; }
:root[data-motion="off"],
:root[data-motion="off"] *,
:root[data-motion="off"] *::before,
:root[data-motion="off"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-v] { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 3vw, 40px);
  /* ファーストビュー上：帯背景は薄く透過 ＋ ぼかし処理で視認性を確保 */
  background: color-mix(in srgb, var(--washi) 30%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
          backdrop-filter: blur(8px) saturate(1.1);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, padding .4s;
}
.site-header.scrolled {
  /* スクロール後：不透明寄りに切替えてコントラストを上げる */
  background: color-mix(in srgb, var(--washi) 92%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
          backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--hairline);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 1; }
.brand-logo {
  height: 42px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  transition: height .4s;
}
.site-header.scrolled .brand-logo { height: 36px; }
/* ロゴ横のクリニック名（見出しフォント・幅に応じて段階縮小） */
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.35vw, 1.3rem);
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--sumi);
  white-space: nowrap;
  transition: font-size .4s, color .3s;
}
/* 極小画面ではロゴのみ表示してヘッダーの折返しを防ぐ */
@media (max-width: 380px) {
  .brand-name { display: none; }
}
.brand .mark-wrap { display: flex; flex-direction: column; }
.brand .mark {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--sumi);
  display: flex; align-items: baseline; gap: 2px;
}
.brand .mark .plus { color: var(--accent); }
.brand .sub {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  color: var(--sumi-3);
  margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.nav-links { display: flex; gap: clamp(10px, 1.5vw, 22px); }
.nav-links a,
.nav-trigger {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--sumi-2);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color .3s;
}
.nav-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-links a::after,
.nav-trigger::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width .35s;
}
.nav-links a:hover,
.nav-trigger:hover { color: var(--accent-ink); }
.nav-links a:hover::after,
.nav-trigger:hover::after { width: 100%; }

/* --- ヘッダー ドロップダウン（下層ページ一覧） --- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret {
  display: inline-block; width: 0; height: 0; margin-left: 6px;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor; opacity: 0.5;
  transition: transform .3s, opacity .3s; vertical-align: middle;
}
.nav-item.sub-open .nav-caret { transform: rotate(180deg); opacity: 0.85; }
.nav-sub {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 212px; padding: 8px;
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: 0 22px 48px -26px rgba(43,40,35,0.5), 0 1px 0 rgba(255,255,255,0.6) inset;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .26s ease, transform .26s ease, visibility .26s;
  z-index: 80;
}
/* マウスが項目とメニューの隙間を渡れるようブリッジを敷く */
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.sub-open .nav-sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(5px);
}
/* hoverが使えるPCだけマウスオーバーで開く。タッチ端末の疑似hover残りを防ぐ */
@media (min-width: 1081px) and (hover: hover) and (pointer: fine) {
  .nav-item:hover .nav-caret { transform: rotate(180deg); opacity: 0.85; }
  .nav-item:hover .nav-sub {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(5px);
  }
}
.nav-sub a {
  position: static; white-space: nowrap; padding: 9px 14px;
  font-family: var(--font-display); font-size: 0.86rem; letter-spacing: 0.06em;
  color: var(--sumi-2); border-radius: 6px;
  transition: background .22s, color .22s;
}
.nav-sub a::after { display: none; }   /* .nav-links a の下線アニメを打ち消す */
.nav-sub a:hover { background: var(--accent-wash); color: var(--accent-ink); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta .tel {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1;
  font-family: var(--font-en);
  padding-right: 16px; border-right: 1px solid var(--hairline);
}
.header-cta .tel .num { font-size: 1.18rem; font-weight: 600; color: var(--sumi); letter-spacing: 0.02em; white-space: nowrap; }
.header-cta .tel .lbl { font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--sumi-3); white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px;
  padding: 0.6em 1.1em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.08em;
  white-space: nowrap;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.pill.solid {
  background: var(--btn-gradient);
  color: var(--on-olive);
  box-shadow: 0 10px 22px -14px rgba(77, 87, 74, 0.5);
}
.pill.solid:hover { transform: translateY(-2px); background: var(--btn-gradient-hover); }
.pill.outline { border: 1px solid var(--hairline-2); color: var(--sumi); }
.pill.outline:hover { border-color: var(--accent); color: var(--accent-ink); }
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  background: color-mix(in srgb, var(--washi) 90%, transparent);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color .3s, background .3s;
}
.menu-btn span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--sumi);
  border-radius: 1px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================================
   HERO  (light washi ground · full-bleed line-art slideshow)
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  background-color: var(--washi-base-color);
  color: var(--sumi);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* slideshow layer */
.hero-stage { position: absolute; inset: 0; z-index: 0; background: #fbf8f0; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translateZ(0) scale(1.08);
  transition: opacity 2s cubic-bezier(.4,0,.2,1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; }

/* --- Ken Burns storytelling moves: slow, continuous camera while a frame is shown ---
   Each runs the whole time the slide is active; all scales ≥1.06 keep overscan so
   edges never gap. The finale (J) decelerates and holds. */
.hero-slide.kb-push    { transform-origin: 34% 72%; }   /* F: push in toward father & child */
.hero-slide.kb-driftr  { transform-origin: 60% 50%; }   /* G: gentle drift right */
.hero-slide.kb-push2   { transform-origin: 52% 44%; }   /* H: push in on the trio */
.hero-slide.kb-driftl  { transform-origin: 42% 60%; }   /* I: gentle drift left */
.hero-slide.kb-finale  { transform-origin: 50% 50%; }   /* J: slow settle, holds */

/* Assign each Ken Burns move up-front but paused; it only advances while the slide
   is active. On switch-out the slide pauses at its current zoom instead of snapping
   back to the base scale — that snap-back was the visible jitter between frames. */
.hero-slide.kb-push    { animation: kbPush   7.4s ease-out forwards paused; }
.hero-slide.kb-driftr  { animation: kbDriftR 7.4s linear   forwards paused; }
.hero-slide.kb-push2   { animation: kbPush2  7.4s ease-out forwards paused; }
.hero-slide.kb-driftl  { animation: kbDriftL 7.4s linear   forwards paused; }
.hero-slide.kb-finale  { animation: kbFinale 11s  cubic-bezier(.16,.7,.18,1) forwards paused; }
.hero-slide.is-active  { animation-play-state: running; }

@keyframes kbPush   { from { transform: scale(1.07); } to { transform: scale(1.18); } }
@keyframes kbDriftR { from { transform: scale(1.13) translateX(-1.8%); } to { transform: scale(1.10) translateX(1.8%); } }
@keyframes kbPush2  { from { transform: scale(1.06); } to { transform: scale(1.17); } }
@keyframes kbDriftL { from { transform: scale(1.12) translateX(1.8%); } to { transform: scale(1.10) translateX(-1.8%); } }
@keyframes kbFinale { from { transform: scale(1.05); } to { transform: scale(1.155); } }

/* legibility scrim — strong at left where text sits, clear at right */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 18% 60%,
      color-mix(in srgb, var(--washi) 74%, transparent) 0%,
      color-mix(in srgb, var(--washi) 42%, transparent) 30%,
      transparent 58%),
    linear-gradient(0deg,
      color-mix(in srgb, var(--washi) 44%, transparent) 0%,
      transparent 22%);
}

/* slide progress dots */
.hero-dots {
  position: absolute; left: clamp(24px, 4vw, 64px); bottom: 30px; z-index: 5;
  display: flex; gap: 10px; align-items: center;
}
.hero-dots button {
  width: 30px; height: 3px; border: none; padding: 0; border-radius: 2px;
  background: var(--hairline-2); cursor: pointer; position: relative; overflow: hidden;
  transition: background .3s;
}
.hero-dots button.active { background: color-mix(in srgb, var(--accent) 40%, var(--hairline-2)); }
.hero-dots button.active::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
}
.hero-dots button.active.run::after { animation: dotfill var(--slide-ms, 3200ms) linear forwards; }
.hero-dots button.done::after { content: ""; position: absolute; inset: 0; background: var(--accent); }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-illust { display: none; }

.hero-inner { position: relative; z-index: 3; width: min(100% - 48px, var(--maxw)); margin-inline: auto; padding-top: 90px; }
.hero-tags { display: flex; gap: 10px; margin-bottom: 26px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.5em 1.1em; border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: color-mix(in srgb, var(--washi) 70%, transparent);
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.14em;
  color: var(--sumi);
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.42;
  letter-spacing: 0.08em;
  margin: 0 0 0.6em;
  text-shadow:
    0 1px 1px color-mix(in srgb, var(--washi) 92%, transparent),
    0 0 22px color-mix(in srgb, var(--washi) 82%, transparent),
    0 0 44px color-mix(in srgb, var(--washi) 60%, transparent);
}
.hero h1 .em { color: var(--accent-deep); }
.hero p.lead {
  max-width: 26em;
  color: var(--sumi-2);
  font-size: 1.04rem;
  line-height: 2.15;
  margin: 0 0 2.4em;
  text-shadow:
    0 1px 0 color-mix(in srgb, var(--washi) 90%, transparent),
    0 0 14px color-mix(in srgb, var(--washi) 88%, transparent);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero scroll cue */
.scroll-cue {
  position: absolute; right: clamp(24px, 4vw, 64px); bottom: 26px;
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--sumi-3);
}
.scroll-cue .line { width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent-deep); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active,
  .hero-slide.kb-push, .hero-slide.kb-push.is-active,
  .hero-slide.kb-driftr, .hero-slide.kb-driftr.is-active,
  .hero-slide.kb-push2, .hero-slide.kb-push2.is-active,
  .hero-slide.kb-driftl, .hero-slide.kb-driftl.is-active,
  .hero-slide.kb-finale, .hero-slide.kb-finale.is-active { transition: opacity .4s ease; transform: scale(1.06); animation: none; }
  .scroll-cue .line::after { animation: none; }
}

/* =========================================================================
   PLACEHOLDER FRAMES (line-art illustrations)
   ========================================================================= */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 9px, color-mix(in srgb, var(--accent) 16%, transparent) 9px, color-mix(in srgb, var(--accent) 16%, transparent) 10px),
    var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  display: grid; place-items: center;
  color: var(--accent-ink);
  overflow: hidden;
}
.ph .ph-label {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: var(--washi);
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--sumi-2);
  text-align: center;
  line-height: 1.6;
}
.ph.on-night {
  --accent-wash: rgba(255,255,255,0.04);
  border-color: rgba(239,233,218,0.18);
  color: var(--on-night-2);
}
.ph.on-night .ph-label { background: rgba(0,0,0,0.25); border-color: rgba(239,233,218,0.2); color: var(--on-night-2); }

/* =========================================================================
   外来 × 訪問  (intro band)
   ========================================================================= */
.intro { background: transparent; position: relative; overflow: hidden; padding-bottom: clamp(120px, 16vw, 240px); }
.intro-bg {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto;
  z-index: 0; pointer-events: none;
  opacity: 0.62;
  filter: sepia(0.14) saturate(0.82) brightness(1.02);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%);
}
.intro > .wrap { position: relative; z-index: 3; }
.intro .townstrip {
  margin-top: clamp(40px, 5vw, 64px);
  height: clamp(180px, 24vw, 300px);
  border-radius: 4px;
}
.three-col {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(40px, 5vw, 60px);
  align-items: stretch;
}
.col-sep { display: none; }
.col-item {
  text-align: center;
  background: color-mix(in srgb, var(--paper-card) 88%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--hairline));
  border-radius: 6px;
  padding: clamp(30px, 3vw, 42px) clamp(22px, 2.4vw, 32px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 16px 36px -28px rgba(43,40,35,0.5);
}
.col-item .icn {
  width: 78px; height: 78px; margin: 0 auto 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.52), rgba(232,218,190,0.18)),
    url("img/texture/washi-paper.webp") center / 180px 180px;
  border: 1px solid color-mix(in srgb, var(--sumi-3) 34%, var(--washi-3));
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 10px 24px -20px rgba(43,40,35,0.45);
  color: var(--sumi-2);
}
.col-item .icn svg { width: 34px; height: 34px; }
.col-item h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.28rem; letter-spacing: 0.12em; margin: 0 0 0.5em;
}
.col-item .en { font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.28em; color: var(--accent); text-transform: uppercase; display: block; margin-bottom: 1.2em; }
.col-item p { color: var(--sumi-2); font-size: 0.94rem; line-height: 2; margin: 0; }
.col-sep { width: 1px; background: var(--hairline); }

/* =========================================================================
   GUIDE CARDS  (ご利用の目的)
   ========================================================================= */
/* section tint overlays — page base (washi-F7F2EA) shows through, subtle gradient per section */

.section.guide,
.section.philosophy,
.section.news {
  background-color: transparent !important;
  background-image: none !important;
  isolation: isolate;
}
.section.guide::before,
.section.philosophy::before,
.section.news::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* cream tint — guide */
.section.guide::before {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--washi-cream-color) 36%, transparent) 0%,
    color-mix(in srgb, var(--washi-cream-color) 14%, transparent) 100%
  );
}
/* accent-pale tint — philosophy */
.section.philosophy::before {
  background: var(--philosophy-filter);
}
/* cream tint — news */
.section.news::before {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--washi-cream-color) 36%, transparent) 0%,
    color-mix(in srgb, var(--washi-cream-color) 14%, transparent) 100%
  );
}
/* page base shows through — doctor */
.section.doctor {
  background: transparent !important;
}
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px); }
.gcard {
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  border-radius: 4px;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 36px) clamp(28px,3vw,40px);
  position: relative;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  overflow: hidden;
}
.gcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s;
}
.gcard:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(43,40,35,0.5); }
.gcard:hover::before { transform: scaleX(1); }
.gcard .gnum { font-family: var(--font-en); font-style: italic; font-size: 1.1rem; color: var(--accent); letter-spacing: 0.05em; }
.gcard .gicn {
  width: 60px; height: 60px; margin: 14px 0 18px;
  border-radius: 50%; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 160px 160px;
  border: 1px solid color-mix(in srgb, var(--sumi-3) 34%, var(--washi-3));
  box-shadow: 0 1px 0 rgba(255,255,255,0.68) inset, 0 10px 22px -20px rgba(43,40,35,0.42);
  color: var(--sumi-2);
}
.gcard .gicn svg { width: 28px; height: 28px; }
.gcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: 0.08em; margin: 0 0 0.2em; line-height: 1.6; }
.gcard .gen { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.24em; color: var(--sumi-3); text-transform: uppercase; }
.gcard ul { list-style: none; padding: 0; margin: 20px 0 24px; border-top: 1px solid var(--hairline); }
.gcard li { border-bottom: 1px solid var(--hairline); }
.gcard li a {
  display: flex; align-items: center; gap: 0.7em;
  padding: 12px 2px;
  font-size: 0.92rem; color: var(--sumi-2);
  transition: color .25s, gap .25s;
}
.gcard li a:hover { color: var(--accent-ink); gap: 0.9em; }
.gcard li .chev { color: var(--accent); flex: none; }

/* =========================================================================
   PHILOSOPHY  (green band, vertical headline)
   ========================================================================= */
.philosophy:not(.section) {
  background-color: var(--accent-pale);
}
.philosophy {
  color: var(--accent-ink);
  text-align: center;
  overflow: hidden;
}
.philosophy .watermark { color: var(--accent-deep); opacity: 0.12; top: 6%; left: 50%; transform: translateX(-50%); }
.philo-inner { position: relative; z-index: 2; }
.philo-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  line-height: 2.0;
  letter-spacing: 0.14em;
  margin: 1.3em 0 0.3em;
}
.philo-quote .philo-catch {
  display: block;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 0.15em;
}
.philo-quote .philo-tail {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
}
.philo-quote .accent { color: var(--accent-deep); font-size: 0.88em; }
.philo-quote .q { color: var(--accent); }

/* vertical headline variant (toggled) */
:root[data-vertical="on"] .philo-quote {
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin-inline: auto;
  height: 12em;
  line-height: 2.2;
}

/* =========================================================================
   DOCTOR  (院長紹介)
   ========================================================================= */
.doctor:not(.section) { background-color: var(--washi-base-color); }
.doctor-grid {
  display: grid; grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: clamp(36px, 5vw, 76px); align-items: center;
}
.doctor-photo { position: relative; }
.doctor-photo .ph { aspect-ratio: 3/4; border-radius: 4px; }
.doctor-photo .seal { position: absolute; right: -18px; bottom: 28px; width: 66px; height: 66px; font-size: 0.92rem; }
.doctor-body .role { font-family: var(--font-display); font-size: 0.84rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 0.4em; }
.doctor-body .name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: 0.12em; margin: 0;
  display: flex; align-items: baseline; gap: 0.7em; flex-wrap: wrap;
}
.doctor-body .name .romaji { font-family: var(--font-en); font-size: 0.92rem; letter-spacing: 0.18em; color: var(--sumi-3); font-weight: 500; }
.doctor-body .pull {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 2; letter-spacing: 0.08em;
  margin: 1.4em 0 0.9em; color: var(--sumi);
  border-left: 3px solid var(--accent); padding-left: 1em;
}
.doctor-body p { color: var(--sumi-2); font-size: 0.98rem; line-height: 2.1; margin: 0 0 1.6em; }

/* =========================================================================
   NEWS  (お知らせ) — index: .section.news
   ========================================================================= */
/* lift the list/insta panels slightly off the paper so rows stay crisp */
.section.news .news-list { background: color-mix(in srgb, var(--paper-card) 78%, transparent); border-radius: 4px; padding: 4px 22px; box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset; border-top: none; }
.section.news .news-list { max-width: 880px; margin: 0 auto; }
.section.news .news-item {
  display: grid; grid-template-columns: 130px 110px 1fr auto;
  gap: 20px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--hairline);
  transition: background .3s, padding-left .3s;
}
.section.news .news-item:hover { background: color-mix(in srgb, var(--accent-wash) 70%, transparent); padding-left: 16px; opacity: 1; }
.section.news .news-item .date { font-family: var(--font-en); font-size: 0.95rem; letter-spacing: 0.08em; color: var(--sumi-3); }
.section.news .news-item .cat {
  justify-self: start;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 0.35em 0.9em; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent-ink);
}
.section.news .news-item .cat.info { border-color: var(--sumi-3); color: var(--sumi-3); }
.section.news .news-item .ttl { font-size: 0.98rem; color: var(--sumi); }
.section.news .news-item .arrow { color: var(--accent); opacity: 0; transition: opacity .3s, transform .3s; transform: translateX(-6px); }
.section.news .news-item:hover .arrow { opacity: 1; transform: none; }

/* instagram strip */
.insta {
  max-width: 880px; margin: clamp(40px,5vw,56px) auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 26px 30px;
  background: var(--paper-card); border: 1px solid var(--washi-3); border-radius: 4px;
  box-shadow: var(--shadow-card);
}
.insta .ig-l { display: flex; align-items: center; gap: 16px; }
.insta .ig-icn { width: 46px; height: 46px; color: var(--accent-ink); }
.insta .ig-en { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.26em; color: var(--sumi-3); text-transform: uppercase; }
.insta .ig-h { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.06em; }

/* =========================================================================
   ACCESS  (アクセス・診療時間)
   ========================================================================= */
.section.access { background: transparent !important; }
.access:not(.section) { background-color: var(--washi-base-color); }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.section.access .access-info { min-width: 0; }
.section.access .access-map { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.section.access .access-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.access-map .ph { aspect-ratio: 4/3; border-radius: 4px; height: 100%; }
.clinic-name { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: 0.1em; margin: 0 0 1em; }
.info-rows { border-top: 1px solid var(--hairline); margin-bottom: 28px; }
.info-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--hairline); align-items: baseline; }
.info-row dt { font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.14em; color: var(--accent-ink); }
.info-row dd { margin: 0; color: var(--sumi-2); font-size: 0.95rem; line-height: 1.85; }
.info-row dd.addr-text { word-break: keep-all; overflow-wrap: normal; }
.info-row dd .addr-building { white-space: nowrap; }
.info-row dd .tel-num,
.info-row dd .fax-num { font-family: var(--font-en); font-size: 1.3rem; font-weight: 600; color: var(--sumi); letter-spacing: 0.02em; }

/* hours table */
.hours-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 4px; }
.hours-wrap--page { max-width: 860px; margin: 0 auto; }
.hours-wrap--fee { max-width: 760px; margin: 0 auto; }
.hours-wrap--wide { max-width: 960px; margin: 0 auto; }
.hours { width: 100%; min-width: 420px; border-collapse: collapse; table-layout: fixed; font-size: 0.88rem; }
.hours th, .hours td { border: 1px solid var(--hairline-2); padding: 9px 4px; text-align: center; vertical-align: middle; }
.hours thead th { background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; }
.hours thead th:first-child { width: 31%; text-align: left; padding-left: 10px; }
.hours thead th.col-sat { background: color-mix(in srgb, var(--accent-deep) 88%, #fff 12%); }
.hours thead th.col-sun { background: color-mix(in srgb, #8f4a38 75%, var(--accent) 25%); }
.hours tbody th { background: var(--accent-wash); font-family: var(--font-display); font-weight: 600; color: var(--accent-ink); font-size: 0.8rem; line-height: 1.45; text-align: left; padding: 9px 8px; white-space: normal; }
.hours tbody td { font-family: var(--font-en); font-size: 0.92rem; color: var(--sumi-2); }
.hours tbody td.appt { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.02em; line-height: 1.4; }
.hours tbody td.col-sat { color: var(--accent-deep); font-weight: 600; }
.hours tbody td.col-sun,
.hours tbody td.off { color: #a04a36; font-weight: 500; }
.hours-sub { display: block; font-size: 0.68em; font-weight: 500; letter-spacing: 0.02em; margin-top: 0.25em; line-height: 1.35; }
.hours.hours--data { min-width: 520px; }
.hours.hours--data thead th:first-child,
.hours.hours--data tbody th { width: 30%; }
.hours.hours--data tbody td {
  font-family: var(--font-body);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--sumi-2);
  text-align: left;
}
.hours.hours--data .center { text-align: center; }
.hours.hours--fee tbody td {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.data-table td.appt { font-family: var(--font-body); font-size: 0.84rem; letter-spacing: 0.02em; line-height: 1.45; vertical-align: middle; }
.hours-note { font-size: 0.82rem; color: var(--sumi-3); margin-top: 12px; line-height: 1.8; }
.hours-note--page { max-width: 860px; margin: 14px auto 0; }

@media (max-width: 768px) {
  .hours {
    min-width: 100%;
    font-size: 0.82rem;
  }
  .hours th,
  .hours td { padding: 8px 2px; }
  .hours thead th { font-size: 0.78rem; }
  .hours thead th:first-child { width: 36%; padding-left: 8px; }
  .hours tbody th { font-size: 0.76rem; padding: 8px 6px; }
  .hours tbody td { font-size: 0.86rem; }
  .hours tbody td.appt { font-size: 0.78rem; }

  /* 診療時間表：SPでは「曜日｜午前｜午後」の縦型表へ組み替える */
  .hours-wrap:has(> .hours:not(.hours--data)) {
    overflow-x: visible;
  }
  .hours:not(.hours--data) {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto repeat(7, minmax(44px, auto));
    width: 100%;
    min-width: 0;
    border-top: 1px solid var(--hairline-2);
    border-left: 1px solid var(--hairline-2);
    border-collapse: separate;
    table-layout: auto;
  }
  .hours:not(.hours--data) thead,
  .hours:not(.hours--data) tbody,
  .hours:not(.hours--data) tr {
    display: contents;
  }
  .hours:not(.hours--data) th,
  .hours:not(.hours--data) td {
    display: grid;
    place-items: center;
    width: auto;
    min-width: 0;
    padding: 9px 5px;
    border: 0;
    border-right: 1px solid var(--hairline-2);
    border-bottom: 1px solid var(--hairline-2);
    text-align: center;
    line-height: 1.45;
  }
  .hours:not(.hours--data) thead th {
    font-size: 0.82rem;
  }
  .hours:not(.hours--data) thead th:first-child {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    padding: 9px 5px;
    font-size: 0;
    text-align: center;
  }
  .hours:not(.hours--data) thead th:first-child::after {
    content: "曜日";
    font-size: 0.82rem;
  }
  .hours:not(.hours--data) thead th:nth-child(2) { grid-column: 1; grid-row: 2; }
  .hours:not(.hours--data) thead th:nth-child(3) { grid-column: 1; grid-row: 3; }
  .hours:not(.hours--data) thead th:nth-child(4) { grid-column: 1; grid-row: 4; }
  .hours:not(.hours--data) thead th:nth-child(5) { grid-column: 1; grid-row: 5; }
  .hours:not(.hours--data) thead th:nth-child(6) { grid-column: 1; grid-row: 6; }
  .hours:not(.hours--data) thead th:nth-child(7) { grid-column: 1; grid-row: 7; }
  .hours:not(.hours--data) thead th:nth-child(8) { grid-column: 1; grid-row: 8; }

  .hours:not(.hours--data) tbody tr:first-child > th {
    grid-column: 2;
    grid-row: 1;
  }
  .hours:not(.hours--data) tbody tr:first-child > td:nth-of-type(1) { grid-column: 2; grid-row: 2; }
  .hours:not(.hours--data) tbody tr:first-child > td:nth-of-type(2) { grid-column: 2; grid-row: 3; }
  .hours:not(.hours--data) tbody tr:first-child > td:nth-of-type(3) { grid-column: 2; grid-row: 4; }
  .hours:not(.hours--data) tbody tr:first-child > td:nth-of-type(4) { grid-column: 2; grid-row: 5; }
  .hours:not(.hours--data) tbody tr:first-child > td:nth-of-type(5) { grid-column: 2; grid-row: 6; }
  .hours:not(.hours--data) tbody tr:first-child > td:nth-of-type(6) { grid-column: 2; grid-row: 7; }
  .hours:not(.hours--data) tbody tr:first-child > td:nth-of-type(7) { grid-column: 2; grid-row: 8; }

  .hours:not(.hours--data) tbody tr:nth-child(2) > th {
    grid-column: 3;
    grid-row: 1;
  }
  .hours:not(.hours--data) tbody tr:nth-child(2) > td.appt {
    grid-column: 3;
    grid-row: 2 / span 5;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
  }
  .hours:not(.hours--data) tbody tr:nth-child(2) > td.col-sat {
    grid-column: 3;
    grid-row: 7;
  }
  .hours:not(.hours--data) tbody tr:nth-child(2) > td.col-sun {
    grid-column: 3;
    grid-row: 8;
  }
  .hours:not(.hours--data) tbody th {
    padding: 8px 5px;
    font-size: 0.78rem;
    text-align: center;
  }
  .hours:not(.hours--data) .hours-sub {
    margin-top: 0.2em;
    font-size: 0.74rem;
  }

  /* 診療科別対応表：SPでは各診療科を縦積みカードとして表示 */
  .hours-wrap--wide:has(> .hours--data) {
    overflow-x: visible;
  }
  .hours.hours--data {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
  }
  .hours.hours--data thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .hours.hours--data tbody {
    display: grid;
    gap: 14px;
  }
  .hours.hours--data tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--hairline-2);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: 0 8px 22px -20px rgba(43, 40, 35, 0.7);
  }
  .hours.hours--data tbody th,
  .hours.hours--data tbody td {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    text-align: left;
  }
  .hours.hours--data tbody th {
    padding: 12px 15px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 16px !important;
    line-height: 1.55;
    letter-spacing: 0.05em;
  }
  .hours.hours--data tbody td {
    padding: 13px 15px 15px;
    font-size: 16px !important;
    line-height: 1.8;
  }
  .hours.hours--data tbody td::before {
    content: "主な対応領域";
    display: block;
    margin-bottom: 0.35rem;
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
  }
}

.pamphlet-btn.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* =========================================================================
   RECRUIT CTA (green band)
   ========================================================================= */
.recruit {
  background: var(--accent-deep);
  color: var(--on-accent);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.recruit::before,
.recruit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.recruit::before {
  z-index: 1;
  background-image: url("img/staff/top_staff_img.webp");
  background-repeat: no-repeat;
  background-position: right clamp(-130px, -7vw, -56px) bottom -72px;
  background-size: min(68vw, 900px) auto;
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.recruit::after {
  z-index: 2;
  background:
    linear-gradient(90deg,
      var(--accent-deep) 0%,
      color-mix(in srgb, var(--accent-deep) 96%, transparent) 36%,
      color-mix(in srgb, var(--accent-deep) 72%, transparent) 58%,
      color-mix(in srgb, var(--accent-deep) 18%, transparent) 100%);
}
.recruit .hero-waves { opacity: 0.2; }
.recruit-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.recruit .eyebrow { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.recruit .eyebrow::before { background: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.recruit h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.7; letter-spacing: 0.1em; margin: 0.5em 0 0.5em;
}
.recruit p { color: color-mix(in srgb, var(--on-accent) 82%, transparent); max-width: 36em; margin: 0; line-height: 2; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--night); color: var(--on-night-2); padding: clamp(56px, 7vw, 88px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); gap: clamp(24px, 2.8vw, 40px); padding-bottom: 48px; border-bottom: 1px solid rgba(239,233,218,0.12); }
.footer-brand .footer-logo-link { display: inline-block; margin-bottom: 6px; }
.footer-brand .footer-logo {
  height: 48px;
  width: auto;
  display: block;
}
.footer-brand .sub { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--on-night-2); margin: 6px 0 18px; }
.footer-brand .addr { font-size: 0.84rem; line-height: 2; color: var(--on-night-2); }
.footer-brand .addr .tel { font-family: var(--font-en); font-size: 1.25rem; color: var(--on-night); letter-spacing: 0.03em; }
.fcol h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.16em; color: var(--on-night); margin: 0 0 18px; }
.fcol ul { list-style: none; padding: 0; margin: 0; }
.fcol li { margin-bottom: 12px; }
.fcol a { font-size: 0.84rem; color: var(--on-night-2); transition: color .3s; }
.fcol a:hover { color: var(--accent-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 14px; }
.footer-bottom .copy { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--on-night-2); }
.footer-bottom .fnav { display: flex; gap: 22px; }
.footer-bottom .fnav a { font-size: 0.76rem; letter-spacing: 0.08em; }

/* back to top */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; border: none;
  box-shadow: 0 12px 26px -14px rgba(43,40,35,0.8);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .4s, transform .4s, background .3s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent-deep); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1320px) {
  .header-cta .tel { display: none; }
}
@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 0 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 54px);
  }
  .brand-logo {
    height: 36px;
    width: auto;
    max-width: none;
    object-fit: contain;
  }
  .site-header.scrolled .brand-logo {
    height: 32px;
  }
  .brand-name {
    font-size: clamp(0.78rem, 3.4vw, 0.95rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .menu-btn {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  .nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 18px 0 12px;
    border-top: 1px solid var(--hairline);
    margin-top: 8px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { display: flex; }
  /* メニュー展開時はヘッダーを不透明にして背後のヒーローと重ならないように */
  .site-header.menu-open {
    background-color: #f4efe6;
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 12px 30px -18px rgba(43, 40, 35, 0.45);
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav-links a,
  .nav-trigger {
    padding: 10px 4px;
    font-size: 1rem;
  }
  /* ドロップダウンはモバイルではタップで開閉 */
  .nav-item { display: block; width: 100%; }
  .nav-caret { display: none; }
  .nav-sub {
    position: static; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; padding: 2px 0 6px 0;
    background: transparent; border: none; box-shadow: none; border-radius: 0;
    border-left: 1px solid var(--hairline); margin: 0 0 4px 8px;
    display: none;
  }
  .nav-item.sub-open > .nav-sub {
    display: flex;
    transform: none;
  }
  .nav-item > .nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-item > .nav-trigger::after {
    content: "";
    width: 7px; height: 7px;
    border-right: 1.5px solid var(--sumi-3);
    border-bottom: 1.5px solid var(--sumi-3);
    transform: rotate(45deg);
    transition: transform .25s;
    flex-shrink: 0;
    margin-left: 8px;
    /* 下線アニメ（.nav-links a::after）を上書き */
    position: static;
    background: none;
    height: 7px;
  }
  body.subpage .nav-item > .nav-trigger[aria-current="page"]::after {
    width: 7px;
  }
  .nav-item.sub-open > .nav-trigger::after { transform: rotate(-135deg); }
  .nav-sub a { font-size: 0.92rem; padding: 8px 12px; white-space: normal; }
  .nav-sub a::after { display: none; }
  .header-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .header-cta .tel {
    display: flex;
    align-items: flex-start;
    border-right: none;
    padding-right: 0;
  }
  .header-cta .pill { justify-content: center; width: 100%; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body.nav-open { overflow: hidden; }
@media (max-width: 920px) {
  .three-col { grid-template-columns: 1fr; gap: 36px; }
  .col-sep { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-photo .ph { aspect-ratio: 4/3; max-width: 440px; margin: 0 auto; }
  .access-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* =========================================================================
   DECORATIVE FOLIAGE MOTIFS  (hand-drawn line art as CSS mask — tintable)
   ========================================================================= */
.fmotif {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  opacity: 0.55;
}
.fmotif.hedge  { aspect-ratio: 1679 / 448; background-image: url(img/motif/hedge-g.png); }
.fmotif.tree   { aspect-ratio: 720 / 917;  background-image: url(img/motif/tree-g.png); }
.fmotif.shrub  { aspect-ratio: 479 / 405;  background-image: url(img/motif/shrub-g.png); }
.fmotif.branch { aspect-ratio: 671 / 741;  background-image: url(img/motif/branch-g.png); }

/* inline accent under a section heading — a small flowering branch */
.head-leaf {
  display: block; width: 64px; height: 56px; margin: 14px auto 0; opacity: 0.65;
  background: url(img/motif/branch-g.png) center / contain no-repeat;
}
/* tiny sprig beside the doctor name */
.name-leaf {
  display: inline-block; width: 30px; height: 26px; vertical-align: -4px; margin-left: 10px; opacity: 0.8;
  background: url(img/motif/branch-g.png) center / contain no-repeat;
}

/* ---- scattered placements ---- */
/* guide: flowering branch upper-right */
.guide-branch { top: 36px; right: 3%; width: clamp(120px, 13vw, 190px); opacity: 0.4; transform: scaleX(-1); }
/* philosophy: tree lower-left, tone-on-tone */
.philo-tree { left: -10px; bottom: -20px; width: clamp(150px, 18vw, 250px); opacity: 0.32; z-index: 1; }
/* doctor: low shrub lower-right */
.doctor-shrub { right: 2%; bottom: 0; width: clamp(150px, 16vw, 230px); opacity: 0.42; }
/* news: shrub lower-left */
.news-shrub { left: 1%; bottom: -10px; width: clamp(150px, 16vw, 220px); opacity: 0.42; }
/* access: tree upper-right behind the table */
.access-tree { right: -10px; top: 30px; width: clamp(130px, 14vw, 200px); opacity: 0.3; transform: scaleX(-1); }
/* recruit: hedge band along the bottom, full width, cream tint */
.recruit-hedge { left: 0; right: 0; bottom: 0; width: 100%; aspect-ratio: auto; height: clamp(120px, 16vw, 200px);
  background-image: url(img/motif/hedge-c.png); background-size: cover; opacity: 0.4; }
/* footer: hedge band along the bottom, full width, faint cream */
.footer-hedge { left: 0; right: 0; bottom: 0; width: 100%; aspect-ratio: auto; height: clamp(110px, 14vw, 180px);
  background-image: url(img/motif/hedge-c.png); background-size: cover; opacity: 0.26; }

/* =========================================================================
   WALKING FOOTPRINT TRAIL  (intro → access)
   ========================================================================= */
.walk-print {
  display: block;
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: auto;
  height: auto;
  opacity: 0.88;
  filter: brightness(0.72) contrast(1.25);
  mix-blend-mode: multiply;
}
.walk-print.leather { width: clamp(72px, 8vw, 108px); }
.walk-print.trail  { width: clamp(150px, 16vw, 240px); }
/*
 * snake trail intro → access (sparse, zigzag down the page)
 * left ↘ right ↙ left ↘ left ↘ right ↙
 */
/* intro — path begins lower-left, stepping down-right */
.walk-print.w01 { top: 72%; left: 11%; transform: rotate(38deg); }
/* guide — crosses to the right */
.walk-print.w02 { top: 14%; right: 9%; left: auto; transform: rotate(-42deg) scaleX(-1); opacity: 0.82; }
/* philosophy — top-left, 2× B_leather_pair (+90° from prior heading) */
.walk-print.w03  { top: 7%;  left: 4%; transform: rotate(126deg); opacity: 0.82; }
.walk-print.w03b { top: 19%; left: 8%; transform: rotate(126deg); opacity: 0.76; }
/* doctor — right center (−90° from prior heading) */
.walk-print.w04 { top: 44%; right: 5%; left: auto; transform: rotate(-128deg) scaleX(-1); opacity: 0.82; }
/* news — trail on the right */
.walk-print.w05  { top: 8%;  right: 4%; left: auto; transform: rotate(90deg); opacity: 0.78; }
/* access — right then finish lower-left */
.walk-print.w06 { top: 12%; right: 11%; left: auto; transform: rotate(-40deg) scaleX(-1); opacity: 0.8; }
.walk-print.w07 { bottom: 9%; left: 10%; transform: rotate(32deg); opacity: 0.82; }

.intro, .news, .access, .guide, .doctor, .philosophy { overflow: hidden; position: relative; }
.site-footer { position: relative; overflow: hidden; }
.recruit { position: relative; }
/* keep section content above the scattered foliage motifs & footprints */
.section > .wrap { position: relative; z-index: 3; }
.philosophy .philo-inner { z-index: 3; }

/* =========================================================================
   IMAGE SLOTS (user-fillable line-art illustrations)
   ========================================================================= */
image-slot { display: block; }
.hero .hero-illust-slot {
  position: absolute; right: 0; bottom: 0;
  width: min(50%, 720px); height: 72%; z-index: 1;
}
.townstrip-slot { margin-top: clamp(40px, 5vw, 64px); width: 100%; height: clamp(200px, 26vw, 320px); }
.doctor-photo .doctor-slot { width: 100%; aspect-ratio: 3/4; }
.doctor-photo-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 22%;
  border-radius: 4px; display: block;
  box-shadow: var(--shadow-card);
}

@media (max-width: 920px) {
  .doctor-photo .doctor-slot { aspect-ratio: 4/3; max-width: 440px; margin: 0 auto; }
  .guide-branch, .access-tree, .doctor-shrub, .news-shrub { opacity: 0.12; }
  .walk-print { opacity: 0.65; }
}

@media (max-width: 680px) {
  .header-cta .pill.outline { display: none; }
  .nav:not(.open) .header-cta .tel { display: none; }
  .section.news .news-item { grid-template-columns: 96px 1fr; gap: 8px 14px; }
  .section.news .news-item .cat { grid-column: 2; }
  .section.news .news-item .ttl { grid-column: 1 / -1; }
  .section.news .news-item .arrow { display: none; }
  .insta { flex-direction: column; align-items: flex-start; }
  .site-footer {
    padding-bottom: 108px;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 18px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .fcol {
    min-width: 0;
  }
  .footer-bottom .fnav {
    justify-content: center;
    flex-wrap: wrap;
  }
  .recruit-inner { flex-direction: column; align-items: flex-start; }
  .recruit::before {
    background-position: center bottom -28px;
    background-size: auto 92%;
    opacity: 0.3;
  }
  .recruit::after {
    background:
      linear-gradient(180deg,
        var(--accent-deep) 0%,
        color-mix(in srgb, var(--accent-deep) 94%, transparent) 54%,
        color-mix(in srgb, var(--accent-deep) 76%, transparent) 100%);
  }
}


/* =========================================================================
   SUBPAGE STYLES
   ========================================================================= */

ul { list-style: none; }

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ============================================
   Utility – 縦書き装飾テキスト
   ============================================ */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  color: var(--teal-deep);
  opacity: 0.12;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  letter-spacing: 0.5em;
  position: absolute;
  user-select: none;
  pointer-events: none;
}

/* ============================================
   和モダン装飾 SVG パターン
   ============================================ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--border);
}

.section-divider svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 1;
  opacity: 0.4;
}

/* Section label */
.section-label {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--teal-deep);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.section-heading-sub {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* 下層ボタン — index の .btn / .btn.ghost と同じピル造形に統一 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.85em 1.6em;
  background: var(--btn-gradient);
  color: var(--on-olive);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s;
  letter-spacing: 0.14em;
  box-shadow: 0 12px 26px -16px rgba(77, 87, 74, 0.55);
}

.btn-primary:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(77, 87, 74, 0.62);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.85em 1.6em;
  background: transparent;
  color: var(--sumi);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s, border-color .35s, color .35s;
  letter-spacing: 0.14em;
}

.btn-outline:hover {
  background: var(--accent-wash);
  border-color: var(--accent-olive);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

/* ============================================
   § 1 — FIRST VIEW
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  padding-top: 88px;
  overflow: hidden;
}

/* 全面背景スライドショー（写真） */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* 写真上にテキストを読ませるためのオーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg,
      rgba(20, 30, 30, 0.78) 0%,
      rgba(20, 30, 30, 0.55) 35%,
      rgba(20, 30, 30, 0.25) 65%,
      rgba(20, 30, 30, 0.15) 100%);
  pointer-events: none;
}

.hero .vertical-text {
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  z-index: 2;
}

.hero-inner {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 100px;
  font-size: 0.72rem;
  color: #FFF;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(221, 232, 231, 0.8);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #FFF;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-heading em {
  font-style: normal;
  color: #FFF;
  position: relative;
}

.hero-heading em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 2;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
}

/* 暗背景上のアウトラインボタンを白系に */
.hero .btn-outline {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}
.hero .btn-outline:hover {
  background: #FFF;
  color: var(--teal-deep);
  border-color: #FFF;
}

/* ============================================
   § 2 — クリニック概要（外来×訪問の導入）
   ============================================ */
.about {
  padding: var(--section-padding) 0;
  background: var(--ivory-light);
  position: relative;
}

.about-inner {
  max-width: 860px;
  margin: 2rem auto 0;
  text-align: center;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.about-heading em { font-style: normal; color: var(--teal-deep); }

.about-lead {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 2;
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.about-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  position: relative;
}

.about-pillar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border);
}
.about-pillar:last-child::after { display: none; }

.about-pillar-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 170px 170px;
  border: 1px solid color-mix(in srgb, var(--teal-deep) 16%, var(--washi-3));
  box-shadow: 0 1px 0 rgba(255,255,255,0.68) inset, 0 9px 20px -18px rgba(43,40,35,0.44);
}
.about-pillar-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 1;
}

.about-pillar-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.about-pillar-desc {
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.7;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--teal-deep);
  font-weight: 500;
  transition: gap 0.3s;
}
.about-link:hover { gap: 0.65rem; }
.about-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================
   § 3 — ターゲット別エントランス
   ============================================ */
.entrance {
  padding: var(--section-padding) 0;
  background: var(--cream);
  position: relative;
}

.entrance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.entrance-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.entrance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 42, 38, 0.08);
}

.entrance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.entrance-card.toc::before { background: var(--logo-blue); }
.entrance-card.tob::before { background: var(--tob-deep); }
.entrance-card.rec::before { background: var(--teal-deep); }

.entrance-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 160px 160px;
  border: 1px solid color-mix(in srgb, var(--teal-deep) 16%, var(--washi-3));
  box-shadow: 0 1px 0 rgba(255,255,255,0.68) inset, 0 9px 20px -18px rgba(43,40,35,0.44);
}

.entrance-card.toc .entrance-icon,
.entrance-card.tob .entrance-icon,
.entrance-card.rec .entrance-icon {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 160px 160px;
}

.entrance-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke-width: 1.5;
}

.entrance-card.toc .entrance-icon svg { stroke: var(--logo-blue); }
.entrance-card.tob .entrance-icon svg { stroke: var(--tob-deep); }
.entrance-card.rec .entrance-icon svg { stroke: var(--teal-deep); }

.entrance-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

.entrance-card-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.entrance-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entrance-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-light);
  transition: color 0.3s, gap 0.3s;
}

.entrance-card.toc .entrance-link:hover { color: var(--logo-blue); }
.entrance-card.tob .entrance-link:hover { color: var(--tob-deep); }
.entrance-card.rec .entrance-link:hover { color: var(--teal-deep); }
.entrance-link:hover { gap: 0.75rem; }

.entrance-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ============================================
   § 3 — 3つの特徴
   ============================================ */
.features {
  padding: var(--section-padding) 0;
  background: var(--ivory);
  position: relative;
}

.features .vertical-text {
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.feature-card:last-child::after { display: none; }

.feature-number {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--teal-deep);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.feature-icon-area {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 180px 180px;
  border: 1px solid color-mix(in srgb, var(--teal-deep) 16%, var(--washi-3));
  box-shadow: 0 1px 0 rgba(255,255,255,0.68) inset, 0 10px 24px -20px rgba(43,40,35,0.44);
}

.feature-icon-area svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 1;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.feature-desc {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.9;
}

/* ============================================
   § 4 — 診療案内 (toC)
   ============================================ */
.services {
  padding: var(--section-padding) 0;
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 42, 38, 0.08);
}

.service-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  position: relative;
}

.service-card-image svg {
  width: 32px;
  height: 32px;
  stroke: var(--ink-faint);
  fill: none;
  stroke-width: 1;
  margin-right: 0.5rem;
}

.service-card-body {
  padding: 2rem;
}

.service-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--logo-blue);
  background: var(--logo-blue-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.service-card-desc {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--teal-deep);
  font-weight: 500;
  transition: gap 0.3s;
}

.service-card-link:hover { gap: 0.65rem; }

.service-card-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================
   § 5 — 医療連携・紹介 (toB)
   ============================================ */
.partnership {
  padding: var(--section-padding) 0;
  background: var(--tob-light);
  position: relative;
}

.partnership::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tob-deep), transparent);
  opacity: 0.3;
}

.partnership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.partnership-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid rgba(74, 93, 77, 0.1);
  transition: all 0.4s ease;
}

.partnership-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(74, 93, 77, 0.1);
}

.partnership-card-icon {
  width: 52px;
  height: 52px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 150px 150px;
  border: 1px solid color-mix(in srgb, var(--tob-deep) 18%, var(--washi-3));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.68) inset, 0 8px 18px -17px rgba(43,40,35,0.45);
}

.partnership-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--tob-deep);
  stroke-width: 1.5;
}

.partnership-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--tob-deep);
  letter-spacing: 0.04em;
}

.partnership-card-desc {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.8;
}

.partnership-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-tob {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--tob-deep);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}

.btn-tob:hover {
  background: #3d4e40;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 93, 77, 0.3);
}

.btn-tob svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: white;
  stroke-width: 2;
}

/* ============================================
   § 4 — 理念のエッセンス
   ============================================ */
.essence {
  padding: var(--section-padding) 0;
  background: var(--teal-light);
  position: relative;
  overflow: hidden;
}

.essence .vertical-text {
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.18;
}

.essence-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.essence-label {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--teal-deep);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.essence-message {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 2.25rem;
}
.essence-message em { font-style: normal; color: var(--teal-deep); }

/* ============================================
   § 5 — 院長紹介
   ============================================ */
.doctor {
  padding: var(--section-padding) 0;
  background: var(--ivory);
  position: relative;
}

.doctor-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.doctor-photo {
  aspect-ratio: 3/4;
  background: var(--warm-gray);
  border-radius: 4px 16px 4px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.8rem;
  position: relative;
}

.doctor-photo::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -12px;
  width: 60%;
  height: 40%;
  border: 1px solid var(--teal-deep);
  border-radius: 4px 0 4px 16px;
  opacity: 0.15;
  z-index: -1;
}

.doctor-photo svg {
  width: 40px;
  height: 40px;
  stroke: var(--ink-faint);
  fill: none;
  stroke-width: 1;
  margin-bottom: 0.5rem;
}

.doctor-info {}

.doctor-role {
  font-size: 0.72rem;
  color: var(--teal-deep);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.doctor-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.doctor-name-en {
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.doctor-message {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal-deep);
  font-weight: 400;
}

.doctor-qualifications {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.9;
}

.doctor-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--teal-deep);
  font-weight: 500;
  transition: gap 0.3s;
}

.doctor-more:hover { gap: 0.65rem; }

.doctor-more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================
   § 7 — お知らせ（旧レイアウト用。index の .section.news は除外）
   ============================================ */
.news:not(.section) {
  padding: var(--section-padding) 0;
  background: var(--cream);
}

.news:not(.section) .news-list {
  margin-top: 2.5rem;
}

.news:not(.section) .news-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: opacity 0.3s;
}

.news:not(.section) .news-item:first-child { border-top: 1px solid var(--border-light); }
.news:not(.section) .news-item:hover { opacity: 0.7; }

.news-date {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  min-width: 90px;
}

.news-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.news-tag.info { background: var(--logo-blue-light); color: #0078ab; }
.news-tag.holiday { background: var(--coral-light); color: var(--coral); }

.news-title {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.6;
}

.news-more {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   § 8 — アクセス
   ============================================ */
/* Instagram（控えめなリンク帯） */
.instagram {
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  background: var(--cream);
}
.instagram-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.instagram-link:hover {
  border-color: var(--teal-deep);
  transform: translateY(-1px);
}
.instagram-link-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--teal-deep);
}
.instagram-link-icon svg {
  width: 100%;
  height: 100%;
}
.instagram-link-text {
  flex: 1;
  min-width: 0;
}
.instagram-link-label {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  line-height: 1.3;
}
.instagram-link-title {
  font-size: 0.86rem;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-top: 0.1rem;
}
.instagram-link-arrow {
  font-size: 1rem;
  color: var(--teal-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.instagram-link:hover .instagram-link-arrow {
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .instagram-link {
    padding: 0.85rem 1.1rem;
    gap: 0.75rem;
  }
  .instagram-link-icon { width: 24px; height: 24px; }
  .instagram-link-title { font-size: 0.78rem; }
}

.access {
  padding: var(--section-padding) 0;
  background: var(--ivory);
}

.access-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
.page-section .access-grid {
  max-width: 1080px;
  margin: 3rem auto 0;
}

.access-map {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--warm-gray);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.access-grid .access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
.access-inner .access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.access-info {}

.access-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.access-detail {
  margin-bottom: 1.25rem;
}

.access-detail-label {
  font-size: 0.72rem;
  color: var(--teal-deep);
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}

.access-detail-value {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.7;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

.hours-table th,
.hours-table td {
  padding: 0.4rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.hours-table th {
  font-weight: 500;
  color: var(--ink-light);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.hours-table td {
  color: var(--ink);
}

.hours-table .off { color: var(--ink-faint); opacity: 0.4; }

/* ============================================
   § 9 — 採用バナー
   ============================================ */
.recruit:not(.section) {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, var(--teal-deep) 0%, #3A6437 100%);
  position: relative;
  overflow: hidden;
}

.recruit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.recruit-text {}

.recruit-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.recruit-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: white;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.recruit-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.btn-recruit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: white;
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}

.btn-recruit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-recruit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--teal-deep);
  stroke-width: 2;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: white;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.footer-address {
  font-size: 0.78rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-tel {
  font-size: 0.95rem;
  color: white;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.footer-tel-note {
  font-size: 0.68rem;
  opacity: 0.5;
}

.footer-nav-title {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s;
}

.footer-nav-list a:hover { color: white; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 0.68rem;
  opacity: 0.4;
}

.footer-policy a {
  font-size: 0.7rem;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.footer-policy a:hover { opacity: 1; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-buttons { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; gap: 0; }
  .feature-card::after { display: none; }
  .feature-card { border-bottom: 1px solid var(--border-light); }
  .feature-card:last-child { border-bottom: none; }

  .doctor-inner { grid-template-columns: 1fr; gap: 2rem; }
  .doctor-photo { max-width: 280px; margin: 0 auto; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .entrance-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .partnership-grid { grid-template-columns: 1fr; }
  .access-inner { grid-template-columns: 1fr; }

  .about-pillars { grid-template-columns: 1fr; gap: 0; }
  .about-pillar::after { display: none; }
  .about-pillar { border-bottom: 1px solid var(--border-light); }
  .about-pillar:last-child { border-bottom: none; }

  .recruit-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: 1.5rem; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* ============================================
   下層ページ 共通スタイル
   ============================================ */

/* Page Hero — 下層ページの大見出し */
.page-hero {
  position: relative;
  padding: calc(88px + 4rem) 0 4rem;
  background:
    linear-gradient(180deg, rgba(250, 248, 242, 0.94) 0%, rgba(248, 244, 236, 0.94) 100%),
    url(img/pattern/asanoha.webp);
  background-size: cover, 90px;
  background-position: center;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.page-hero.tob {
  background:
    linear-gradient(180deg, rgba(232, 238, 233, 0.93) 0%, rgba(248, 244, 236, 0.94) 100%),
    url(img/pattern/shippo.webp);
  background-size: cover, 96px;
  background-position: center;
}

/* 足あとモチーフはアクセスページのみに限定 */
.page-hero::after {
  content: none;
}

body.subpage.page-access .page-hero::after {
  content: "";
  position: absolute;
  top: auto;
  left: clamp(72px, 10vw, 160px);
  bottom: 78px;
  width: clamp(140px, 14vw, 205px);
  aspect-ratio: 640 / 150;
  background: url(img/footprint/F_walking_trail.svg) no-repeat center / contain;
  transform: rotate(-18deg);
  opacity: 0.4;
  filter: brightness(0.72) contrast(1.25);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 760px) {
  body.subpage.page-access .page-hero::after { display: none; }
}

.page-hero-inner {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--teal-deep);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-hero.tob .page-hero-label { color: var(--tob-deep); }

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.page-hero-title em {
  font-style: normal;
  color: var(--teal-deep);
  position: relative;
}

.page-hero.tob .page-hero-title em { color: var(--tob-deep); }

.page-hero-sub {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.9;
  max-width: 720px;
}

/* Breadcrumb */
.breadcrumb {
  width: var(--container);
  margin: 0 auto;
  padding: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 88px;
}
.breadcrumb a { color: var(--ink-light); }
.breadcrumb a:hover { color: var(--teal-deep); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }
.breadcrumb .current { color: var(--ink); }

.page-hero + .breadcrumb,
.breadcrumb + .page-hero { margin-top: 0; }

.page-hero .breadcrumb {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 1.5rem;
  width: 100%;
}

/* Page Section — 下層共通 */
.page-section {
  padding: var(--section-padding) 0;
  position: relative;
}
/* 和柄を極薄く敷いた alt 背景（青海波／サブページ共通） */
.page-section.alt {
  background:
    linear-gradient(rgba(250, 248, 242, 0.94), rgba(250, 248, 242, 0.94)),
    url(img/pattern/seigaiha.webp);
  background-size: cover, 110px;
  background-position: center;
}
.page-section.warm { background: var(--warm-gray); }
/* tob-alt は青海波より細かい七宝で識別差を出す */
.page-section.tob-alt {
  background:
    linear-gradient(rgba(232, 238, 233, 0.92), rgba(232, 238, 233, 0.92)),
    url(img/pattern/shippo.webp);
  background-size: cover, 96px;
  background-position: center;
}
.page-section.philo-filter {
  background: var(--philosophy-filter);
}

.page-section-inner {
  width: var(--container);
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--ink-light);
  text-align: center;
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-lead.left { text-align: left; margin-left: 0; }

/* 装飾 縦線アクセント */
.heading-mark {
  display: inline-block;
  width: 3px;
  height: 1.4em;
  background: var(--teal-deep);
  vertical-align: middle;
  margin-right: 0.6em;
  border-radius: 1px;
}
.tob-accent .heading-mark { background: var(--tob-deep); }

/* Lead block (左寄せ用) */
.lead-block {
  max-width: 800px;
  margin: 0 auto 3rem;
}
.lead-block p {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.95;
  margin-bottom: 1rem;
}

/* 精神科：ケアマネジャー向け「ご相談の流れ」 */
.psychiatry-consultation-flow {
  max-width: 920px;
}
.consultation-flow-heading {
  margin: 0 0 1.25rem;
  color: var(--tob-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.consultation-flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.consultation-flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--washi-3);
  border-radius: 10px;
  background: var(--paper-card);
  box-shadow: var(--shadow-card);
}
.consultation-flow-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tob-deep);
  color: #fff;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
}
.consultation-flow-body h4 {
  margin: 0 0 0.4rem;
  color: var(--tob-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lead-block .consultation-flow-body p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .psychiatry-consultation-flow {
    margin-bottom: 2.25rem;
  }
  .consultation-flow-heading {
    margin-bottom: 1rem;
    font-size: 1.12rem;
  }
  .consultation-flow-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .consultation-flow-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1rem;
  }
  .consultation-flow-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: -15px;
    width: 2px;
    height: 15px;
    background: color-mix(in srgb, var(--tob-deep) 45%, transparent);
  }
  .consultation-flow-number {
    width: 42px;
    height: 42px;
  }
  .consultation-flow-body h4 {
    font-size: 1rem;
  }
  .lead-block .consultation-flow-body p {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* カードグリッド */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.info-card {
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.info-card:hover {
  border-color: var(--teal-deep);
  transform: translateY(-2px);
}
.tob-accent .info-card:hover { border-color: var(--tob-deep); }

/* 中心領域カード（2列レイアウト・強調表示） */
.card-grid--featured {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 880px;
  margin: 0 auto;
}
.info-card--featured {
  background: #fff;
  border-color: var(--teal-deep);
  padding: 2.4rem 2rem;
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.18);
}
.info-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal-deep);
}
.info-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.24);
}
.info-card--featured .info-card-icon {
  width: 52px;
  height: 52px;
}
.info-card--featured .info-card-title {
  font-size: 1.25rem;
  color: var(--teal-deep);
}

/* 担当医ブロック */
.doctor-feature {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 760px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}
.doctor-feature-photo {
  aspect-ratio: 3 / 4;
  background: var(--warm-gray);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.doctor-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.doctor-feature-label {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--teal-deep);
  margin-bottom: 0.5rem;
}
.doctor-feature-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.doctor-feature-desc {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.doctor-feature-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--teal-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.doctor-feature-link:hover {
  opacity: 0.7;
}
.doctor-feature-note {
  max-width: 760px;
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  color: var(--ink-light);
  text-align: left;
}
@media (max-width: 640px) {
  .doctor-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 320px;
  }
  .doctor-feature-photo {
    max-width: 220px;
    margin: 0 auto;
  }
  .doctor-feature-body {
    text-align: center;
  }
  .doctor-feature-note {
    padding: 0 1rem;
  }
}

.info-card-num {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--teal-deep);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}
.tob-accent .info-card-num { color: var(--tob-deep); }

.info-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 150px 150px;
  border: 1px solid color-mix(in srgb, var(--teal-deep) 18%, var(--washi-3));
  box-shadow: 0 1px 0 rgba(255,255,255,0.68) inset, 0 8px 18px -17px rgba(43,40,35,0.45);
}
.info-card-icon svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.tob-accent .info-card-icon { color: var(--tob-deep); }

.info-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

/* アイコン付きカード：アイコンと項目名をひとまとまりで見せる */
.info-card:has(> .info-card-icon + .info-card-title) {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 1rem;
  align-content: start;
}
.info-card:has(> .info-card-icon + .info-card-title) > .info-card-num {
  grid-column: 1 / -1;
}
.info-card:has(> .info-card-icon + .info-card-title) > .info-card-icon {
  grid-column: 1;
  align-self: center;
  margin: 0 !important;
}
.info-card:has(> .info-card-icon + .info-card-title) > .info-card-title {
  grid-column: 2;
  align-self: center;
  min-width: 0;
  margin-bottom: 0;
  line-height: 1.55;
}
.info-card:has(> .info-card-icon + .info-card-title) > .info-card-title ~ * {
  grid-column: 1 / -1;
}
.info-card:has(> .info-card-icon + .info-card-title) > .info-card-desc {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .info-card:has(> .info-card-icon + .info-card-title) {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 0.8rem;
  }
  .info-card:has(> .info-card-icon + .info-card-title) > .info-card-icon {
    width: 46px;
    height: 46px;
  }
}

/* ご予約方法は従来の中央配置を維持 */
#reserve .info-card:has(> .info-card-icon + .info-card-title) {
  display: block;
}
#reserve .info-card:has(> .info-card-icon + .info-card-title) > .info-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem !important;
}
#reserve .info-card:has(> .info-card-icon + .info-card-title) > .info-card-title {
  margin-bottom: 0.75rem;
}
#reserve .info-card:has(> .info-card-icon + .info-card-title) > .info-card-desc {
  margin-top: 0;
}

.info-card-desc {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.85;
}

/* ステップ図 */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2rem;
}

.step {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.tob-accent .step-num { background: var(--tob-deep); }

.step-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.75;
}

/* テーブル（診療時間・対応範囲等） */
.data-table {
  width: 100%;
  border-collapse: collapse;
  /* 透過 ＋ 和紙テクスチャでのっぺり感を解消 */
  background-color: color-mix(in srgb, var(--washi-cream-color) 50%, transparent);
  background-image: var(--washi-cream);
  background-size: var(--washi-tile);
  background-blend-mode: multiply;
  border: 1px solid rgba(45, 42, 38, 0.22);
  font-size: 0.92rem;
}
.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  /* 行・列の区切り罫（薄いインク系で和の雰囲気を保つ） */
  border-bottom: 1px solid rgba(45, 42, 38, 0.15);
  border-right: 1px solid rgba(45, 42, 38, 0.15);
  vertical-align: top;
}
.data-table th:last-child,
.data-table td:last-child { border-right: none; }
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table thead th {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: 0.06em;
}
.data-table tbody th {
  background: color-mix(in srgb, var(--washi-cream-color) 60%, transparent);
  font-weight: 600;
  color: var(--accent-ink);
  width: 28%;
}
.data-table .center { text-align: center; }
.data-table .off { color: var(--ink-faint); }

/* チェックリスト */
.check-list {
  display: grid;
  gap: 0.75rem;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.8;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--teal-deep);
  border-bottom: 2px solid var(--teal-deep);
  transform: rotate(-45deg);
}
.tob-accent .check-list li::before {
  border-color: var(--tob-deep);
}

/* ピル・タグ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* 強みグリッド（訪問診療ファーストビュー） */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.strength-card {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.strength-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--teal-deep);
}
.strength-card:hover {
  border-color: var(--teal-deep);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.2);
}
.strength-num {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}
.strength-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 150px 150px;
  border: 1px solid color-mix(in srgb, var(--teal-deep) 18%, var(--washi-3));
  box-shadow: 0 1px 0 rgba(255,255,255,0.68) inset, 0 8px 18px -17px rgba(43,40,35,0.45);
}
.strength-icon svg {
  width: 56%;
  height: 56%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.strength-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}
.strength-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.85;
}

/* 強みカード：アイコンと項目名を同じ段に配置 */
.strength-card:has(> .strength-icon + .strength-title) {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 1rem;
  align-content: start;
}
.strength-card:has(> .strength-icon + .strength-title) > .strength-num {
  grid-column: 1 / -1;
  grid-row: 1;
}
.strength-card:has(> .strength-icon + .strength-title) > .strength-icon {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  margin-bottom: 0;
}
.strength-card:has(> .strength-icon + .strength-title) > .strength-title {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  min-width: 0;
  margin: 0;
}
.strength-card:has(> .strength-icon + .strength-title) > .strength-title ~ * {
  grid-column: 1 / -1;
}
.strength-card:has(> .strength-icon + .strength-title) > .strength-desc {
  grid-row: 3;
  margin-top: 0.85rem;
}

@media (max-width: 640px) {
  .strength-card:has(> .strength-icon + .strength-title) {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 0.8rem;
  }
  .strength-card:has(> .strength-icon + .strength-title) > .strength-icon {
    width: 46px;
    height: 46px;
  }
}

/* 追従型 右下フローティングCTA（totop と重ならないよう上にオフセット） */
.floating-cta {
  position: fixed;
  right: 1.5rem;
  bottom: calc(22px + 46px + 16px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}
.floating-cta-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.floating-cta-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.floating-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.34);
}
.floating-cta-general {
  background: var(--teal-deep);
  color: #fff;
  border: 1px solid var(--teal-deep);
}
.floating-cta-general:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
}
.floating-cta-partnership {
  background: #fff;
  color: var(--tob-deep);
  border: 1px solid var(--tob-deep);
}
.floating-cta-partnership:hover {
  background: var(--tob-light);
}
.floating-cta-sp {
  display: none;
}
@media (max-width: 640px) {
  /* SP：余白や外枠を持たない、画面幅3等分の連結ボタン */
  .floating-cta {
    --floating-cta-safe-bottom: 0px;
    --floating-cta-safe-bottom: clamp(0px, env(safe-area-inset-bottom, 0px), 8px);
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 140;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: 100%;
    height: 68px;
    min-height: 68px;
    max-height: 68px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 -8px 24px -18px rgba(43, 40, 35, 0.52);
  }
  .floating-cta .floating-cta-btn {
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    gap: 0.25rem;
    min-width: 0;
    height: 68px;
    min-height: 68px;
    max-height: 68px;
    margin: 0;
    padding: 4px 3px calc(4px + var(--floating-cta-safe-bottom));
    border: 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px !important;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-align: center;
    box-shadow: none;
    overflow: hidden;
  }
  .floating-cta .floating-cta-btn span {
    font-size: inherit !important;
    line-height: inherit;
    white-space: nowrap;
  }
  .floating-cta-pc {
    display: none;
  }
  .floating-cta .floating-cta-sp {
    display: inline-flex;
  }
  .floating-cta .floating-cta-phone {
    background: var(--accent-olive);
    color: #fff;
  }
  .floating-cta-btn:hover { transform: none; }
  .floating-cta-btn svg {
    width: 20px;
    height: 20px;
  }
  /* 下部バーと重ならないよう、トップへ戻るボタンを持ち上げる */
  .totop {
    bottom: 78px;
  }
}

/* 連携のかたち（ハブ&スポーク図解） */
.network-diagram {
  max-width: 620px;
  margin: clamp(1.5rem, 4vw, 2.75rem) auto 0;
}
.network-diagram svg,
.network-diagram img { width: 100%; height: auto; display: block; }
.partnership-network-diagram {
  max-width: 900px;
}
.monshin-block.monshin-block--documents {
  margin-top: clamp(3.5rem, 6vw, 5rem);
  margin-bottom: 0;
}
.monshin-btn.is-disabled {
  opacity: 0.52;
  cursor: not-allowed;
  pointer-events: none;
}
.download-file-note {
  display: block;
  margin-top: 0.65rem;
  color: var(--ink-faint);
  font-size: 0.75rem;
}

/* 駐車場ページ — 俯瞰経路図 */
.parking-map-illust {
  max-width: 720px;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.parking-map-illust svg,
.parking-map-illust img { width: 100%; height: auto; display: block; }
.parking-route-steps {
  max-width: 620px;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
}

/* 駐車場ページ — 写真カード一覧 */
.parking-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.parking-slide {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}
.parking-slide .parking-ph,
.parking-slide img {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: block;
  object-fit: cover;
}
.parking-slide figcaption {
  margin: 0;
  padding: 0.85rem 1rem 0.95rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-light);
}
.parking-availability-note {
  max-width: 760px;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.9;
}
.parking-availability-note span {
  margin-right: 0.25em;
  color: var(--accent-dark);
}

@media (max-width: 767px) {
  .parking-photo-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .parking-availability-note {
    padding: 0.9rem 1rem;
  }
}

/* SPご利用目的カード：アイコンと見出しを横並びにして高さを抑える */
@media (max-width: 767px) {
  .section.guide .gcard {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "number number"
      "icon title"
      "icon english"
      "links links";
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
  }
  .section.guide .gcard .gnum {
    grid-area: number;
    margin-bottom: 8px;
  }
  .section.guide .gcard .gicn {
    grid-area: icon;
    width: 52px;
    height: 52px;
    margin: 0;
  }
  .section.guide .gcard .gicn svg {
    width: 24px;
    height: 24px;
  }
  .section.guide .gcard h3 {
    grid-area: title;
    align-self: end;
    margin: 0;
    line-height: 1.45;
  }
  .section.guide .gcard .gen {
    grid-area: english;
    align-self: start;
    margin-top: 2px;
  }
  .section.guide .gcard ul {
    grid-area: links;
    width: 100%;
    margin: 14px 0 0;
  }
}

/* 駐車場ページ — ご利用案内表（サイト共通の対応範囲表を使用） */
.hours-wrap--parking {
  max-width: 760px;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
}

@media (max-width: 767px) {
  .hours.hours--data.parking-hours-data tbody td::before {
    content: none;
    display: none;
  }
}

/* パンフレットダウンロード */
.pamphlet-download {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 2.75rem;
  background: #fff;
  border: 1px solid var(--border-light);
}
.pamphlet-cover {
  aspect-ratio: 1 / 1.414;
  background: var(--warm-gray);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.25);
}
.pamphlet-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pamphlet-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.pamphlet-desc {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.pamphlet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.pamphlet-meta {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .pamphlet-download {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  .pamphlet-cover {
    max-width: 220px;
    margin: 0 auto;
  }
  .pamphlet-info {
    text-align: center;
  }
}

/* 駐車場のご案内 */
.parking-block {
  max-width: 1080px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}
.parking-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1.5rem;
}
.parking-photo-slider {
  min-width: 0;
}
.parking-photo-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--warm-gray);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.parking-photo-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}
.parking-photo-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  background: #f0e7d8;
}
.parking-photo-slide img,
.parking-photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.parking-photo-slide img[src$=".svg"] {
  object-fit: contain;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}
.parking-photo-slide--map img {
  object-fit: contain;
  background: #e8e1d4;
}
.parking-photo-slide figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.75rem;
  background: rgba(250, 245, 233, 0.88);
  border: 1px solid rgba(94, 114, 89, 0.18);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.parking-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(94, 114, 89, 0.24);
  border-radius: 50%;
  background: rgba(250, 245, 233, 0.9);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.parking-photo-nav svg {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  display: block;
  overflow: visible;
}
.parking-photo-nav:hover,
.parking-photo-nav:focus-visible {
  background: var(--teal-deep);
  color: #fff;
  transform: translateY(-50%) scale(1.04);
}
.parking-photo-prev { left: 0.85rem; }
.parking-photo-next { right: 0.85rem; }
.parking-photo-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.parking-photo-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal-deep) 28%, transparent);
  cursor: pointer;
  padding: 0;
}
.parking-photo-dots button.is-active,
.parking-photo-dots button[aria-current="true"] {
  background: var(--teal-deep);
  transform: scale(1.2);
}
.parking-image {
  aspect-ratio: 4 / 3;
  background: var(--warm-gray);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.parking-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.parking-image img[src$=".svg"] {
  object-fit: contain;
  background: #f0e7d8;
}
.parking-lead {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.parking-lead strong {
  color: var(--teal-deep);
  font-weight: 500;
}
@media (max-width: 720px) {
  .parking-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .parking-photo-nav {
    width: 36px;
    height: 36px;
  }
  .parking-photo-prev { left: 0.6rem; }
  .parking-photo-next { right: 0.6rem; }
}

/* 担当医のご紹介（イラスト＋イニシャル） */
.doctors-block {
  max-width: 920px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}
.doctors-block-lead {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.doctors-block-note {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 2rem;
  text-align: center;
}
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 1.5rem;
}
.doctor-card {
  text-align: center;
}
.doctor-avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 1rem;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-deep);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.doctor-card:hover .doctor-avatar {
  border-color: var(--teal-deep);
  transform: translateY(-3px);
}
.doctor-avatar svg {
  width: 64%;
  height: 64%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doctor-initials {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.doctor-role {
  font-size: 0.78rem;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* ご自宅で対応可能な検査・処置（訪問診療） */
.services-block {
  max-width: 880px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.services-col-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--teal-deep);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.services-list li {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.95;
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}
.services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-deep);
}

/* 症状・疾患ブロック */
.symptom-block,
.disease-categories {
  max-width: 880px;
  margin: 0 auto;
}
.symptom-block {
  margin-bottom: 3rem;
}
.sub-heading {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.symptom-block .sub-heading,
.disease-categories > .sub-heading {
  font-size: clamp(1.28rem, 1.12rem + 0.7vw, 1.48rem);
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.disease-cat {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.disease-cat:last-child {
  border-bottom: none;
}
.disease-cat-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--teal-deep);
  letter-spacing: 0.06em;
  padding-top: 0.4rem;
}
@media (max-width: 640px) {
  .disease-cat {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .disease-cat-name {
    padding-top: 0;
    font-size: 0.85rem;
  }
  .symptom-block .sub-heading,
  .disease-categories > .sub-heading {
    font-size: 1.2rem;
    line-height: 1.65;
  }
}

/* FAQアコーディオン */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.faq-tab {
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  letter-spacing: 0.06em;
  transition: color 0.2s, border-color 0.2s;
}
.faq-tab.active,
.faq-tab:hover {
  color: var(--teal-deep);
  border-bottom-color: var(--teal-deep);
}

.faq-list { display: grid; gap: 0.75rem; }

.faq-item {
  background: var(--cream);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.faq-q::before {
  content: 'Q';
  font-family: var(--font-serif);
  color: var(--teal-deep);
  margin-right: 0.75rem;
  font-size: 1.05rem;
}
.faq-q::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--logo-blue);
  border-bottom: 2px solid var(--logo-blue);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-25%) rotate(-135deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.95;
  background: var(--ivory-light);
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-light);
}
.faq-a::before {
  content: 'A';
  display: inline-block;
  font-family: var(--font-serif);
  color: var(--coral);
  margin-right: 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
}

/* CTAブロック */
.cta-block {
  background: var(--teal-deep);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 4px;
  margin-top: 4rem;
}
.tob-accent .cta-block,
.cta-block.tob { background: var(--tob-deep); }
.cta-block .cta-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.cta-block .cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}
.cta-block .cta-sub {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.cta-block .cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-block .btn-primary {
  background: var(--btn-gradient);
}
.cta-block .btn-primary:hover {
  background: var(--btn-gradient-hover);
}
.cta-block .btn-outline {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.cta-block .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}
.cta-block .cta-tel {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.06em;
}

/* 院長プロフィール／院長メッセージ */
.profile-block {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
}
.profile-photo {
  background: var(--warm-gray);
  border: 1px solid var(--border-light);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.78rem;
}
.profile-photo svg { width: 64px; height: 64px; opacity: 0.5; }
.profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.profile-name-en {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 0.92rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.profile-section { margin-bottom: 1.75rem; }
.profile-section-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--teal-deep);
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.profile-section ul,
.profile-section p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.95;
}
.profile-section ul li {
  position: relative;
  padding-left: 1rem;
}
.profile-section ul li::before {
  content: '─';
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* 院長メッセージ - ダイジェスト＋全文 */
.doctor-message-block {
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
}
.doctor-message-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.doctor-message-section .doctor-message-tree {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  right: clamp(-74px, -3vw, -20px);
  top: auto;
  bottom: -116px;
  width: clamp(230px, 29vw, 410px);
  aspect-ratio: 1086 / 1448;
  background: url(img/motif/tree-img005_line.png) center / contain no-repeat;
  opacity: 0.28;
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
  transform: rotate(5deg);
}
.doctor-message-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--teal-deep);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
}
.doctor-message-body p {
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 2.1;
  margin-bottom: 1rem;
}
.doctor-message-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}
.doctor-message-block.expanded .doctor-message-full { max-height: 4000px; }
.doctor-message-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}
.doctor-message-toggle:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.doctor-message-block.expanded .doctor-message-toggle .toggle-open { display: none; }
.doctor-message-block:not(.expanded) .doctor-message-toggle .toggle-close { display: none; }

@media (max-width: 760px) {
  .doctor-message-section .doctor-message-tree {
    right: -76px;
    top: auto;
    bottom: -92px;
    width: 230px;
    opacity: 0.14;
    transform: rotate(5deg);
  }
}

/* スタッフ・所属医師グリッド */
.staff-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.staff-card {
  text-align: center;
}
.staff-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--warm-gray);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
}
.staff-photo svg { width: 48px; height: 48px; opacity: 0.4; }
.staff-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}
.staff-role {
  font-size: 0.78rem;
  color: var(--teal-deep);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.staff-comment {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.7;
}

/* チーム連携体制図 */
/* チーム連携図 — 患者さま・ご家族を中心に据えたハブ＆スポーク */
.team-hub {
  position: relative;
  max-width: 760px;
  margin: 2.5rem auto 0;
  aspect-ratio: 1 / 0.84;
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.team-hub-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.team-hub-lines line {
  stroke: var(--teal-mid);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}
.hub-node {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: min(25%, 186px);
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  box-shadow: 0 10px 22px -16px rgba(43,40,35,0.55);
}
/* 円の内接正方形に収め、文字が縁にかからないようにする */
.hub-node > * { max-width: 74%; }
.hub-center {
  left: 50%; top: 50%;
  width: min(31%, 226px);
  background: var(--teal-deep);
  color: #fff;
  border-color: var(--teal-deep);
  box-shadow: 0 18px 36px -18px rgba(54,69,79,0.7);
  z-index: 2;
}
.hub-center > * { max-width: 80%; }
.hub-clinic {
  background: var(--teal-light);
  border-color: var(--teal-mid);
  border-width: 1.5px;
}
.hub-node-en {
  display: block; font-family: var(--font-en);
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 0.25rem;
}
.hub-node-title {
  font-family: var(--font-serif); font-size: 0.82rem;
  letter-spacing: 0.02em; line-height: 1.4;
}
.hub-center .hub-node-title { font-size: 1rem; }
.hub-node-desc {
  font-size: 0.66rem; color: var(--ink-light);
  line-height: 1.45; margin-top: 0.3rem;
}
.hub-center .hub-node-desc { color: rgba(255,255,255,0.86); }

@media (max-width: 640px) {
  .team-hub {
    aspect-ratio: auto;
    display: flex; flex-direction: column; gap: 0.9rem;
    padding: 1.6rem 1.1rem;
    align-items: center;
  }
  .team-hub-lines { display: none; }
  .hub-node {
    position: static; transform: none;
    left: auto; top: auto;
    width: min(74vw, 220px);
  }
  .hub-node > *, .hub-center > * { max-width: 86%; }
  .hub-center { order: -1; }
}

/* 診療エリアマップ */
body.subpage.page-area .area-map-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body.subpage.page-area .area-map-section::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: -10vw;
  right: -10vw;
  top: clamp(230px, 24vw, 320px);
  height: clamp(92px, 11vw, 156px);
  background-image: url("img/footprint/F_walking_trail.svg");
  background-repeat: repeat-x;
  background-position: left center;
  background-size: clamp(250px, 24vw, 380px) auto;
  opacity: 0.34;
  filter: brightness(0.66) contrast(1.25);
  mix-blend-mode: multiply;
  transform: rotate(-7deg);
  transform-origin: center;
}
body.subpage.page-area .area-map-tree {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  aspect-ratio: 1086 / 1448;
  opacity: 0.28;
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
}
body.subpage.page-area .area-map-tree-left {
  left: clamp(-118px, -6vw, -44px);
  bottom: clamp(-128px, -8vw, -64px);
  width: clamp(210px, 25vw, 360px);
  background: url("img/motif/tree-img010_line.png") center / contain no-repeat;
  transform: rotate(-6deg);
}
body.subpage.page-area .area-map-tree-right {
  right: clamp(-124px, -7vw, -48px);
  bottom: clamp(-116px, -7vw, -58px);
  width: clamp(220px, 27vw, 390px);
  background: url("img/motif/tree-img007_line.png") center / contain no-repeat;
  transform: rotate(5deg);
}
.area-map {
  background: var(--ivory-light);
  border: 1px solid var(--border-light);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}
.area-map svg { max-width: 100%; height: auto; }

@media (max-width: 760px) {
  body.subpage.page-area .area-map-section::after {
    left: -22vw;
    right: -22vw;
    top: 245px;
    height: 86px;
    background-size: 230px auto;
    opacity: 0.28;
    transform: rotate(-10deg);
  }
  body.subpage.page-area .area-map-tree {
    opacity: 0.2;
  }
  body.subpage.page-area .area-map-tree-left {
    left: -104px;
    bottom: -98px;
    width: 210px;
  }
  body.subpage.page-area .area-map-tree-right {
    right: -106px;
    bottom: -92px;
    width: 220px;
  }
}

.area-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 2.5rem;
}
body.subpage.page-area .area-list-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: clamp(100px, 15vw, 210px);
}
body.subpage.page-area .area-list-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: max(240px, calc(100vw * 941 / 1672));
  background: url("img/motif/townscape_img005_line.png") center bottom / 100% auto no-repeat;
  opacity: 0.32;
  filter: sepia(0.1) saturate(0.88) brightness(1.02);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, #000 8%, #000 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, #000 8%, #000 100%);
}
.area-group-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--teal-deep);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.area-group ul li {
  font-size: 0.85rem;
  color: var(--ink-light);
  padding: 0.25rem 0;
}

/* 紹介先・提携病院 一覧 */
.partner-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.2rem;
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.partner-list li { display: flex; }
.partner-list a {
  position: relative;
  flex: 1;
  display: block;
  padding: 0.75rem 1.9rem 0.75rem 1.7rem;
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s;
}
/* ドットは1行目のテキスト中心に合わせる（折り返しても位置が変わらない） */
.partner-list a::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: calc(0.75rem + 0.75em);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal-deep);
  transform: translateY(-50%);
}
/* 外部リンクの矢印 */
.partner-list a::after {
  content: "↗";
  position: absolute;
  right: 0.7rem;
  top: calc(0.75rem + 0.75em);
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: var(--teal-mid);
  opacity: 0.55;
  transition: opacity .2s, transform .2s;
}
.partner-list a:hover {
  border-color: var(--teal-mid);
  background: var(--ivory-light);
  transform: translateY(-1px);
}
.partner-list a:hover::after { opacity: 0.9; transform: translateY(-50%) translate(1px,-1px); }
@media (max-width: 420px) {
  .partner-list { grid-template-columns: 1fr; }
}

/* フォーム */
.form-block {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: clamp(2rem, 4vw, 3.5rem);
}
.form-group { margin-bottom: 1.75rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.form-label .required {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  background: var(--coral);
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.form-label .optional {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  background: var(--warm-gray);
  color: var(--ink-light);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
  line-height: 1.6;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-input { height: 48px; }
.form-textarea { min-height: 140px; resize: vertical; }
.form-select {
  height: 48px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-light) 50%),
                    linear-gradient(135deg, var(--ink-light) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.form-radios {
  display: grid;
  gap: 0.75rem;
}
.form-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.form-radio:hover,
.form-radio.checked {
  border-color: var(--teal-deep);
  background: var(--teal-light);
}
.form-radio input { margin-top: 0.25rem; }
.form-radio-label {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.form-radio-desc {
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}
.form-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--ink);
}

.form-help {
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
  line-height: 1.7;
}

.form-actions {
  text-align: center;
  margin-top: 2.5rem;
}
.form-submit {
  background: var(--logo-blue);
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease;
  border-radius: 4px;
}
.form-submit:hover { background: #0089c8; }

/* フォーム種別 動的セクション */
.form-conditional {
  display: none;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-light);
  margin-top: 1.75rem;
}
.form-conditional.active { display: block; }

/* 関連リンクカード */
.related-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.5rem;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  color: var(--ink);
}
.related-card:hover {
  border-color: var(--teal-deep);
  background: var(--ivory-light);
  transform: translateY(-2px);
}
.tob-accent .related-card:hover { border-color: var(--tob-deep); }

.related-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.related-card svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.5;
}

/* ブログリスト */
.blog-grid {
  display: grid;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.blog-item {
  display: grid;
  grid-template-columns: 110px 100px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.5rem;
  background: var(--cream);
  color: var(--ink);
  transition: background 0.2s ease;
}
.blog-item:hover { background: var(--ivory-light); }
.blog-date {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--ink-light);
  letter-spacing: 0.06em;
}
.blog-tag {
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--teal-deep);
  color: var(--teal-deep);
  background: var(--cream);
  text-align: center;
  letter-spacing: 0.06em;
}
.blog-tag.holiday { border-color: var(--coral); color: var(--coral); }
.blog-tag.column { border-color: var(--tob-deep); color: var(--tob-deep); }
.blog-title {
  font-size: 0.94rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* プライバシーポリシー本文 */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.95;
}
.policy-content h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.policy-content h3:first-of-type { margin-top: 0; }
.policy-content p { margin-bottom: 1rem; color: var(--ink-light); }
.policy-content ol,
.policy-content ul {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--ink-light);
}
.policy-content li { margin-bottom: 0.5rem; }

/* 比較表 */
.compare-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.compare-col {
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
}
.compare-col-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}
.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  color: var(--teal-deep);
  font-size: 1.6rem;
  font-weight: 400;
}

/* 案件・ケース紹介 */
.case-block {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.case-card {
  background: var(--cream);
  border: 1px solid var(--border-light);
  padding: 2rem 1.75rem;
}
.case-num {
  display: inline-block;
  font-family: var(--font-serif);
  background: var(--tob-deep);
  color: #fff;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.case-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.case-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.7;
}
.case-row-label {
  color: var(--tob-deep);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.case-row-val {
  color: var(--ink-light);
}
.case-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* 採用情報セクション */
.recruit-belief-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.recruit-belief-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("img/section/recruit-belief-riverside-background.webp") center center / cover no-repeat;
  opacity: 0.78;
  mix-blend-mode: normal;
}
.recruit-belief-section::after {
  display: none;
}
.recruit-belief-section > .page-section-inner {
  position: relative;
  z-index: 2;
}
.recruit-belief {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--teal-deep);
  letter-spacing: 0.08em;
  line-height: 1.75;
  text-align: center;
  margin: 2rem 0;
}
.recruit-wanted-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: clamp(110px, 15vw, 210px);
}
.recruit-wanted-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: max(210px, calc(100vw * 941 / 1672));
  background: url("img/motif/townscape_img006_line.png") center bottom / 100% auto no-repeat;
  opacity: 0.24;
  filter: sepia(10%) saturate(88%) brightness(1.02);
  mix-blend-mode: multiply;
}
.recruit-environment-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body.subpage.page-recruit .page-section.philo-filter.recruit-environment-section::before {
  content: none;
}
.recruit-environment-grid {
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}
.recruit-env-motif {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  aspect-ratio: 1086 / 1448;
  opacity: 0.24;
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
}
.recruit-env-motif-left {
  left: clamp(-150px, -7vw, -72px);
  top: 50%;
  width: clamp(250px, 27vw, 390px);
  background: url("img/motif/tree-img009_line.png") center / contain no-repeat;
  transform: translateY(-48%) rotate(-5deg);
}
.recruit-env-motif-right {
  right: clamp(-150px, -7vw, -72px);
  top: 52%;
  width: clamp(240px, 25vw, 360px);
  background: url("img/motif/tree-img004_line.png") center / contain no-repeat;
  transform: translateY(-50%) rotate(5deg);
}
.recruit-positions-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.recruit-positions-motif {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  aspect-ratio: 1086 / 1448;
  opacity: 0.24;
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
  right: clamp(-92px, -3vw, -28px);
  top: auto;
  bottom: clamp(-210px, -13vw, -128px);
  width: clamp(420px, 48vw, 720px);
  background: url("img/motif/staff_img006_line.png") center / contain no-repeat;
  transform: rotate(3deg);
}

/* レスポンシブ追記 */
@media (max-width: 900px) {
  .profile-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .profile-photo {
    max-width: 280px;
    margin: 0 auto;
  }
  .recruit-environment-grid {
    grid-template-columns: 1fr;
  }
  .recruit-env-motif {
    opacity: 0.16;
  }
  .recruit-env-motif-left {
    left: -128px;
    top: 52%;
    width: 230px;
    transform: translateY(-50%) rotate(-5deg);
  }
  .recruit-env-motif-right {
    right: -132px;
    top: 58%;
    width: 220px;
    transform: translateY(-50%) rotate(5deg);
  }
  .recruit-positions-motif {
    opacity: 0.16;
    right: -158px;
    top: auto;
    bottom: -170px;
    width: 380px;
    transform: rotate(3deg);
  }
  .compare-block {
    grid-template-columns: 1fr;
  }
  .compare-divider { transform: rotate(90deg); }
}

@media (max-width: 768px) {
  .recruit-belief-section::before {
    background-image: url("img/section/recruit-belief-riverside-background.webp");
    background-position: 34% center;
    opacity: 0.78;
  }
}

@media (max-width: 768px) {
  .page-hero { padding: calc(88px + 2.5rem) 0 2.5rem; }
  .breadcrumb { font-size: 0.72rem; padding: 0.75rem 0; }
  .data-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.88rem;
  }
  .data-table thead,
  .data-table tbody {
    display: table;
    width: 100%;
    min-width: 520px;
  }
  .data-table th,
  .data-table td { padding: 0.6rem 0.5rem; }
  .blog-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: start;
  }
  .blog-tag { justify-self: start; }
}

/* ============================================
   和モダン 線画イラスト・和文様の組み込み
   （線画は墨色のまま低opacityで敷き、可読性を最優先）
   ============================================ */

/* §2 About — 街並み線画をセクション全面に敷き、上方向へフェード（切れ目を出さない） */
.about > .container { position: relative; z-index: 1; }
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(img/section/about-townscape.webp) center bottom / cover no-repeat;
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to top, #000 46%, transparent 90%);
          mask-image: linear-gradient(to top, #000 46%, transparent 90%);
}

/* §4 理念 — 家と暮らしの線画をセクション全面に敷き、上方向へフェード */
.essence::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(img/section/philosophy-life.webp) center bottom / cover no-repeat;
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to top, #000 52%, transparent 94%);
          mask-image: linear-gradient(to top, #000 52%, transparent 94%);
}

/* §3 動線カード — 和文様を白オーバーレイで極薄く（toC=麻の葉／toB=青海波／採用=七宝） */
.entrance-card.toc {
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    url(img/pattern/asanoha.webp);
  background-size: cover, 78px;
  background-position: center;
}
.entrance-card.tob {
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    url(img/pattern/seigaiha.webp);
  background-size: cover, 92px;
  background-position: center;
}
.entrance-card.rec {
  background:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)),
    url(img/pattern/shippo.webp);
  background-size: cover, 92px;
  background-position: center;
}

/* §6 お知らせ — 市松を極薄く全面に（旧レイアウト用。index の .section.news は除外） */
.news:not(.section) {
  background:
    linear-gradient(rgba(255,253,248,0.92), rgba(255,253,248,0.92)),
    url(img/pattern/ichimatsu.webp);
  background-size: cover, 120px;
}

/* CTA帯 — 町並みスカイラインを採用バナー手前に横長で */
.skyline-band {
  height: clamp(96px, 14vw, 168px);
  background:
    linear-gradient(rgba(248,244,236,0.05), rgba(248,244,236,0.05)),
    var(--ivory) url(img/section/cta-skyline.webp) center bottom / cover no-repeat;
  background-blend-mode: normal;
}

/* section-divider の汎用アイコンを和文様（麻の葉）モチーフに統一 */
.section-divider-mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.55;
}

/* 背景線画の上に乗るテキストの可読性確保
   ─ テキストブロック背後にソフトな明色ハローを敷き、線画は周囲・下部で見せる */
.about .about-inner {
  position: relative;
  padding: 1.25rem 1rem;
  background: radial-gradient(ellipse 82% 78% at 50% 42%,
    rgba(250,248,242,0.94) 0%,
    rgba(250,248,242,0.72) 52%,
    rgba(250,248,242,0) 100%);
}
.essence .essence-inner {
  padding: 1.25rem 1rem;
  background: radial-gradient(ellipse 86% 82% at 50% 42%,
    rgba(228,237,220,0.95) 0%,
    rgba(228,237,220,0.72) 52%,
    rgba(228,237,220,0) 100%);
}
/* 見出し・本文に淡い光彩を付け、線画の上でも輪郭を立たせる */
.about .section-heading,
.about-heading,
.about-lead,
.about-pillar-title,
.about-pillar-desc,
.essence-message,
.essence-label {
  text-shadow: 0 0 6px var(--ivory), 0 0 6px var(--ivory);
}
.essence-message,
.essence-label { text-shadow: 0 0 6px #E4EDDC, 0 0 6px #E4EDDC; }

/* ============================================
   v2 オーバーライド（ie-tsukuru 風）
   ============================================ */

/* v2 ヒーロー */
.v2-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 120px 1.5rem 4rem;
  overflow: hidden;
}
.v2-hero-deco {
  position: absolute;
  color: var(--ink-light);
  opacity: 0.45;
  pointer-events: none;
}
.v2-hero-deco svg {
  width: 100%;
  height: 100%;
}
.v2-hero-deco-tl {
  width: clamp(140px, 16vw, 220px);
  height: clamp(140px, 16vw, 220px);
  top: 12%;
  left: 6%;
}
.v2-hero-deco-br {
  width: clamp(120px, 14vw, 180px);
  height: clamp(120px, 14vw, 180px);
  bottom: 12%;
  right: 7%;
}
.v2-hero-deco-tr-dot {
  width: clamp(50px, 6vw, 80px);
  height: clamp(50px, 6vw, 80px);
  top: 18%;
  right: 12%;
  opacity: 0.35;
}
.v2-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
}
.v2-hero-eyebrow {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.32em;
  color: var(--ink-light);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}
.v2-hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.1em;
  margin-bottom: 2.75rem;
}
.v2-hero-heading span {
  display: block;
}
.v2-hero-heading em {
  font-style: normal;
  position: relative;
  padding: 0 0.05em;
  color: var(--ink);
}
.v2-hero-heading em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 1px;
  background: var(--ink-light);
}
.v2-hero-sub-jp {
  font-size: 0.98rem;
  color: var(--ink-light);
  line-height: 2.05;
  margin-bottom: 1.1rem;
  letter-spacing: 0.05em;
}
.v2-hero-sub-en {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 0.88rem;
  color: var(--ink-faint);
  line-height: 1.95;
  margin-bottom: 3rem;
  letter-spacing: 0.08em;
  font-style: italic;
}
.v2-hero-actions {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.95rem 2.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--font-sans);
}
.v2-btn:hover {
  background: var(--ink-light);
  border-color: var(--ink-light);
}
.v2-btn-outline {
  background: transparent;
  color: var(--ink);
}
.v2-btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
@media (max-width: 720px) {
  .v2-hero {
    min-height: 88vh;
    padding-top: 110px;
  }
  .v2-hero-deco-tl { top: 10%; left: 4%; opacity: 0.35; }
  .v2-hero-deco-br { bottom: 8%; right: 4%; opacity: 0.35; }
  .v2-hero-deco-tr-dot { display: none; }
  .v2-hero-heading { line-height: 1.7; letter-spacing: 0.06em; }
  .v2-btn { padding: 0.85rem 1.8rem; font-size: 0.8rem; }
}

/* v2 セクション見出し：英字ラベル下のアクセントライン＋字間広め */
.section-label {
  font-size: 0.86rem !important;
  letter-spacing: 0.3em !important;
  display: inline-block;
  padding-bottom: 0.85rem;
  position: relative;
  margin: 0 auto 1.2rem;
  color: var(--ink-light) !important;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 1px;
  background: var(--teal-deep);
  opacity: 0.9;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem) !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 1rem !important;
}
.section-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem) !important;
  letter-spacing: 0.12em !important;
}

/* v2 追従CTA：LINEボタン追加 */
.floating-cta-line {
  background: #06C755;
  color: #fff;
  border: 1px solid #06C755;
}
.floating-cta-line:hover {
  background: #05B04A;
  border-color: #05B04A;
}
.floating-cta-line svg {
  width: 18px;
  height: 18px;
}

/* v2 お知らせ：カードグリッド型（施工事例風） */
.news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1080px;
  margin: 2.5rem auto 0;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.22);
}
.news-card-thumb {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--warm-gray) 0%, var(--ivory) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.news-card-thumb::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  opacity: 0.4;
}
.news-card-thumb-mark {
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  z-index: 1;
}
.news-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.news-card-date {
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}
.news-card-title {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* v2 マーカー（ロゴ右の識別バッジ） */
.v2-marker {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.18rem 0.55rem;
  font-family: 'Cormorant Garamond', var(--font-serif);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--ink-light);
  background: var(--warm-gray);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  text-transform: uppercase;
  vertical-align: middle;
  align-self: center;
}

/* v2 フッター：右上に円形シンボル */
.footer {
  position: relative;
}
.footer::before {
  content: '医';
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
@media (max-width: 720px) {
  .footer::before { top: 1.2rem; right: 1.2rem; width: 44px; height: 44px; font-size: 1.2rem; }
}
/* 問診票ダウンロードブロック（外来診療：はじめての方へ） */
.monshin-block {
  max-width: 760px;
  margin: 0 auto 3rem;
}
.monshin-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem 2rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--teal-deep);
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.12);
}
.monshin-icon {
  width: 56px;
  height: 56px;
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.5), rgba(232,218,190,0.2)),
    url("img/texture/washi-paper.webp") center / 160px 160px;
  border: 1px solid color-mix(in srgb, var(--teal-deep) 18%, var(--washi-3));
  box-shadow: 0 1px 0 rgba(255,255,255,0.68) inset, 0 8px 18px -17px rgba(43,40,35,0.45);
}
.monshin-icon svg {
  width: 56%;
  height: 56%;
}
.monshin-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.06em;
  line-height: 1.75;
  text-wrap: balance;
  margin-bottom: 0.6rem;
}
.monshin-body p {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.monshin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
@media (max-width: 640px) {
  .monshin-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }
  .monshin-body {
    min-width: 0;
    width: 100%;
  }
  .monshin-btn {
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    white-space: normal;
  }
  .monshin-icon { margin: 0 auto; width: 44px; height: 44px; }
  .monshin-title {
    font-size: 1.04rem;
    letter-spacing: 0.03em;
  }
}

/* =========================================================================
   SUBPAGE — 外来・訪問など下層ページ（index トンマナ統一）
   ========================================================================= */
body.subpage .nav-links a[aria-current="page"] { color: var(--accent-ink); }
body.subpage .nav-links a[aria-current="page"]::after { width: 100%; }
body.subpage .nav-trigger[aria-current="page"] { color: var(--accent-ink); }
body.subpage .nav-trigger[aria-current="page"]::after { width: 100%; }

.area-support-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--sumi-2);
  font-size: 0.9rem;
  line-height: 1.9;
}

body.subpage .page-hero {
  padding: calc(72px + 2.5rem) 0 clamp(3rem, 6vw, 4rem);
  background: transparent;
  border-bottom: 1px solid var(--hairline);
  overflow: visible;
}
body.subpage .page-hero-inner,
body.subpage .page-section-inner {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}
body.subpage .page-hero-inner {
  text-align: center;
}
body.subpage .page-hero-inner .breadcrumb {
  text-align: left;
}
body.subpage .page-hero-label {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.42em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.15rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;
  width: 100%;
}
body.subpage .page-hero-label::before,
body.subpage .page-hero-label::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
body.subpage .page-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  color: var(--sumi);
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.35rem;
}
body.subpage .page-hero-title em {
  font-style: normal;
  color: var(--accent-deep);
}
body.subpage .page-hero-sub {
  color: var(--sumi-2);
  line-height: 1.95;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
}
body.subpage .breadcrumb {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 1.5rem;
  width: 100%;
  font-size: 0.78rem;
  color: var(--sumi-3);
}
body.subpage .breadcrumb a { color: var(--sumi-2); }
body.subpage .breadcrumb a:hover { color: var(--accent-ink); }
body.subpage .breadcrumb .current { color: var(--sumi); }

body.subpage .page-section {
  padding: clamp(72px, 9vw, 120px) 0;
  background: transparent;
}
body.subpage .page-section.alt {
  background: color-mix(in srgb, var(--washi-cream-color) 16%, transparent);
}
body.subpage .page-section.tob-alt {
  background: color-mix(in srgb, var(--accent-wash) 12%, transparent);
}
body.subpage .page-section.philo-filter {
  background: var(--philosophy-filter);
}
body.subpage .page-section.warm {
  background: color-mix(in srgb, var(--washi-cream-color) 22%, transparent);
}

/* スタッフ背景モチーフ：診療案内・医療機関向け・トップ以外の下層ページに限定 */
body.subpage.page-philosophy {
  /* 意図: 理念「今を、つみ重ねる」＝成長。樹冠のある一本の木(tree-g)を
     セクション下端に根付かせ、枝が見出しへ伸びる。後半「約束」の木へ連続。
     ※箱のw:h≒720:917にして contain で隙間なく＝下端に接地して見える。 */
  --staff-hero-motif: none;
  --staff-section-motif: url("img/motif/tree-g.png");
  --philosophy-why-right-motif: url("img/motif/branch-g.png");
  --staff-hero-left: auto;
  --staff-hero-right: clamp(-74px, -4vw, -32px);
  --staff-hero-top: auto;
  --staff-hero-bottom: -50px;
  --staff-hero-w: clamp(170px, 20vw, 300px);
  --staff-hero-h: clamp(170px, 20vw, 300px);
  --staff-hero-opacity: 0;
  --staff-hero-transform: rotate(-2deg);
  --staff-section-left: clamp(-36px, -1.8vw, -10px);
  --staff-section-right: auto;
  --staff-section-top: auto;
  --staff-section-bottom: 0px;
  --staff-section-w: clamp(250px, 29vw, 430px);
  --staff-section-h: clamp(318px, 37vw, 548px);
  --staff-section-opacity: 0.32;
  --staff-section-transform: none;
}
body.subpage.page-team {
  --staff-hero-motif: none;
  --staff-section-motif: url("img/motif/staff_img010_line.png");
  --team-profile-motif: url("img/motif/tree-img010_line.png");
  --staff-hero-right: clamp(-82px, -4vw, -36px);
  --staff-hero-bottom: -94px;
  --staff-hero-opacity: 0;
  --staff-section-left: clamp(-150px, -8vw, -64px);
  --staff-section-right: auto;
  --staff-section-top: auto;
  --staff-section-bottom: -116px;
  --staff-section-w: clamp(310px, 38vw, 560px);
  --staff-section-h: clamp(270px, 34vw, 500px);
  --staff-section-opacity: 0.32;
  --staff-section-transform: rotate(-2deg);
}
body.subpage.page-area {
  --staff-hero-motif: none;
  --staff-section-motif: none;
  --staff-hero-left: clamp(-96px, -5vw, -38px);
  --staff-hero-right: auto;
  --staff-hero-bottom: -92px;
  --staff-hero-opacity: 0;
  --staff-section-right: clamp(-142px, -8vw, -62px);
  --staff-section-bottom: -112px;
  --staff-section-w: clamp(200px, 24vw, 340px);
  --staff-section-h: clamp(250px, 30vw, 440px);
  --staff-section-opacity: 0;
}
body.subpage.page-access {
  /* accessはテーブル背後の木で固有化し、recruitの街並みとの重複を避ける。 */
  --staff-hero-motif: none;
  --staff-section-motif: url("img/motif/tree-g.png");
  --staff-hero-opacity: 0;
  --staff-section-left: auto;
  --staff-section-right: clamp(-30px, -1.6vw, -8px);
  --staff-section-top: 1.5rem;
  --staff-section-bottom: auto;
  --staff-section-w: clamp(180px, 21vw, 320px);
  --staff-section-h: clamp(230px, 27vw, 408px);
  --staff-section-opacity: 0.3;
  --staff-section-transform: scaleX(-1);
}
body.subpage.page-recruit {
  --staff-hero-motif: none;
  --staff-section-motif: url("img/motif/staff_img007_line.png");
  --staff-hero-right: clamp(-66px, -4vw, -28px);
  --staff-hero-top: 1.2rem;
  --staff-hero-bottom: auto;
  --staff-hero-w: clamp(210px, 26vw, 390px);
  --staff-hero-h: clamp(260px, 32vw, 500px);
  --staff-hero-opacity: 0;
  --staff-hero-transform: rotate(2deg);
  --staff-section-right: clamp(-124px, -7vw, -56px);
  --staff-section-bottom: -104px;
  --staff-section-w: clamp(320px, 40vw, 560px);
  --staff-section-h: clamp(180px, 24vw, 320px);
  --staff-section-opacity: 0.2;
}
body.subpage.page-contact {
  --staff-hero-motif: url("img/motif/staff_img007_line.png");
  --staff-section-motif: url("img/motif/staff_img001_line.png");
  --staff-hero-left: clamp(-130px, -7vw, -54px);
  --staff-hero-right: auto;
  --staff-hero-w: clamp(320px, 42vw, 580px);
  --staff-hero-h: clamp(190px, 26vw, 360px);
  --staff-hero-bottom: -42px;
  --staff-hero-opacity: 0.32;
  --staff-section-right: clamp(-150px, -8vw, -64px);
  --staff-section-bottom: -120px;
  --staff-section-opacity: 0.3;
}
body.subpage.page-blog {
  /* ブログは背景画像なし（線画モチーフOFF） */
  --staff-hero-motif: none;
  --staff-section-motif: none;
  --staff-hero-opacity: 0;
  --staff-section-opacity: 0;
}
body.subpage.page-privacy {
  /* 意図: 規約ページ。静粛に。意味のない人物は置かず、footer-hedgeの接地のみ。 */
  --staff-hero-motif: none;
  --staff-section-motif: none;
  --staff-hero-opacity: 0;
  --staff-section-opacity: 0;
}
body.subpage.page-facility-standards {
  /* 意図: 公的文書らしく静かに。意味のない人物は置かず、footer-hedgeの接地のみ。 */
  --staff-hero-motif: none;
  --staff-section-motif: none;
  --staff-hero-opacity: 0;
  --staff-section-opacity: 0;
}
body.subpage.page-parking {
  /* 意図: 駐車場＝来院先の近隣。人物ではなく街並みを下端の水平線で接地（後述の::after）。 */
  --staff-hero-motif: none;
  --staff-section-motif: none;
  --staff-hero-opacity: 0;
  --staff-section-opacity: 0;
}

body.subpage.page-philosophy {
  --next-step-motif: url("img/motif/staff_img007_line.png");
}

body.subpage .page-hero-inner,
body.subpage .page-section-inner {
  position: relative;
  z-index: 2;
}

body.subpage.page-philosophy .page-hero,
body.subpage.page-team .page-hero,
body.subpage.page-area .page-hero,
body.subpage.page-access .page-hero,
body.subpage.page-recruit .page-hero,
body.subpage.page-contact .page-hero,
body.subpage.page-blog .page-hero,
body.subpage.page-privacy .page-hero,
body.subpage.page-facility-standards .page-hero,
body.subpage.page-parking .page-hero,
body.subpage.page-philosophy .page-hero + .page-section,
body.subpage.page-philosophy .philosophy-how,
body.subpage.page-philosophy .philosophy-highlight + .page-section,
body.subpage.page-team .page-hero + .page-section,
body.subpage.page-team .page-section.alt.philo-filter,
body.subpage.page-area .page-section.philo-filter,
body.subpage.page-access .page-section.alt.philo-filter,
body.subpage.page-recruit .page-section.philo-filter,
body.subpage.page-contact .page-section.philo-filter,
body.subpage.page-blog .page-section.philo-filter,
body.subpage.page-privacy .page-section.philo-filter,
body.subpage.page-facility-standards .page-section.alt.philo-filter,
body.subpage.page-parking .page-section.alt.philo-filter {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.subpage.page-team .page-hero + .page-section::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: auto;
  right: clamp(126px, 13vw, 190px);
  bottom: -206px;
  width: clamp(270px, 30vw, 430px);
  height: clamp(350px, 41vw, 590px);
  background: var(--team-profile-motif) center / contain no-repeat;
  opacity: 0.3;
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
}

body.subpage.page-team .page-section.alt.philo-filter::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: clamp(10px, 4vw, 58px);
  right: clamp(-88px, -4vw, -36px);
  width: clamp(190px, 20vw, 300px);
  aspect-ratio: 640 / 150;
  background: url(img/footprint/F_walking_trail.svg) center / contain no-repeat;
  opacity: 0.42;
  filter: brightness(0.74) contrast(1.18);
  mix-blend-mode: multiply;
  transform: rotate(302deg) scaleX(-1);
  transform-origin: center;
}

body.subpage.page-philosophy .philosophy-highlight + .page-section .cta-block {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.subpage.page-philosophy .philosophy-highlight + .page-section .cta-block::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  right: clamp(-118px, -6vw, -48px);
  bottom: -126px;
  width: clamp(330px, 42vw, 600px);
  height: clamp(250px, 34vw, 450px);
  background: var(--next-step-motif) center / contain no-repeat;
  opacity: 0.24;
  filter: brightness(0) invert(1);
}

body.subpage.page-philosophy .philosophy-highlight + .page-section .cta-block > * {
  position: relative;
  z-index: 1;
}

body.subpage.page-philosophy .philosophy-how {
  padding-bottom: clamp(160px, 21vw, 300px);
}

body.subpage.page-philosophy .philosophy-how::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: max(260px, calc(100vw * 941 / 1672));
  background: url("img/motif/townscape_img002_line.png") center bottom / 100% auto no-repeat;
  opacity: 0.25;
  filter: sepia(0.1) saturate(0.88) brightness(1.02);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, #000 8%, #000 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, #000 8%, #000 100%);
}

body.subpage.page-philosophy .page-hero::before,
body.subpage.page-team .page-hero::before,
body.subpage.page-area .page-hero::before,
body.subpage.page-access .page-hero::before,
body.subpage.page-recruit .page-hero::before,
body.subpage.page-contact .page-hero::before,
body.subpage.page-blog .page-hero::before,
body.subpage.page-privacy .page-hero::before,
body.subpage.page-facility-standards .page-hero::before,
body.subpage.page-parking .page-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: var(--staff-hero-left, auto);
  right: var(--staff-hero-right, clamp(-118px, -6vw, -48px));
  top: var(--staff-hero-top, auto);
  bottom: var(--staff-hero-bottom, -76px);
  width: var(--staff-hero-w, clamp(240px, 30vw, 450px));
  height: var(--staff-hero-h, clamp(270px, 36vw, 560px));
  background: var(--staff-hero-motif) center / contain no-repeat;
  opacity: var(--staff-hero-opacity, 0.32);
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
  transform: var(--staff-hero-transform, none);
}

body.subpage.page-philosophy .page-hero + .page-section::before,
body.subpage.page-team .page-section.alt.philo-filter::before,
body.subpage.page-area .page-section.philo-filter::before,
body.subpage.page-access .page-section.alt.philo-filter::before,
body.subpage.page-recruit .page-section.philo-filter::before,
body.subpage.page-contact .page-section.philo-filter::before,
body.subpage.page-blog .page-section.philo-filter::before,
body.subpage.page-privacy .page-section.philo-filter::before,
body.subpage.page-facility-standards .page-section.alt.philo-filter::before,
body.subpage.page-parking .page-section.alt.philo-filter::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: var(--staff-section-left, auto);
  right: var(--staff-section-right, clamp(-110px, -6vw, -48px));
  top: var(--staff-section-top, auto);
  bottom: var(--staff-section-bottom, -70px);
  width: var(--staff-section-w, clamp(220px, 28vw, 400px));
  height: var(--staff-section-h, clamp(250px, 34vw, 500px));
  background: var(--staff-section-motif) center / contain no-repeat;
  opacity: var(--staff-section-opacity, 0.18);
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
  transform: var(--staff-section-transform, none);
}

body.subpage.page-philosophy .page-hero + .page-section::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  /* 未来＝芽吹き：右上に小さな花枝。左下の木(今)と対角で「今→未来」を完成 */
  right: clamp(-26px, -1.6vw, -10px);
  top: 30%;
  width: clamp(120px, 14vw, 200px);
  height: clamp(140px, 16vw, 230px);
  background: var(--philosophy-why-right-motif) center / contain no-repeat;
  opacity: 0.3;
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
  transform: translateY(-44%) rotate(8deg);
}

body.subpage.page-philosophy .page-hero + .page-section[data-motif-reveal]::before {
  opacity: 0;
  transform: translateY(44px) rotate(-2deg);
  transition:
    opacity 1180ms cubic-bezier(.2,.72,.2,1),
    transform 1180ms cubic-bezier(.2,.72,.2,1);
  will-change: opacity, transform;
}
body.subpage.page-philosophy .page-hero + .page-section[data-motif-reveal]::after {
  opacity: 0;
  transform: translateY(calc(-44% + 44px)) rotate(2deg);
  transition:
    opacity 1180ms cubic-bezier(.2,.72,.2,1) 140ms,
    transform 1180ms cubic-bezier(.2,.72,.2,1) 140ms;
  will-change: opacity, transform;
}
body.subpage.page-philosophy .page-hero + .page-section[data-motif-reveal].is-motif-visible::before {
  opacity: var(--staff-section-opacity, 0.18);
  transform: var(--staff-section-transform, none);
}
body.subpage.page-philosophy .page-hero + .page-section[data-motif-reveal].is-motif-visible::after {
  opacity: 0.3;
  transform: translateY(-44%) rotate(8deg);
}

/* =========================================================================
   街並みの水平線バンド（parking）
   意図: 来院先の「近隣」を、セクション下端の街並み線画で接地させる。
   人物線画はOFF（page-parking ブロック参照）にして、これを主役にする。
   townscape画像は 1672x941。下端から立ち上げ、上をグラデで溶かす。
   ※accessは recruit との街並み重複を避け「table背後の木」に変更（page-access参照）。
   ========================================================================= */
body.subpage.page-parking .page-section.alt.philo-filter {
  padding-bottom: clamp(130px, 17vw, 250px);
}
body.subpage.page-parking .page-section.alt.philo-filter::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
  height: max(210px, calc(100vw * 941 / 1672));
  opacity: 0.3;
  filter: sepia(0.1) saturate(0.88) brightness(1.02);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 16%, #000 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000 16%, #000 100%);
  background: url("img/motif/townscape_img002_line.png") center bottom / 100% auto no-repeat;
}

@media (max-width: 760px) {
  body.subpage.page-philosophy .page-hero::before,
  body.subpage.page-team .page-hero::before,
  body.subpage.page-area .page-hero::before,
  body.subpage.page-access .page-hero::before,
  body.subpage.page-recruit .page-hero::before,
  body.subpage.page-contact .page-hero::before,
  body.subpage.page-blog .page-hero::before,
  body.subpage.page-privacy .page-hero::before,
  body.subpage.page-facility-standards .page-hero::before,
  body.subpage.page-parking .page-hero::before {
    left: auto;
    right: -92px;
    top: auto;
    bottom: -72px;
    width: 220px;
    height: 280px;
    opacity: 0.26;
    transform: none;
  }

  body.subpage.page-philosophy .page-hero + .page-section::before,
  body.subpage.page-team .page-section.alt.philo-filter::before,
  body.subpage.page-area .page-section.philo-filter::before,
  body.subpage.page-access .page-section.alt.philo-filter::before,
  body.subpage.page-recruit .page-section.philo-filter::before,
  body.subpage.page-contact .page-section.philo-filter::before,
  body.subpage.page-blog .page-section.philo-filter::before,
  body.subpage.page-privacy .page-section.philo-filter::before,
  body.subpage.page-facility-standards .page-section.alt.philo-filter::before,
  body.subpage.page-parking .page-section.alt.philo-filter::before {
    left: auto;
    right: -98px;
    top: auto;
    bottom: -78px;
    width: 210px;
    height: 270px;
    opacity: 0.26;
    transform: none;
  }

  body.subpage.page-team .page-hero + .page-section::before {
    left: auto;
    right: -100px;
    bottom: -142px;
    width: 230px;
    height: 310px;
    opacity: 0.26;
  }

  body.subpage.page-team .page-section.alt.philo-filter::before {
    left: -118px;
    right: auto;
    bottom: -88px;
    width: 240px;
    height: 240px;
    opacity: 0.2;
  }

  body.subpage.page-team .page-section.alt.philo-filter::after {
    top: 22px;
    right: -104px;
    width: 230px;
    opacity: 0.32;
    transform: rotate(302deg) scaleX(-1);
  }
}

@media (max-width: 760px) {
  body.subpage.page-philosophy .page-hero::before {
    left: auto;
    right: -76px;
    top: auto;
    bottom: -58px;
    width: 190px;
    height: 190px;
    opacity: 0.18;
  }

  body.subpage.page-philosophy .page-hero + .page-section::before {
    left: -108px;
    right: auto;
    top: auto;
    bottom: -72px;
    width: 230px;
    height: 300px;
    opacity: 0.14;
  }

  body.subpage.page-philosophy .page-hero + .page-section::after {
    right: -92px;
    top: auto;
    bottom: -118px;
    width: 240px;
    height: 300px;
    opacity: 0.2;
    transform: rotate(2deg);
  }

  body.subpage.page-philosophy .philosophy-highlight + .page-section .cta-block::before {
    right: -118px;
    bottom: -106px;
    width: 280px;
    height: 220px;
    opacity: 0.18;
  }
}

@media (max-width: 760px) {
  body.subpage.page-philosophy .page-hero + .page-section[data-motif-reveal]::before {
    opacity: 0;
    transform: translateY(34px);
  }
  body.subpage.page-philosophy .page-hero + .page-section[data-motif-reveal]::after {
    opacity: 0;
    transform: translateY(34px) rotate(2deg);
  }
  body.subpage.page-philosophy .page-hero + .page-section[data-motif-reveal].is-motif-visible::before {
    opacity: 0.14;
    transform: none;
  }
  body.subpage.page-philosophy .page-hero + .page-section[data-motif-reveal].is-motif-visible::after {
    opacity: 0.2;
    transform: rotate(2deg);
  }
}

body.subpage .section-label {
  font-family: var(--font-en);
  font-size: 0.92rem;
  letter-spacing: 0.42em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  padding-bottom: 0;
  position: static;
}
body.subpage .section-label::before,
body.subpage .section-label::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
  position: static;
  transform: none;
}
body.subpage .section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  color: var(--sumi);
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-align: center;
}
body.subpage .section-lead {
  color: var(--sumi-2);
  line-height: 1.95;
}
body.subpage .lead-block p { color: var(--sumi-2); }

body.subpage .info-card {
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}
body.subpage .info-card:hover {
  border-color: color-mix(in srgb, var(--accent-olive) 55%, var(--washi-3));
  transform: translateY(-2px);
}

/* 連携ページの強みカードは本文幅を確保し、語尾だけの折り返しを防ぐ */
body.page-partnership .page-section.philo-filter .info-card {
  padding-inline: 18px;
}
body.page-partnership .page-section.philo-filter .info-card:nth-child(4) {
  padding-inline: 10px;
}
body.subpage .info-card--featured {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--washi-3));
  background: var(--paper-card);
}
body.subpage .info-card--featured::before { background: var(--accent-deep); }
body.subpage .info-card--featured .info-card-title { color: var(--accent-deep); }
body.subpage .info-card-icon { color: var(--accent); }

body.subpage .strength-card {
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}
body.subpage .strength-card::before { background: var(--accent); }
body.subpage .strength-card:hover {
  border-color: color-mix(in srgb, var(--accent-olive) 55%, var(--washi-3));
  box-shadow: var(--shadow-card);
}
body.subpage .strength-num,
body.subpage .strength-icon { color: var(--accent); }

body.subpage .btn-primary {
  border-radius: 999px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
body.subpage .btn-outline {
  border-radius: 999px;
  border-color: var(--hairline-2);
  color: var(--accent-ink);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
body.subpage .btn-outline:hover {
  background: color-mix(in srgb, var(--washi-cream-color) 40%, transparent);
  border-color: var(--accent);
  color: var(--accent-deep);
}

body.subpage .faq-tab.active,
body.subpage .faq-tab:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}
body.subpage .faq-item {
  background: var(--paper-card);
  border-color: var(--hairline);
  border-radius: 4px;
}
body.subpage .faq-q::before { color: var(--accent); }
body.subpage .faq-q::after {
  border-color: var(--accent);
}

body.subpage .cta-block {
  background: var(--accent-deep);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}
body.subpage .cta-block .cta-label {
  font-family: var(--font-en);
  letter-spacing: 0.42em;
}
body.subpage .cta-block .cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
}
body.subpage .cta-block .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
body.subpage .cta-block .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

body.subpage .data-table thead th {
  background: color-mix(in srgb, var(--accent-deep) 92%, transparent);
  color: var(--on-accent);
}
body.subpage .data-table tbody th {
  background: color-mix(in srgb, var(--washi-cream-color) 55%, transparent);
  color: var(--sumi);
}

body.subpage .doctor-feature-label,
body.subpage .doctor-feature-name { color: var(--accent-deep); }
body.subpage .heading-mark { background: var(--accent); }

body.subpage .step-num {
  background: var(--accent-deep);
  color: var(--on-accent);
  border: 1px solid color-mix(in srgb, var(--accent-pale) 55%, transparent);
}
body.subpage .step-title { font-family: var(--font-display); color: var(--sumi); }

body.subpage .monshin-card {
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  box-shadow: var(--shadow-card);
}

body.subpage .tag-chip {
  background: color-mix(in srgb, var(--washi-cream-color) 55%, transparent);
  border-color: var(--hairline);
  color: var(--sumi-2);
}
body.subpage .sub-heading {
  font-family: var(--font-display);
  color: var(--sumi);
}
body.subpage .disease-cat-name,
body.subpage .services-col-name { color: var(--accent-deep); }
body.subpage .check-list li::before { color: var(--accent); }
body.subpage .compare-col {
  background: var(--paper-card);
  border-color: var(--washi-3);
  box-shadow: var(--shadow-card);
}
body.subpage .compare-col-title { color: var(--accent-deep); }
body.subpage .doctor-card {
  background: var(--paper-card);
  border-color: var(--washi-3);
}
body.subpage .doctor-role { color: var(--accent); }
body.subpage .info-card-num { color: var(--accent); }
body.subpage .step {
  background: var(--paper-card);
  border-color: var(--washi-3);
}
body.subpage .strength-title { font-family: var(--font-display); color: var(--sumi); }

body.subpage .area-map {
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  max-width: 760px;
  margin-inline: auto;
}
body.subpage .area-group-title {
  font-family: var(--font-display);
  color: var(--accent-deep);
  border-bottom-color: var(--hairline);
}
body.subpage .area-group ul li { color: var(--sumi-2); }

body.subpage .philosophy-highlight {
  background: var(--philosophy-filter);
}
body.subpage.page-philosophy .philosophy-highlight[data-branch-draw] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
body.subpage.page-philosophy .philosophy-highlight-tree {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  right: clamp(-82px, -4vw, -28px);
  bottom: clamp(-126px, -8vw, -66px);
  width: clamp(230px, 29vw, 410px);
  aspect-ratio: 1086 / 1448;
  background: url(img/motif/tree-img008_line.png) center / contain no-repeat;
  opacity: 0;
  clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%);
  filter: sepia(8%) saturate(88%);
  mix-blend-mode: multiply;
  transform: rotateY(180deg) rotate(7deg) translate(16px, 18px);
  transform-style: preserve-3d;
}
body.subpage.page-philosophy .philosophy-highlight[data-branch-draw]::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: clamp(-128px, -7vw, -58px);
  bottom: clamp(-180px, -12vw, -104px);
  width: clamp(360px, 44vw, 620px);
  aspect-ratio: 671 / 741;
  background: url(img/motif/branch-g.png) center / contain no-repeat;
  opacity: 0;
  clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%);
  filter: sepia(10%) saturate(82%);
  mix-blend-mode: multiply;
  transform: rotate(-8deg) translate(-16px, 18px);
}
body.subpage.page-philosophy .philosophy-highlight[data-branch-draw]::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: clamp(42px, 8vw, 150px);
  bottom: clamp(38px, 8vw, 106px);
  width: clamp(160px, 24vw, 340px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(77, 87, 74, 0.42), transparent);
  opacity: 0;
  transform: rotate(-35deg) translateX(-36px);
  transform-origin: left center;
}
body.subpage.page-philosophy .philosophy-highlight[data-branch-draw].is-branch-drawn::before {
  animation: branchSketchDraw 1800ms cubic-bezier(.18,.74,.18,1) 120ms both;
}
body.subpage.page-philosophy .philosophy-highlight[data-branch-draw].is-branch-drawn::after {
  animation: branchSketchSweep 1050ms cubic-bezier(.22,.72,.2,1) 200ms both;
}
body.subpage.page-philosophy .philosophy-highlight[data-branch-draw].is-branch-drawn .philosophy-highlight-tree {
  animation: branchSketchDraw 1800ms cubic-bezier(.18,.74,.18,1) 120ms both;
}

@keyframes branchSketchDraw {
  0% {
    opacity: 0;
    clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%);
  }
  18% {
    opacity: 0.18;
    clip-path: polygon(0 100%, 26% 100%, 16% 80%, 0 92%);
  }
  46% {
    opacity: 0.24;
    clip-path: polygon(0 100%, 60% 100%, 44% 50%, 0 74%);
  }
  72% {
    opacity: 0.28;
    clip-path: polygon(0 100%, 92% 100%, 78% 18%, 0 48%);
  }
  100% {
    opacity: 0.28;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes branchSketchSweep {
  0% {
    opacity: 0;
    transform: rotate(-35deg) translateX(-40px) scaleX(0);
  }
  28% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: rotate(-35deg) translateX(280px) scaleX(1);
  }
}

body.subpage .philosophy-highlight .philo-quote {
  text-align: center;
  margin: 0.5em auto 1.2em;
}
body.subpage .philosophy-highlight .philo-quote .philo-catch {
  margin-bottom: 0.2em;
}

@media (max-width: 760px) {
  body.subpage.page-philosophy .philosophy-highlight-tree {
    right: -72px;
    bottom: -86px;
    width: 220px;
    transform: rotateY(180deg) rotate(7deg) translate(12px, 12px);
  }
  body.subpage.page-philosophy .philosophy-highlight[data-branch-draw]::before {
    left: -142px;
    bottom: -128px;
    width: 360px;
    opacity: 0;
    transform: rotate(-8deg) translate(-12px, 12px);
  }
  body.subpage.page-philosophy .philosophy-highlight[data-branch-draw]::after {
    left: 18px;
    bottom: 72px;
    width: 210px;
  }
  body.subpage.page-philosophy .philosophy-highlight[data-branch-draw].is-branch-drawn::before {
    animation-name: branchSketchDrawMobile;
  }
  body.subpage.page-philosophy .philosophy-highlight[data-branch-draw].is-branch-drawn .philosophy-highlight-tree {
    animation-name: branchSketchDrawMobile;
  }
}

@keyframes branchSketchDrawMobile {
  0% {
    opacity: 0;
    clip-path: polygon(0 100%, 0 100%, 0 100%, 0 100%);
  }
  46% {
    opacity: 0.18;
    clip-path: polygon(0 100%, 62% 100%, 44% 54%, 0 78%);
  }
  100% {
    opacity: 0.18;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.subpage.page-philosophy .philosophy-highlight[data-branch-draw]::before {
    animation: none !important;
    opacity: 0.24;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  body.subpage.page-philosophy .philosophy-highlight[data-branch-draw]::after {
    display: none;
  }
}
body.subpage .related-card {
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  color: var(--sumi);
}
body.subpage .related-card:hover {
  border-color: color-mix(in srgb, var(--accent-olive) 55%, var(--washi-3));
  background: color-mix(in srgb, var(--washi-cream-color) 35%, var(--paper-card));
  transform: translateY(-2px);
}
body.subpage .related-card-title {
  font-family: var(--font-display);
  color: var(--accent-deep);
}

body.subpage .blog-item {
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}
body.subpage .blog-item:hover {
  background: color-mix(in srgb, var(--washi-cream-color) 30%, var(--paper-card));
  border-color: color-mix(in srgb, var(--accent-olive) 45%, var(--washi-3));
}
body.subpage .blog-tag { border-color: var(--accent); color: var(--accent-deep); background: transparent; }
body.subpage .blog-date { color: var(--sumi-3); }
body.subpage .blog-title { color: var(--sumi); }

body.subpage .profile-block { margin-bottom: 3rem; }
body.subpage .profile-photo {
  background: var(--paper-card);
  border-color: var(--washi-3);
  border-radius: 4px;
}
body.subpage .profile-name,
body.subpage .profile-section-label { color: var(--accent-deep); font-family: var(--font-display); }
body.subpage .profile-name-en { color: var(--sumi-3); }
body.subpage .profile-section p,
body.subpage .profile-section li { color: var(--sumi-2); }

body.subpage .policy-content { color: var(--sumi); }
body.subpage .policy-content h3 {
  font-family: var(--font-display);
  color: var(--sumi);
  border-bottom-color: var(--hairline);
}
body.subpage .policy-content p,
body.subpage .policy-content li { color: var(--sumi-2); }

body.subpage .recruit-belief {
  font-family: var(--font-display);
  color: var(--accent-deep);
}

body.subpage .form-block {
  background: var(--paper-card);
  border: 1px solid var(--washi-3);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}
body.subpage .form-label { color: var(--sumi); font-family: var(--font-display); }
body.subpage .form-input,
body.subpage .form-select,
body.subpage .form-textarea {
  background: color-mix(in srgb, var(--washi) 70%, #fff);
  border-color: var(--hairline);
  color: var(--sumi);
}
body.subpage .form-input:focus,
body.subpage .form-select:focus,
body.subpage .form-textarea:focus {
  border-color: var(--accent);
  outline: none;
}
body.subpage .form-radio {
  background: var(--paper-card);
  border-color: var(--washi-3);
}
body.subpage .form-radio:hover,
body.subpage .form-radio.checked {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--washi-cream-color) 35%, var(--paper-card));
}
body.subpage .form-submit {
  background: var(--btn-gradient);
  color: var(--on-olive);
  border-radius: 999px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}
body.subpage .form-submit:hover { background: var(--btn-gradient-hover); }

body.subpage .job-card,
body.subpage .partner-card,
body.subpage .standards-table-wrap {
  background: var(--paper-card);
  border-color: var(--washi-3);
  box-shadow: var(--shadow-card);
}
body.subpage .job-title,
body.subpage .partner-card-title { font-family: var(--font-display); color: var(--accent-deep); }

/* =========================================================================
   READABILITY TUNING — older visitors
   ========================================================================= */
.page-hero-sub,
.section-lead,
.lead-block p {
  font-size: clamp(1.03rem, 0.96rem + 0.28vw, 1.14rem);
  line-height: 2;
  color: var(--sumi-2);
}

.col-item p,
.doctor-body p,
.info-card-desc,
.strength-desc,
.step-desc,
.faq-a,
.policy-content p,
.policy-content li,
.profile-section p,
.profile-section li,
.access-detail-value,
.parking-lead,
.check-list li,
.area-group ul li,
.related-card-title,
.blog-excerpt,
.monshin-body p {
  font-size: 1rem;
  line-height: 1.9;
}

.info-card-title,
.strength-title,
.step-title,
.services-col-name,
.access-name,
.clinic-name {
  font-weight: 600;
}

.info-card-title { font-size: 1.16rem; }
.step-title { font-size: 1.08rem; }
.strength-title { font-size: 1.12rem; }

.info-row dt {
  font-size: 0.94rem;
  color: var(--accent-deep);
}
.info-row dd {
  font-size: 1.04rem;
  color: var(--sumi-2);
}
.info-row dd .tel-num,
.info-row dd .fax-num {
  font-size: 1.45rem;
}

.hours,
.data-table {
  font-size: 1rem;
}
.hours thead th {
  font-size: 0.9rem;
}
.hours tbody th {
  font-size: 0.9rem;
}
.hours tbody td {
  font-size: 1rem;
}
.hours tbody td.appt,
.data-table td.appt {
  font-size: 0.94rem;
}
.hours-sub {
  font-size: 0.78em;
}
.hours-note {
  font-size: 0.96rem;
  color: var(--sumi-2);
}
.data-table th,
.data-table td {
  line-height: 1.75;
}

.btn,
.btn-primary,
.btn-outline,
.form-submit,
.monshin-btn {
  font-size: 1rem;
}

.nav-links a,
.nav-trigger {
  font-size: 0.96rem;
}
.nav-sub a {
  font-size: 0.92rem;
}
.header-cta .tel .num {
  font-size: 1.28rem;
}
.header-cta .tel .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.pill {
  font-size: 0.94rem;
}

.footer-brand .addr,
.fcol a {
  font-size: 0.94rem;
}
.footer-bottom .copy,
.footer-bottom .fnav a {
  font-size: 0.84rem;
}

@media (max-width: 768px) {
  .page-hero-sub,
  .section-lead,
  .lead-block p {
    font-size: 1rem;
    line-height: 1.95;
  }

  .hours {
    min-width: 430px;
    font-size: 0.92rem;
  }
  .hours thead th {
    font-size: 0.84rem;
  }
  .hours tbody th {
    font-size: 0.84rem;
  }
  .hours tbody td {
    font-size: 0.95rem;
  }
  .hours tbody td.appt {
    font-size: 0.86rem;
  }

  .data-table {
    font-size: 0.96rem;
  }
}
/* =========================================================================
   BLOG (WP投稿) — 一覧ページ送り・記事本文・前後記事ナビ
   ========================================================================= */
a.faq-tab { text-decoration: none; }

.blog-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 3rem; }
.blog-pagination .page-numbers {
  min-width: 42px; padding: 9px 13px; text-align: center;
  border: 1px solid var(--hairline-2); border-radius: 6px;
  color: var(--sumi-2); text-decoration: none; font-size: 14px; line-height: 1;
  background: rgba(255,255,255,0.5);
}
.blog-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.blog-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.blog-pagination .page-numbers.dots { border: none; background: none; }

.blog-empty { text-align: center; color: var(--sumi-3); padding: 3rem 0; }

/* 記事詳細ヘッダの日付・タグ（page-hero-sub 内） */
.page-hero-sub .blog-date { margin-right: 12px; }

.entry-thumbnail { max-width: 720px; margin: 0 auto 2.5rem; }
.entry-thumbnail img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* 記事本文タイポグラフィ（50代以上向けに行間・サイズ広め） */
.entry-content { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 2.1; color: var(--sumi-2); }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  font-family: "Shippori Mincho", serif; font-size: 1.45rem; color: var(--sumi);
  margin-top: 2.6em; padding-bottom: 0.5em; border-bottom: 1px solid var(--hairline-2); line-height: 1.6;
}
.entry-content h3 {
  font-family: "Shippori Mincho", serif; font-size: 1.2rem; color: var(--sumi);
  margin-top: 2.2em; padding-left: 0.75em; border-left: 3px solid var(--accent); line-height: 1.6;
}
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.6em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content blockquote {
  margin: 1.6em 0; padding: 1em 1.4em; border-left: 3px solid var(--accent-pale);
  background: rgba(255,255,255,0.55); border-radius: 0 8px 8px 0; color: var(--sumi-2);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--hairline-2); text-align: left; }
.entry-content th { background: rgba(255,255,255,0.6); font-weight: 600; }

/* 前後記事ナビ */
.post-nav { display: flex; justify-content: space-between; gap: 16px; max-width: 720px; margin: 3.5rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--hairline); }
.post-nav-prev, .post-nav-next { flex: 1; min-width: 0; }
.post-nav-next { text-align: right; }
.post-nav a { display: inline-block; text-decoration: none; color: var(--sumi-2); max-width: 100%; }
.post-nav a:hover .post-nav-ttl { color: var(--accent); }
.post-nav-dir { display: block; font-size: 12px; color: var(--sumi-3); letter-spacing: 0.06em; margin-bottom: 4px; }
.post-nav-ttl { display: block; font-size: 14px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; }
}
/* =========================================================================
   CONTACT FORM 7 — テーマ調和スタイル＋確認画面
   ========================================================================= */
.wpcf7 .form-radios .wpcf7-radio { display: grid; gap: 12px; }
.wpcf7 .form-radios .wpcf7-list-item { margin: 0; display: block; }
.wpcf7 .form-radios .wpcf7-list-item label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 18px; border: 1px solid var(--hairline-2); border-radius: 8px;
  background: rgba(255,255,255,0.6); transition: border-color .2s, background .2s;
}
.wpcf7 .form-radios .wpcf7-list-item label:hover { border-color: var(--accent); }
.wpcf7 .form-radios .wpcf7-list-item input:checked + .wpcf7-list-item-label { color: var(--accent-ink); font-weight: 600; }
.wpcf7 .form-radios .wpcf7-list-item:has(input:checked) label { border-color: var(--accent); background: var(--accent-wash); }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 0; }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
}
.wpcf7 .wpcf7-not-valid-tip { color: #b3261e; font-size: 12px; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { border: 1px solid #f0dcae; background: #fff4dc; color: #8a5a00; border-radius: 8px; padding: 12px 16px; margin: 1.5rem 0 0; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #b7e1c0; background: #e9f7ee; color: #1a7f37; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #f5c6c0; background: #fdecea; color: #b3261e; }
.wpcf7-spinner { display: block; margin: 8px auto 0; }
.cf7-missing .form-input, .cf7-missing .form-select, .cf7-missing .form-textarea { border-color: #b3261e; }
.cf7-missing .form-label { color: #b3261e; }
.form-block--cf7 .wpcf7,
.form-block--cf7 .wpcf7-form { margin: 0; }
.form-block--cf7 .wpcf7-form > .form-group:last-of-type { margin-bottom: 0; }
/*
 * Contact Form 7 が自動挿入する p / br の余白を整理する。
 * ラベルは直後の入力欄と近く、次の項目とは十分に離して
 * 各フィールドのまとまりが視覚的に分かるようにする。
 */
.form-block--cf7 .form-group > p:not(.form-help),
.form-block--cf7 .form-radios > p {
  margin: 0;
}
.form-block--cf7 .form-group > p > .form-label + br {
  display: none;
}
.form-block--cf7 .form-group > p > .wpcf7-form-control-wrap,
.form-block--cf7 .form-radios .wpcf7-form-control-wrap {
  display: block;
}
.form-unavailable {
  max-width: 760px; margin: 0 auto; padding: 18px 20px; text-align: center;
  color: #8a5a00; background: #fff4dc; border: 1px solid #f0dcae; border-radius: 8px;
}
.wpcf7 input[type="file"].form-input {
  height: auto; min-height: 52px; padding: 12px;
  background: rgba(255,255,255,0.72);
}

/* 確認画面 */
.cf7-confirm-box { background: rgba(255,255,255,0.72); border: 1px solid var(--hairline-2); border-radius: 12px; padding: clamp(20px, 3vw, 36px); }
.cf7-confirm-title { font-family: "Shippori Mincho", serif; font-size: 1.3rem; color: var(--sumi); margin: 0 0 0.6em; text-align: center; }
.cf7-confirm-lead { text-align: center; color: var(--sumi-2); margin-bottom: 1.6em; }
.cf7-confirm-table { width: 100%; border-collapse: collapse; }
.cf7-confirm-table th, .cf7-confirm-table td { padding: 12px 14px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; font-size: 15px; }
.cf7-confirm-table th { width: 32%; color: var(--sumi-3); font-weight: 500; }
.cf7-confirm-table td { color: var(--sumi); }
.cf7-confirm-actions { display: flex; gap: 14px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.cf7-confirm-actions .cf7-btn-back { cursor: pointer; }
@media (max-width: 640px) {
  .cf7-confirm-table th, .cf7-confirm-table td { display: block; width: 100%; }
  .cf7-confirm-table th { border-bottom: none; padding-bottom: 2px; }
}
/* =========================================================================
   電話番号の視認性 — 番号表示は読みやすいサンセリフ（欧文セリフをやめる）
   ========================================================================= */
:root {
  --font-tel: "Noto Sans JP", "Hiragino Sans", sans-serif;
}
.header-cta .tel .num,
.footer-brand .addr .tel,
.info-row dd .fax-num,
.tel-num,
.cta-block .cta-tel,
a[href^="tel:"] {
  font-family: var(--font-tel) !important;
  font-variant-numeric: lining-nums;
  font-style: normal;
  letter-spacing: 0.05em;
}
/* 番号のサイズ・太さは周囲に合わせる（旧セリフ用の拡大・太字指定を解除） */
.header-cta .tel .num {
  font-size: 1rem;        /* ナビ(0.92rem)に揃えた控えめサイズ */
  font-weight: 500;
}
.info-row dd .tel-num,
.info-row dd .fax-num {
  font-size: inherit;     /* 周囲のdd(0.95rem)と同じ */
  font-weight: inherit;
  color: inherit;
}
.footer-brand .addr .tel {
  font-size: inherit;     /* 周囲の住所(0.84rem)と同じ */
  font-weight: inherit;
}
.cta-block .cta-tel {
  font-size: 1.1rem;
  font-weight: 400;
}

/* =========================================================================
   2026-07 LINE・Instagram・診療エリア・表示調整
   ========================================================================= */
.hours.hours--fee tbody td {
  font-family: var(--font-tel) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sumi);
}

/* 「今」をこうして支えます：文章量に左右されず3つのボタンを下端で統一 */
body.subpage.page-philosophy .philosophy-how .card-grid {
  align-items: stretch;
}
body.subpage.page-philosophy .philosophy-how .info-card {
  display: flex;
  flex-direction: column;
}
body.subpage.page-philosophy .philosophy-how .info-card > .info-card-icon {
  margin: 0 auto 1rem !important;
}
body.subpage.page-philosophy .philosophy-how .related-cards {
  width: 100%;
  margin-top: auto !important;
  padding-top: 1.5rem;
}
body.subpage.page-philosophy {
  --next-step-motif: url("img/motif/townscape_img005_line.png");
}
body.subpage.page-philosophy .philosophy-highlight + .page-section .cta-block::before {
  right: clamp(-80px, -3vw, -20px);
  bottom: -88px;
  width: clamp(390px, 52vw, 720px);
  height: clamp(250px, 32vw, 440px);
  opacity: 0.21;
  background-position: right bottom;
}

/* 診療エリア：同一の実用図を訪問診療／診療エリアの両ページで共有 */
.area-map.area-map--service {
  min-height: 0;
  padding: clamp(0.65rem, 2vw, 1.25rem);
  border-radius: 16px;
  background: #fbf7ec;
  overflow: hidden;
}
.area-map--service img {
  display: block;
  width: min(100%, 920px);
  height: auto;
}
.area-map.area-map--service.area-map--illustration {
  display: flex;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  background: #f3ecdd;
}
.area-map--service.area-map--illustration img {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.area-map-note {
  margin: 1rem auto 0;
  max-width: 820px;
  text-align: center;
  color: var(--sumi-3);
  font-size: 0.8rem;
  line-height: 1.8;
}

/* Instagramらしいグラデーションを控えめに取り入れた公式アカウント帯 */
.insta.insta-card {
  position: relative;
  padding: 2px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, #f9ce34, #ee2a7b 44%, #6228d7 76%, #3a8dde);
  box-shadow: 0 16px 38px -26px rgba(91, 38, 139, 0.7);
  overflow: hidden;
}
.insta.insta-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.97);
}
.insta.insta-card > * {
  position: relative;
  z-index: 1;
}
.insta.insta-card .ig-l {
  padding: 22px 0 22px 26px;
}
.insta.insta-card .ig-icn {
  width: 52px;
  height: 52px;
  padding: 10px;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(145deg, #f9ce34 0%, #ee2a7b 43%, #6228d7 76%, #3a8dde 100%);
  box-shadow: 0 9px 24px -14px #6228d7;
}
.instagram-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  margin-right: 24px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(110deg, #ee2a7b, #6228d7);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.instagram-follow:hover,
.instagram-follow:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px #6228d7;
}

/* 公式LINE案内・各ページ内QR */
.line-guide {
  background: #f2f8ee;
}
.line-guide-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 230px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: #fff;
  border: 1px solid rgba(6, 199, 85, .22);
  border-radius: 20px;
  box-shadow: 0 22px 50px -38px rgba(18, 101, 52, .5);
}
.line-guide-title {
  margin: .55rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.55;
  letter-spacing: .06em;
}
.line-guide-copy p {
  max-width: 560px;
  color: var(--sumi-2);
  font-size: .92rem;
  line-height: 1.9;
}
.line-guide-button,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.35rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border-radius: 999px;
  background: #06c755 !important;
  color: #fff !important;
  border-color: #06c755 !important;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px -16px #087b38;
}
.line-guide-qr,
.line-card-qr {
  margin: 0;
  text-align: center;
}
.line-guide-qr img,
.line-card-qr img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.line-guide-qr img {
  border-radius: 12px;
  box-shadow: 0 12px 30px -24px rgba(0,0,0,.45);
}
.line-guide-qr figcaption {
  margin-top: .65rem;
  color: var(--sumi-3);
  font-size: .75rem;
}
.line-card-qr {
  width: min(154px, 56%);
  margin: 1rem auto 0;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--hairline-2);
  border-radius: 10px;
}
.line-card-qr--compact {
  width: min(126px, 52%);
}

/* 駐車場スライダー：矢印そのものをボタンの幾何学的な中央へ */
.parking-photo-nav {
  top: 50%;
  margin: 0;
  padding: 0;
  line-height: 0;
  align-items: center;
  justify-content: center;
}
.parking-photo-nav svg {
  margin: auto;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .insta.insta-card {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .insta.insta-card .ig-l {
    padding: 20px 20px 12px;
  }
  .instagram-follow {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
  }
  .line-guide-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .line-guide-copy p { margin-inline: auto; }
  .line-guide-qr {
    width: min(190px, 58vw);
    margin-inline: auto;
  }
  .area-map.area-map--service {
    margin-inline: -0.5rem;
    padding: .3rem;
    border-radius: 10px;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
  }
  .area-map.area-map--service::before {
    content: "← 図は左右にスワイプできます →";
    position: sticky;
    left: .4rem;
    z-index: 2;
    display: block;
    width: max-content;
    margin: .35rem .4rem .55rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(255, 253, 248, .94);
    color: var(--sumi-2);
    font-size: .7rem;
    box-shadow: 0 3px 12px -8px rgba(0,0,0,.45);
  }
  .area-map--service img {
    min-width: 660px;
  }
  .area-map.area-map--service.area-map--illustration {
    margin-inline: 0;
    padding: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  .area-map.area-map--service.area-map--illustration::before {
    content: none;
  }
  .area-map--service.area-map--illustration img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 100%;
    min-width: 0;
    max-width: none;
    transform: translateX(-50%);
  }
  .area-map-note br { display: none; }
  body.subpage.page-philosophy .philosophy-highlight + .page-section .cta-block::before {
    right: -90px;
    bottom: -54px;
    width: 340px;
    height: 210px;
  }
}
/* =========================================================================
   MOBILE HERO — スマホでの見出しはみ出し対策（参照: captures/sp_index.png の見え方）
   ========================================================================= */
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(1.5rem, 6.4vw, 2.1rem);
    line-height: 1.6;
    letter-spacing: 0.07em;
  }
  .hero p.lead {
    font-size: 0.95rem;
    line-height: 2.05;
    max-width: 100%;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .doctor-message-quote {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }
  body.subpage.page-psychiatry .section-title,
  body.subpage.page-specialties .section-title {
    font-size: clamp(1.05rem, 5.7vw, 1.45rem) !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap;
  }
  body.subpage.page-psychiatry .page-hero + .page-section .section-title {
    font-size: clamp(1rem, 5.3vw, 1.35rem) !important;
  }
  body.subpage.page-privacy .page-hero-title {
    font-size: clamp(1.45rem, 7.4vw, 1.8rem);
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  body.subpage.page-team .profile-section li {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-wrap: pretty;
  }
}
@media (max-width: 360px) {
  .sp-break { display: block; }
}
/* カード4枚を2×2で整えるためのモディファイア（例: 精神科「対応可能な状態・疾患」） */
.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .card-grid--two,
  .card-grid--three { grid-template-columns: 1fr; }
}
/* =========================================================================
   RECRUIT — 線画モチーフを実スタッフイラストへ置き換え
   ========================================================================= */
/* 旧線画モチーフは廃止 */
.recruit-positions-motif {
  display: none;
}

/* スタッフ整列（透過水彩イラストを和紙の上に直接並べる） */
.staff-lineup {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(2px, 1.6vw, 20px);
  max-width: 880px;
  margin: clamp(2.2rem, 5vw, 3.5rem) auto 0;
}
.staff-lineup img {
  width: clamp(88px, 17.5%, 170px);
  height: auto;
  display: block;
  opacity: 0.72;
}
/* 両端をわずかに小さく・柔らかく（奥行きと親しみ） */
.staff-lineup img:first-child,
.staff-lineup img:last-child {
  width: clamp(76px, 15%, 148px);
  opacity: 0.64;
}

/* 0716 feedback: 訪問診療の専門領域を主従のある構成に */
.home-care-specialties-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-care-specialties-grid .info-card:nth-child(-n + 2) { grid-column: span 2; }

/* 医療・介護の連携を上下関係が読み取れる図として表示 */
.care-network {
  max-width: 900px;
  margin: 2.5rem auto 0;
  display: grid;
  gap: 1.15rem;
  justify-items: center;
}
.care-network-group { width: 100%; }
.care-network-heading {
  margin-bottom: 0.65rem;
  color: var(--teal-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  text-align: center;
}
.care-network-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.care-network-items span,
.care-network-center {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 1rem;
  border: 1px solid rgba(58, 111, 103, 0.25);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.86);
  color: var(--ink);
  text-align: center;
}
.care-network-center {
  position: relative;
  width: 180px;
  min-height: 180px;
  border-color: rgba(58, 111, 103, 0.45);
  background: rgba(113, 145, 94, 0.2);
  color: var(--teal-deep);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}
.care-network-center::before,
.care-network-center::after {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 1.15rem;
  background: rgba(58, 111, 103, 0.4);
  content: "";
}
.care-network-center::before { bottom: 100%; }
.care-network-center::after { top: 100%; }

/* 施設基準をCMSでも並べ替え・追記しやすい単位に分割 */
.facility-standard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 2.5rem auto 0;
}
.facility-standard-card {
  margin: 0;
  padding: 1.4rem;
  border: 1px solid rgba(58, 111, 103, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}
.facility-standard-card dt {
  color: var(--teal-deep);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
}
.facility-standard-card dd {
  margin: 0.65rem 0 0;
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.85;
}
.facility-standard-subtitle {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  color: var(--teal-deep);
  font-family: var(--font-serif);
  text-align: center;
}
.facility-standard-note,
.position-note {
  color: var(--ink-light);
  font-size: 0.78rem;
  line-height: 1.8;
}
.facility-standard-note {
  max-width: 980px;
  margin: 1.25rem auto 0;
  text-align: right;
}
.position-note { margin-top: 1rem; }

@media (max-width: 768px) {
  .home-care-specialties-grid,
  .facility-standard-list { grid-template-columns: 1fr; }
  .home-care-specialties-grid .info-card:nth-child(-n + 2),
  .facility-standard-subtitle { grid-column: auto; }
  .care-network-items { grid-template-columns: 1fr; }
  .care-network-items span { min-height: 64px; }
  .care-network-center {
    width: 148px;
    min-height: 148px;
  }
  .facility-standard-note { text-align: left; }
}

/* 下層ページ共通：内容量に対して間延びしていたセクション余白を適正化 */
body.subpage .page-section {
  padding-block: clamp(56px, 6.5vw, 88px);
}

/* 下端の線画を使うセクションは、演出を残しながら過剰な余白だけ縮小 */
body.subpage.page-area .area-list-section,
body.subpage.page-recruit .recruit-wanted-section {
  padding-bottom: clamp(80px, 10vw, 140px);
}
body.subpage.page-philosophy .philosophy-how {
  padding-bottom: clamp(110px, 15vw, 200px);
}
body.subpage.page-parking .page-section.alt.philo-filter {
  padding-bottom: clamp(90px, 12vw, 170px);
}

@media (max-width: 768px) {
  body.subpage .page-section {
    padding-block: 48px;
  }
  body.subpage.page-area .area-list-section,
  body.subpage.page-recruit .recruit-wanted-section {
    padding-bottom: 76px;
  }
  body.subpage.page-philosophy .philosophy-how {
    padding-bottom: 100px;
  }
  body.subpage.page-parking .page-section.alt.philo-filter {
    padding-bottom: 84px;
  }
}

/* 診療時間表はPC・SPとも同じ横型表示にする */
@media (max-width: 768px) {
  .hours-wrap:has(> .hours:not(.hours--data)) {
    width: 100%;
    overflow-x: visible;
  }
  .hours:not(.hours--data) {
    display: table;
    width: 100%;
    min-width: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
  }
  .hours:not(.hours--data) thead {
    display: table-header-group;
  }
  .hours:not(.hours--data) tbody {
    display: table-row-group;
  }
  .hours:not(.hours--data) tr {
    display: table-row;
  }
  .hours:not(.hours--data) th,
  .hours:not(.hours--data) td {
    display: table-cell;
    width: auto;
    min-width: 0;
    padding: 8px 2px;
    border: 1px solid var(--hairline-2);
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
  }
  .hours:not(.hours--data) thead th {
    font-size: 12px !important;
    letter-spacing: 0;
  }
  .hours:not(.hours--data) thead th:first-child {
    width: 31%;
    padding: 8px 4px;
    font-size: 12px !important;
    text-align: left;
  }
  .hours:not(.hours--data) thead th:first-child::after {
    content: none;
  }
  .hours:not(.hours--data) tbody th {
    width: 31%;
    padding: 8px 4px;
    font-size: 12px !important;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
  }
  .hours:not(.hours--data) tbody td {
    font-size: 14px !important;
  }
  .hours:not(.hours--data) tbody td.appt {
    font-size: 12px !important;
    letter-spacing: 0;
  }
  .hours:not(.hours--data) .hours-sub {
    margin-top: 2px;
    font-size: 10px !important;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

/* カード・BOX内は余白を生む文節単位の折り返しを解除し、幅を自然に使う */
:where(
  .gcard,
  .entrance-card,
  .feature-card,
  .service-card,
  .partnership-card,
  .info-card,
  .strength-card,
  .step,
  .doctor-card,
  .staff-card,
  .area-group,
  .related-card,
  .case-card,
  .news-card,
  .monshin-card,
  .facility-standard-card,
  .line-guide-card,
  .lead-block,
  .cta-block
) :where(
  h1, h2, h3, h4, p, li, dt, dd,
  .info-card-title, .info-card-desc,
  .strength-title, .strength-desc,
  .step-title, .step-desc,
  .related-card-title
) {
  word-break: normal;
  overflow-wrap: anywhere;
  text-wrap: wrap;
}

/* =========================================================================
   MOBILE VERTICAL RHYTHM — スクロール量を抑えた共通余白
   ========================================================================= */
@media (max-width: 768px) {
  body:not(.subpage) .section {
    padding-block: 44px;
  }
  body:not(.subpage) .intro {
    padding-bottom: 72px;
  }
  body:not(.subpage) .sec-head {
    margin-bottom: 28px;
  }
  body:not(.subpage) .three-col {
    gap: 16px;
    margin-top: 28px;
  }

  body.subpage .page-section {
    padding-block: 36px;
  }
  body.subpage .section-lead,
  body.subpage .lead-block {
    margin-bottom: 28px;
  }

  body.subpage.page-area .area-list-section,
  body.subpage.page-recruit .recruit-wanted-section {
    padding-bottom: 64px;
  }
  body.subpage.page-philosophy .philosophy-how {
    padding-bottom: 76px;
  }
  body.subpage.page-parking .page-section.alt.philo-filter {
    padding-bottom: 68px;
  }

  .guide-grid,
  .card-grid,
  .case-block,
  .strength-grid,
  .steps,
  .related-cards,
  .staff-grid,
  .area-grid,
  .news-grid {
    gap: 16px;
  }

  .col-item,
  .gcard {
    padding: 20px 18px;
  }
  .col-item .icn {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
  }
  .gcard .gicn {
    margin-block: 10px 12px;
  }
  .gcard ul {
    margin-block: 14px 16px;
  }

  .info-card,
  .info-card--featured,
  .strength-card,
  .step,
  .doctor-card,
  .staff-card,
  .area-group,
  .case-card,
  .news-card,
  .monshin-card,
  .facility-standard-card,
  .line-guide-card {
    padding: 20px 18px;
  }
  .cta-block {
    padding: 26px 18px;
  }
}

/* =========================================================================
   MOBILE TYPOGRAPHY — 16pxを基準に、見出しと改行をSP向けに最適化
   ========================================================================= */
@media (max-width: 760px) {
  body {
    font-size: 16px;
    line-break: strict;
  }

  .sp-break {
    display: block;
  }

  /* コンテンツ幅を少し広げ、末尾に1〜3文字だけ残る改行を減らす */
  body.subpage .page-hero-inner,
  body.subpage .page-section-inner {
    width: min(100% - 40px, var(--maxw));
  }

  /* TOP・下層ともH1は約28px。行ごとの長さはブラウザに均等化させる */
  .hero h1,
  body.subpage .page-hero-title,
  body.subpage.page-privacy .page-hero-title {
    max-width: 100%;
    font-size: 28px !important;
    line-height: 1.55 !important;
    letter-spacing: 0.055em !important;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  /* 読ませる文章は16px以上。強調コピーは既存サイズを維持する */
  main p:not(.philo-quote):not(.recruit-belief):not(.pull),
  main li,
  main dt,
  main dd,
  main label,
  main input,
  main select,
  main textarea,
  main button,
  main .doctor-feature-link,
  main .gcard a,
  main .partner-list a,
  main .txt-link,
  main .faq-tab,
  main .area-map-note,
  main .facility-standard-note,
  main .position-note,
  main .hours-note,
  main .hours-sub,
  main .tag-chip,
  main .disease-cat-name,
  main .services-col-name,
  main .info-card-num,
  main .role,
  main .news-item .date,
  main .news-item .ttl,
  main .blog-date,
  main .blog-tag {
    font-size: 16px !important;
  }

  main p:not(.philo-quote):not(.recruit-belief):not(.pull),
  main li,
  main dd,
  main td,
  main label,
  main .page-hero-sub,
  main .section-lead,
  main .lead-block {
    line-break: strict;
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  /* 本文中のインライン指定が親より小さくならないようにする */
  main :where(.page-hero-sub, .section-lead, .form-help, .hours-note) :where(a, span, strong, em) {
    font-size: inherit !important;
  }

  /* PC用の強制改行を外し、SP幅に合わせて自然に折り返す */
  main :where(.page-hero-sub, .section-lead, .lead-block p, .cta-sub) br {
    display: none;
  }
  main :where(.page-hero-sub, .section-lead, .lead-block p, .cta-sub) br.content-break {
    display: block;
  }
  body.page-contact .page-hero-sub br {
    display: block;
  }
  body.page-contact .page-hero-sub > span {
    display: block;
    margin-top: 0.65rem;
  }

  /* BOX内の横幅を確保。単語途中の強制折り返しより余白を優先して詰める */
  body.subpage :where(
    .info-card,
    .strength-card,
    .step,
    .facility-standard-card,
    .case-card,
    .monshin-card,
    .cta-block
  ) {
    padding-right: 18px;
    padding-left: 18px;
  }
  body.subpage .form-block {
    padding: 24px 18px;
  }
  .card-grid--featured {
    grid-template-columns: minmax(0, 1fr);
  }
  .info-card--featured {
    width: 100%;
    min-width: 0;
  }

  /* 連携図：元画像の左右約14%の透明余白だけをSP表示時にトリミング */
  .partnership-network-diagram {
    width: 100%;
    overflow: hidden;
  }
  .partnership-network-diagram img {
    width: 140%;
    max-width: none;
    transform: translateX(-14.2%);
    transform-origin: center;
  }

  :where(
    .gcard,
    .entrance-card,
    .feature-card,
    .service-card,
    .partnership-card,
    .info-card,
    .strength-card,
    .step,
    .doctor-card,
    .staff-card,
    .area-group,
    .related-card,
    .case-card,
    .news-card,
    .monshin-card,
    .facility-standard-card,
    .line-guide-card,
    .lead-block,
    .cta-block
  ) :where(h1, h2, h3, h4, p, li, dt, dd) {
    word-break: normal;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  /* 表は文字を縮めず、必要なものだけ横スクロールで読める幅を確保 */
  main table :where(th, td) {
    font-size: 16px !important;
    line-height: 1.7;
  }
  .hours {
    min-width: 520px;
  }
  body.page-recruit .info-card table {
    table-layout: auto;
  }
  body.page-recruit .info-card table td:first-child {
    width: 38% !important;
  }

  /* iOSの入力時ズームを防ぐため、入力コントロールも16pxを下限にする */
  .form-input,
  .form-select,
  .form-textarea,
  .wpcf7-form-control {
    font-size: 16px !important;
  }

  /* 必須・任意は文章ではなく識別バッジのためコンパクトさを維持 */
  .form-label :where(.required, .optional) {
    font-size: 12px !important;
  }

  /* SPメニューと通常フッターも読みやすいサイズへ */
  .nav-links a,
  .nav-trigger,
  .nav-sub a,
  .footer-brand .addr,
  .fcol a {
    font-size: 16px !important;
  }
  body.subpage .breadcrumb {
    font-size: 14px !important;
  }

  /* 見出し・短いリード文は日本語の文節を優先し、1〜3文字の孤立を防ぐ */
  main :where(
    h1,
    h2,
    h3,
    .page-hero-title,
    .section-title,
    .info-card-title,
    .strength-title,
    .step-title,
    .cta-title
  ) {
    text-wrap: balance;
  }
  main :where(.page-hero-sub, .section-lead) {
    text-wrap: balance;
  }
  /* iOS Safariで本文の行末が早く折り返されるのを防ぎ、横幅を自然に使う */
  main :where(
    p:not(.philo-quote):not(.recruit-belief):not(.pull),
    li,
    dt,
    dd,
    th,
    td,
    .info-card-desc,
    .strength-desc,
    .step-desc,
    .faq-a
  ) {
    text-wrap: wrap stable !important;
    text-wrap-style: stable !important;
  }
  @supports (word-break: auto-phrase) {
    /* 文節判定が使える端末では固定のnowrapを外し、394〜430pxでも行幅を自然に使う */
    main .keep-together {
      white-space: normal;
    }
    main :where(
      h1,
      h2,
      h3,
      .page-hero-title,
      .section-title,
      .info-card-title,
      .strength-title,
      .step-title,
      .cta-title,
      .page-hero-sub,
      .section-lead
    ) {
      word-break: auto-phrase !important;
    }
    main :where(
      p:not(.philo-quote):not(.recruit-belief):not(.pull),
      li,
      dt,
      dd,
      th,
      td,
      .info-card-desc,
      .strength-desc,
      .step-desc,
      .faq-a,
      .access-detail-value,
      .parking-lead,
      .hours-note
    ) {
      word-break: auto-phrase !important;
    }
  }

  /* 縦型診療時間表は見出しをコンパクトにし、文字切れを防ぐ */
  .hours:not(.hours--data) thead th:first-child {
    font-size: 0 !important;
  }
  .hours:not(.hours--data) thead th:first-child::after {
    font-size: 13px !important;
  }
  .hours:not(.hours--data) thead th:not(:first-child) {
    font-size: 14px !important;
  }
  .hours:not(.hours--data) tbody th {
    font-size: 13px !important;
    line-height: 1.35;
  }
  .hours:not(.hours--data) .hours-sub {
    font-size: 11px !important;
    line-height: 1.3;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  body.subpage .page-hero-inner,
  body.subpage .page-section-inner {
    width: min(100% - 32px, var(--maxw));
  }
  .hero h1,
  body.subpage .page-hero-title,
  body.subpage.page-privacy .page-hero-title {
    font-size: 27px !important;
    letter-spacing: 0.04em !important;
  }
}

/* 理念・ビジョン：Why本文を読みやすく広げ、SPは文脈単位で改行する */
body.subpage.page-philosophy br.philosophy-sp-break {
  display: none;
}
@media (min-width: 769px) {
  body.subpage.page-philosophy .page-hero + .page-section .lead-block {
    max-width: 960px;
  }
}
@media (max-width: 768px) {
  body.subpage.page-philosophy br.philosophy-sp-break {
    display: block !important;
  }
}

/* Whyの中心メッセージは本文の流れを保ったまま自然に強調する */
body.subpage.page-philosophy .philosophy-core-message,
body.subpage.page-philosophy .philosophy-core-conclusion {
  display: inline;
  text-align: inherit;
}
body.subpage.page-philosophy .philosophy-core-message {
  margin: 0;
  color: var(--sumi);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}
body.subpage.page-philosophy .philosophy-core-conclusion {
  margin: 0;
}
body.subpage.page-philosophy br.philosophy-copy-break {
  display: block !important;
}
body.subpage.page-philosophy .page-hero + .page-section .lead-block,
body.subpage.page-philosophy .page-hero + .page-section .lead-block p {
  text-align: center;
}
@media (min-width: 769px) {
  body.subpage.page-philosophy .page-hero + .page-section .lead-block {
    max-width: 960px;
  }
  body.subpage.page-philosophy .philosophy-core-message,
  body.subpage.page-philosophy .philosophy-core-conclusion {
    white-space: nowrap;
  }
}

/* 最終上書き：スマホの縦スクロール量を抑える */
@media (max-width: 768px) {
  body:not(.subpage) .section { padding-block: 44px; }
  body:not(.subpage) .intro { padding-bottom: 72px; }
  body:not(.subpage) .sec-head { margin-bottom: 28px; }
  body:not(.subpage) .three-col { gap: 16px; margin-top: 28px; }

  body.subpage .page-section { padding-block: 36px; }
  body.subpage .section-lead,
  body.subpage .lead-block { margin-bottom: 28px; }

  body.subpage.page-area .area-list-section,
  body.subpage.page-recruit .recruit-wanted-section { padding-bottom: 64px; }
  body.subpage.page-philosophy .philosophy-how { padding-bottom: 76px; }
  body.subpage.page-parking .page-section.alt.philo-filter { padding-bottom: 68px; }

  .guide-grid,
  .card-grid,
  .case-block,
  .strength-grid,
  .steps,
  .related-cards,
  .staff-grid,
  .area-grid,
  .news-grid { gap: 16px; }

  .col-item,
  .gcard,
  .info-card,
  .info-card--featured,
  .strength-card,
  .step,
  .doctor-card,
  .staff-card,
  .area-group,
  .case-card,
  .news-card,
  .monshin-card,
  .facility-standard-card,
  .line-guide-card { padding: 20px 18px; }

  .col-item .icn { width: 64px; height: 64px; margin-bottom: 14px; }
  .gcard .gicn { margin-block: 10px 12px; }
  .gcard ul { margin-block: 14px 16px; }
  .cta-block { padding: 26px 18px; }
}

/* SPヒーロー：上部余白を画面外へ逃がし、主題をファーストビュー内へ配置 */
@media (max-width: 767px) {
  .hero-stage picture:nth-child(1) .hero-slide {
    top: -24%;
    height: 124%;
    object-position: center bottom;
  }
  .hero-stage picture:nth-child(2) .hero-slide,
  .hero-stage picture:nth-child(3) .hero-slide,
  .hero-stage picture:nth-child(4) .hero-slide {
    top: -60%;
    height: 160%;
    object-position: center bottom;
  }
  .hero-stage picture:nth-child(5) .hero-slide {
    top: -65%;
    height: 165%;
    object-position: center bottom;
  }
}

/* SP下層ページ：手順カードとHowカードの配置調整 */
@media (max-width: 768px) {
  body.page-outpatient .steps,
  body.page-home-care .steps,
  body.page-partnership #process .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 20px;
  }
  body.page-outpatient .steps .step,
  body.page-home-care .steps .step,
  body.page-partnership #process .steps .step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "number title"
      "description description";
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
    padding: 14px 16px;
    text-align: left;
  }
  body.page-outpatient .steps .step-num,
  body.page-home-care .steps .step-num,
  body.page-partnership #process .steps .step-num {
    grid-area: number;
    width: 40px;
    height: 40px;
    margin: 0;
  }
  body.page-outpatient .steps .step-title,
  body.page-home-care .steps .step-title,
  body.page-partnership #process .steps .step-title {
    grid-area: title;
    margin: 0;
  }
  body.page-outpatient .steps .step-desc,
  body.page-home-care .steps .step-desc,
  body.page-partnership #process .steps .step-desc {
    grid-area: description;
    margin: 0;
  }

  body.subpage.page-philosophy .philosophy-how .info-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "number number"
      "icon title"
      "description description"
      "links links";
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
  }
  body.subpage.page-philosophy .philosophy-how .info-card-num {
    grid-area: number;
    margin-bottom: 10px;
  }
  body.subpage.page-philosophy .philosophy-how .info-card > .info-card-icon {
    grid-area: icon;
    width: 52px;
    height: 52px;
    margin: 0 !important;
  }
  body.subpage.page-philosophy .philosophy-how .info-card-title {
    grid-area: title;
    margin: 0;
  }
  body.subpage.page-philosophy .philosophy-how .info-card-desc {
    grid-area: description;
    margin-top: 16px;
  }
  body.subpage.page-philosophy .philosophy-how .related-cards {
    grid-area: links;
    margin-top: 0 !important;
    padding-top: 16px;
  }
}

/* SP外来診療：リストの左右バランスと問診票ボタンを調整 */
@media (max-width: 768px) {
  body.page-outpatient .check-list {
    padding-left: 4px;
    padding-right: 8px;
  }
  body.page-outpatient .monshin-btn {
    gap: 6px;
    padding-inline: 14px;
    font-size: 14px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  body.page-outpatient .monshin-btn .sp-break {
    display: none;
  }
}

/* 訪問診療：緩和ケアと検査・処置は連続するため、上下余白をコンパクトにする */
body.subpage.page-home-care .page-section.home-care-palliative-section,
body.subpage.page-home-care .page-section.home-care-services-section {
  padding-block: clamp(40px, 4vw, 56px);
}

/* 精神科：初回訪問対応セクションのカード内余白をコンパクトにする */
body.subpage.page-psychiatry .page-section.philo-filter .info-card {
  padding-inline: 1.3rem;
  padding-block: 24px;
}
body.subpage.page-psychiatry .page-section.philo-filter .info-card-desc {
  word-break: auto-phrase;
  text-wrap: pretty;
}
body.subpage.page-psychiatry .page-section.philo-filter .lead-block {
  text-align: center;
}
@media (min-width: 900px) {
  body.subpage.page-psychiatry .page-section.philo-filter .info-card:nth-child(-n + 2) .info-card-desc {
    font-size: clamp(14px, 1.55vw, 16px);
    letter-spacing: 0;
    white-space: nowrap;
  }
  body.subpage.page-psychiatry .page-section.philo-filter .info-card:nth-child(2) .info-card-desc {
    font-size: clamp(13.8px, 1.5vw, 15.5px);
  }
}

/* 対応疾患・専門領域：PCでも専門用語を文節途中で分割しない */
body.subpage.page-specialties :where(
  .page-hero-sub,
  .section-lead,
  .hours--data th,
  .hours--data td,
  .info-card-title,
  .info-card-desc,
  .related-card-title
) {
  word-break: auto-phrase !important;
  overflow-wrap: normal !important;
}

/* 理念・医師紹介・診療エリア：PC/SPとも日本語を文節途中で分割しない */
:where(body.page-philosophy, body.page-doctor, body.page-area) main :where(
  .page-hero-title,
  .page-hero-sub,
  .section-title,
  .section-lead,
  .lead-block p,
  .info-card-title,
  .info-card-desc,
  .profile-name,
  .profile-section p,
  .profile-section li,
  .doctor-message-quote,
  .doctor-message-body p,
  .doctor-message-full p,
  .philo-quote,
  .area-group-title,
  .area-group li,
  .area-map-note,
  .cta-title,
  .cta-sub,
  .related-card-title
) {
  word-break: auto-phrase !important;
  overflow-wrap: normal !important;
}

/* 医師紹介：iPhone/SPの院長メッセージ内で日本語書体を本文と統一する */
@media (max-width: 768px) {
  body.page-doctor .doctor-message-block {
    font-family: var(--font-body);
    font-synthesis: none;
  }
  body.page-doctor .doctor-message-quote,
  body.page-doctor .doctor-message-body p,
  body.page-doctor .doctor-message-full p,
  body.page-doctor .doctor-message-toggle {
    font-family: inherit !important;
  }
}

@media (max-width: 768px) {
  body.subpage.page-home-care .page-section.home-care-palliative-section,
  body.subpage.page-home-care .page-section.home-care-services-section {
    padding-block: 24px;
  }

  body.subpage.page-psychiatry .page-section.philo-filter .info-card {
    padding-block: 14px;
  }

  body.subpage.page-psychiatry .page-section.philo-filter .info-card:first-child .info-card-desc {
    font-size: 15px !important;
  }

  /* 対応疾患・専門領域：専門用語を文節途中で分割しない */
  body.subpage.page-specialties .breadcrumb .current {
    white-space: nowrap;
  }
  :where(body.page-philosophy, body.page-doctor, body.page-area) .breadcrumb .current {
    white-space: nowrap;
  }
}

/* スマホ共通：端末幅に左右されない16pxの外側余白とコンパクトなBOX余白 */
@media (max-width: 768px) {
  .wrap,
  .hero-inner,
  body.subpage .page-hero-inner,
  body.subpage .page-section-inner {
    width: min(100% - 32px, var(--maxw));
  }

  body.subpage :where(
    .info-card,
    .info-card--featured,
    .strength-card,
    .step,
    .doctor-card,
    .staff-card,
    .area-group,
    .case-card,
    .news-card,
    .monshin-card,
    .facility-standard-card,
    .line-guide-card,
    .cta-block
  ) {
    padding-right: 14px;
    padding-left: 14px;
  }

  body.subpage .form-block {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.page-doctor .doctor-message-block {
    padding: 20px 16px;
  }
}

/* SPではPC向けの手動改行を解除し、端末幅に合わせて自然に折り返す */
@media (max-width: 768px) {
  main .keep-together { white-space: normal !important; }

  main br:not(.sp-break):not(.philosophy-sp-break),
  main br.content-break {
    display: none !important;
  }

  body.subpage.page-philosophy main .lead-block br.philosophy-copy-break {
    display: none !important;
  }

  body.page-contact .page-hero-sub br { display: block !important; }

  body.subpage .facility-standard-list,
  body.subpage .facility-standard-card,
  body.subpage .facility-standard-card dt,
  body.subpage .facility-standard-card dd,
  body.page-outpatient .doctor-feature,
  body.page-outpatient .doctor-feature-body,
  body.page-philosophy .cta-block,
  body.page-philosophy .cta-block > * {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body.subpage .facility-standard-list { grid-template-columns: minmax(0, 1fr); }
  body.page-philosophy .cta-block .cta-actions { min-width: 0; max-width: 100%; }
}

/* iOS Safari：nowrap由来の内部幅拡張と横スクロールを防ぐ */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  main,
  main > section,
  main :where(.wrap, .page-section-inner, .recruit-inner),
  .site-footer,
  .site-footer :where(.wrap, .footer-top, .footer-brand, .footer-brand .addr) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  body.page-home .recruit-inner,
  body.page-home .recruit-inner > div,
  body.page-home .recruit h2,
  body.page-home .recruit p {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body.page-home .recruit-inner {
    align-items: center;
  }

  body.page-home .recruit-inner > .btn {
    align-self: center;
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  body.page-outpatient .check-list,
  body.page-outpatient .check-list li,
  body.page-outpatient .check-list a,
  .site-footer .footer-brand .addr {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Access parking guide: prevent iOS grid min-content from extending past the viewport. */
@media (max-width: 768px) {
  body.page-access .parking-block,
  body.page-access .parking-grid,
  body.page-access .parking-grid > *,
  body.page-access .parking-photo-slider,
  body.page-access .parking-photo-viewport {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body.page-access .parking-block {
    overflow: hidden;
    overflow: clip;
  }

  body.page-access .parking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-access .parking-photo-track {
    width: 100%;
    max-width: 100%;
  }

  body.page-access .parking-photo-viewport {
    contain: layout paint;
    touch-action: pan-y;
  }

  body.page-access .parking-photo-slide {
    min-width: 100%;
    max-width: 100%;
  }

  body.page-access .parking-info,
  body.page-access .parking-info .check-list,
  body.page-access .parking-info .check-list li {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  body.page-access .parking-info .check-list {
    margin-left: 0;
    padding-left: 0;
  }

  body.page-access .parking-info .check-list li {
    padding-left: 1.35rem;
    letter-spacing: 0;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.page-access .parking-info .check-list li::before {
    left: 1px;
    width: 11px;
    height: 7px;
  }

  body.page-access .parking-info .check-list li:nth-child(3) {
    font-size: 15px;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }
}

@media (max-width: 768px) {
  body.page-parking .parking-availability-note {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-wrap: pretty;
  }

  body.page-parking .parking-availability-note span {
    white-space: normal !important;
  }
}

/* Parking route copy: use the full SP content width and allow natural wrapping. */
@media (max-width: 768px) {
  body.page-parking .parking-route-steps {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-inline-start: 0;
  }

  body.page-parking .parking-route-steps li {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
    text-wrap: pretty;
  }

  body.page-parking .parking-route-steps li::before {
    left: 1px;
    width: 10px;
    height: 6px;
    border-left-width: 1.5px;
    border-bottom-width: 1.5px;
  }

  body.page-parking .parking-route-steps li:first-child {
    font-size: 15px !important;
    letter-spacing: 0;
    white-space: nowrap !important;
  }
}

@media (max-width: 359px) {
  body.page-parking .parking-route-steps li:first-child {
    white-space: normal !important;
  }
}

/* Mobile compact layout: reduce repeated vertical whitespace without crowding copy. */
@media (max-width: 768px) {
  body.subpage .page-hero {
    padding-top: 96px;
    padding-bottom: 32px;
  }

  body:not(.subpage) .section {
    padding-block: 40px;
  }
  body:not(.subpage) .intro {
    padding-bottom: 60px;
  }
  body:not(.subpage) .sec-head {
    margin-bottom: 24px;
  }
  body:not(.subpage) .three-col {
    gap: 14px;
    margin-top: 24px;
  }

  body.subpage .page-section {
    padding-block: 30px;
  }
  body.subpage .section-lead,
  body.subpage .lead-block {
    margin-bottom: 22px;
  }

  body.subpage.page-area .area-list-section,
  body.subpage.page-recruit .recruit-wanted-section {
    padding-bottom: 52px;
  }
  body.subpage.page-philosophy .philosophy-how {
    padding-bottom: 64px;
  }
  body.subpage.page-parking .page-section.alt.philo-filter {
    padding-bottom: 56px;
  }

  .guide-grid,
  .card-grid,
  .case-block,
  .strength-grid,
  .steps,
  .related-cards,
  .staff-grid,
  .area-grid,
  .news-grid {
    gap: 14px;
  }

  .col-item,
  .gcard,
  body.subpage :where(
    .info-card,
    .info-card--featured,
    .strength-card,
    .step,
    .doctor-card,
    .staff-card,
    .area-group,
    .case-card,
    .news-card,
    .monshin-card,
    .facility-standard-card,
    .line-guide-card
  ) {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  body.subpage .cta-block {
    margin-top: 44px;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  body.page-area .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    margin-top: 24px;
  }
  body.page-area .area-group {
    min-width: 0;
    padding: 14px 12px;
  }
  body.page-area .area-group-title {
    margin: 0 0 6px;
    padding-bottom: 6px;
  }
  body.page-area .area-group ul {
    margin: 0;
    padding: 0;
  }
  body.page-area .area-group ul li {
    padding-block: 2px;
    line-height: 1.65;
  }
}

@media (max-width: 359px) {
  body.page-area .area-list {
    grid-template-columns: 1fr;
  }
}

/* Home care SP: compact the content after palliative care and use two area columns. */
@media (max-width: 768px) {
  body.page-home-care .home-care-palliative-section,
  body.page-home-care .home-care-palliative-section ~ .page-section {
    padding-block: 24px;
  }

  body.page-home-care .home-care-palliative-section .section-lead {
    margin-bottom: 0;
  }

  body.page-home-care .home-care-services-section .services-block {
    margin-top: 0;
    padding-top: 20px;
  }
  body.page-home-care .home-care-services-section .services-grid {
    gap: 18px;
    margin-top: 18px;
  }

  body.page-home-care #area .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
    margin-top: 24px;
  }
  body.page-home-care #area .area-group {
    min-width: 0;
    padding: 14px 12px;
  }
  body.page-home-care #area .area-group-title {
    margin: 0 0 6px;
    padding-bottom: 6px;
  }
  body.page-home-care #area .area-group ul {
    margin: 0;
    padding: 0;
  }
  body.page-home-care #area .area-group ul li {
    padding-block: 2px;
    line-height: 1.65;
  }

  body.page-home-care .page-section > .page-section-inner > .cta-block {
    margin-top: 0;
  }
}

@media (max-width: 359px) {
  body.page-home-care #area .area-list {
    grid-template-columns: 1fr;
  }
}

/* TOP SP: keep both first-view actions above the fixed contact navigation. */
@media (max-width: 767px) {
  body.page-home .hero-inner {
    transform: translateY(-48px);
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  body.page-home .hero-inner {
    transform: translateY(-64px);
  }
  body.page-home .hero p.lead {
    margin-bottom: 1.7em;
  }
}

/* SP hours note: preserve the intended break before the weekday notice. */
@media (max-width: 768px) {
  body main .hours-note br:not(.sp-break):not(.philosophy-sp-break) {
    display: block !important;
  }
}

/* Keep the Instagram message intact in Safari and other browsers. */
body main .insta .instagram-message-nowrap {
  display: inline-block;
  white-space: nowrap;
}

/* 連携ページ「ご紹介の流れ」カードの左右余白 */
body.page-partnership #process .steps .step {
  padding-inline: 1.3rem;
}
@media (max-width: 768px) {
  body.page-partnership #process .steps .step {
    padding-inline: 0.9rem;
  }
}

/* TOP Instagram SP: keep the account label on the line below Instagram. */
@media (max-width: 768px) {
  body main .insta .ig-en + br:not(.sp-break):not(.philosophy-sp-break) {
    display: none !important;
  }
  body main .insta.insta-card .ig-l {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "icon label"
      "message message";
    column-gap: 14px;
    row-gap: 10px;
    align-items: center;
  }
  body main .insta .ig-l > span:not(.ig-icn) {
    display: contents;
  }
  body main .insta .ig-icn {
    grid-area: icon;
  }
  body main .insta .ig-en {
    grid-area: label;
  }
  body main .insta .ig-h {
    grid-area: message;
    display: block;
    min-width: 0;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: 0;
    text-align: center;
    overflow-wrap: break-word;
  }
  body main .insta .instagram-message-nowrap,
  body main .insta .instagram-account-handle {
    display: block;
  }
  body main .insta .instagram-account-handle {
    margin-top: 2px;
  }
}

/* 外来診療 SP: iOS実機でも語尾や専門用語が不自然に分断されない文字幅を確保 */
@media (max-width: 768px) {
  body.page-outpatient .page-section-inner {
    width: min(100% - 24px, var(--maxw));
  }

  body.page-outpatient .card-grid .info-card,
  body.page-outpatient .steps .step {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.page-outpatient .card-grid .info-card .info-card-desc,
  body.page-outpatient .steps .step .step-desc {
    min-width: 0;
    max-width: 100%;
    font-size: 15px !important;
    line-height: 1.85;
    letter-spacing: 0;
    line-break: strict;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    text-wrap: wrap;
  }

  /* PC用改行を非表示にする768px幅でも、SP専用改行は必ず有効にする。 */
  main br.sp-break {
    display: block !important;
  }
}

/* ブロック内の [sp_br] は空のブロック要素として改行する。
   メインテーマCSSにも置き、プラグインCSSの遅延読込に依存させない。 */
body main .apb-sp-break {
  display: none !important;
}

@media (max-width: 768px) {
  body main .apb-sp-break {
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    flex-basis: 100% !important;
  }
}

/* WordPress「外観 → メニュー」で生成する共通ヘッダー・フッター */
.nav-links .nav-item { list-style: none; }
.nav-links > .nav-item { margin: 0; }
.nav-links .nav-sub { margin: 0; }

/* 外観 → ウィジェット：共通バナー差し込み位置 */
.site-widget-area {
  position: relative;
  z-index: 20;
  width: 100%;
  background: var(--paper-card);
}
.site-widget-area-inner {
  box-sizing: border-box;
  width: var(--container);
  margin-inline: auto;
  padding-block: clamp(20px, 3vw, 36px);
}
.site-widget-area--after-header { margin-top: 76px; }
.site-widget-area--after-header + main .page-hero,
.site-widget-area--after-header + main .hero { padding-top: clamp(48px, 7vw, 88px); }
.site-widget-area--before-footer { border-top: 1px solid var(--hairline); }
.site-banner-widget {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.site-banner-widget > :first-child { margin-top: 0; }
.site-banner-widget > :last-child { margin-bottom: 0; }
.site-banner-widget :where(.wp-block-image, .wp-block-group, .wp-block-cover) { margin-bottom: 0; }
.site-banner-widget img { display: block; max-width: 100%; height: auto; }
.site-banner-widget-title { max-width: 1180px; margin: 0 auto 1rem; padding-inline: 20px; font-family: var(--font-display); }

/* ブロック側で「全幅」を明示した場合だけ画面幅まで広げる。通常は本文幅。 */
.site-widget-area-inner .alignfull {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* フッターのメニュー一覧と法務メニューの間に差し込むウィジェット。 */
.footer-widget-area {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(239,233,218,0.12);
}
.footer-widget-area .site-banner-widget + .site-banner-widget { margin-top: 1.5rem; }
.footer-widget-area .site-banner-widget-title {
  max-width: none;
  padding-inline: 0;
  color: var(--on-night);
}
.footer-widget-area :where(img, iframe, video) { max-width: 100%; height: auto; }
.footer-widget-area :where(a) { color: inherit; }

@media (max-width: 640px) {
  .site-widget-area-inner { width: calc(100% - 32px); }
  .footer-widget-area { padding-block: 24px; }
}

/* 投稿ページ専用ウィジェット。本文と同じ幅で、本文との区切りを保つ。 */
.post-widget-area {
  max-width: 720px;
  margin-inline: auto;
}
.post-widget-area--before-content { margin-bottom: 2.5rem; }
.post-widget-area--after-content { margin-top: 2.5rem; }
.post-widget-area .site-banner-widget + .site-banner-widget { margin-top: 1.5rem; }
.post-widget-area .site-banner-widget-title { padding-inline: 0; }
.post-widget-area img { max-width: 100%; height: auto; }

/* 投稿テンプレート：右サイドバー */
.post-layout--with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.post-layout--with-sidebar .entry-content,
.post-layout--with-sidebar .entry-thumbnail,
.post-layout--with-sidebar .post-nav,
.post-layout--with-sidebar .post-widget-area { max-width: none; }
.post-sidebar-widget-area {
  position: sticky;
  top: 108px;
  min-width: 0;
}
.post-sidebar-widget-area .site-banner-widget {
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}
.post-sidebar-widget-area .site-banner-widget + .site-banner-widget { margin-top: 20px; }
.post-sidebar-widget-area .site-banner-widget-title {
  margin-bottom: 1rem;
  padding-inline: 0;
  font-size: 1.15rem;
}
.post-sidebar-widget-area img { max-width: 100%; height: auto; }
.post-back-link { margin-top: 3rem; text-align: center; }

/* 投稿テンプレート：LP */
.post-lp-content--with-site-chrome { padding-top: 76px; }
.site-widget-area--after-header + .post-lp-content--with-site-chrome { padding-top: 0; }
.post-lp-content > :first-child { margin-top: 0; }
.post-lp-content > :last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .post-layout--with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .post-sidebar-widget-area {
    position: static;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (max-width: 1080px) {
  .post-lp-content--with-site-chrome { padding-top: 72px; }
}

/* フォーム：同意エラーとプライバシーポリシーリンクを明示 */
.privacy-policy-link {
  color: var(--logo-blue) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.22em;
}
.privacy-policy-link:hover { color: var(--teal-deep) !important; }
.privacy-policy-link:focus-visible { outline: 2px solid var(--logo-blue); outline-offset: 3px; border-radius: 2px; }
.privacy-link-icon { display: inline-block; margin-left: 0.25em; font-size: 0.86em; text-decoration: none; }
.cf7-consent-error {
  display: block;
  margin: 0.55rem 0 0 1.8rem;
  color: #b3261e;
  font-size: 0.82rem;
  font-weight: 600;
}
.cf7-missing .wpcf7-acceptance label { color: #b3261e; }
.cf7-missing .wpcf7-acceptance input { outline: 2px solid #b3261e; outline-offset: 2px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1080px) {
  .site-widget-area--after-header { margin-top: 72px; }
}

/* ==========================================================================
   BLOG INDEX — 画像と本文を活かした記事一覧
   ========================================================================== */
.blog-index .blog-hero {
  background: radial-gradient(circle at 82% 34%, color-mix(in srgb, var(--accent-wash) 58%, transparent) 0 10%, transparent 10.5%), transparent;
}
.blog-listing-section { overflow: hidden; }
.blog-listing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,253,248,.18), rgba(239,232,217,.16)), url(img/pattern/asanoha.webp) center / 110px;
  opacity: .22;
  pointer-events: none;
}
.blog-listing-shell { position: relative; z-index: 1; max-width: 1120px; }
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.blog-filter-link {
  min-width: 112px;
  padding: .72rem 1.35rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper-card) 90%, transparent);
  color: var(--sumi-2);
  font-size: .84rem;
  line-height: 1.4;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 5px 18px -16px rgba(42,52,55,.7);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.blog-filter-link:hover,
.blog-filter-link.is-active {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: var(--on-accent);
  transform: translateY(-1px);
}
.blog-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--hairline);
}
.blog-list-kicker {
  display: block;
  margin-bottom: .45rem;
  color: var(--accent);
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.blog-list-heading h2 {
  margin: 0;
  color: var(--sumi);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: .1em;
}
.blog-list-heading > p {
  margin: 0 0 .15rem;
  color: var(--sumi-3);
  font-size: .78rem;
  letter-spacing: .08em;
  white-space: nowrap;
}
.blog-list-heading > p strong {
  color: var(--accent-deep);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
}
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: color-mix(in srgb, var(--paper-card) 95%, transparent);
  box-shadow: 0 16px 38px -34px rgba(39,48,52,.9);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.blog-card:hover {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--hairline));
  box-shadow: 0 22px 45px -31px rgba(39,48,52,.75);
  transform: translateY(-4px);
}
.blog-card.is-featured { grid-column: 1 / -1; }
.blog-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.blog-card.is-featured .blog-card-link { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(320px, 1fr); }
.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--accent-wash);
}
.blog-card.is-featured .blog-card-media { min-height: 370px; aspect-ratio: auto; }
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.65,.25,1);
}
.blog-card:hover .blog-card-image { transform: scale(1.035); }
.blog-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.22);
  pointer-events: none;
}
.blog-card-media.is-placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 75% 30%, rgba(255,255,255,.62) 0 16%, transparent 16.5%), linear-gradient(135deg, var(--accent-wash), var(--washi-cream-color));
}
.blog-card-placeholder-mark {
  color: color-mix(in srgb, var(--accent-deep) 48%, transparent);
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 5vw, 3.5rem);
  letter-spacing: .18em;
}
.blog-card-new {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .48rem .85rem;
  background: var(--accent-deep);
  color: var(--on-accent);
  font-family: var(--font-en);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,.8);
}
.blog-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.3rem, 3vw, 2rem);
}
.blog-card.is-featured .blog-card-body { justify-content: center; padding: clamp(2rem, 4vw, 3.25rem); }
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.blog-card-meta time {
  color: var(--sumi-3);
  font-family: var(--font-en);
  font-size: .76rem;
  letter-spacing: .12em;
}
.blog-card-category {
  padding: .25rem .65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  color: var(--accent-deep);
  font-size: .68rem;
  line-height: 1.35;
  letter-spacing: .08em;
}
.blog-card-title {
  margin: 0;
  color: var(--sumi);
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.65;
  letter-spacing: .06em;
}
.blog-card.is-featured .blog-card-title { font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.55; }
.blog-card-excerpt {
  display: -webkit-box;
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  color: var(--sumi-2);
  font-size: .88rem;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.blog-card-more {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--accent);
  color: var(--accent-deep);
  font-size: .78rem;
  letter-spacing: .1em;
}
.blog-card-more span { transition: transform .2s ease; }
.blog-card:hover .blog-card-more span { transform: translateX(4px); }
.blog-index .blog-pagination { margin-top: clamp(3rem, 6vw, 5rem); }
.blog-index .blog-empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 3rem 1.5rem;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--paper-card) 92%, transparent);
  text-align: center;
}
.blog-index .blog-empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.5rem;
}
.blog-index .blog-empty p { margin: 0 0 1rem; }
.blog-index .blog-empty a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 820px) {
  .blog-card.is-featured .blog-card-link { display: flex; }
  .blog-card.is-featured .blog-card-media { min-height: 0; aspect-ratio: 16 / 9; }
  .blog-card.is-featured .blog-card-body { justify-content: flex-start; padding: clamp(1.3rem, 4vw, 2rem); }
}
@media (max-width: 640px) {
  .blog-filter { justify-content: flex-start; gap: .55rem; }
  .blog-filter-link { min-width: 0; padding: .62rem 1rem; font-size: .76rem; }
  .blog-list-heading { align-items: flex-start; }
  .blog-card-grid { grid-template-columns: 1fr; }
  .blog-card.is-featured { grid-column: auto; }
  .blog-card.is-featured .blog-card-title,
  .blog-card-title { font-size: 1.22rem; }
  .blog-card-excerpt { margin-bottom: 1.2rem; -webkit-line-clamp: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card-image,
  .blog-card-more span,
  .blog-filter-link { transition: none; }
}

/* 指定参考ページに合わせた、2列カード＋右サイドバーの一覧構成 */
.blog-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.blog-archive-main { min-width: 0; }
.blog-archive-main .blog-card-grid { gap: clamp(2rem, 4vw, 3.3rem) clamp(1.4rem, 3vw, 2.25rem); }
.blog-archive-main .blog-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.blog-archive-main .blog-card:hover { border-color: transparent; box-shadow: none; transform: none; }
.blog-archive-main .blog-card-media {
  border-radius: 2px;
  box-shadow: 0 14px 32px -28px rgba(35,40,44,.85);
}
.blog-archive-main .blog-card-body { padding: 1.15rem 0 0; }
.blog-archive-main .blog-card-title {
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.7;
}
.blog-archive-main .blog-card-excerpt {
  margin: .72rem 0 1rem;
  font-size: .82rem;
  line-height: 1.85;
  -webkit-line-clamp: 2;
}
.blog-archive-main .blog-card-meta { order: 3; margin: auto 0 0; padding-top: .25rem; }
.blog-archive-main .blog-card-more { display: none; }
.blog-archive-main .blog-card-category {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  border: 0;
  border-radius: 3px;
  background: rgba(54,69,79,.9);
  color: #fff;
  backdrop-filter: blur(3px);
}
.blog-archive-main .blog-card-link { position: relative; }
.blog-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 2.4rem;
}
.blog-sidebar-widgets { display: grid; gap: 1.5rem; }
.blog-sidebar .site-banner-widget { margin: 0; }
.blog-sidebar-section > h2,
.blog-sidebar .site-banner-widget-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.15rem;
  color: var(--sumi);
  font-family: var(--font-display);
  font-size: .98rem;
  letter-spacing: .1em;
  white-space: nowrap;
}
.blog-sidebar-section > h2::before,
.blog-sidebar-section > h2::after,
.blog-sidebar .site-banner-widget-title::before,
.blog-sidebar .site-banner-widget-title::after {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--hairline-2);
}
.blog-sidebar-section ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.blog-sidebar-section li { border-bottom: 1px solid var(--hairline); }
.blog-sidebar-section li a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .82rem .2rem;
  color: var(--sumi-2);
  font-size: .8rem;
  text-decoration: none;
}
.blog-sidebar-section li a:hover,
.blog-sidebar-section li a.is-current { color: var(--accent-deep); }
.blog-sidebar-section li small { color: var(--sumi-3); font-family: var(--font-en); }
.blog-sidebar-guide > a {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--accent-deep);
  color: var(--on-accent);
  text-decoration: none;
}
.blog-sidebar-guide strong { font-family: var(--font-display); font-size: .95rem; line-height: 1.8; letter-spacing: .06em; }
.blog-sidebar-guide span { font-size: .7rem; letter-spacing: .08em; opacity: .82; }
@media (max-width: 960px) {
  .blog-archive-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .blog-sidebar-widgets { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .blog-archive-main .blog-card-grid { gap: 2.5rem; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-sidebar-widgets { grid-column: auto; }
}
