/* =========================================================
   配色（ロゴの水色 #8AEDEA・黄色 #F9EE6E が映える組み合わせ）
   深い青緑を主色に、ロゴの水色・黄色を淡くした地色、差し色に温かいオレンジ。
   文字と背景のコントラストは 4.5:1 以上になる色を選んでいる。
   このファイルを最後に読むので、色を変えるときはここだけ直せばよい。
   ========================================================= */
:root {
  --navy: #16636B;        /* 主色（見出し帯・ボタン・表の見出し）白文字 6.9:1 */
  --navy-2: #1E7C85;      /* 主色の明るい方 白文字 4.8:1 */
  --navy-ink: #173F45;    /* 見出しの文字 */
  --teal: #237A73;        /* 自動音声・診療の記号 白文字 5.0:1 */
  --orange: #C64F24;      /* WEB受付・強調 白文字 4.6:1 */
  --orange-2: #B4461F;
  --red: #B83A2E;         /* 臨時休診のみ */
  --sky: #E2F6F5;         /* ロゴの水色を淡く */
  --sky-2: #F0FAF9;
  --sand: #FFF9DF;        /* ロゴの黄色を淡く */
  --peach: #FFEFE4;
  --mint: #E5F5EC;
  --lemon: #FFF6C7;
  --cream: #FFFDF7;
  --line: #DDE7E4;
  --text: #25393D;
  --muted: #55686B;
  --logo-aqua: #8AEDEA;
  --logo-yellow: #F9EE6E;
  --accent-yellow: #F2D94E; /* 飾り線用（文字には使わない） */
}

body { background: var(--cream); color: var(--text); }
a { color: var(--navy-2); }
a:hover { color: var(--orange); }

/* ヘッダー：白地にしてロゴの淡い色を引き立てる */
.site-header { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line); }
.brand-name { color: var(--navy-ink); }
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent-yellow); }
/* 臨時休診：赤ではなく、淡い黄色の地に濃い茶色の文字で落ち着いて知らせる（文字 6.3:1） */
.alertbar { background: #FFF5D9; color: #4A3B10; border-bottom: 1px solid #EBD58A; font-weight: 500; }
.alertbar .wrap { gap: 6px 18px; padding-top: 9px; padding-bottom: 9px; }
.alertbar .ab-label { display: inline-flex; align-items: center; gap: 6px; color: #8A4B12; font-weight: 700; }
.alertbar .ab-label svg { width: 20px; height: 20px; }
.alertbar .ab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.alertbar .ab-list li + li { border-left: 1px solid #D9C27A; margin-left: 14px; padding-left: 14px; }
.alertbar a.ab-more { color: #16636B; margin-left: auto; font-weight: 700; white-space: nowrap; }
.alertbar a.ab-more:hover { color: var(--orange); }
@media (max-width: 760px) {
  .alertbar { font-size: .92em; }
  .alertbar .ab-list { flex-direction: column; flex-basis: 100%; order: 2; }
  .alertbar .ab-list li + li { border-left: 0; margin-left: 0; padding-left: 0; }
  .alertbar a.ab-more { order: 1; }
}

/* TOPの休診ボックスも同じ色味に */
.fclosure .box { border-color: #EBD58A; }
.fclosure .lbl { background: #FFF5D9; color: #8A4B12; border: 1px solid #EBD58A; }
.fclosure li { color: #4A3B10; }

/* 見出しの英字ラベル */
.sec-head .en { color: var(--navy-2); }
.sec-head .en::before, .sec-head.center .en::after { background: var(--accent-yellow); height: 4px; }
.content h2, .entry h2 { border-left-color: var(--logo-aqua); }

/* FV */
.ffv { background: linear-gradient(180deg, #EAF8F7 0%, var(--cream) 100%); }
.ffv .eyebrow .dot { background: var(--logo-aqua); box-shadow: 0 0 0 3px #D3F5F3; }
.ffv h1 .mk-line { background: linear-gradient(transparent 60%, rgba(249, 238, 110, .9) 60%); }
.photo .frame { background: var(--sky); }

/* ページ見出し */
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #3FA39C 130%); }
.page-hero::after { background: rgba(249, 238, 110, .14); }

/* 診療時間 */
.tabs { background: var(--sky); }
.tabs button { color: var(--navy); }
.htable { border-color: var(--line); }
.htable thead th { background: var(--navy); }
.htable thead th.sat { background: #2C7F88; }
.htable thead th.sun { background: var(--red); }
.htable tbody th { background: var(--sky-2); }
.dtable th, .entry th { background: var(--sky-2); }
.dtable th, .dtable td { border-color: var(--line); }

/* 受付カード・ボタン */
.tel-card.web, .btn-orange, .ffv-cta .web, .sp-cta .c-web { background: var(--orange); }
.btn-orange:hover { background: var(--orange-2); }
.tel-card.auto, .sp-cta .c-tel { background: var(--teal); }
.tel-card.staff, .btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.read-more, .fmed .more { color: var(--orange); }

/* カードの淡色 */
.fmed .c4 .ic { color: #8A6D00; }
.news-feature .ph, .post-card .ph, .map-ph { background: linear-gradient(135deg, var(--sky), var(--sand)); color: #4E6B6B; }
.qual li { background: var(--navy); color: #fff; border: 0; }   /* 資格ラベル：濃い地に白文字（6.9:1） */

/* ---------------------------------------------------------
   色の意味を分ける：オレンジは「押せるもの」だけに使う
   ・押せる（ボタン・リンク・矢印）……オレンジ  var(--orange)
   ・順番の目印（受診の流れの STEP）……ロゴの黄色の地＋濃い文字（押せない）
   ・お知らせの分類「診療時間」・NEW……紫（押せない札）
   ・臨時休診・重要・日祝……赤（注意）
   --------------------------------------------------------- */
.fstep .num { background: var(--logo-yellow); color: var(--navy-ink); box-shadow: 0 0 0 3px #fff; }
.pill-orange { background: #6B4FA0; }   /* 白文字 6.4:1 */

/* ---------------------------------------------------------
   見やすさ（文字は背景とのコントラスト 4.5:1 以上、カードの枠は 3:1 以上）
   --------------------------------------------------------- */
:root { --card-line: #6F8E8A; }   /* カードの枠：生成りの地に対して 3.4:1 */
a { color: var(--navy); }                                  /* リンク：淡い色の枠の中でも 6:1 前後 */
.fmed .more, .read-more, .linklist a span[style*="orange"] { color: var(--orange-2) !important; }
.sec-head .en { color: var(--navy); }
.bubble small { color: var(--muted); }

/* カード・押せる枠は、はっきりした枠線にする（特にご高齢の方が見分けやすいように） */
.card, .post-card, .news-feature, .news-list a, .linklist a, .howto li, .monshin-opt,
.flow li, .route li, .pager a, .fstep, .fmed a, .fmed-wide, .news-filter a,
.pagination .page-numbers:not(.dots) { border: 2px solid var(--card-line); }
.news-list a:hover, .card.link:hover, .linklist a:hover, .post-card:hover, .news-feature:hover { border-color: var(--navy); }
.news-filter a[aria-current="page"], .pagination .page-numbers.current { border-color: var(--navy); }

/* CTA帯・フッター */
.cta-band { background: linear-gradient(110deg, var(--navy), var(--navy-2)); }
.site-footer { background: #123E44; color: #D9E8E6; }
.site-footer a { color: #EAF6F4; }
.ft-tels div { border-left-color: var(--logo-yellow); }
.ft-tels small { color: #BCD3D0; }
.copy { color: #9DB9B5; }
.to-top { background: var(--navy); }
.to-top:hover { background: var(--orange); }
