/* =========================================================
   一般社団法人ＳＭＥリスクコンサルティング 共通スタイル
   レイアウト：白地＋グリーンの帯で区切る縦長1ページ。
   ヒーローの下に、被災後の手元資金の動き（財務インパクト図）を置く。
   ========================================================= */
:root {
  /* 色（法人カラー：グリーン＝メイン／ブルー＝サブ／ピンク＝アクセント） */
  --green: #0b7a5e;        /* メイン */
  --green-dark: #075c47;
  --green-bright: #1aa57b; /* ロゴの曲線のグリーン */
  --green-pale: #eaf5f0;
  --blue: #0049a8;         /* ロゴの「SM」の青 */
  --blue-dark: #00306f;
  --blue-pale: #eaf1fb;
  --pink: #d63f77;         /* アクセント（ボタン・印） */
  --pink-pale: #fdeef4;
  --ink: #1d2a27;
  --ink-sub: #566663;
  --line: #d9e7e1;
  --bg: #ffffff;
  --bg-alt: #f3f8f6;

  /* 書体 */
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-label: "Manrope", "Noto Sans JP", sans-serif;

  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  line-break: strict;
}
/* 日本語の折り返し：文節の途中で改行しない（対応ブラウザ）。見出しは行の長さをそろえる */
h1, h2, h3, p, li, dt, dd, label, figcaption, strong { word-break: auto-phrase; }
/* 最後の行が1〜2文字だけにならないようにする */
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3, .section-lead, .message-catch, .about-strong { text-wrap: balance; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.nw { white-space: nowrap; }
.ib { display: inline-block; }
.sp-only { display: none; }
.pc-only { display: inline; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--pink); color: #fff; }
.btn-accent:hover { background: #bf2f65; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: var(--green); color: var(--green); background: #fff; }
.btn-ghost:hover { background: var(--green-pale); }
.btn-arrow::after { content: "→"; font-family: var(--font-label); }

/* ---------- ヘッダー ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 110; background: #fff;
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo img { width: 92px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo-sub { font-size: 11px; color: var(--ink-sub); letter-spacing: .08em; }
.logo-main { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.global-nav ul { display: flex; align-items: center; gap: 26px; }
.global-nav a { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; position: relative; }
.global-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--green-bright); transform: scaleX(0); transition: transform .2s;
}
.global-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.global-nav .nav-cta { background: var(--pink); color: #fff; padding: 9px 20px; border-radius: 999px; font-weight: 700; }
.global-nav .nav-cta:hover { background: #bf2f65; }
.nav-toggle { display: none; }

/* ---------- メインビジュアル ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); padding-block: 88px 48px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .12em; margin-bottom: 20px;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 5vw, 54px); line-height: 1.38; letter-spacing: .01em;
  color: var(--ink); text-wrap: balance; margin-bottom: 24px;
}
.hero-title .hl { color: var(--green); }
.hero-text { color: var(--ink-sub); font-size: 16px; max-width: 34em; margin-bottom: 36px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-card {
  background: var(--green-pale);
  border-radius: 20px;
  padding: 32px 30px;
}
.hero-card-label { font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--green); }
.hero-card-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.5; margin-top: 6px; }
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hero-card-head > div { flex: 0 0 auto; }
.hero-card-head .hero-card-title { font-size: 18px; }
@media (max-width: 640px) {
  .hero-card-head { flex-wrap: wrap; }
  .hero-card-head .trust-badge { flex: 1 1 100%; max-width: none; }
}
.trust-badge {
  display: flex; align-items: center; gap: 12px; flex: 1 1 auto; max-width: 300px; min-width: 0;
  background: #ffe14d; border: 1px solid #f0c800; color: #1a1a1a;
  border-radius: 12px; padding: 10px 16px; line-height: 1.5;
}
.trust-mark {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: #1a1a1a; color: #ffe14d; font-family: var(--font-display); font-weight: 900; font-size: 16px; line-height: 1;
}
.trust-text { font-size: 12px; min-width: 0; color: #1a1a1a; }
.trust-text strong { display: block; font-size: 14px; color: #1a1a1a; }
.merit-list { display: grid; gap: 12px; }
.merit-list li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;
  background: #fff; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.6;
}
.merit-list strong { display: block; font-size: 15px; color: var(--ink); }
.merit-list p span { color: var(--ink-sub); }
.merit-list .merit-icon {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: 15px; font-weight: 700; font-family: var(--font-display); line-height: 1;
}
.merit-list li:nth-child(2) .merit-icon { background: var(--blue); }
.merit-list li:nth-child(3) .merit-icon { background: var(--green-bright); }
.merit-list li:nth-child(4) .merit-icon { background: var(--pink); }
.hero-card-note { font-size: 12px; color: var(--ink-sub); margin-top: 14px; line-height: 1.6; }

/* メイン写真（見出しの右）。人物の位置に合わせて切り抜き、曇り空を少し明るくする */
.hero-photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; max-width: 100%; background: var(--green-pale); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 60%; filter: brightness(1.04) saturate(1.08); }
.hero-photo-placeholder { display: grid; place-items: center; padding: 24px; text-align: center; color: var(--green); font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--green-pale), var(--blue-pale)); border: 2px dashed #b9d8cd; }

/* ジギョケイの支援（メインビジュアルの下の帯） */
.hero-card-band { margin-top: 48px; }
.hero-card-band .merit-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 被災後の手元資金の動き（財務インパクト図） */
.impact { margin: 56px 0 0; padding: 32px 30px 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.impact-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 18px; }
.impact-en { font-family: var(--font-label); font-weight: 800; font-size: 12px; letter-spacing: .2em; color: var(--green); }
.impact-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.45; margin-top: 4px; }
.impact-note-inline { font-size: 14px; color: var(--ink-sub); font-weight: 700; }
.impact-lead { font-size: 14px; color: var(--ink-sub); margin-top: 6px; }
.impact-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; font-weight: 700; }
.impact-legend li { display: flex; align-items: center; gap: 8px; }
.impact-legend li::before { content: ""; width: 30px; height: 0; border-top: 4px solid var(--green); border-radius: 2px; }
.impact-legend .lg-none::before { border-top: 3px dashed var(--pink); }
.impact-legend small { font-weight: 500; color: var(--ink-sub); font-size: 12px; margin-left: 4px; }

.impact-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.impact-chart { position: relative; min-width: 620px; padding-top: 20px; }
.impact-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.impact-axis-y { position: absolute; top: 0; left: 0; font-size: 12px; font-weight: 700; color: var(--ink-sub); }
.impact-axis-x { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 12px; color: var(--ink-sub); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.impact-axis-x li:first-child { color: var(--pink); font-weight: 700; }

.ib-short { fill: var(--pink-pale); }
.ib-rebuild { fill: #eef1f0; }
.ib-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.ib-zero { stroke: var(--pink); stroke-width: 1.5; }
.ib-zero-label { fill: var(--pink); font-size: 17px; font-weight: 700; }
.ib-band-label { fill: var(--ink-sub); font-size: 17px; font-weight: 700; }
.ib-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ib-prep { stroke: var(--green); stroke-width: 5; }
.ib-none { stroke: var(--pink); stroke-width: 4; stroke-dasharray: 10 9; }
.ib-cross line { stroke: var(--pink); stroke-width: 4; stroke-linecap: round; }
.ib-none-label { fill: var(--pink); font-size: 18px; font-weight: 700; }
.ib-dot { fill: var(--green); }
.ib-badge circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.ib-badge text { fill: var(--ink); font-family: var(--font-label); font-weight: 800; font-size: 18px; }
.ib-badge.b-4 circle, .ib-badge.b-5 circle { fill: var(--green); stroke: var(--green); }
.ib-badge.b-4 text, .ib-badge.b-5 text { fill: #fff; }

.impact-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.impact-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border-radius: 12px; background: var(--bg-alt); font-size: 13px; line-height: 1.6; color: var(--ink-sub); }
.impact-steps strong { display: block; color: var(--ink); font-size: 14px; }
.st-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); font-family: var(--font-label); font-weight: 800; font-size: 13px; color: var(--ink); background: #fff; line-height: 1; }
.impact-steps .st-prep { background: var(--green-pale); }
.impact-steps .st-prep .st-num { background: var(--green); border-color: var(--green); color: #fff; }
.impact-source { font-size: 11px; color: var(--ink-sub); margin-top: 14px; }

/* ---------- セクション共通 ---------- */
.section { padding-block: 104px; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-en {
  display: block; font-family: var(--font-label); font-weight: 800; font-size: 13px;
  letter-spacing: .24em; color: var(--green); text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.45; text-wrap: balance;
}
.section-lead { color: var(--ink-sub); margin-top: 18px; max-width: 40em; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- 私たちについて ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-body p + p { margin-top: 1.1em; }
.about-body .about-strong {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.6; color: var(--green-dark);
}
.three-keys { display: grid; gap: 14px; }
.key {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.key-mark {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #fff;
}
.key-plan .key-mark { background: var(--green); }
.key-insure .key-mark { background: var(--blue); }
.key-finance .key-mark { background: var(--green-bright); }
.key h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.5; }
.key p { font-size: 14px; color: var(--ink-sub); line-height: 1.7; }

/* 文章の右に写真、その下に「計・保・融」を横一列 */
.about-grid { align-items: center; }
.about-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.about-grid .three-keys { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.about-grid .key { grid-template-columns: 52px minmax(0, 1fr); align-items: start; }
.about-grid .key-mark { width: 52px; height: 52px; font-size: 19px; }

/* 被災時の資金ギャップ（イメージ図） */
.gap-figure { margin-top: 64px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px; }
.gap-figure h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.gap-figure > p { font-size: 14px; color: var(--ink-sub); margin-bottom: 22px; }
.gap-row { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; align-items: center; }
.gap-row + .gap-row { margin-top: 14px; }
.gap-label { font-size: 13px; font-weight: 700; line-height: 1.5; }
.gap-bar { display: flex; height: 46px; border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 700; line-height: 1.3; }
.gap-bar > span { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; color: #fff; min-width: 0; }
.seg-need { background: #6f7f7b; flex: 1; }
.seg-own { background: #9aa9a5; flex: 1.2; }
.seg-gap { background: repeating-linear-gradient(135deg, var(--pink-pale) 0 8px, #fff 8px 16px); color: var(--pink) !important; border: 2px dashed var(--pink); flex: 2.8; }
.seg-ins { background: var(--blue); flex: 1.4; }
.seg-bi { background: var(--green); flex: 1.4; }
.seg-loan { background: var(--green-bright); flex: 1.2; }
.gap-note { font-size: 12px; color: var(--ink-sub); margin-top: 16px; }

/* ---------- 事業内容 ---------- */
.service-list { display: grid; gap: 28px; }
.service {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px;
  background: #fff; border-radius: 20px; padding: 40px; border: 1px solid var(--line);
}
/* 事業内容の写真（説明文の下） */
.service-with-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.service-with-photo .service-points { margin-top: 22px; }
.service-photo { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; align-self: center; max-width: 100%; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.service-plan .service-photo img { object-position: 55% 40%; }
/* リスクマネジメント：資金の組み立て図（写真のかわり） */
.service-figure { margin: 0; align-self: center; min-width: 0; background: var(--bg-alt); border-radius: 14px; padding: 22px 20px 18px; }
.fm-chart { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 62px; align-items: end; gap: 0 8px; }
.fm-col { min-width: 0; }
.fm-head { font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.fm-stack { display: flex; flex-direction: column; height: 250px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--bg-alt); }
.fm-stack span, .fm-brackets span { flex: var(--f) 1 0; min-height: 0; }
.fm-stack span { display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #fff; }
.fm-need1 { background: #6f7f7b; }
.fm-need2 { background: #879793; }
.fm-need3 { background: #a3b1ad; }
.fm-eqk { background: var(--blue); }
.fm-bi { background: var(--green); }
.fm-loan { background: var(--green-bright); }
.fm-own { background: #c9d6d2; color: var(--ink) !important; }
.fm-eq { align-self: center; text-align: center; font-size: 20px; font-weight: 700; color: var(--ink-sub); padding-top: 28px; }
.fm-brackets { display: flex; flex-direction: column; height: 250px; gap: 2px; }
.fm-br { position: relative; display: flex; align-items: center; padding-left: 12px; font-size: 12px; font-weight: 700; line-height: 1.35; }
.fm-br::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 6px; border: 2px solid currentColor; border-left: 0; border-radius: 0 4px 4px 0; }
.fm-br-ins { color: var(--blue); }
.fm-br-loan { color: var(--green); }
.fm-cap { font-size: 13px; color: var(--ink); margin-top: 14px; line-height: 1.7; }
.fm-cap small { color: var(--ink-sub); font-size: 11px; margin-left: 4px; }

.service-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); margin-bottom: 14px;
}
.service-risk .service-tag { background: var(--blue-pale); color: var(--blue); }
.service-dc .service-tag { background: var(--pink-pale); color: var(--pink); }
.service h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.5; margin-bottom: 14px; text-wrap: balance; }
.service-desc { color: var(--ink-sub); }
.service-points { display: grid; gap: 12px; align-content: start; }
.service-points li {
  position: relative; padding: 14px 16px 14px 44px; background: var(--bg-alt); border-radius: 12px; line-height: 1.65;
}
.service-points li::before {
  content: ""; position: absolute; left: 16px; top: 21px; width: 14px; height: 8px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}
.service-risk .service-points li::before { border-color: var(--blue); }
.service-dc .service-points li::before { border-color: var(--pink); }
.service-points strong { display: block; font-size: 15px; }
.service-points span { font-size: 14px; color: var(--ink-sub); }
.service-status { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--pink); }

/* ---------- 支援の流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.flow li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 18px 22px;
  counter-increment: step;
}
.flow li::before {
  content: "STEP " counter(step);
  display: block; font-family: var(--font-label); font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--green);
  margin-bottom: 10px;
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid var(--green-bright); border-right: 2px solid var(--green-bright); transform: translateY(-50%) rotate(45deg);
}
.flow h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.flow p { font-size: 13px; color: var(--ink-sub); line-height: 1.7; }

/* ---------- 代表挨拶 ---------- */
.message { max-width: 860px; }
.message-photo { border-radius: 20px; overflow: hidden; background: var(--green-pale); max-width: 100%; }
.message-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.message-body p + p { margin-top: 1.1em; }
.message-catch { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.6; color: var(--green-dark); margin-bottom: 20px; text-wrap: balance; }
.message-sign { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; padding: 32px 34px; border-radius: 20px; background: var(--bg-alt); }
.message-sign .message-name { margin-top: -8px; line-height: 1.4; }
.message-sign .badges, .message-sign .career, .message-sign .message-profile { margin-top: 0; }
.message-sign .badges li { background: #fff; }
.message-role { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--green); }
.message-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.message-name small { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--ink-sub); margin-left: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badges li { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--green); color: var(--green-dark); }
.career { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 14px; font-size: 13px; color: var(--ink-sub); }
.career li + li::before { content: "→"; margin: 0 10px; color: var(--green-bright); font-family: var(--font-label); }
.message-profile { margin-top: 18px; color: var(--ink); }
.message-profile p + p { margin-top: .7em; }

/* ---------- 理事紹介 ---------- */
.members { margin-top: 88px; max-width: 860px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.member-card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: var(--bg-alt); border-radius: 20px; padding: 32px 34px;
}
.member-role { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.member-name { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.4; margin-top: -8px; }
.member-name small { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--ink-sub); margin-left: 12px; }
.member-card .badges, .member-card .career { margin-top: 0; }
.member-card .badges li { background: #fff; }
.member-text { color: var(--ink); }
.member-card .member-text + .member-text { margin-top: -4px; }

/* ---------- お知らせ ---------- */
.news-inner { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 4px; }
.news-list a:hover .news-title { color: var(--green); }
.news-list time, .news-meta time { font-family: var(--font-label); font-weight: 600; font-size: 14px; color: var(--ink-sub); font-variant-numeric: tabular-nums; }
.news-cat { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--green-pale); color: var(--green-dark); white-space: nowrap; }
.news-title { font-weight: 500; }
.news-more { margin-top: 24px; text-align: right; }
.link-more { font-weight: 700; color: var(--green); }
.link-more::after { content: " →"; font-family: var(--font-label); }

/* ---------- 法人概要 ---------- */
.company-table { display: grid; grid-template-columns: 11em minmax(0, 1fr); border-top: 2px solid var(--green); }
.company-table dt, .company-table dd { padding: 20px 16px; border-bottom: 1px solid var(--line); line-height: 1.75; }
.company-table dt { font-weight: 700; background: var(--bg-alt); }
.company-table dd ul li { position: relative; padding-left: 1.1em; }
.company-table dd ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }
.company-table a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.notice-box { margin-top: 32px; padding: 24px 26px; border-radius: 16px; background: var(--blue-pale); font-size: 14px; line-height: 1.8; }
.notice-box h3 { font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; }
.notice-box p + p { margin-top: .6em; }

/* ---------- お問い合わせ ---------- */
.contact { background: linear-gradient(180deg, var(--green-pale) 0%, var(--bg) 70%); }
.contact-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.contact-box { background: #fff; border-radius: 16px; padding: 22px 20px; text-align: center; border: 1px solid var(--line); }
.contact-label { font-family: var(--font-label); font-weight: 800; font-size: 12px; letter-spacing: .2em; color: var(--green); }
.contact-value { font-family: var(--font-label); font-weight: 700; font-size: clamp(17px, 1.9vw, 22px); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; word-break: normal; }
a[href^="mailto:"] { white-space: nowrap; word-break: normal; }
.contact-value a { color: var(--ink); }
.contact-note { font-size: 12px; color: var(--ink-sub); margin-top: 4px; }

.contact-form { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 40px; border: 1px solid var(--line); }
.form-lead { text-align: center; margin-bottom: 28px; color: var(--ink-sub); }
.form-row { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 12px; }
.form-row-top { align-items: start; }
.form-row-top label { padding-top: 12px; }
.form-row label { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 4px; }
.req { background: var(--pink); color: #fff; }
.opt { background: var(--bg-alt); color: var(--ink-sub); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c6d6d0; border-radius: 10px; background: #fbfdfc;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,165,123,.18); background: #fff; }
.contact-form textarea { resize: vertical; min-height: 160px; }
.form-agree { text-align: center; margin: 24px 0 8px; font-size: 14px; }
.form-agree a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.form-agree input { width: 18px; height: 18px; vertical-align: -3px; accent-color: var(--green); }
.form-error { text-align: center; color: var(--pink); font-weight: 700; font-size: 14px; margin: 8px 0; }
.form-actions { text-align: center; margin-top: 16px; }
.form-thanks { text-align: center; font-weight: 700; color: var(--green-dark); padding: 24px 0; }
.contact-privacy { text-align: center; font-size: 13px; color: var(--ink-sub); margin-top: 20px; }
.contact-privacy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 下層ページ ---------- */
.page-hero { background: var(--green-pale); padding-block: 56px 48px; }
.breadcrumb { font-size: 13px; color: var(--ink-sub); margin-bottom: 16px; }
.breadcrumb a { color: var(--green); }
.page-hero-en { font-family: var(--font-label); font-weight: 800; font-size: 13px; letter-spacing: .24em; color: var(--green); text-transform: uppercase; }
.page-hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 36px); line-height: 1.45; }

.news-page { max-width: 820px; }
.news-article { padding-block: 32px; border-bottom: 1px solid var(--line); }
.news-article:first-child { padding-top: 0; }
.news-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.news-article-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.55; margin-bottom: 10px; }
.news-article p + p { margin-top: .8em; }
.news-article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.policy { max-width: 820px; }
.policy > p { margin-bottom: 1em; }
.policy h2 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 40px 0 12px; padding-left: 14px; border-left: 4px solid var(--green); line-height: 1.5; }
.policy ul { margin: 8px 0 12px; display: grid; gap: 4px; }
.policy ul li { position: relative; padding-left: 1.2em; }
.policy ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--green-bright); }
.policy-table { display: grid; grid-template-columns: 9em minmax(0, 1fr); border-top: 1px solid var(--line); margin-top: 8px; }
.policy-table dt, .policy-table dd { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.policy-table dt { background: var(--bg-alt); font-weight: 700; }
.policy-table a { color: var(--blue); }
.policy-date { margin-top: 40px; text-align: right; color: var(--ink-sub); font-size: 14px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--green-dark); color: #e3f1ec; padding-block: 64px 32px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.footer-logo img { width: 110px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; margin-bottom: 6px; }
.footer-address { line-height: 1.9; }
.footer-address a { color: #fff; }
.footer-menu { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer-menu a { color: #fff; }
.footer-menu a:hover { color: #9fe0c8; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: #b9d8cd; }
.footer-bottom a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.disclaimer { font-size: 12px; color: #b9d8cd; margin-top: 24px; line-height: 1.7; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1080px) {
  .impact-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card-band .merit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-nav ul { gap: 18px; }
  .global-nav a { font-size: 13px; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow li:nth-child(3)::after { display: none; }
}

@media (max-width: 960px) {
  .contact-boxes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .contact-box { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); align-items: center; gap: 2px 16px; text-align: left; padding: 16px 20px; }
  .contact-box .contact-label { grid-row: 1 / 3; }
  .contact-box .contact-value { margin-top: 0; font-size: 21px; }
  .contact-box .contact-value, .contact-box .contact-note { line-height: 1.45; margin-top: 0; }
  .contact-box { align-content: center; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; flex-shrink: 0;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .global-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11,58,45,.08);
    display: none;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-block: 8px 20px; }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .global-nav a { display: block; padding: 14px 4px; font-size: 15px; }
  .global-nav a:not(.nav-cta)::after { display: none; }
  .global-nav .nav-cta { text-align: center; padding: 14px; }

  .hero { padding-block: 56px 36px; }
  .hero-inner, .about-grid, .service, .message, .news-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .message-photo { max-width: 280px; }
  .hero-photo { aspect-ratio: 5 / 4; }
  .about-grid .three-keys { grid-template-columns: minmax(0, 1fr); }
  .hero-photo img { object-position: 85% 60%; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .members { margin-top: 64px; }
  .member-card, .message-sign { padding: 24px 20px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .header-inner { height: 64px; }
  .global-nav { top: 64px; }
  html { scroll-padding-top: 72px; }
  .logo img { width: 70px; }
  .logo-sub { display: none; }
  .logo-main { font-size: 13px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 32px; }
  .hero-buttons .btn { width: 100%; }
  .hero-card { padding: 24px 18px; }
  .hero-card-band { margin-top: 36px; }
  .hero-card-band .merit-list { grid-template-columns: minmax(0, 1fr); }
  .impact-steps { grid-template-columns: minmax(0, 1fr); }
  .impact { margin-top: 40px; padding: 22px 16px 18px; }
  .impact-title { font-size: 19px; }
  /* スマートフォンでは横スクロールさせず、図の中の文字と印を大きくして収める */
  .impact-chart { min-width: 0; }
  .impact-axis-x { font-size: 10.5px; }
  .ib-zero-label, .ib-band-label, .ib-none-label { font-size: 34px; }
  .ib-badge circle { r: 30px; stroke-width: 3; }
  .ib-badge text { font-size: 32px; transform: translateY(5px); }
  .ib-prep { stroke-width: 8; }
  .ib-none { stroke-width: 7; stroke-dasharray: 16 12; }
  .ib-cross line { stroke-width: 7; }
  .ib-dot { r: 10px; }
  .service { padding: 26px 20px; }
  .service-photo { aspect-ratio: 3 / 2; }
  .service-figure { padding: 18px 14px 14px; }
  .fm-chart { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 52px; gap: 0 6px; }
  .fm-stack, .fm-brackets { height: 230px; }
  .fm-stack span { font-size: 11.5px; }
  .fm-br { font-size: 11px; padding-left: 10px; }
  .service h3 { font-size: 20px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li::after { display: none !important; }
  .gap-figure { padding: 24px 18px; }
  .gap-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .gap-bar { height: 52px; font-size: 11px; }
  .company-table, .policy-table { grid-template-columns: minmax(0, 1fr); }
  .company-table dt { padding-bottom: 8px; border-bottom: 0; }
  .company-table dd { padding-top: 8px; }
  .policy-table dt { border-bottom: 0; padding-bottom: 4px; }
  .contact-boxes { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 26px 18px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .form-row-top label { padding-top: 0; }
  .news-list a { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
  .news-list .news-title { grid-column: 1 / -1; }
  .footer-menu { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .global-nav a::after { transition: none; }
}

/* 幅の狭いスマートフォン（iPhone SE など）でも、メールアドレスを1行に収める */
@media (max-width: 400px) {
  .contact-box { grid-template-columns: 3.8em minmax(0, 1fr); gap: 2px 10px; padding: 14px 14px; }
  .contact-box .contact-value { font-size: 17px; }
}
