
/* ============================================================
   CDX協議会 — site.css  v2.0
   ベース: cdxc-site-v1  ＋ OZ1/CSPFC技術資産統合
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --ink:    #0b1c32;
  --ink2:   #153653;
  --blue:   #1c72d8;
  --cyan:   #13a9c7;
  --green:  #2ecc71;
  --green2: #72b52e;
  --lime:   #bce849;
  --paper:  #f5f7f4;
  --white:  #fff;
  --muted:  #617181;
  --line:   #dbe3e8;
  --soft:   #edf5f8;
  --warm:   #fff7df;
  --dark:   #0b1c32;
  --max:    1180px;
  --r:      24px;

  /* 世界観セクション用（提案資料の紺×金を踏襲） */
  --gold:   #b8862f;
  --gold-l: #e0b355;
  --alert:  #c2402f;

  /* Webフォントは読み込まない。配信元が遮断される環境でも崩れないようにするため */
  --font-body: "Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",
               Meiryo, system-ui, -apple-system, sans-serif;
  --font-mincho: "Hiragino Mincho ProN","Yu Mincho","Noto Serif JP","MS PMincho", serif;
  --font-data: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.8;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--max), calc(100% - 42px)); margin: auto; }

/* ---------- Notice bar ---------- */
.notice {
  padding: 8px 18px;
  text-align: center;
  background: var(--warm);
  font-size: 12px;
  border-bottom: 1px solid #eadca8;
  color: #725817;
}

/* ---------- Utility bar（会員向けの導線） ----------
   サポートデスクは会員限定の入口で、サイトの案内メニューとは
   性質が違うため、メインナビとは分けて最上部に置く。 */
.utilbar {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.utilbar .wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  min-height: 36px;
  flex-wrap: wrap;
}
.utilbar a {
  color: rgba(255,255,255,.78);
  font-weight: 700;
  padding: 6px 0;
  transition: color .2s;
}
.utilbar a:hover { color: #fff; }
.utilbar a.is-login { color: var(--gold-l); }
.utilbar a.is-login:hover { color: #fff; }
.utilbar a.is-login::after { content: " ↗"; font-weight: 400; }

@media (max-width: 680px) {
  .utilbar .wrap { justify-content: center; gap: 16px; font-size: 11.5px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img {
  display: block;
  width: 200px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}
.nav {
  display: flex;
  gap: 19px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.nav a { color: #30455a; transition: color .2s; }
.nav a:hover { color: var(--blue); }

/* ---------- 現在地の表示 ----------
   いま見ているページの項目に色と下線を出す。
   下線は position:absolute で描くため、他の項目の位置は動かない。 */
.nav a:not(.head-cta) { position: relative; padding-block: 6px; }
.nav a.active:not(.head-cta) { color: var(--blue); font-weight: 800; }
.nav a.active:not(.head-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}
/* CTAボタンがそのページ自身を指しているとき */
.head-cta.active { box-shadow: 0 0 0 3px rgba(28,114,216,.22); }
.head-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 17px;
  border-radius: 999px;
  transition: background .2s;
}
.head-cta:hover { background: var(--blue); }

/* ---------- Mobile nav ---------- */
.menu-btn {
  display: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.mobile-nav {
  display: none;
  padding: 8px 0 18px;
  border-top: 1px solid var(--line);
}
.mobile-nav.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-nav a {
  background: var(--paper);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
/* 折りたたみメニューは項目が面になっているので、現在地は背景で示す */
.mobile-nav a.active {
  background: var(--blue);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background: #c8dce8; /* 画像ロード前フォールバック */
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  position: relative; /* hero-bg-img の absolute 配置の基点 */
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 48px;
  align-items: center;
  min-height: 660px;
  padding: 76px 0;
}
.eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(42px, 6.3vw, 78px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0 0 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green2);
}
.lead {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 700px;
  color: #385167;
}

/* ---------- Buttons ---------- */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
  border: 0;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.green   { background: var(--green2); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn.secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Hero art ---------- */
.hero-art {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(28,114,216,.18);
  animation: spin 18s linear infinite;
}
.orbit.o1 { width: 280px; height: 280px; }
.orbit.o2 { width: 400px; height: 400px; animation-duration: 28s; animation-direction: reverse; }
.orbit.o3 { width: 520px; height: 520px; animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }
.core {
  width: 100px;
  height: 100px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(11,28,50,.18);
}
.person {
  position: absolute;
  width: 82px;
  height: 82px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  z-index: 2;
}
.person b { font-size: 20px; color: var(--ink); display: block; line-height: 1.1; }
.person.p1 { top: 12%; left: 55%; }
.person.p2 { top: 55%; right: 4%; }
.person.p3 { bottom: 12%; left: 52%; }
.person.p4 { top: 22%; left: 8%; }
.person.p5 { bottom: 22%; left: 10%; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.white { background: var(--white); }
.section.soft  { background: var(--soft); }
.section.dark  {
  background: linear-gradient(145deg, #0e253d 0%, #0b1c32 100%);
  color: #fff;
}
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p  { color: #b8cde0; }
.section.dark .card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.section.dark .card h3 { color: #fff; }
.section.dark .card p  { color: #b8cde0; }
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -.03em;
  margin: 12px 0 16px;
}
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Cards ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28,114,216,.1);
  border-color: var(--blue);
}
.card h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.card p  { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.card .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--blue);
  opacity: .25;
  line-height: 1;
  margin-bottom: 12px;
}
.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--soft);
  color: var(--blue);
  margin-bottom: 10px;
}
.pill.green { background: #e8f8ec; color: #2a8a43; }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 14px;
}
.badge::after { content: " →"; }

/* ---------- Flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.flow-item {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  position: relative;
}
.flow-item::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--line);
  font-size: 18px;
  z-index: 1;
}
.flow-item:last-child::after { display: none; }
.flow-item span {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--blue);
  opacity: .22;
  line-height: 1;
  margin-bottom: 8px;
}
.flow-item b { font-size: 14px; font-weight: 800; display: block; margin-bottom: 4px; }
.flow-item small { font-size: 12px; color: var(--muted); }

/* ---------- Split / Quote ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section.dark .quote { color: #fff; }

/* ---------- Stats ---------- */
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 32px; }
.stat b { display: block; font-size: 40px; font-weight: 900; color: var(--blue); line-height: 1; }
.stat small { font-size: 13px; color: var(--muted); }

/* ---------- Sub-hero (inner pages) ---------- */
.subhero {
  position: relative;
  background: linear-gradient(145deg, #f0f7ff 0%, var(--soft) 100%);
  padding: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* ヒーロー画像レイヤー */
.subhero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* テキストを読みやすくするオーバーレイ。
   文字を白にするのは .has-img のページだけなので、この暗幕も同じ条件で出す。
   画像のないページ（privacy）に暗幕だけがかかると、濃紺の文字が濃紺の幕に
   重なって読めなくなる。 */
.subhero.has-img::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 文字が乗るのは左側。写真を残したい右側へ向けて薄くするが、
     本文が置かれる範囲（おおむね左70%）は白文字とのコントラストが
     4.5:1を下回らない濃さを保つ。 */
  background: linear-gradient(
    105deg,
    rgba(11,28,50,.86) 0%,
    rgba(11,28,50,.78) 45%,
    rgba(11,28,50,.62) 70%,
    rgba(11,28,50,.22) 100%
  );
  z-index: 1;
}

/* テキストコンテンツを最前面に */
.subhero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  padding-bottom: 72px;
}

/* 画像あり時のテキスト色 */
.subhero.has-img .breadcrumbs,
.subhero.has-img .breadcrumbs a { color: rgba(255,255,255,.7); }
.subhero.has-img .breadcrumbs a:hover { color: #fff; }
.subhero.has-img .eyebrow { color: rgba(255,255,255,.75); }
.subhero.has-img h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.subhero.has-img p { color: rgba(255,255,255,.88); }

/* 枠線ボタンは既定で濃紺の文字。暗幕の上ではほとんど読めなくなるため、
   写真つきのヒーロー内にあるものだけ白抜きにする。 */
.subhero.has-img .btn.secondary {
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.subhero.has-img .btn.secondary:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.subhero h1 {
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -.04em;
  line-height: 1.12;
  margin: 12px 0 20px;
}
.subhero p { font-size: 17px; color: var(--muted); max-width: 680px; }
.breadcrumbs {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.breadcrumbs a:hover { color: var(--blue); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th, .table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--soft);
}
.table tr:last-child td { border-bottom: 0; }
.source-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- Timeline ---------- */
.timeline { border-left: 3px solid var(--line); padding-left: 28px; }
.time {
  position: relative;
  padding: 0 0 28px 0;
}
.time::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 50%;
  border: 3px solid var(--white);
}
.time b { font-size: 16px; display: block; margin-bottom: 6px; }
.time p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Callout ---------- */
.callout {
  background: var(--soft);
  border-radius: var(--r);
  border-left: 4px solid var(--blue);
  padding: 24px 28px;
}
.callout h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.callout p  { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- News / Information ---------- */
.news-item {
  display: grid;
  grid-template-columns: 110px 80px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: 0; }
.news-item time { font-size: 13px; color: var(--muted); font-weight: 700; padding-top: 4px; }
.news-item b { font-size: 15px; font-weight: 800; display: block; margin-bottom: 4px; }
.news-item p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Project card ---------- */
.project {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.project:last-child { border-bottom: 0; }
.place {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  background: var(--soft);
  padding: 8px 14px;
  border-radius: 12px;
  text-align: center;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- Contact Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink2); }
/* チェックボックスとラジオは除く。全幅にすると同意文が押し出されてしまう */
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  /* 入力欄には既定の文字数ぶんの幅がある。flexアイテムはその幅より
     縮まないため、指定しないと狭い画面で親からはみ出す */
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  padding: 16px 0;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 14px; color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 28px; margin-top: 48px; }
.legal h3 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { font-size: 15px; color: var(--muted); line-height: 1.9; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.foot-logo { width: 160px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .85; }
.site-footer h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 14px;
}
.site-footer a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.site-footer a:hover { color: #fff; }
.copy {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* ---------- Technology / Platform page specifics ---------- */
.tech-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  transition: transform .2s, box-shadow .2s;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(28,114,216,.1); }
.tech-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.tech-icon img { width: 52px; height: 52px; object-fit: contain; }

/* ---------- Organization page specifics ---------- */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.officer-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
}
.officer-card .role { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 6px; }
.officer-card .name { font-size: 18px; font-weight: 800; color: var(--ink); }
/* site-data.js が生成するクラス名に対応（.role / .name の別名） */
.officer-card .officer-role { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 6px; }
.officer-card .officer-name { font-size: 18px; font-weight: 800; color: var(--ink); }
.officer-card .officer-org { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* ---------- Member section ---------- */
.member-category {
  margin-bottom: 48px;
}
.member-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.member-category-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.member-category-title.gold { color: #b8860b; }
.member-category-title.gold::before { background: #b8860b; }
.member-category-title.green { color: var(--green2); }
.member-category-title.green::before { background: var(--green2); }
.member-category-title.muted { color: var(--muted); }
.member-category-title.muted::before { background: var(--muted); }

/* 会員名は長短の差が大きい（「富山県」から30字を超える社名まで）。
   列を狭くすると長い名前が3行に折れて不揃いになるため、1列を広めに取り、
   画面幅に応じて列数のほうを減らす。 */
.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}
.member-list.compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
/* flex にして、折り返しても枠がひとつのまとまりとして伸びるようにする。
   span のままインラインで枠を付けると、2行目で枠が割れて崩れる。
   格子の既定（stretch）と組み合わさり、同じ行の高さもそろう。 */
.member-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  line-height: 1.45;
  word-break: break-word;
  text-decoration: none;
}
.member-item.highlight {
  background: #eff6ff;
  border-color: #bcd6f7;
  color: var(--ink);
  font-weight: 700;
}
a.member-item {
  transition: border-color .15s, color .15s, background .15s;
}
a.member-item:hover,
a.member-item:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: #f7fbff;
}
@media (max-width: 680px) {
  /* 携帯では2列にすると社名がほとんど折り返す。1列で並べる */
  .member-list,
  .member-list.compact { grid-template-columns: 1fr; }
  .member-item { min-height: 0; }
}

/* ---------- Concept page ---------- */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.concept-card {
  background: linear-gradient(135deg, #f0f7ff, var(--soft));
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 28px 24px;
}
.concept-card .c-label {
  font-size: 38px;
  font-weight: 900;
  color: var(--blue);
  opacity: .18;
  line-height: 1;
  margin-bottom: 8px;
}

/* ---------- Hero image background ---------- */
/* .hero の追加スタイルはここに集約 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  z-index: 0;
}
/* テキスト可読性オーバーレイ：左側ほど白く、右側は背景が透ける */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(245,247,244,.88) 0%,
    rgba(238,248,249,.75) 38%,
    rgba(238,248,249,.40) 62%,
    rgba(238,248,249,.06) 100%
  );
  pointer-events: none;
}
.hero > *:not(.hero-bg-img):not(.hero-overlay) { position: relative; z-index: 2; }

/* ---------- Section image panels ---------- */
.img-panel {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(11,28,50,0.12);
}
.img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 収録写真は人物が上寄りのものが多いため、切り取りを少し上へ寄せる */
  object-position: center 38%;
  display: block;
  transition: transform 0.4s ease;
}
.img-panel:hover img { transform: scale(1.03); }

/* 本文中に置く写真。
   高さをpxで固定すると、横幅の広い場所で上下が大きく切り取られてしまう。
   幅を抑えたうえで比率から高さを決めることで、どの画面幅でも同じ見え方になる。 */
.img-panel.inline-media {
  aspect-ratio: 16 / 9;
  max-width: 620px;
}

/* ---------- Split with image ---------- */
.split-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-img.reverse { direction: rtl; }
.split-img.reverse > * { direction: ltr; }
.split-img .img-panel { min-height: 320px; }

/* ---------- SVG diagram container ---------- */
.diagram-wrap {
  margin: 40px 0;
  text-align: center;
}
.diagram-wrap img,
.diagram-wrap svg {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.diagram-wrap.shadowed img {
  box-shadow: 0 6px 24px rgba(11,28,50,0.10);
}

/* ---------- Section image banner (full-width strip) ---------- */
.img-banner {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(11,28,50,0.12);
  margin: 32px 0;
}
@media (max-width: 680px) {
  .img-banner { height: 200px; border-radius: 14px; }
}

/* ---------- Feature image tile ---------- */
.feature-tile {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  min-height: 260px;
}
.feature-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
/* 帯状のバナー。max-heightをpxで固定すると画面幅によって切り取り量が変わるため、
   比率で高さを決める。min-heightを併用すると幅のほうが比率から逆算されて
   親からはみ出すため、狭い画面では比率自体を切り替える。 */
.feature-tile.banner {
  aspect-ratio: 34 / 10;
  min-height: 0;
}
@media (max-width: 680px) {
  .feature-tile.banner { aspect-ratio: 3 / 2; }
}
.feature-tile .tile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  background: linear-gradient(0deg, rgba(11,28,50,0.80) 0%, transparent 100%);
  color: #fff;
}
.feature-tile .tile-caption h3 { font-size: 16px; margin: 0 0 4px; color: #fff; }
.feature-tile .tile-caption p  { font-size: 13px; color: rgba(255,255,255,0.80); margin: 0; }

/* ---------- Responsive: split-img ---------- */
@media (max-width: 980px) {
  .split-img { grid-template-columns: 1fr; gap: 32px; }
  .split-img.reverse { direction: ltr; }
  .split-img .img-panel { min-height: 240px; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* 横並びのナビは1040pxを下回ると折り返すため、そこから折りたたみメニューにする */
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 62px 0; }
  .hero-art { min-height: 360px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-item::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .brand img { width: 180px; }
  .news-item { grid-template-columns: 90px 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .head { height: 66px; }
  .brand img { width: 150px; }
  .hero h1 { font-size: 44px; }
  .hero-art { min-height: 300px; }
  .person { width: 70px; height: 70px; font-size: 10px; }
  .person b { font-size: 18px; }
  .section { padding: 65px 0; }
  .grid2, .grid3, .grid4, .flow, .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 90px 1fr; }
  .news-item .pill { display: none; }
  .project { grid-template-columns: 1fr; }
  .subhero .wrap { padding-top: 60px; padding-bottom: 48px; }
  .mobile-nav.open { grid-template-columns: 1fr 1fr; }
  .officer-grid { grid-template-columns: 1fr 1fr; }
  /* モバイルでは上→下グラデーション（コンテンツが縦積みになるため） */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(245,247,244,.92) 0%,
      rgba(238,248,249,.82) 45%,
      rgba(238,248,249,.55) 75%,
      rgba(238,248,249,.15) 100%
    );
  }
  .hero-bg-img { object-position: 65% center; }
  /* 下層ページも同様。横幅いっぱいに文字が並ぶので、横方向に薄くすると
     行の右端が写真の明るい部分に重なる。全面を一定以上の濃さで覆う。 */
  .subhero.has-img::after {
    background: linear-gradient(
      180deg,
      rgba(11,28,50,.80) 0%,
      rgba(11,28,50,.84) 55%,
      rgba(11,28,50,.72) 100%
    );
  }
}

/* ============================================================
   世界観セクション（vision.html / トップページ）
   提案資料の「紺 × 金」を踏襲。既存クラスとは名前を分けている。
   ============================================================ */

/* ---------- 方眼（設計図）背景の紺セクション ---------- */
.vsec {
  position: relative;
  padding: 96px 0;
  background: var(--dark);
  color: #e9edf5;
  overflow: hidden;
}
.vsec::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.vsec > * { position: relative; z-index: 1; }
/* 白抜きは紺の面だけ。light / paper では地の文字色を使う */
.vsec:not(.light):not(.paper) .vhead h2 { color: #fff; }
.vsec:not(.light):not(.paper) .vhead p  { color: #a8b6cb; }

/* ---------- 明るい面の世界観セクション ---------- */
.vsec.light { background: var(--white); color: var(--ink); }
.vsec.light::before { background-image: none; }
.vsec.paper { background: var(--paper); color: var(--ink); }
.vsec.paper::before { background-image: none; }

/* ---------- 見出し ---------- */
.vhead { max-width: 860px; margin-bottom: 44px; }
.vhead .veyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--gold-l);
  margin-bottom: 16px;
}
.vsec.light .vhead .veyebrow,
.vsec.paper .vhead .veyebrow { color: var(--gold); }
.vhead .veyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.vhead h2 {
  font-size: clamp(25px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
.vhead p {
  margin: 18px 0 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
}
.vhead.center { margin-inline: auto; text-align: center; }
.vhead.center p { margin-inline: auto; }

/* ---------- 対比（従来 vs CDX） ---------- */
.vcompare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
}
.vpane {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 30px 28px;
}
.vpane.is-old { border-top: 4px solid #9aa7b5; }
.vpane.is-new { border-top: 4px solid var(--gold); box-shadow: 0 14px 40px rgba(184,134,47,.12); }
.vsec:not(.light):not(.paper) .vpane {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
}
.vpane .vlabel {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}
.vpane.is-new .vlabel { color: var(--gold); }
.vsec:not(.light):not(.paper) .vpane.is-new .vlabel { color: var(--gold-l); }
.vpane h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 12px;
}
.vsec:not(.light):not(.paper) .vpane h3 { color: #fff; }
.vpane p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.85; }
.vsec:not(.light):not(.paper) .vpane p { color: #a8b6cb; }
.vpane ul { margin: 12px 0 0; padding-left: 1.15em; }
.vpane li { font-size: 14px; color: var(--muted); line-height: 1.85; }
.vsec:not(.light):not(.paper) .vpane li { color: #a8b6cb; }
.vversus {
  align-self: center;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .1em;
}

/* ---------- 大きな数値 ---------- */
.vfigures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  overflow: hidden;
}
.vsec.light .vfigures,
.vsec.paper .vfigures { background: var(--line); border-color: var(--line); }
.vfig { background: var(--dark); padding: 30px 26px; }
.vsec.light .vfig { background: var(--white); }
.vsec.paper .vfig { background: var(--paper); }
.vfig .vf-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #8fa0b8;
  margin-bottom: 10px;
}
.vsec.light .vfig .vf-label,
.vsec.paper .vfig .vf-label { color: var(--muted); }
.vfig .vf-value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--gold-l);
  letter-spacing: -.02em;
}
.vsec.light .vfig .vf-value,
.vsec.paper .vfig .vf-value { color: var(--gold); }
.vfig .vf-value small { font-size: .46em; margin-left: 4px; font-weight: 700; }
.vfig .vf-note { font-size: 13px; color: #8fa0b8; margin-top: 12px; line-height: 1.75; }
.vsec.light .vfig .vf-note,
.vsec.paper .vfig .vf-note { color: var(--muted); }
.vfig.is-alert .vf-value { color: #ff8a76; }
.vsec.light .vfig.is-alert .vf-value,
.vsec.paper .vfig.is-alert .vf-value { color: var(--alert); }

/* ---------- フラクタル（トリオ → スクワッド → トライブ） ---------- */
.vfractal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: frac;
}
.vfrac {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 28px 26px;
  text-align: center;
}
.vfrac + .vfrac::before {
  content: "▶";
  position: absolute;
  left: -17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--gold);
}
.vfrac .vf-tri { margin: 0 auto 16px; display: block; }
.vfrac b { display: block; font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.vfrac span { display: block; font-family: var(--font-data); font-size: 12.5px; color: var(--gold); letter-spacing: .06em; margin-bottom: 10px; }
.vfrac p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.8; }

/* ---------- 3つの役割 ---------- */
.vroles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vrole {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vrole .vr-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eef4fd;
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}
.vrole:nth-child(2) .vr-key { background: #fdf3e2; color: var(--gold); }
.vrole:nth-child(3) .vr-key { background: #eaf7ee; color: #2a8a43; }
.vrole h3 { font-size: 19px; font-weight: 800; margin: 0; line-height: 1.45; }
.vrole h3 small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 6px;
}
.vrole p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.85; }
.vrole ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.vrole li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}
.vrole li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- 年次ステップ ---------- */
.vyears { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; }
.vyear {
  border-radius: 18px;
  padding: 30px 26px;
  color: #fff;
  background: #3f6ea8;
}
.vyear:nth-child(1) { background: #4d80b8; min-height: 210px; }
.vyear:nth-child(2) { background: #c26a4a; min-height: 244px; }
.vyear:nth-child(3) { background: #3f7a58; min-height: 278px; }
.vyear .vy-tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  margin-bottom: 14px;
}
.vyear h3 { font-size: 21px; font-weight: 800; margin: 0 0 12px; color: #fff; }
.vyear ul { margin: 0; padding-left: 1.15em; }
.vyear li { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,.92); }

/* ---------- 4つの未来 ---------- */
.vcareers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vcareer {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 26px 26px;
}
.vcareer .vc-num {
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.vcareer h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.vcareer h3 small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 8px; letter-spacing: .06em; }
.vcareer p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }

/* ---------- 三方良し ---------- */
.vsanpo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vgood {
  border-radius: 18px;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
}
.vgood:nth-child(2) { border-top-color: var(--gold); }
.vgood:nth-child(3) { border-top-color: var(--green2); }
.vgood h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.vgood h3 small { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .1em; margin-left: 8px; }
.vgood .vg-claim {
  font-family: var(--font-mincho);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  margin: 12px 0 10px;
}
.vgood p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }

/* ---------- 引用・強調の帯 ---------- */
.vquote {
  margin: 34px 0 0;
  padding: 26px 30px;
  border-left: 4px solid var(--gold);
  background: rgba(184,134,47,.08);
  font-family: var(--font-mincho);
  font-size: clamp(17px, 2.3vw, 22px);
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  border-radius: 0 14px 14px 0;
}
.vsec:not(.light):not(.paper) .vquote { color: #fff; background: rgba(224,179,85,.12); }

/* ---------- 手順（ステップ） ---------- */
.vsteps { display: grid; gap: 16px; }
.vstep {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 22px 24px;
}
.vstep .vs-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold-l);
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: 700;
}
/* 紺地のセクションの中にある白いカード。文字色を明示しないと、
   セクションから継承した白抜きの色がそのまま白地に載ってしまう */
.vstep b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 5px; color: var(--ink); }
.vstep p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }
.vfrac b { color: var(--ink); }
.vrole h3 { color: var(--ink); }
.vcareer h3 { color: var(--ink); }
.vgood h3 { color: var(--ink); }

/* ---------- 対象者別の入口 ---------- */
.vdoors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vdoor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 28px 26px;
  background: rgba(255,255,255,.05);
}
.vdoor h3 { font-size: 19px; font-weight: 800; color: #fff; margin: 0; }
.vdoor p { font-size: 14px; color: #a8b6cb; margin: 0; line-height: 1.8; }
.vdoor .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 資料の出典表記 ---------- */
.vsource {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
}
.vsec:not(.light):not(.paper) .vsource { color: #8fa0b8; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 980px) {
  .vcompare { grid-template-columns: 1fr; }
  .vversus { justify-self: center; transform: rotate(90deg); }
  .vfigures, .vfractal, .vroles, .vyears, .vsanpo, .vdoors { grid-template-columns: 1fr; }
  .vyear { min-height: 0 !important; }
  .vfrac + .vfrac::before { left: 50%; top: -17px; transform: translateX(-50%) rotate(90deg); }
}
@media (max-width: 680px) {
  .vsec { padding: 64px 0; }
  .vcareers { grid-template-columns: 1fr; }
  .vstep { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 18px; }
  .vquote { padding: 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   入会案内（join.html）
   ============================================================ */

/* ---------- 会員種別のカード ---------- */
.mtypes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mtype {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 18px;
  padding: 28px 26px;
}
.mtype.is-steering { border-top-color: var(--gold); }
.mtype.is-support  { border-top-color: var(--cyan); }
.mtype.is-academic { border-top-color: var(--green2); }

.mtype__en {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
}
.mtype h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 2px 0 0; }
.mtype__for {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: #eef4fd;
  border-radius: 999px;
  padding: 5px 12px;
  align-self: flex-start;
}
.mtype.is-steering .mtype__for { color: var(--gold); background: var(--warm); }
.mtype.is-support  .mtype__for { color: #0d7d92; background: #e5f6f9; }
.mtype.is-academic .mtype__for { color: #2a8a43; background: #e8f8ec; }

.mtype ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.mtype li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}
.mtype li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.mtype.is-steering li::before { color: var(--gold); }
.mtype.is-support  li::before { color: var(--cyan); }
.mtype.is-academic li::before { color: var(--green2); }

.mtype__fee {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink2);
}
.mtype__fee b {
  display: block;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ---------- 規約・関連書類 ---------- */
.doclist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color .2s, transform .15s;
}
a.doc:hover { border-color: var(--blue); transform: translateY(-2px); }
.doc__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef4fd;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.doc__body b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.doc__body small { font-size: 12.5px; color: var(--muted); }
.doc.is-pending { opacity: .72; border-style: dashed; }
.doc.is-pending .doc__icon { background: var(--soft); color: var(--muted); }

/* ---------- 外部フォームの埋め込み枠 ---------- */
.form-embed {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  min-height: 620px;
}
.form-embed iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: 0;
}
.form-embed.is-unset {
  min-height: 0;
  border-style: dashed;
  border-color: var(--line-strong, #c3cbe0);
  background: var(--soft);
}
.form-embed__note {
  margin: 0;
  padding: 34px 30px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  text-align: center;
}
.form-embed__note b { color: var(--ink); font-size: 15px; }
.form-embed__note code {
  font-family: var(--font-data);
  font-size: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

@media (max-width: 980px) {
  .mtypes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .mtypes, .doclist { grid-template-columns: 1fr; }
  .form-embed iframe { height: 1400px; }
}

/* ============================================================
   プロダクト（products.html）
   ロゴ素材は 250×250 の円のなかに製品ロゴが入った形。
   小さく置くとロゴがつぶれるため、大きく見せることを前提にしている。
   ============================================================ */

/* ---------- 冒頭のラインナップ ---------- */
.prod-lineup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prod-brief {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px 26px;
  transition: transform .15s, box-shadow .15s;
}
a.prod-brief:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28,114,216,.12); }
.prod-brief img { width: 100%; max-width: 160px; height: 60px; object-fit: contain; }
.prod-brief b { font-size: 15px; font-weight: 800; color: var(--ink); }
.prod-brief small { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 各プロダクト ---------- */
.prod-list { display: flex; flex-direction: column; gap: 26px; }
.prod {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 44px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 42px;
}
.prod__mark { width: 210px; height: auto; max-width: 210px; object-fit: contain; }
.prod__no {
  font-family: var(--font-data);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
}
.prod__name { font-size: clamp(23px, 2.6vw, 29px); font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.prod__tag { font-size: 14.5px; font-weight: 700; color: var(--blue); margin: 0 0 16px; }
.prod__desc { font-size: 15px; color: var(--ink2); line-height: 1.95; margin: 0 0 20px; }
.prod__feats { display: flex; flex-direction: column; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; }
.prod__feats li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.prod__feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.prod .tag-row { margin-top: 0; }

@media (max-width: 980px) {
  .prod-lineup { grid-template-columns: repeat(2, 1fr); }
  .prod { grid-template-columns: 1fr; gap: 24px; padding: 30px 26px; justify-items: center; text-align: center; }
  .prod__mark { width: 170px; height: auto; max-width: 170px; }
  .prod__feats li { text-align: left; }
  .prod .tag-row { justify-content: center; }
}
@media (max-width: 560px) {
  .prod-lineup { grid-template-columns: 1fr; }
}

/* ---------- ヘッダーの副CTA ---------- */
.head-cta.is-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--line-strong, #c3cbe0);
  padding: 9px 15px;
}
.head-cta.is-ghost:hover { background: transparent; border-color: var(--blue); color: var(--blue) !important; }

/* ============================================================
   お知らせバー（トップページ・ヘッダーのすぐ下）
   最新のお知らせを横に流す。項目はHTMLに1度だけ書き、
   継ぎ目なく回すための複製は assets/site.js が作る。
   ============================================================ */
.newsbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.newsbar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
}
.newsbar__label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.newsbar__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

/* JSが動く前と、動きを減らす設定のときは手でスクロールできるようにしておく */
.newsbar__viewport {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.newsbar__viewport::-webkit-scrollbar { display: none; }
.newsbar.is-ready .newsbar__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

.newsbar__track {
  flex: none;
  display: flex;
  align-items: center;
  gap: 44px;
  margin: 0;
  padding: 0 44px 0 0;
  list-style: none;
  white-space: nowrap;
}
.newsbar.is-ready .newsbar__track {
  animation: newsbar-scroll var(--newsbar-duration, 40s) linear infinite;
}
.newsbar.is-ready:hover .newsbar__track,
.newsbar.is-ready:focus-within .newsbar__track {
  animation-play-state: paused;
}
@keyframes newsbar-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.newsbar__item { display: inline-flex; align-items: baseline; gap: 12px; }
.newsbar__item time {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  color: var(--muted);
}
.newsbar__item a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: color .2s;
}
.newsbar__item a:hover { color: var(--blue); }

.newsbar__more {
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
}
.newsbar__more::after { content: " →"; }

@media (max-width: 680px) {
  .newsbar__inner { gap: 12px; min-height: 48px; }
  .newsbar__label { padding: 5px 11px; font-size: 11.5px; }
  .newsbar__more { display: none; }
  .newsbar__item a { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .newsbar.is-ready .newsbar__track { animation: none; }
}

/* ============================================================
   制度説明カード（municipalities: SYSTEM）
   ============================================================ */
.sys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 680px) { .sys-grid { grid-template-columns: 1fr; } }

.sys-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r);
  padding: 32px 28px;
}
.sys-card__badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.sys-card h3 {
  font-size: clamp(17px,2vw,20px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}
.sys-card p {
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
}
.sys-card__arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-l);
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: .04em;
}
.sys-card__arrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold-l);
  flex-shrink: 0;
}
.sys-note {
  background: rgba(255,255,255,.07);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-top: 32px;
  color: rgba(255,255,255,.7);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ============================================================
   チーム拡張ビジュアル（municipalities: GROW）
   ============================================================ */
.grow-track {
  display: flex;
  gap: 0;
  margin-top: 48px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  /* Hide scrollbar but keep scrollable */
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.grow-step {
  flex: 1 0 220px;
  min-width: 200px;
  position: relative;
}

/* 矢印コネクタ */
.grow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 52px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  z-index: 2;
}
@media (max-width: 760px) {
  .grow-track { flex-direction: column; gap: 16px; }
  .grow-step:not(:last-child)::after { display: none; }
  .grow-step { flex: none; min-width: 0; }
}

.grow-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px 20px;
  margin: 0 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.grow-step:first-child .grow-card { border-top: 4px solid var(--blue); }
.grow-step:nth-child(2) .grow-card { border-top: 4px solid var(--cyan); }
.grow-step:nth-child(3) .grow-card { border-top: 4px solid var(--green); }
.grow-step:last-child .grow-card { border-top: 4px solid var(--gold); }

.grow-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.grow-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.4;
}

/* 人物アイコン列 */
.grow-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.person-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.person-icon.tech   { background: #dbeafe; }
.person-icon.design { background: #fce7f3; }
.person-icon.biz    { background: #d1fae5; }
.person-icon.senior { background: #fef3c7; }

/* 担当領域タグ */
.grow-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.domain-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--soft);
  color: var(--ink2);
}
.domain-tag.active {
  background: var(--ink);
  color: #fff;
}

/* 拡大矢印インジケータ */
.grow-expand {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.grow-expand::before,
.grow-expand::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue));
}
.grow-expand::before { transform: scaleX(-1); }

/* ============================================================
   現在地ビジュアル数字カード（vision: 01）
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0 32px;
}
@media (max-width: 680px) { .stat-grid { grid-template-columns: 1fr; gap: 14px; } }

.stat-card {
  border-radius: 18px;
  padding: 28px 22px 22px;
  position: relative;
  overflow: hidden;
}
.stat-card.alert-card {
  background: linear-gradient(140deg, #c2402f 0%, #8b1a10 100%);
}
.stat-card.warn-card {
  background: linear-gradient(140deg, #e07030 0%, #b8501a 100%);
}
.stat-card.info-card {
  background: linear-gradient(140deg, #1c72d8 0%, #0d4a9a 100%);
}

.stat-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.stat-card__value {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-card__value small {
  font-size: clamp(14px, 2vw, 19px);
  font-weight: 700;
  letter-spacing: .02em;
}
.stat-card__desc {
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  margin: 0;
}
.stat-card__icon {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 28px;
  opacity: .18;
}

/* ============================================================
   エストニア比較ビジュアル（vision: 10）
   ============================================================ */
.compare-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0 24px;
}
@media (max-width: 680px) { .compare-visual { grid-template-columns: 1fr; } }

.compare-col {
  border-radius: 20px;
  padding: 28px 24px;
}
.compare-col.col-estonia {
  background: linear-gradient(140deg, #1c72d8 0%, #0d4c9a 100%);
}
.compare-col.col-japan {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.4);
}
/* japan列はテキストを濃い色に上書き */
.compare-col.col-japan .compare-col__title {
  color: var(--ink2);
}
.compare-col.col-japan li {
  color: var(--ink);
}
.compare-col__flag {
  font-size: 32px;
  margin-bottom: 10px;
}
.compare-col__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-col li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.55;
}
.compare-col li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}
.compare-col.col-japan li::before {
  content: '→';
  background: #e8f0fb;
  color: var(--blue);
}

/* ============================================================
   セクション画像（img-banner / img-split / img-accent）
   ============================================================ */

/* 横幅いっぱい・角丸バナー画像 */
.img-banner {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  margin: 32px 0;
  max-height: 340px;
}

/* 左右2カラム：テキスト + 画像 */
.img-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 36px 0;
}
.img-split.reverse { direction: rtl; }
.img-split.reverse > * { direction: ltr; }
@media (max-width: 680px) {
  .img-split { grid-template-columns: 1fr; gap: 20px; }
  .img-split.reverse { direction: ltr; }
}
.img-split img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 16/10;
}

/* セクション上部のアクセント画像（右寄せ・小サイズ） */
.img-accent {
  float: right;
  width: 42%;
  max-width: 420px;
  border-radius: 16px;
  margin: 0 0 24px 32px;
  object-fit: cover;
  aspect-ratio: 16/10;
}
@media (max-width: 680px) {
  .img-accent { float: none; width: 100%; max-width: 100%; margin: 0 0 20px; }
}

/* sys-card内画像 */
.sys-card-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16/9;
  margin-bottom: 20px;
  display: block;
}

/* vcompare内イメージ */
.vcompare-img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 16/8;
  display: block;
  margin-bottom: 32px;
}

/* vgood（三方良し）内画像 */
.vgood-img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 16/9;
  margin-bottom: 16px;
  display: block;
}

/* vsec内フルブリードバナー画像（暗めオーバーレイ付き） */
.vsec-img-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 36px 0 24px;
}
.vsec-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 360px;
}
.vsec-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(11,28,50,.55));
  border-radius: 18px;
}
.vsec-img-caption {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* grow-trackのフルバナー（STEP展開図の上）*/
.grow-banner {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 21/9;
  display: block;
  margin-bottom: 32px;
}
