/* 健康経営宣言ページ — スタイル
 * 方針：写真なし。枠・カード・影を使わず、罫線と余白と文字の大きさで構造を示す。
 * 作り込むのは戦略マップ（線とダイヤでつなぐ）ひとつだけ。ほかは静かに。
 * 色は はたらくからだ研究所のサイトから（メイン #0084d1・文字 #101828・背景 #fbf9fa）。 */
:root {
  --blue: #0084d1;
  --deep: #0b3a5e;
  --ink: #101828;
  --muted: #566074;
  --paper: #fbf9fa;
  --pale: #eef5fa;
  --line: #cfd8e1;
  --warn: #fff3a3;
  --sans: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --serif: "Zen Old Mincho", "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  --pad: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.95; -webkit-text-size-adjust: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, dt { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
mark.ph { background: var(--warn); color: #6b4a00; padding: 0 2px; }
.ph-bar { background: #ffe066; color: #5a4300; text-align: center; font-size: 13px; padding: 8px 12px; font-weight: 700; }

/* ヘッダー */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head-in { max-width: 1200px; margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; color: var(--ink); white-space: nowrap; display: flex; align-items: baseline; gap: 12px; }
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.brand-sub { font-size: 12px; color: var(--muted); }
.gnav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.gnav::-webkit-scrollbar { display: none; }
.gnav a { text-decoration: none; color: var(--ink); font-size: 14px; white-space: nowrap; }
.gnav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }

/* ヒーロー：言葉が主役。右に数字を帳簿の行で */
.hero { background: var(--deep); color: #fff; }
.hero-in { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--pad); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: end; }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3.9vw, 50px); line-height: 1.45; letter-spacing: .02em; margin-bottom: 32px; }
.hero h1 span { display: block; }
.hero-lead { max-width: 34em; color: #d4e3ef; margin-bottom: 28px; }
.hero-link { color: #fff; font-weight: 700; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.hero-link::after { content: "　↓"; }

/* セクション：左に見出し、右に内容。区切りは罫線だけ */
.sec { border-top: 1px solid var(--line); }
.sec-in { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--pad); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 80px); }
.sec-title { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3vw, 32px); line-height: 1.5; letter-spacing: .04em; align-self: start; position: sticky; top: 92px; }
.sec-title::before { content: "◆"; display: block; color: var(--blue); font-size: 14px; margin-bottom: 10px; }
.sec-body { max-width: 760px; min-width: 0; }
.sec-wide .sec-in { grid-template-columns: minmax(0, 1fr); }
.sec-wide .sec-title { position: static; }
.sec-wide .sec-body { max-width: none; }
.sec-wide .lead { max-width: 760px; }
.sec:nth-of-type(even) { background: var(--pale); }
.sec-wide, .sec-wide:nth-of-type(even) { background: var(--paper); }
.lead { margin-bottom: 40px; }
.lead-strong { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.8; }
.sub { font-size: 17px; font-weight: 700; margin: 56px 0 8px; }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.8; }
.dots li { position: relative; padding-left: 1.3em; }
.dots li + li { margin-top: 6px; }
.dots li::before { content: "◆"; position: absolute; left: 0; top: .15em; color: var(--blue); font-size: .6em; line-height: 2.2; }

/* 宣言 */
.decl-head { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.65; margin-bottom: 28px; }
.decl-body { font-size: 17px; line-height: 2.1; }
.decl-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.decl-meta { font-size: 13px; color: var(--muted); line-height: 1.9; }
.decl-sign { text-align: right; font-size: 14px; line-height: 1.8; }
.decl-sign strong { font-family: var(--serif); font-size: 20px; }

/* 体制・発信の組織（役割＝見出し語＋説明の行） */
.roles .role { display: grid; grid-template-columns: 150px 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.roles .role:first-child { border-top: 1px solid var(--ink); }
.roles dt { font-size: 14px; font-weight: 700; color: var(--blue); }
.roles dd strong { display: block; font-size: 17px; line-height: 1.6; }
.roles dd span { display: block; font-size: 14px; color: var(--muted); line-height: 1.85; }
.roles dd:not(:has(strong)) span { color: var(--ink); font-size: 15px; }

/* 表：横罫線だけ */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.75; }
.tbl th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .num { text-align: right; white-space: nowrap; padding-right: 24px; }
.tbl td.nw { white-space: nowrap; }
.tbl td:first-child { min-width: 12em; }
.tbl tr.total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.tbl tr.kgi td { font-weight: 700; }
.tbl tr.kgi td:first-child::before { content: "◆"; color: var(--blue); margin-right: .5em; font-size: .7em; }

/* 課題 */
.issue { max-width: 640px; }
.issue-label { font-size: 13px; color: var(--blue); font-weight: 700; }
.issue-title { font-family: var(--serif); font-weight: 900; font-size: 24px; line-height: 1.6; margin-bottom: 4px; }
.issue-arrow { color: var(--blue); margin: 20px 0; font-size: 14px; }
.issue-health .issue-title { font-size: 32px; }

/* 戦略マップ：一本の線に5つのダイヤ */
.map-bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.map-bands span { padding: 0 0 8px; border-bottom: 1px solid var(--ink); grid-column: 1 / 5; }
.map-bands span + span { grid-column: 5; }
.map { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; padding-top: 44px; counter-reset: none; }
.map::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--blue); }
.stage { position: relative; font-size: 14px; line-height: 1.8; }
.stage-pin { position: absolute; top: -37px; left: 0; color: var(--blue); font-size: 18px; line-height: 1; background: var(--paper); padding-right: 8px; }
.stage h3 { font-size: 16px; line-height: 1.5; margin-bottom: 2px; }
.stage h3 span { color: var(--blue); margin-right: .3em; }
.stage-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.stage-goal h3, .stage-goal li { font-weight: 700; }
.stage-goal .stage-pin { font-size: 28px; top: -42px; }
.stage-goal h3 { font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--blue); }

/* 取り組み：枠なし、上罫線だけ */
.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px clamp(24px, 4vw, 56px); }
.action { border-top: 1px solid var(--ink); padding-top: 14px; }
.action h3 { font-family: var(--serif); font-weight: 900; font-size: 22px; line-height: 1.5; margin-bottom: 12px; }
.action h3 small { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 12px; }
.action .dots { font-size: 15px; }

/* 成果：大きな数字は活字で */
.measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; margin-bottom: 48px; }
.measure { border-top: 2px solid var(--ink); padding-top: 12px; }
.measure-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.measure-value { font-family: var(--serif); font-weight: 900; font-size: 56px; line-height: 1.25; color: var(--blue); }
.measure-value small { font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.measure-date { font-size: 36px; color: var(--ink); }
.measure-sub { font-size: 13px; color: var(--muted); line-height: 1.7; }
.review { border-left: 3px solid var(--blue); padding: 2px 0 2px 24px; margin-bottom: 8px; }
.review h3 { font-family: var(--serif); font-weight: 900; font-size: 22px; margin-bottom: 8px; }

/* 帳簿風の行（実績・認定・更新・ヒーローの数字） */
.ledger .lg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger .lg-row:first-child { border-top: 1px solid var(--ink); }
.ledger dt { font-size: 15px; line-height: 1.6; }
.ledger dt small { display: block; font-size: 12px; color: var(--muted); }
.ledger dd { font-family: var(--serif); font-weight: 900; font-size: 26px; line-height: 1.2; color: var(--blue); white-space: nowrap; text-align: right; }
.ledger dd small { font-family: var(--sans); font-size: 13px; font-weight: 500; margin-left: 3px; color: inherit; }
.ledger-plain dd { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); white-space: normal; }
.ledger-plain dt { font-weight: 700; }
.ledger-dates .lg-row { justify-content: flex-start; }
.ledger-dates dt { flex: 0 0 8em; color: var(--blue); }
.ledger-dates dd { text-align: left; color: var(--ink); font-size: 15px; }
.ledger-dark .lg-row { border-color: rgba(255,255,255,.25); }
.ledger-dark .lg-row:first-child { border-top-color: #fff; }
.ledger-dark dt { color: #d4e3ef; font-size: 14px; }
.ledger-dark dd { color: #fff; font-size: 34px; }

/* 活動内容（写真）：枠なし。写真と一行の説明だけ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(16px, 2.5vw, 32px); }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--pale); }
.gallery figcaption { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 10px; }

/* 発信の数字 */
.counts { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-bottom: 40px; }
.count-v { font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1.2; color: var(--blue); }
.count-l { font-size: 13px; color: var(--muted); line-height: 1.6; }
.count-sum .count-v { color: var(--ink); }

/* 認定 */
.cert-main { margin-bottom: 8px; }
.cert-name { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 3vw, 30px); line-height: 1.6; }
.cert-note { color: var(--blue); font-weight: 700; }
.cert-main + .ledger { margin-top: 32px; }
.feedback { margin-top: 40px; font-size: 15px; }
.textlink { font-weight: 700; text-underline-offset: 5px; }

/* フッター */
.site-foot { background: var(--ink); color: #c9d3e0; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--pad) 32px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 80px); font-size: 14px; line-height: 1.9; }
.foot-contact h2 { font-family: var(--serif); font-weight: 900; font-size: 24px; color: #fff; margin-bottom: 12px; grid-column: 1; }
.foot-contact { display: contents; }
.foot-contact h2 { grid-column: 1; }
.foot-contact > p { grid-column: 2; }
.foot-co { color: #fff; font-weight: 700; font-size: 17px; }
.foot-lab { grid-column: 2; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); color: #fff; }
.foot-lab span { color: #7fd0ff; }
.foot-lab a { color: #7fd0ff; }
.foot-copy { grid-column: 2; margin-top: 24px; font-size: 12px; color: #8a97ab; }

/* タブレット・スマホ */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { font-size: clamp(26px, 6vw, 44px); }
  .sec-in, .foot-in { grid-template-columns: minmax(0, 1fr); }
  .sec-title { position: static; }
  .foot-contact > p, .foot-lab, .foot-copy { grid-column: 1; }
  .actions { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* 戦略マップは縦の線に */
  .map-bands { display: none; }
  .map { grid-template-columns: 1fr; padding: 0 0 0 36px; gap: 36px 0; }
  .map::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .stage-pin, .stage-goal .stage-pin { top: 2px; left: -36px; padding: 4px 0; font-size: 18px; }
  .stage-goal .stage-pin { font-size: 24px; left: -39px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .tbl td:first-child { min-width: 9em; }
  .brand-sub { display: none; }
  .roles .role { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .ledger .lg-row { flex-direction: column; gap: 2px; }
  .ledger dd, .ledger-plain dd { text-align: left; }
  .ledger-dates .lg-row { flex-direction: row; }
  .ledger-dates dt { flex-basis: 6.5em; }
  .ledger-dark dd { font-size: 30px; }
  .measure-value { font-size: 46px; }
  .decl-sign { text-align: left; }
  .tbl th, .tbl td { padding-right: 12px; font-size: 14px; }
}
@media print {
  .site-head, .ph-bar { display: none; }
  .sec-title { position: static; }
  .sec { break-inside: avoid; }
}
