/* ========================================
   富士わたなべ内科 WordPress Theme - Main CSS
   ======================================== */

/* Google Fonts は functions.php の wp_enqueue_style で読み込み（@import は
   CSSOM構築を直列化しFCP/LCPを悪化させるため使用しない） */

/* ========================================
   CSS Variables
   ======================================== */
/* ロゴ（富士山ブルー×若葉グリーン×珊瑚色・丸ゴシック）に合わせた配色
   ※ 2026-07: 全体が淡すぎたため一段濃い配色に調整（deeper版） */
:root {
  --background: #f2f7fc;
  --foreground: #4a4340;
  --card: #ffffff;
  --card-foreground: #4a4340;
  --primary: #3a76ba;
  --primary-light: rgba(58,118,186,0.16);
  --primary-hover: #2d5f99;
  --green: #69a13c;
  --green-light: rgba(105,161,60,0.16);
  --green-deep: #55862e;
  --coral: #ec7a65;
  --coral-light: rgba(236,122,101,0.16);
  --coral-deep: #d95f49;
  /* 4色目。ロゴ由来の青・緑・珊瑚と重ならない色として藤色系を足している */
  --lavender: #8b79b8;
  --lavender-light: rgba(139,121,184,0.16);
  --lavender-deep: #7a66a6;
  /* *-light の淡いティント背景に文字を載せるときの色。ブランド色そのまま
     （--primary / --green-deep / --coral-deep）だと 14px 太字でコントラスト比が
     3.2〜3.8:1 しかなく AA(4.5:1) に届かないため、色相は変えずに一段濃くしてある。
     ティント背景の上に文字を置くときは必ずこちらを使う */
  --primary-on-light: #2d5f99;
  --green-on-light: #457021;
  --coral-on-light: #b04429;
  --lavender-on-light: #6b559b;
  --secondary: #dcebf7;
  --secondary-foreground: #3d4a5c;
  --muted: #e9f2e5;
  --muted-foreground: #8a817c;
  --accent: #ddedf9;
  --border: #d9e4dd;
  --input: #e8eff5;
  --radius: 1.25rem;
  /* Zen Maru Gothic の読み込みが終わるまでは、後ろに並べた端末内蔵フォントで
     表示される（functions.php でフォントCSSを非同期にしているため）。
     ヒラギノ丸ゴは同じ丸ゴシックで字幅も近く、差し替わったときの
     見た目の変化とレイアウトのずれが最小になる。
     Noto Sans JP はロゴ用に数十字だけのサブセットしか読み込んでいないので、
     本文側のフォールバックには入れない（一部の文字だけ別の書体で出てしまう） */
  --font-sans: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Noto Sans CJK JP', sans-serif;
  --font-serif: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Noto Sans CJK JP', sans-serif;
  /* ロゴタイプ（クリニック名・診療科ライン・キャッチコピー）専用。ロゴデザインに
     合わせて角の丸くない細身のゴシックを使う。丸ゴシックに戻したい場合はここを
     var(--font-serif) と同じ指定にすれば全体が切り替わる。
     ここで使う文字は functions.php の fwc_logo_font_text() が数え上げていて、
     Noto Sans JP はその字形だけをサブセットで読み込んでいる。
     この3か所以外に --font-logo を使うと、その文字は端末内蔵フォントで出る */
  --font-logo: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic Medium', 'Noto Sans CJK JP', 'Zen Maru Gothic', sans-serif;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* 別ページから /#services 等のアンカーに着地したとき、
   固定ヘッダー（4〜5rem）に見出しが隠れないようにする */
main section[id] {
  scroll-margin-top: 8.5rem;
}

/* WebP配信のために画像を<picture>で包んでいる（functions.php の fwc_picture）。
   display:contents で<picture>自体はボックスを作らないので、
   .hero-bg img / .doctor-image img のような既存の指定が
   包む前とまったく同じように効く */
picture {
  display: contents;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main,
body > #hero,
body > section {
  flex: 1;
}

#site-footer {
  margin-top: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

/* ========================================
   WordPress Core
   ======================================== */
.wp-block-image img { border-radius: var(--radius); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 0 auto; display: block; }

/* ========================================
   Layout Utilities
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* 写真＋プロフィール項目の2カラム用。--narrow だと1カラムが392pxしか取れず
   写真が項目リストに対して小さく見えるため、この用途だけ中間幅を用意する */
.container--profile {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 640px) {
  .section-py { padding-top: 7rem; padding-bottom: 7rem; }
}

/* ========================================
   Section Header
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-header__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--foreground);
}
@media (min-width: 640px) {
  .section-header__title { font-size: 2.25rem; }
}
.section-header__desc {
  margin-top: 1rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* ========================================
   Card
   ======================================== */
.card {
  background: var(--card);
  border: 1px solid rgba(229,224,216,0.5);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-content {
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .card-content { padding: 2rem; }
}

/* ========================================
   Header
   ======================================== */
/* ロゴ行のヘッダーは常にposition:fixed。position自体は切り替えないので、
   固定表示に変わる瞬間にレイアウトが飛ばない。
   トップページでヒーローを見ている間はバーごと画面外（translateY(-100%)）に
   逃がしておき、アイコンナビが画面上部に貼り付くのと同じタイミング
   （body.is-scrolled）で上からスライドインさせる。
   サブページはヒーローが無いので最初から表示されたまま。 */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
body.is-scrolled #site-header {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* デスクトップ：ヒーロー表示中はロゴ行を画面外に隠す。
   ロゴ・クリニック名はヒーロー側（.hero-text__logo）に大きく出ているので、
   ここに空のバーが残っていても何も情報がない */
@media (min-width: 768px) {
  body.home:not(.is-scrolled) #site-header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
}
/* モバイル：このバーにはハンバーガーボタンが乗っているので隠さず、
   バーだけ透明にしてヒーロー画像に重ねる（ロゴは重複するので伏せる） */
@media (max-width: 767px) {
  body.home:not(.is-scrolled) #site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
  }
  body.home:not(.is-scrolled) #site-header .site-logo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  body.home.is-scrolled #site-header .site-logo {
    opacity: 1;
    transition: opacity 0.3s 0.1s;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .header-inner { height: 5.5rem; }
}

/* サブページ（ヒーローが無いページ）では.icon-navがヘッダーの直後に来るため、
   #site-headerがposition:fixedで抜けている分の高さをこちらで確保する。
   トップページはヒーロー画像がその役割を果たすので不要 */
body:not(.home) .icon-nav {
  margin-top: 4.5rem;
}
@media (min-width: 768px) {
  body:not(.home) .icon-nav { margin-top: 5.5rem; }
}

/* --- ロゴ（マーク＋クリニック名＋タグライン） --- */
.site-logo__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.site-logo__mark {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .site-logo__mark { width: 3.75rem; height: 3.75rem; }
}
/* logo.pngは656x656の正方形だが、実際の絵柄は中央の574x356（横長）で
   上下に147pxずつ透明の余白が入っている。正方形のまま表示すると絵柄が
   半分以下の大きさにしか見えないため、絵柄の比率で切り出して表示する。
   （SVGの仮ロゴには効かせたくないので img に限定する） */
img.site-logo__mark {
  height: auto;
  aspect-ratio: 656 / 356;
  object-fit: cover;
  object-position: center;
}
.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.site-logo__name {
  font-family: var(--font-logo);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--foreground);
}
@media (min-width: 768px) {
  .site-logo__name { font-size: 1.375rem; }
}
.site-logo__tagline {
  font-family: var(--font-logo);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .site-logo__tagline { font-size: 0.75rem; }
}
.site-logo__tagline .is-primary { color: #4A90C2; }
.site-logo__tagline .is-green { color: #8DBB8C; }
.site-logo__tagline .dot { color: #F48C7F; padding: 0 0.05em; }
.site-logo__tagline .is-coral { color: #F48C7F; }

/* --- デスクトップ：ヒーロー画像の下（サブページではロゴ行の直下）に続く
   全幅のアイコンナビバー --- */
.icon-nav {
  display: none;
}
@media (min-width: 768px) {
  .icon-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* bodyがdisplay:flex;flex-direction:columnのため、直下の子要素であるicon-navは
       margin:autoだけだとstretchが効かずコンテンツ幅に縮んでしまう。widthを明示して
       画面幅いっぱいに広げる（ヒーロー画像の下に全幅で続くバーにする） */
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--border);
    position: sticky;
    top: 5.5rem; /* #site-header（デスクトップ時の高さ）の直下に積み重ねる */
    z-index: 100;
    background: var(--card);
  }
}
body.is-scrolled .icon-nav {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
/* アイコンナビはスクロールしてもposition:stickyのまま（fixedに切り替えない）。
   通常フローから抜けないので、貼り付く瞬間に下のコンテンツが飛び上がらないし、
   ロゴ行の右側に回り込ませないのでクリニック名と重なることもない。
   ＝「上段：ロゴ行／下段：アイコンナビ」の2段が画面上部に固定される。 */
.icon-nav__item {
  /* --accent / --accent-bg はPHP側で項目ごとにインラインstyleでセットする
     （未指定の場合は既定でprimaryカラーにフォールバック） */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 0;
  padding: 1rem 0.4rem;
  /* 7項目を1行ずつで並べるため、1200px未満では文字・アイコンを一段小さくする
     （「開院準備レポート」が折り返すと項目ごとに高さがずれてしまう） */
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
@media (min-width: 1200px) {
  .icon-nav__item {
    gap: 0.55rem;
    padding: 1.15rem 0.5rem;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
  }
}
/* 項目の区切りは枠線ではなく、上下に余白を残した短い縦線にする
   （ホバー時の背景色が区切り線で分断されないよう、擬似要素で描く） */
.icon-nav__item + .icon-nav__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  width: 1px;
  height: 56%;
  background: var(--border);
}
.icon-nav__item:hover:not(.has-submenu),
.icon-nav__item:focus-visible:not(.has-submenu) {
  color: var(--accent, var(--primary));
  background: var(--accent-bg, var(--primary-light));
}
.icon-nav__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent, var(--muted-foreground));
}
@media (min-width: 1200px) {
  .icon-nav__icon { width: 2.125rem; height: 2.125rem; }
}

/* デスクトップ：ドロップダウン（hover / キーボードフォーカスで開く） */
.icon-nav .has-submenu {
  position: relative;
  padding: 0;
}
.icon-nav .has-submenu > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: inherit;
  height: 100%;
  /* .icon-nav__itemのalign-items:centerを親（.has-submenu）が引き継ぐと、
     このリンクがコンテンツ幅に縮んで中央寄せされてしまい、ホバー背景の横幅が
     他の項目より狭くなる。widthを明示して.has-submenu自身と同じ幅まで広げる */
  width: 100%;
  padding: 1rem 0.4rem;
  color: inherit;
  text-decoration: none;
}
@media (min-width: 1200px) {
  .icon-nav .has-submenu > a { padding: 1.15rem 0.5rem; }
}
.icon-nav .has-submenu:hover > a,
.icon-nav .has-submenu:focus-within > a {
  color: var(--accent, var(--primary));
  background: var(--accent-bg, var(--primary-light));
}
.icon-nav .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 11rem;
  padding: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 110;
}
.icon-nav .has-submenu:hover .submenu,
.icon-nav .has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.icon-nav .submenu a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: calc(var(--radius) - 4px);
  white-space: nowrap;
  text-decoration: none;
}
.icon-nav .submenu a:hover {
  background: var(--accent);
  color: var(--foreground);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}
.mobile-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
#mobile-nav {
  display: none;
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  border-top: 1px solid var(--border);
  background: var(--card);
}
#mobile-nav.open { display: block; }
#mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
#mobile-nav a:hover { color: var(--foreground); }
/* アイコンは .icon-nav（デスクトップ）と同じSVG・同じアクセント配色。
   淡い色地の角丸に載せて、ラベルの先頭位置を項目間でそろえる */
#mobile-nav .mobile-nav__icon {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0.375rem;
  border-radius: 0.5rem;
  background: var(--accent-bg, var(--primary-light));
  color: var(--accent, var(--primary));
}
/* モバイルナビの子項目（クリニック紹介配下の院長紹介など）はインデントで常時表示。
   アイコンは持たないので、親のアイコン幅ぶんだけ字下げして先頭をそろえる */
#mobile-nav .mobile-nav__child {
  padding-left: 4.25rem;
  position: relative;
}
#mobile-nav .mobile-nav__child::before {
  content: '−';
  position: absolute;
  left: 3.125rem;
  color: var(--border);
}

/* ========================================
   Hero Section
   ======================================== */
/* 横幅いっぱいの背景画像の上に、ロゴ＋クリニック名＋リード文を重ねる。
   中身は上からの固定余白ではなく上下中央ぞろえにしている。開院後に
   「新規開院予定」バッジ（.hero-badge）を外しても、ロゴ・クリニック名の
   位置がデザイン案どおりのバランスに収まるため。
   モバイルはこのヒーローの上に透明なヘッダーバー（ハンバーガー）が
   重なるので、その高さぶんだけ上に余白を持たせる */
#hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 26rem;
  padding: 5rem 0 2rem;
}
/* デスクトップはヒーロー枠の縦横比を背景イラスト（1935x813）とそろえる。
   枠と画像が同じ形になるので、object-fit:coverでも左右がほとんど切れずに
   全面が表示される。中身が入りきらない幅ではmin-heightが優先されて
   縦に伸び、その分だけ左右が切れる（object-positionで富士山側を残す） */
@media (min-width: 768px) {
  #hero {
    aspect-ratio: 1935 / 813;
    min-height: 25rem;
    padding: 2rem 0;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* 画像はobject-fit:containで下寄せなので、上に余った帯はこのグラデーションが出る。
     継ぎ目が線に見えないよう、開始色はイラスト上端の空の色（#e3f1fc）に合わせる */
  background: linear-gradient(180deg, #e3f1fc 0%, #e8f3fc 45%, #f5faf1 70%, #eef6e6 100%);
}
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  /* 画像は1935x813（横2.38:1）とかなり横長。containだとヒーロー枠より
     横長な分だけ上下に余白ができて、特にモバイルでは画像が下端の細い帯に
     なってしまう。coverでヒーロー全面を埋め、代わりに左右を切る。
     切る位置は「富士山と丘の集落が必ず残る」右寄り（72%）に固定する */
  object-fit: cover;
  object-position: 72% bottom;
}
/* モバイルは枠が縦長なぶん左右の切り取り量が大きいので、
   富士山がしっかり入るようさらに右寄りにする */
@media (max-width: 767px) {
  .hero-bg img { object-position: 80% bottom; }
}
.hero-illustration__placeholder {
  position: absolute;
  inset: 0;
}

/* タグライン・ロゴは背景カードを持たず、ヒーロー画像に直接重ねて表示する */
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 1.5rem;
  padding: 0;
}
@media (min-width: 768px) {
  .hero-text { margin: 0 3rem; }
}
@media (min-width: 1200px) {
  .hero-text { margin: 0 3.5rem; }
}
.hero-text__logo {
  margin-bottom: 2rem;
}
/* モバイルは「小さめのマーク＋右にクリニック名／診療科ライン」の1行構成。
   マークを上に積むとヘッダーが縦に伸びすぎるため横並びにしている。
   768px以上ではマークを大きくして、モックどおりのバランスになる */
.hero-text__logo .site-logo__link {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}
.hero-text__logo .site-logo__mark {
  width: 5.5rem;
  height: auto;
}
.hero-text__logo .site-logo__name {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
/* 診療科ラインは、クリニック名の下に中央寄せ＋左右に短い罫線
   （左＝青／右＝珊瑚色でロゴの配色に合わせる） */
.hero-text__logo .site-logo__text {
  align-items: center;
  gap: 0.25rem;
}
.hero-text__logo .site-logo__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}
.hero-text__logo .site-logo__tagline::before,
.hero-text__logo .site-logo__tagline::after {
  content: '';
  flex: none;
  width: 1.25rem;
  height: 1.5px;
}
.hero-text__logo .site-logo__tagline::before { background: #4A90C2; }
.hero-text__logo .site-logo__tagline::after  { background: #F48C7F; }
@media (min-width: 768px) {
  .hero-text__logo { margin-bottom: 2.5rem; }
  .hero-text__logo .site-logo__link { gap: 2rem; }
  .hero-text__logo .site-logo__text { gap: 0.5rem; }
  .hero-text__logo .site-logo__mark { width: 14rem; }
  .hero-text__logo .site-logo__name { font-size: 2.25rem; letter-spacing: 0.15em; }
  .hero-text__logo .site-logo__tagline { font-size: 1.125rem; letter-spacing: 0.22em; gap: 0.75rem; }
  .hero-text__logo .site-logo__tagline::before,
  .hero-text__logo .site-logo__tagline::after { width: 2.25rem; }
}
@media (min-width: 1200px) {
  .hero-text__logo .site-logo__link { gap: 2.5rem; }
  .hero-text__logo .site-logo__mark { width: 21rem; }
  .hero-text__logo .site-logo__name { font-size: 3.25rem; letter-spacing: 0.18em; }
  .hero-text__logo .site-logo__tagline { font-size: 1.5rem; gap: 0.9rem; }
  .hero-text__logo .site-logo__tagline::before,
  .hero-text__logo .site-logo__tagline::after { width: 3rem; }
}
/* 文言を差し替えても破綻しないよう、<br>ではなく幅と文字サイズで2行に収める。
   word-break:auto-phrase は日本語を文節単位で折り返す（未対応ブラウザでは
   通常の禁則処理付き折り返しになるだけで、はみ出しはしない） */
.hero-tagline {
  font-family: var(--font-logo);
  font-size: clamp(1.125rem, 3.6vw, 1.625rem);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.08em;
  /* em指定なので文字サイズが変わっても1行あたりの文字数（約15文字）は一定。
     word-break:auto-phrase 未対応のブラウザでも変な位置で折り返さない */
  max-width: 16.5em;
  word-break: auto-phrase;
  color: var(--foreground);
  text-shadow: 0 1px 12px rgba(255,255,255,0.8), 0 1px 2px rgba(255,255,255,0.6);
}
/* リード文と開院バッジは、ロゴマークの絵柄の左端に軽く合わせて字下げする */
@media (min-width: 768px) {
  .hero-tagline,
  .hero-badge { margin-left: 2rem; }
}
@media (min-width: 1200px) {
  .hero-tagline,
  .hero-badge { margin-left: 3.5rem; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  margin-top: 1.5rem;
}
.hero-badge svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.hero-illustration__placeholder .peak--back {
  position: absolute;
  left: 8%;
  bottom: 18%;
  width: 55%;
  height: 55%;
  background: var(--secondary);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.8;
}
.hero-illustration__placeholder .peak--front {
  position: absolute;
  right: 6%;
  bottom: 14%;
  width: 46%;
  height: 68%;
  background: var(--primary-light);
  clip-path: polygon(50% 0%, 78% 42%, 100% 100%, 0% 100%, 22% 42%);
}
.hero-illustration__placeholder .peak--front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 34%;
  width: 32%;
  height: 26%;
  background: #ffffff;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.hero-illustration__placeholder .ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: var(--green-light);
}

/* ========================================
   Intro Section（メニュー直下）
   ======================================== */
/* ヒーローは背景イラストの上なので、文字数の多い説明は載せずにこちらへ置く。
   「〜誕生。」は開院前だけの訴求なので、開院後はこのセクションごと文言を
   差し替えれば済むようにヒーローから分離している */
#intro {
  background: var(--card);
  padding: 4.5rem 1.5rem;
  text-align: center;
}
@media (min-width: 768px) { #intro { padding: 5.5rem 3rem; } }
.intro-inner {
  max-width: 46rem;
  margin: 0 auto;
}
.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--foreground);
  margin: 0 0 1.5rem;
}
.intro-title .is-accent { color: var(--primary); }
.intro-lead {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  max-width: 34rem;
  margin: 0 auto;
  word-break: auto-phrase;
}
/* 3つの特徴タグ。色は項目ごとにインラインstyleで --tag-* をセットする */
.intro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.intro-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--tag-bg, var(--primary-light));
  color: var(--tag-fg, var(--primary));
  border: 1px solid var(--tag-bd, transparent);
}
.intro-tags svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0.9rem 2.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(74,144,194,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.intro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74,144,194,0.34);
}
.intro-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ========================================
   Concept Section
   ======================================== */
#concept {
  background: var(--card);
}
/* サイト共通のカード様式（淡い背景のセクションに白いカード＋1pxの枠線＋角丸）に
   合わせる。.feature-card / .recruit-card と同じ指定 */
.concept-card {
  background: var(--card);
  border: 1px solid rgba(229,224,216,0.5);
  border-radius: var(--radius);
  padding: 2rem;
}
@media (min-width: 640px) {
  .concept-card { padding: 3rem; }
}
.concept-text {
  space-y: 1.5rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--foreground);
}
@media (min-width: 640px) { .concept-text { font-size: 1.125rem; } }
.concept-text p + p { margin-top: 1.5rem; }
.concept-signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: right;
}
.concept-signature p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.concept-signature .name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-top: 0.25rem;
}

/* ========================================
   Doctor Section
   ======================================== */
/* セクション全体を1色（白）にそろえる。見出し帯と本文で背景が変わると
   ひとつのセクションが2つに割れて見えるため */
#doctor {
  padding-top: 5rem;
  padding-bottom: 0;
  background: var(--card);
}
@media (min-width: 768px) { #doctor { padding-top: 7rem; } }
.doctor-header {
  padding-bottom: 3rem;
}
@media (min-width: 768px) { .doctor-header { padding-bottom: 4rem; } }
.doctor-profile-wrap {
  padding: 3rem 0 5rem;
}
@media (min-width: 768px) { .doctor-profile-wrap { padding: 4rem 0 7rem; } }
.doctor-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .doctor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.doctor-image-wrap {
  position: relative;
  max-width: 22rem;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) { .doctor-image-wrap { max-width: none; } }
/* 院長プロフィールページ専用。トップpage（3項目）と違い右カラムが7項目まで伸びるため、
   .doctor-grid の中央揃え＋正方形のままだと写真の上下に大きな余白ができ、写真が小さく見える。
   上揃え＋縦長トリミングにし、長い右カラムをスクロールする間も写真が見えるよう sticky にする。
   スマホは1カラムで余白問題が起きないため、従来どおり正方形・非sticky */
@media (min-width: 768px) {
  .doctor-grid--full { align-items: start; }
  .doctor-grid--full .doctor-image-wrap {
    position: sticky;
    top: 9rem; /* #site-header(5.5rem) ＋ .icon-nav の下 */
  }
  .doctor-grid--full .doctor-image { aspect-ratio: 3 / 4; }
}
.doctor-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--muted);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.doctor-info { }
.doctor-role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.doctor-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
@media (min-width: 768px) { .doctor-name { font-size: 2rem; } }
.doctor-name-en {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.doctor-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.doctor-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.doctor-detail-item .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}
.doctor-detail-item .label {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}
.doctor-detail-item .value {
  color: var(--muted-foreground);
}
.doctor-detail-item ul { padding: 0; }
.doctor-detail-item li { color: var(--muted-foreground); }
/* 職歴の末尾に置く「開院予定」。実績の行と同じ見た目だと確定した経歴に見えるため、
   色と太さで未来の予定であることを区別する */
.doctor-detail-item li.is-upcoming {
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.25rem;
}
.doctor-link-wrap { padding-top: 1rem; }
.doctor-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.doctor-link:hover { color: var(--primary-hover); }
.doctor-link svg {
  width: 1rem;
  height: 1rem;
}

/* 院長からのメッセージ（page-doctors.php） */
.doctor-message p {
  color: var(--muted-foreground);
  line-height: 2;
  margin-bottom: 1.5rem;
}
.doctor-message__lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.8;
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .doctor-message__lead { font-size: 1.375rem; } }
.doctor-message__sign {
  text-align: right;
  font-family: var(--font-serif);
  color: var(--foreground);
  margin-bottom: 0;
}

/* ========================================
   Features Section
   ======================================== */
#features {
  background: var(--background);
}
.features-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature-card {
  background: var(--card);
  border: 1px solid rgba(229,224,216,0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
@media (min-width: 640px) { .feature-card { padding: 2rem; } }
.feature-card:hover {
  border-color: rgba(45,125,142,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
  transition: background 0.3s, color 0.3s;
}
.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
}
.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.feature-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .feature-title { font-size: 1.25rem; } }
.feature-desc {
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 0.9375rem;
}
/* 特徴カードから詳細ページへ送る任意の矢印リンク（$features の 'link' を指定したカードのみ） */
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.feature-link:hover { color: var(--primary-hover); }
.feature-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ========================================
   Services Section (診療案内)
   ======================================== */
#services {
  background: var(--card);
}
.services-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
.services-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.services-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}
.services-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.services-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

/* Hours Table */
.hours-table-wrap {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.hours-table thead {
  background: var(--secondary);
}
.hours-table th {
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-weight: 500;
  color: var(--foreground);
}
.hours-table th:first-child {
  text-align: left;
  padding-left: 0.75rem;
}
.hours-table td {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.hours-table td:first-child {
  text-align: left;
  padding-left: 0.75rem;
}
.hours-table td .time-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.hours-table td .time-value {
  font-weight: 500;
  color: var(--foreground);
}
.hours-available { color: var(--primary); font-weight: 500; }
.hours-closed { color: var(--muted-foreground); }
.hours-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Hours Pending Message */
.hours-pending {
  background: var(--secondary);
  border-radius: 0.5rem;
  padding: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Access Details */
.access-map {
  background: var(--secondary);
  border-radius: 0.5rem;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.access-map-placeholder {
  text-align: center;
  color: var(--muted-foreground);
}
.access-map-placeholder svg {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.5rem;
}
.access-map-placeholder p {
  font-size: 0.875rem;
}
.access-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.access-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.access-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.access-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.access-item .access-label {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}
.access-item .access-value {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}
.access-item a {
  color: var(--primary);
  text-decoration: none;
}
.access-item a:hover { text-decoration: underline; }

/* ========================================
   News / Blog Post Sections
   ======================================== */
.posts-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 640px) {
  .posts-section { padding-top: 7rem; padding-bottom: 7rem; }
}
#news-section { background: var(--background); }
#blog-section { background: var(--card); }

/* Timeline (開院準備レポート) */
.timeline {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  height: 100%;
  width: 1px;
  background: var(--border);
  display: none;
}
@media (min-width: 640px) {
  .timeline::before { display: block; }
}
.timeline-item {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(229,224,216,0.5);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.timeline-dot {
  display: none;
  position: absolute;
  left: 2rem;
  top: 2rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%);
}
@media (min-width: 640px) {
  .timeline-dot { display: block; }
}
.timeline-content {
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .timeline-content { padding: 2rem 2rem 2rem 5rem; }
}
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.timeline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}
.timeline-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.timeline-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}
.timeline-status {
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) { .timeline-title { font-size: 1.25rem; } }
.timeline-desc {
  color: var(--muted-foreground);
  line-height: 1.8;
}
.timeline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.75rem;
  text-decoration: none;
  transition: color 0.2s;
}
.timeline-link:hover { color: var(--primary-hover); }
.timeline-link svg { width: 1rem; height: 1rem; }

/* Post Cards (ブログ) */
.posts-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
.post-card {
  background: var(--background);
  border: 1px solid rgba(229,224,216,0.5);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: rgba(45,125,142,0.3);
}
.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--secondary);
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}
.post-card__thumb-placeholder svg {
  width: 2rem;
  height: 2rem;
}
.post-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card__cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 0.625rem;
}
.post-card__date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.post-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  flex: 1;
}
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}
.post-card__link:hover { color: var(--primary-hover); }
.post-card__link svg { width: 0.875rem; height: 0.875rem; }

/* Empty State */
.posts-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-foreground);
  background: var(--secondary);
  border-radius: var(--radius);
  max-width: 56rem;
  margin: 0 auto;
}
.posts-empty svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  opacity: 0.4;
}
.posts-empty p { font-size: 0.9375rem; }

/* CTA Bell */
.news-cta {
  margin-top: 3rem;
  text-align: center;
}
.news-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
}
.news-cta-badge svg {
  width: 1rem;
  height: 1rem;
}

/* Archive link */
.archive-link-wrap {
  text-align: center;
  margin-top: 2.5rem;
}
.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s;
}
.archive-link:hover {
  background: var(--primary);
  color: #fff;
}
.archive-link svg { width: 1rem; height: 1rem; }

/* ========================================
   Recruit Section (フロントページ)
   ======================================== */
.recruit-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .recruit-grid { grid-template-columns: repeat(3, 1fr); }
}
.recruit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(229,224,216,0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
@media (min-width: 640px) { .recruit-card { padding: 2rem; } }
.recruit-card:hover {
  border-color: rgba(45,125,142,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.recruit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
  transition: background 0.3s, color 0.3s;
}
.recruit-card:hover .recruit-card__icon {
  background: var(--primary);
  color: #fff;
}
.recruit-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.recruit-card__status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
}
.recruit-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.recruit-card__desc {
  color: var(--muted-foreground);
  line-height: 1.8;
  font-size: 0.9375rem;
  flex: 1;
}
.recruit-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 1rem;
  transition: color 0.2s;
}
.recruit-card:hover .recruit-card__link { color: var(--primary-hover); }
.recruit-card__link svg { width: 1rem; height: 1rem; }

/* ========================================
   Recruit Page (採用情報ページ)
   ======================================== */
.recruit-hero__lead {
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.9;
}
@media (min-width: 640px) { .recruit-hero__lead { font-size: 1rem; } }

.recruit-notice-wrap {
  padding-top: 3rem;
}
.recruit-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--accent);
  border: 1px solid rgba(45,125,142,0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--foreground);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.recruit-notice svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.recruit-job {
  background: var(--card);
  border: 1px solid rgba(229,224,216,0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  scroll-margin-top: 8.5rem;
}
@media (min-width: 640px) { .recruit-job { padding: 2.5rem; } }
.recruit-job__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.recruit-job__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}
.recruit-job__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}
.recruit-job__en {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.recruit-job__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}
@media (min-width: 640px) { .recruit-job__title { font-size: 1.75rem; } }
.recruit-job__status {
  margin-left: auto;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  align-self: flex-start;
}
.recruit-job__summary {
  color: var(--muted-foreground);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.recruit-job__note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  background: var(--accent);
  border-radius: 0.5rem;
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.recruit-job__note svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.recruit-job__note p { margin: 0; }
.recruit-job__contact-wrap {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.75rem;
}
.recruit-job__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.recruit-job__contact:hover { color: var(--primary-hover); }
.recruit-job__contact svg {
  width: 1rem;
  height: 1rem;
}

.recruit-table-wrap {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}
.recruit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.recruit-table tr + tr th,
.recruit-table tr + tr td {
  border-top: 1px solid var(--border);
}
.recruit-table th {
  width: 8.5rem;
  background: var(--secondary);
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 500;
  color: var(--foreground);
  vertical-align: top;
  white-space: nowrap;
}
@media (min-width: 640px) { .recruit-table th { width: 11rem; padding: 1rem 1.25rem; } }
.recruit-table td {
  padding: 0.875rem 1rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}
@media (min-width: 640px) { .recruit-table td { padding: 1rem 1.25rem; } }

.recruit-contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.recruit-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.recruit-contact-btn:hover {
  background: var(--primary-hover);
  color: #fff;
}
.recruit-contact-btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.recruit-contact-btn--outline:hover {
  background: var(--primary);
  color: #fff;
}
.recruit-contact-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}
.recruit-contact-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.recruit-contact {
  scroll-margin-top: 8.5rem;
}

/* ========================================
   Contact Form
   ======================================== */
#contact {
  scroll-margin-top: 8.5rem;
}
.contact-form-wrap {
  max-width: 36rem;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid rgba(229,224,216,0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .contact-form { padding: 2rem; }
}
.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form__row label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-form__row .required {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}
.contact-form__row input,
.contact-form__row textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  resize: vertical;
}
.contact-form__row input:focus,
.contact-form__row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.25rem;
}
.contact-form__submit:hover {
  background: var(--primary-hover);
}
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.contact-alert svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.contact-alert ul {
  padding-left: 1.1rem;
}
.contact-alert--success {
  background: var(--accent);
  color: var(--primary);
}
.contact-alert--error {
  background: #fdecea;
  color: #b3261e;
}

/* ========================================
   SNS
   ======================================== */
.sns-follow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ========================================
   Footer
   ======================================== */
#site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 3rem 0;
}
.footer-inner {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.footer-opening {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.footer-tag {
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.footer-sns-link {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.footer-sns-link a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}
.footer-sns-link a:hover {
  text-decoration: underline;
}
.footer-copy {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ========================================
   Single Post Layout
   ======================================== */
.single-hero {
  background: var(--secondary);
  padding: 3rem 1.5rem;
}
.single-hero__inner {
  max-width: 48rem;
  margin: 0 auto;
}
.single-hero__cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.125rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.single-hero__date {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.single-hero__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
}
@media (min-width: 640px) { .single-hero__title { font-size: 2.25rem; } }
.single-thumb {
  background: var(--secondary);
  max-height: 28rem;
  overflow: hidden;
}
.single-thumb img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
}
.single-content-wrap {
  max-width: 48rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.entry-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--foreground);
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}
.entry-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}
.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content img { border-radius: var(--radius); margin: 2rem 0; }
.entry-content a { text-decoration: underline; }
.back-link-wrap {
  max-width: 48rem;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link svg { width: 1rem; height: 1rem; }

/* ========================================
   Page Layout (固定ページ)
   ======================================== */
/* 固定ページの導入部。投稿アーカイブ（archive.php）の .section-header と
   同じトーン・同じ余白にそろえ、ページごとの雰囲気の差をなくす */
.page-hero {
  background: var(--background);
  padding: 5rem 1.5rem 2rem;
  text-align: center;
}
/* 導入部の直後のセクションは、上の余白を詰めてページタイトルと近づける
   （通常のセクション間の間隔のままだと、タイトルの下が大きく空いて見える） */
.page-hero + .section-py,
.page-hero + .posts-section {
  padding-top: 3rem;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: 1.875rem; /* .section-header__title と同じ */
  font-weight: 600;
  color: var(--foreground);
}
@media (min-width: 640px) { .page-hero__title { font-size: 2.5rem; } }
.page-content-wrap {
  max-width: 56rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.page-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--foreground);
}
.page-content p { margin-bottom: 1.5rem; }
/* 長いURLやメールアドレスは途中で改行できないため、そのままだとスマホで
   画面幅を超えてページ全体が横スクロールする（プライバシーポリシーの
   オプトアウトURLで実際に発生）。単語の途中でも折り返せるようにする。 */
.page-content p,
.page-content li { overflow-wrap: break-word; }
.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.page-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}
.page-content ul, .page-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.5rem; }
.page-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.page-content strong { font-weight: 700; color: var(--foreground); }
.page-content a { color: var(--primary); text-decoration: underline; }
.page-content a:hover { color: var(--primary-hover); }

/* 固定ページ本文の表（プライバシーポリシーの事業者情報・取得項目など）。
   WordPressのブロックエディタが出力する .wp-block-table を、
   採用ページの .recruit-table と同じ見た目に揃える。
   狭い画面でレイアウトを崩さないよう、figure側で横スクロールさせる。 */
.page-content .wp-block-table { overflow-x: auto; margin-bottom: 1.5rem; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.page-content th,
.page-content td {
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  border-top: 1px solid var(--border);
}
.page-content thead th {
  background: var(--secondary);
  font-weight: 500;
  color: var(--foreground);
  border-top: 0;
  white-space: nowrap;
}
.page-content tbody td:first-child {
  background: var(--secondary);
  font-weight: 500;
  color: var(--foreground);
}
.page-content tbody td { color: var(--muted-foreground); }

/* メールアドレスのように途中で改行できない長い文字列があると、
   表がスマホの画面幅を超えて横スクロールが必要になる。折り返しを許可する。 */
.page-content td { overflow-wrap: anywhere; }

/* 1列目（項目名）は幅を固定する。
   WordPressコアが .wp-block-table table に width:100% を当てているため、
   幅を決めないと余った横幅が1列目にも比例配分され、「お名前」のような
   短い語に対して列が極端に広くなる。採用ページの .recruit-table と同じ考え方。
   nowrapは付けない（「個人情報保護管理者」が狭い画面で折り返せるようにするため）。 */
.page-content th:first-child,
.page-content td:first-child { width: 9rem; }

@media (min-width: 640px) {
  .page-content th,
  .page-content td { padding: 1rem 1.25rem; }
  .page-content th:first-child,
  .page-content td:first-child { width: 11rem; }
}

/* ========================================
   クリニック紹介ページ（page-clinic-info.php）
   ======================================== */
.doctor-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  color: var(--foreground);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.doctor-cta:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(45, 125, 142, 0.12);
  color: var(--foreground);
}
.doctor-cta__photo {
  flex-shrink: 0;
  width: 10rem;
}
.doctor-cta__photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.doctor-cta__role {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 500;
}
.doctor-cta__name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0.125rem 0 0.375rem;
}
.doctor-cta__qual {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.doctor-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
}
.doctor-cta:hover .doctor-cta__link { text-decoration: underline; }
@media (max-width: 639px) {
  .doctor-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .doctor-cta__photo { width: 100%; max-width: 16rem; }
}
.section-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.overview-table th,
.overview-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.overview-table tr:last-child th,
.overview-table tr:last-child td {
  border-bottom: none;
}
.overview-table th {
  width: 9em;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
@media (max-width: 639px) {
  .overview-table th,
  .overview-table td {
    display: block;
    width: 100%;
    padding: 0.25rem 0;
  }
  .overview-table th { border-bottom: none; padding-top: 1rem; }
  .overview-table td { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
  .overview-table tr:last-child td { border-bottom: none; }
}

/* ========================================
   ロゴ準拠デザイン（2026-07 リニューアル）
   富士山ブルー × 若葉グリーン × 珊瑚色
   ※ 内容(HTML/PHP)は変更せず、見た目のみ上書き
   ======================================== */

/* --- 見出し：丸ゴシック化 + 3色の飾り線 --- */
.section-header__title,
.timeline-title,
.feature-title,
.services-card-title,
.doctor-name,
.recruit-card__title,
.recruit-job__title,
.single-hero__title,
.page-hero__title,
.footer-name {
  font-weight: 700;
  letter-spacing: 0.06em;
}
.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--green-deep);
  font-weight: 700;
  letter-spacing: 0.25em;
}
.section-header__label::before,
.section-header__label::after {
  content: '';
  width: 1.625rem;
  height: 2px;
  border-radius: 2px;
}
.section-header__label::before { background: var(--primary); }
.section-header__label::after { background: var(--coral); }

/* --- ヒーロー：バッジを白背景の縁取りスタイルに --- */
.hero-badge {
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 14px rgba(65,128,196,0.12);
}

/* --- カード類：大きめ角丸 + やわらかい影 + 3色トップボーダー --- */
.card,
.feature-card,
.timeline-item,
.post-card,
.recruit-card,
.recruit-job,
.contact-form {
  border-color: transparent;
  box-shadow: 0 8px 26px rgba(74,67,64,0.07);
}
.features-grid .feature-card { border-top: 4px solid var(--primary); }
.features-grid .feature-card:nth-child(3n+2) { border-top-color: var(--green); }
.features-grid .feature-card:nth-child(3n) { border-top-color: var(--coral); }
.features-grid .feature-card:nth-child(3n+2) .feature-icon {
  background: var(--green-light);
  color: var(--green-deep);
}
.features-grid .feature-card:nth-child(3n+2):hover .feature-icon {
  background: var(--green);
  color: #fff;
}
.features-grid .feature-card:nth-child(3n) .feature-icon {
  background: var(--coral-light);
  color: var(--coral-deep);
}
.features-grid .feature-card:nth-child(3n):hover .feature-icon {
  background: var(--coral);
  color: #fff;
}
.feature-card:hover,
.recruit-card:hover,
.post-card:hover {
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(74,67,64,0.12);
  transform: translateY(-3px);
}
.feature-icon,
.services-card-icon,
.timeline-icon,
.recruit-card__icon,
.recruit-job__icon {
  border-radius: 1rem;
}

/* --- 診療時間表：営業○を若葉グリーンに --- */
.hours-available { color: var(--green); font-weight: 700; }
.hours-table thead { background: var(--secondary); }

/* --- タイムライン（開院準備レポート）--- */
.timeline-dot { background: var(--green); }
.timeline-status { background: var(--green-light); color: var(--green-deep); }

/* --- ブログカード：カテゴリを若葉色に --- */
.post-card__cat { background: var(--green-light); color: var(--green-deep); }
.post-card { background: var(--card); }

/* --- CTA系ボタン：珊瑚色でアクセント --- */
.contact-form__submit,
.recruit-contact-btn {
  background: var(--coral);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(239,132,113,0.35);
  transition: background 0.2s, transform 0.2s;
}
.contact-form__submit:hover,
.recruit-contact-btn:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}
.recruit-contact-btn--outline {
  background: transparent;
  color: var(--coral-deep);
  border: 2px solid var(--coral);
  box-shadow: none;
}
.recruit-contact-btn--outline:hover {
  background: var(--coral);
  color: #fff;
}

/* --- フッター：タグを3色ローテーション --- */
.footer-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.footer-tags .footer-tag:nth-child(3n+2) {
  background: var(--green-light);
  color: var(--green-deep);
}
.footer-tags .footer-tag:nth-child(3n) {
  background: var(--coral-light);
  color: var(--coral-deep);
}

/* --- 固定ページ見出しの下線をロゴ3色に --- */
.page-content h2 {
  border-bottom: none;
  padding-bottom: 0.625rem;
  position: relative;
}
.page-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary) 0 33%, var(--green) 33% 66%, var(--coral) 66% 100%);
  opacity: 0.55;
}

/* --- 入力フォーム：白ベース + 青フォーカス --- */
.contact-form__row input,
.contact-form__row textarea {
  background: #fff;
  border-radius: 0.875rem;
}

/* ========================================
   フッター v2（CTAバンド + スリム情報行 + ブルーの地面）
   ======================================== */
#site-footer {
  border-top: none;
  background: var(--card);
  padding: 0;
}

/* --- CTAバンド：淡い空色。色は主ボタンに集中 --- */
.footer-cta {
  background: linear-gradient(180deg, var(--background) 0%, var(--accent) 100%);
  padding: 3rem 1.5rem 3.25rem;
  text-align: center;
}
.footer-cta__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
.footer-cta__desc {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  margin-bottom: 1.375rem;
}
.footer-cta__row {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-cta__btn--main {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 16px rgba(239,132,113,0.32);
}
.footer-cta__btn--main:hover {
  background: var(--coral-deep);
  color: #fff;
  transform: translateY(-1px);
}
.footer-cta__btn--sub {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fff;
}
.footer-cta__btn--sub:hover {
  background: var(--primary);
  color: #fff;
}
.footer-cta__note {
  margin-top: 0.875rem;
  font-size: 0.76rem;
  color: var(--muted-foreground);
}
.footer-cta__badge {
  display: inline-block;
  background: #fff;
  border: 1.5px solid var(--green);
  color: var(--green-deep);
  border-radius: 9999px;
  padding: 0.0625rem 0.75rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* --- フッター本体：ブランド + メニューの1段 --- */
.footer-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
/* ロゴマークはヘッダー（3.25〜3.75rem）より一回り小さい48px幅。
   仮ロゴのSVGは正方形なので、こちらは48px角のまま */
.footer-brand__mark {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}
/* logo.pngの上下にある透明の余白を切り落とす。
   site-logo__mark と同じ理由・同じ比率（詳細はそちらのコメント参照） */
img.footer-brand__mark {
  height: auto;
  aspect-ratio: 656 / 356;
  object-fit: cover;
  object-position: center;
}
.footer-brand__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--foreground);
}
.footer-brand__sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}
.footer-brand__sub-b { color: var(--primary); }
.footer-brand__sub-g { color: var(--green); }
.footer-brand__sub-c { color: var(--coral); }
.footer-brand__meta {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.footer-brand__meta a {
  color: var(--primary);
  font-weight: 500;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.375rem 2.125rem;
  font-size: 0.84rem;
  padding-top: 0.375rem;
}
.footer-nav a { color: var(--muted-foreground); }
.footer-nav a::before {
  content: '›';
  color: var(--coral);
  margin-right: 0.4375rem;
  font-weight: 700;
}
.footer-nav a:hover { color: var(--primary); }

/* --- 最下部：富士山ブルーの地面 ---
   deeper配色の変数に連動させず、ロゴの富士山ブルーの明るさに固定する
   （変数参照だとパレット調整のたびにバーまで濃くなってしまうため） */
.footer-base {
  background: linear-gradient(135deg, #33689f 0%, #4180c4 55%, #4f8a5f 130%);
  color: #fff;
  padding: 0.875rem 1.5rem;
}
/* 中身は著作権表記だけなので、幅いっぱいに散らさず中央でまとめる */
.footer-base__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}
.footer-base__copy {
  font-size: 0.75rem;
  opacity: 0.92;
}
@media (max-width: 639px) {
  .footer-main { flex-direction: column; }
}

/* ========================================
   症状から探す・疾患から探す
   ======================================== */

/* --- 症状タイル --- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px)  { .symptom-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .symptom-grid { grid-template-columns: repeat(4, 1fr); } }

.symptom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.625rem;
  padding: 1.25rem 0.875rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.symptom-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(58,118,186,0.12);
}
.symptom-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
}
.symptom-card__icon svg { width: 1.5rem; height: 1.5rem; }
.symptom-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.symptom-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}
.symptom-card__desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
/* 一覧では説明文を出し、関連リンクなど省スペースな場所では隠す */
.symptom-grid--compact .symptom-card { padding: 1rem 0.75rem; }
.symptom-grid--compact .symptom-card__desc { display: none; }

/* --- 疾患リスト --- */
.disease-group { margin-bottom: 2.5rem; }
.disease-group__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-light);
}
/* 「女性に多い病気」ページで、グループ見出しの下に「なぜ女性に多いか」を添える。
   /disease/ の一覧では使わない（あちらは見出しのみ） */
.disease-group__desc {
  margin: -0.25rem 0 1rem;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted-foreground);
}
.disease-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px)  { .disease-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .disease-list { grid-template-columns: repeat(3, 1fr); } }

.disease-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.disease-list a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
}
.disease-list__arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.6;
}

/* --- 個別ページ --- */
.single-hero--symptom .single-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: 9999px;
  background: var(--card);
  color: var(--primary);
}
.single-hero--symptom .single-hero__icon svg { width: 1.75rem; height: 1.75rem; }
.single-hero__lead {
  margin-top: 0.875rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--secondary-foreground);
}

.related-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-block__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* 医療広告ガイドラインに配慮した注意書き。全ページ共通で本文の末尾に置く */
.medical-note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--muted);
  border-radius: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}
.medical-note--list { margin-top: 2rem; }

/* 「女性に多い病気」ページの導入文。扱う範囲（内科であること）を最初に伝える枠 */
.wh-lead {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 2;
}
.wh-lead strong { color: var(--primary-hover); }

/* --- トップページのセクション --- */
.find-section__nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.find-section__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--primary);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.find-section__more:hover {
  background: var(--primary);
  color: #fff;
}
.find-section__more svg { width: 1rem; height: 1rem; }
