/* =========================================================
   健康経営ページ 専用CSS  (health_modern.css)  v2
   - <main class="health-page"> 配下の .hp-* クラスにのみ作用
   - ヘッダー / グローバルナビ / フッターには影響しません
   - company.css の「後」に読み込んでください
   - v2: 目次(サイドメニュー)を廃止し、PCでもモバイルと同じ
         「本文の上に目次を表示する」1カラム構成に変更
   ========================================================= */

/* ---------- 変数 ---------- */
.health-page {
  --hp-primary: #12396b;
  --hp-primary-dark: #0b2545;
  --hp-accent: #16a085;
  --hp-accent-dark: #0e7c66;
  --hp-accent-soft: #e6f6f2;
  --hp-ink: #1f2933;
  --hp-muted: #5b6770;
  --hp-line: #dbe3ea;
  --hp-bg: #f5f8fb;
  --hp-white: #fff;
  --hp-radius: 16px;
  --hp-shadow: 0 8px 24px rgba(15, 42, 71, .08);
  --hp-shadow-lg: 0 16px 40px rgba(15, 42, 71, .14);
  /* 追従ヘッダーがある場合は、この値を高さに合わせて調整
     （目次リンクで移動したとき見出しが隠れないための余白） */
  --hp-sticky-top: 96px;
}

html:has(.health-page) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html:has(.health-page) { scroll-behavior: auto; }
}

/* ---------- ベース ---------- */
.health-page .hp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 96px;
  color: var(--hp-ink);
  font-size: 16px;
  line-height: 1.9;
  counter-reset: hp-sec;
}
.health-page .hp-wrap *,
.health-page .hp-wrap *::before,
.health-page .hp-wrap *::after { box-sizing: border-box; }
.health-page .hp-wrap p { margin: 0 0 1.1em; font-size: inherit; line-height: inherit; text-align: left; }
.health-page .hp-wrap ul,
.health-page .hp-wrap ol { margin: 0; padding: 0; list-style: none; }
.health-page .hp-wrap img { max-width: 100%; height: auto; vertical-align: bottom; }
.health-page .hp-wrap a { color: var(--hp-primary); }
.health-page .hp-wrap figure { margin: 0; }
.health-page .hp-wrap h2,
.health-page .hp-wrap h3,
.health-page .hp-wrap h4 { margin: 0; padding: 0; background: none; border: 0; line-height: 1.5; color: var(--hp-primary-dark); }

/* ---------- リード + 数字帯 ---------- */
.health-page .hp-lead {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 48px 48px 40px;
  background: linear-gradient(135deg, var(--hp-primary-dark) 0%, var(--hp-primary) 55%, var(--hp-accent-dark) 130%);
  color: #fff;
  box-shadow: var(--hp-shadow-lg);
}
.health-page .hp-lead::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.health-page .hp-lead__eyebrow {
  margin: 0 0 10px !important;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; opacity: .8;
}
.health-page .hp-lead__text {
  position: relative; z-index: 1;
  max-width: 46em; margin: 0 0 32px !important;
  font-size: clamp(18px, 2.2vw, 24px) !important; font-weight: 700; line-height: 1.7 !important;
}
.health-page .hp-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px;
}
.health-page .hp-stat {
  padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
}
.health-page .hp-stat__num { display: block; font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: .01em; }
.health-page .hp-stat__num small { font-size: .45em; font-weight: 700; margin-left: 2px; }
.health-page .hp-stat__label { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; opacity: .9; }

/* ---------- レイアウト (目次 → 本文 の縦並び。PC/モバイル共通) ---------- */
.health-page .hp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}

/* ---------- 目次 (本文の上に表示・追従なし) ---------- */
.health-page .hp-toc {
  position: static;
  padding: 26px 28px;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
  font-size: 14px; line-height: 1.5;
}
.health-page .hp-toc__title { margin: 0 0 12px !important; font-size: 12px !important; letter-spacing: .16em; color: var(--hp-muted); }
.health-page .hp-toc__group { margin: 0 0 6px !important; }
.health-page .hp-toc__group > a {
  display: block; padding: 8px 10px; border-radius: 8px;
  font-weight: 700; text-decoration: none; color: var(--hp-primary-dark);
  background: var(--hp-bg);
}
.health-page .hp-toc__list {
  margin: 4px 0 18px !important;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px;
}
.health-page .hp-toc__list a {
  display: block; padding: 7px 10px 7px 14px; margin: 2px 0;
  border-left: 3px solid transparent; border-radius: 0 8px 8px 0;
  text-decoration: none; color: var(--hp-muted);
  transition: background .2s, color .2s, border-color .2s;
}
.health-page .hp-toc__list a:hover { background: var(--hp-bg); color: var(--hp-primary); }
.health-page .hp-toc__list a.is-active {
  background: var(--hp-accent-soft); color: var(--hp-accent-dark);
  border-left-color: var(--hp-accent); font-weight: 700;
}

/* ---------- 大見出し (h2) ---------- */
.health-page .hp-part { margin: 0 0 72px; }
.health-page .hp-part + .hp-part { margin-top: 24px; }
.health-page .hp-part__head {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 32px; padding: 0 0 18px;
  border-bottom: 2px solid var(--hp-line);
  position: relative;
  scroll-margin-top: var(--hp-sticky-top);
}
.health-page .hp-part__head::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--hp-accent), var(--hp-primary));
}
.health-page .hp-part__title { font-size: clamp(24px, 3vw, 32px) !important; font-weight: 800 !important; letter-spacing: .02em; }
.health-page .hp-part__en { margin: 0 !important; font-size: 12px !important; letter-spacing: .2em; color: var(--hp-accent-dark); text-transform: uppercase; font-weight: 700; }
.health-page .hp-part__intro { font-size: 17px !important; color: var(--hp-muted); margin-bottom: 40px !important; }

/* ---------- 中見出し (h3) ---------- */
.health-page .hp-sec { margin: 0 0 64px; scroll-margin-top: var(--hp-sticky-top); }
.health-page .hp-sec__title {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 24px !important;
  font-size: clamp(20px, 2.4vw, 26px) !important; font-weight: 800 !important;
}
.health-page .hp-sec__title::before {
  counter-increment: hp-sec;
  content: counter(hp-sec, decimal-leading-zero);
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 8px; border-radius: 12px;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-dark));
  color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 6px 14px rgba(22, 160, 133, .35);
}

/* ---------- 小見出し (h4) ---------- */
.health-page .hp-sub {
  margin: 40px 0 14px !important;
  padding: 2px 0 2px 14px;
  border-left: 5px solid var(--hp-accent);
  font-size: 18px !important; font-weight: 800 !important;
}

/* ---------- 引用 (健康宣言) ---------- */
.health-page .hp-quote {
  position: relative; margin: 28px 0 !important;
  padding: 40px 40px 32px 52px;
  background: linear-gradient(180deg, #fff, var(--hp-bg));
  border: 1px solid var(--hp-line);
  border-left: 8px solid var(--hp-accent);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}
.health-page .hp-quote::before {
  content: "\201C"; position: absolute; left: 18px; top: 4px;
  font-family: Georgia, serif; font-size: 80px; line-height: 1; color: var(--hp-accent); opacity: .35;
}
.health-page .hp-quote__title { margin: 0 0 18px !important; font-size: 22px !important; font-weight: 800; text-align: center !important; color: var(--hp-primary-dark); }
.health-page .hp-quote__sign { margin: 22px 0 0 !important; text-align: right !important; font-size: 14px !important; color: var(--hp-muted); line-height: 1.7 !important; }
.health-page .hp-quote__sign strong { display: block; font-size: 17px; color: var(--hp-ink); }

/* ---------- 制定・改定タイムライン ---------- */
.health-page .hp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px !important; }
.health-page .hp-chips li {
  padding: 6px 16px; border-radius: 999px;
  background: var(--hp-accent-soft); color: var(--hp-accent-dark);
  font-size: 14px; font-weight: 700; line-height: 1.6;
}

/* ---------- カード ---------- */
.health-page .hp-cards { display: grid; gap: 20px; margin: 24px 0; }
.health-page .hp-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.health-page .hp-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.health-page .hp-card {
  position: relative; padding: 28px 24px 24px;
  background: var(--hp-white);
  border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
  transition: transform .25s, box-shadow .25s;
}
.health-page .hp-card:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-lg); }
.health-page .hp-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px;
  border-radius: var(--hp-radius) var(--hp-radius) 0 0;
  background: linear-gradient(90deg, var(--hp-accent), var(--hp-primary));
}
.health-page .hp-card__no {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--hp-accent-dark);
}
.health-page .hp-card__title { margin: 0 0 10px !important; font-size: 18px !important; font-weight: 800 !important; }
.health-page .hp-card p:last-child { margin-bottom: 0; }
.health-page .hp-card p { font-size: 15px; line-height: 1.85; }

/* ---------- KPI ---------- */
.health-page .hp-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.health-page .hp-kpi__item {
  padding: 26px 24px;
  background: var(--hp-white); border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}
.health-page .hp-kpi__label { margin: 0 !important; font-size: 14px !important; font-weight: 700; color: var(--hp-muted); }
.health-page .hp-kpi__value {
  margin: 6px 0 4px !important; font-size: 44px !important; font-weight: 800; line-height: 1.15 !important;
  color: var(--hp-primary); letter-spacing: .01em;
}
.health-page .hp-kpi__value small { font-size: .4em; margin-left: 2px; }
.health-page .hp-kpi__meta { margin: 0 !important; font-size: 13px !important; color: var(--hp-muted); line-height: 1.7 !important; }
.health-page .hp-kpi__badge {
  display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px;
  background: var(--hp-accent-soft); color: var(--hp-accent-dark);
  font-size: 12px; font-weight: 800;
}

/* ---------- テーブル ---------- */
.health-page .hp-table-title { margin: 32px 0 8px !important; text-align: center !important; font-weight: 800; color: var(--hp-primary-dark); }
.health-page .hp-table-wrap {
  overflow-x: auto; margin: 12px 0 28px;
  background: var(--hp-white);
  border: 1px solid var(--hp-line); border-radius: 12px;
  box-shadow: var(--hp-shadow);
  -webkit-overflow-scrolling: touch;
}
.health-page .hp-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; line-height: 1.6; background: transparent; }
.health-page .hp-wrap .hp-table th,
.health-page .hp-wrap .hp-table td {
  padding: 14px 16px; text-align: center; vertical-align: middle;
  border: 0; border-bottom: 1px solid var(--hp-line);
  font-size: 15px; font-weight: 400; width: auto;
}
.health-page .hp-wrap .hp-table thead th { background: var(--hp-primary); color: #fff; font-weight: 700; white-space: nowrap; }
.health-page .hp-wrap .hp-table tbody th {
  position: sticky; left: 0; z-index: 1;
  background: var(--hp-bg); color: var(--hp-primary-dark);
  text-align: left; font-weight: 700; white-space: nowrap;
  border-right: 1px solid var(--hp-line);
}
.health-page .hp-wrap .hp-table tbody tr:nth-child(even) td { background: #fafcfe; }
.health-page .hp-wrap .hp-table tbody tr:hover td { background: var(--hp-accent-soft); }
.health-page .hp-wrap .hp-table tbody tr:last-child th,
.health-page .hp-wrap .hp-table tbody tr:last-child td { border-bottom: 0; }
.health-page .hp-table .hp-num { font-weight: 800; color: var(--hp-primary); font-size: 1.05em; }
.health-page .hp-table .hp-note-in { display: block; margin-top: 2px; font-size: 12px; color: var(--hp-muted); line-height: 1.5; }
.health-page .hp-table--left td { text-align: left; }

/* ---------- details (折りたたみ) ---------- */
.health-page .hp-details {
  margin: 24px 0; border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
  background: var(--hp-white); box-shadow: var(--hp-shadow); overflow: hidden;
}
.health-page .hp-details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; cursor: pointer; list-style: none;
  font-weight: 800; color: var(--hp-primary-dark); background: var(--hp-bg);
}
.health-page .hp-details > summary::-webkit-details-marker { display: none; }
.health-page .hp-details > summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hp-accent); color: #fff; font-size: 20px; line-height: 1;
}
.health-page .hp-details[open] > summary::after { content: "\2212"; }
.health-page .hp-details > summary:focus-visible { outline: 3px solid var(--hp-accent); outline-offset: -3px; }
.health-page .hp-details__body { padding: 8px 24px 24px; }
.health-page .hp-details__body .hp-table-wrap { box-shadow: none; }

/* ---------- 注記 ---------- */
.health-page .hp-notes { margin: 8px 0 0 !important; font-size: 13px; line-height: 1.8; color: var(--hp-muted); }
.health-page .hp-notes li { margin: 0 0 8px; }

/* ---------- コールアウト ---------- */
.health-page .hp-callout {
  margin: 24px 0 !important; padding: 22px 26px;
  background: var(--hp-accent-soft);
  border-radius: 12px; border: 1px solid rgba(22,160,133,.25);
  font-size: 15px !important; line-height: 1.9 !important;
}
.health-page .hp-callout--plain { background: var(--hp-bg); border-color: var(--hp-line); }
.health-page .hp-callout p:last-child { margin-bottom: 0; }
.health-page .hp-callout__label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--hp-accent-dark); }

/* ---------- 箇条書き ---------- */
.health-page .hp-list { margin: 16px 0 24px !important; }
.health-page .hp-list li {
  position: relative; margin: 0 0 10px; padding: 14px 18px 14px 44px;
  background: var(--hp-white); border: 1px solid var(--hp-line); border-radius: 12px;
  font-size: 15px; line-height: 1.85;
}
.health-page .hp-list li::before {
  content: ""; position: absolute; left: 18px; top: 24px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--hp-accent);
}

/* ---------- 画像 ---------- */
.health-page .hp-figure { margin: 28px 0 !important; text-align: center; }
.health-page .hp-figure img {
  border-radius: 12px; background: #fff;
  box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line);
}
.health-page .hp-figure figcaption,
.health-page .hp-gallery figcaption {
  margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--hp-muted);
}
.health-page .hp-figure--narrow img { max-width: 720px; width: 100%; }
.health-page .hp-figure--wide img { width: 100%; max-width: 900px; }
.health-page .hp-figure__title { margin: 0 0 12px !important; text-align: center !important; font-weight: 800; color: var(--hp-primary-dark); }

.health-page .hp-gallery { display: grid; gap: 16px; margin: 24px 0; }
.health-page .hp-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.health-page .hp-gallery--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.health-page .hp-gallery figure { text-align: center; }
.health-page .hp-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; box-shadow: var(--hp-shadow);
  transition: transform .3s;
}
.health-page .hp-gallery--contain img { object-fit: contain; background: var(--hp-bg); border: 1px solid var(--hp-line); }
.health-page .hp-gallery a:hover img,
.health-page .hp-zoom:hover { transform: scale(1.02); }
.health-page .hp-zoom { cursor: zoom-in; }

/* ---------- CTA ---------- */
.health-page .hp-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 28px 0; padding: 26px 30px;
  background: linear-gradient(135deg, var(--hp-primary-dark), var(--hp-primary));
  color: #fff; border-radius: var(--hp-radius); box-shadow: var(--hp-shadow-lg);
}
.health-page .hp-cta p { margin: 0 !important; font-size: 15px; line-height: 1.8; }
.health-page .hp-cta strong { display: block; font-size: 19px; margin-bottom: 2px; }
.health-page .hp-wrap .hp-cta__btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 12px 26px; border-radius: 999px;
  background: #fff; color: var(--hp-primary-dark); font-weight: 800; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.health-page .hp-wrap .hp-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.health-page .hp-wrap .hp-cta__btn::after { content: "\2192"; }

/* ---------- 数字ハイライト (本文中) ---------- */
.health-page .hp-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.health-page .hp-figures__item {
  padding: 22px 20px; text-align: center;
  background: var(--hp-white); border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}
.health-page .hp-figures__num { display: block; font-size: 38px; font-weight: 800; line-height: 1.2; color: var(--hp-accent-dark); }
.health-page .hp-figures__num small { font-size: .42em; margin-left: 2px; }
.health-page .hp-figures__label { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--hp-muted); }

/* ---------- 社外評価 ---------- */
.health-page .hp-award {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: center;
  margin: 24px 0; padding: 28px;
  background: var(--hp-white); border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}
.health-page .hp-award--small { grid-template-columns: 180px minmax(0, 1fr); }
.health-page .hp-award__img { text-align: center; }
.health-page .hp-award__img img { max-height: 260px; width: auto; }
.health-page .hp-award__badge {
  display: inline-block; margin-bottom: 8px; padding: 4px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #f5c542, #e0a100); color: #3b2c00;
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
}
.health-page .hp-award p { margin-bottom: .6em; }
.health-page .hp-award p:last-child { margin-bottom: 0; }

/* ---------- 地域貢献ブロック ---------- */
.health-page .hp-block {
  padding: 24px 26px; margin: 16px 0;
  background: var(--hp-white); border: 1px solid var(--hp-line); border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}
.health-page .hp-block .hp-sub { margin-top: 0 !important; }
.health-page .hp-block p:last-child { margin-bottom: 0; }

/* ---------- 補足テキスト ---------- */
.health-page .hp-aside { font-weight: 400; font-size: .85em; color: var(--hp-muted); }

/* ---------- アニメーション ---------- */
.health-page.hp-js .hp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.health-page.hp-js .hp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .health-page.hp-js .hp-reveal { opacity: 1; transform: none; transition: none; }
  .health-page .hp-card, .health-page .hp-gallery img { transition: none; }
}

/* ---------- ライトボックス ---------- */
.hp-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 20, 38, .86); cursor: zoom-out;
}
.hp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hp-lightbox__close {
  position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; color: #12396b; font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .health-page .hp-gallery--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .health-page .hp-wrap { padding: 28px 16px 64px; font-size: 15px; }
  .health-page .hp-lead { padding: 30px 22px 26px; border-radius: 18px; }
  .health-page .hp-stat__num { font-size: 28px; }
  .health-page .hp-cards--3,
  .health-page .hp-cards--2,
  .health-page .hp-kpi,
  .health-page .hp-gallery--3 { grid-template-columns: minmax(0, 1fr); }
  .health-page .hp-gallery--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .health-page .hp-toc { padding: 22px 20px; }
  .health-page .hp-toc__list { grid-template-columns: minmax(0, 1fr); }
  .health-page .hp-quote { padding: 34px 22px 24px 28px; border-left-width: 6px; }
  .health-page .hp-quote::before { left: 8px; font-size: 60px; }
  .health-page .hp-award,
  .health-page .hp-award--small { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .health-page .hp-sec { margin-bottom: 48px; }
  .health-page .hp-sec__title::before { min-width: 40px; height: 40px; font-size: 14px; }
  .health-page .hp-cta { padding: 22px; }
  .health-page .hp-details__body { padding: 4px 14px 18px; }
}

/* ---------- 印刷 ---------- */
@media print {
  .health-page .hp-toc { display: none; }
  .health-page.hp-js .hp-reveal { opacity: 1; transform: none; }
  .health-page .hp-card, .health-page .hp-kpi__item, .health-page .hp-table-wrap { box-shadow: none; }
  .health-page .hp-details:not([open]) .hp-details__body { display: block; }
}

/* =========================================================
   health_modern.css への【追記分】 (v3)
   - 既存の health_modern.css の末尾にそのまま貼り付けてください
   - 追加内容: ① 健康宣言内の「健康三訓」 / ② 評価指標カードの2024・2025年度表示
   ========================================================= */

/* ---------- ① 健康宣言の中の「健康三訓」 ---------- */
.health-page .hp-motto {
  margin: 28px 0 8px;
  padding: 24px 24px 22px;
  background: var(--hp-accent-soft);
  border: 1px solid rgba(22, 160, 133, .28);
  border-radius: 14px;
}
.health-page .hp-wrap .hp-motto__title {
  margin: 0 0 16px !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--hp-primary-dark);
}
.health-page .hp-motto__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.health-page .hp-motto__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px 16px;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 42, 71, .06);
}
.health-page .hp-motto__no {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hp-accent), var(--hp-accent-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.health-page .hp-motto__text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--hp-ink);
}

/* ---------- ② 評価指標カード（2025年度を主表示＋2024年度を併記） ---------- */
.health-page .hp-kpi__year {
  display: inline-block;
  margin: 10px 0 0 !important;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--hp-primary);
  color: #fff;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.7 !important;
  letter-spacing: .06em;
}
.health-page .hp-kpi__prev {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--hp-line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--hp-muted);
}
.health-page .hp-kpi__prev-year { font-weight: 800; color: var(--hp-primary-dark); }
.health-page .hp-kpi__prev strong { font-size: 20px; font-weight: 800; color: var(--hp-primary); line-height: 1.3; }
.health-page .hp-kpi__prev-meta { flex-basis: 100%; font-size: 12px; }
.health-page .hp-kpi__hint {
  margin: 12px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: var(--hp-muted);
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .health-page .hp-motto { padding: 20px 16px 16px; }
  .health-page .hp-motto__list { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   v5 追記: 健康経営への投資（シンプルな表）
   ========================================================= */
.health-page .hp-table--invest { min-width: 0; table-layout: auto; }
.health-page .hp-wrap .hp-table--invest th,
.health-page .hp-wrap .hp-table--invest td { text-align: left; white-space: normal; }
.health-page .hp-wrap .hp-table--invest .hp-r { text-align: right; }
.health-page .hp-wrap .hp-table--invest thead th { white-space: nowrap; }
.health-page .hp-wrap .hp-table--invest tbody th,
.health-page .hp-wrap .hp-table--invest tfoot th {
  position: static; background: var(--hp-bg); color: var(--hp-primary-dark); font-weight: 700;
  border-right: 1px solid var(--hp-line);
}
.health-page .hp-wrap .hp-table--invest tbody tr:nth-child(even) td { background: transparent; }
.health-page .hp-wrap .hp-table--invest tbody tr:hover td { background: transparent; }
.health-page .hp-wrap .hp-table--invest tbody th[rowspan],
.health-page .hp-wrap .hp-table--invest td[rowspan] { vertical-align: top; }
.health-page .hp-wrap .hp-table--invest .hp-invest-head {
  font-size: 13px; font-weight: 700; color: var(--hp-muted); background: var(--hp-bg);
  border-bottom: 1px solid var(--hp-line);
}
.health-page .hp-wrap .hp-table--invest .hp-invest-sub { padding-left: 24px; }
.health-page .hp-wrap .hp-table--invest tbody tr:last-child td { border-bottom: 1px solid var(--hp-line); }
.health-page .hp-wrap .hp-table--invest tbody tr:last-child th { border-bottom: 1px solid var(--hp-line); }
.health-page .hp-wrap .hp-table--invest tfoot th,
.health-page .hp-wrap .hp-table--invest tfoot td { border-bottom: 0; border-top: 2px solid var(--hp-line); background: #fafcfe; }
.health-page .hp-wrap .hp-table--invest tfoot td.hp-r .hp-num { font-size: 1.15em; }
@media (max-width: 767px) {
  .health-page .hp-wrap .hp-table--invest th,
  .health-page .hp-wrap .hp-table--invest td { padding: 12px 8px; font-size: 13px; line-height: 1.5; }
  .health-page .hp-wrap .hp-table--invest thead th { font-size: 12px; padding-left: 6px; padding-right: 6px; }
  .health-page .hp-wrap .hp-table--invest tbody th,
  .health-page .hp-wrap .hp-table--invest tfoot th { width: 6.5em; }
  .health-page .hp-wrap .hp-table--invest .hp-invest-sub { padding-left: 10px; }
}

/* =========================================================
   v6 追記: 4枚ギャラリー（ベジチャレ）
   ========================================================= */
.health-page .hp-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .health-page .hp-gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   v7 追記: 画像の横並び（スマートミール）
   - 2枚を同じ高さで横に並べる。幅が狭い画面では縦並びに戻す
   ========================================================= */
.health-page .hp-figure-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 28px 0;
}
.health-page .hp-figure-row figure { flex: none; margin: 0; text-align: center; }
.health-page .hp-figure-row img {
  display: block; width: auto; max-width: none;
  height: clamp(100px, 14vw, 170px);
  border-radius: 12px; background: #fff;
  box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line);
}
@media (max-width: 767px) {
  .health-page .hp-figure-row { flex-direction: column; gap: 16px; }
  .health-page .hp-figure-row figure { width: 100%; }
  .health-page .hp-figure-row img { width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
}

/* =========================================================
   v8 追記: 画像2枚の横並び（いきいき健康チャレンジ／睡眠）
   - 同じ大きさで左右に並べる。スマホ幅では縦並び
   - figcaption は画像の下の小さな説明文
   ========================================================= */
.health-page .hp-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  margin: 28px 0; align-items: start;
}
.health-page .hp-pair figure { margin: 0; }
.health-page .hp-pair img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; background: #fff;
  box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line);
}
.health-page .hp-pair figcaption {
  margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--hp-muted); text-align: center;
}
@media (max-width: 767px) {
  .health-page .hp-pair { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* =========================================================
   v9 追記: 画像3枚の横並び（ウォーキング大会）
   - 同じ幅で3枚を左右に並べる（縦横比はそのまま）。スマホ幅では縦並び
   ========================================================= */
.health-page .hp-trio {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin: 28px 0; align-items: center;
}
.health-page .hp-trio figure { margin: 0; }
.health-page .hp-trio img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; background: #fff;
  box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line);
}
@media (max-width: 767px) {
  .health-page .hp-trio { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* =========================================================
   v10 追記: コールアウトの右側に画像（健康支援アプリ）
   - 左に文章、右に小さめの画像。スマホ幅では文章の下に画像
   ========================================================= */
.health-page .hp-callout--media {
  display: flex; align-items: center; gap: 28px;
}
.health-page .hp-callout__text { flex: 1 1 auto; min-width: 0; }
.health-page .hp-callout__img { flex: 0 0 200px; margin: 0; }
.health-page .hp-callout__img img {
  display: block; width: 100%; height: auto;
  border-radius: 12px; background: #fff; border: 1px solid var(--hp-line);
}
@media (max-width: 767px) {
  .health-page .hp-callout--media { flex-direction: column; align-items: stretch; gap: 16px; }
  .health-page .hp-callout__img { flex: none; width: 100%; max-width: 260px; margin: 0 auto; }
}

/* =========================================================
   v11 追記: 大きさの違う写真を同じ高さで並べる（シニア：片足立ち大会）
   - 縦横比はそのまま。原画像が小さいため、拡大しすぎない上限（200px）を設定
   - 幅が足りないときは折り返す（スマホ幅では2段になる）
   ========================================================= */
.health-page .hp-photos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  margin: 28px 0;
}
.health-page .hp-photos figure { flex: none; margin: 0; }
.health-page .hp-photos img {
  display: block; width: auto; max-width: 100%;
  height: clamp(120px, 16vw, 200px);
  border-radius: 12px; background: #fff;
  box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line);
}
