/* =========================================================
   株式会社クロスタ コーポレートサイト
   白+生成り × 深緑。見出しは太ゴシック、番号は Barlow Condensed。
   AI臭NG: キラキラ・ロボット・脳・チップのアイコン、紫グラデは使わない
   ========================================================= */

:root {
  --green: #144D31;
  --green-dark: #0F3D27;
  --green-600: #1D6443;
  --green-100: #E3EEE8;
  --green-50: #F0F6F2;
  --beige: #F6F4F2;
  --ink: #14202E;
  --ink-2: #33404E;
  --muted: #5B6572;
  --line: #E4E2DE;
  --line-strong: #CFCBC4;
  --white: #FFFFFF;
  --gold: #D9A93A;
  --danger: #B3261E;

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --num: "Barlow Condensed", "Noto Sans JP", sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --radius: 4px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-600); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; letter-spacing: .03em; }
/* 日本語の見出し・リードは文節で折り返す(Chrome/Edge。未対応ブラウザは通常の折り返し) */
h1, h2, h3, h4, .section-lead, .page-lead, .hero-lead, .cta-band-title, .definition-body, .lead-strong, .card-title, .menu-item-text, .demo-card-catch { word-break: auto-phrase; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }
/* 下書き(確認用ビルドのみ)と、執筆者が埋める【要確認】の印 */
.draft-banner { background: #FFF3BF; color: #5C4400; font-size: 13px; font-weight: 700; text-align: center; padding: 8px 16px; border-bottom: 1px solid #E8D27A; }
mark.tbd { background: #FFE66D; color: var(--ink); padding: 0 4px; font-weight: 700; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(840px + var(--gutter) * 2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 12px 30px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none;
  border-radius: var(--radius); border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer; font-family: inherit;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--white { background: #fff; color: var(--ink); min-width: 200px; }
.btn--white:hover { background: var(--green-50); color: var(--green); }
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.arrow {
  position: relative; display: inline-block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .2s;
}
.arrow::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none;
  padding-bottom: 6px; border-bottom: 1.5px solid var(--green);
}
.text-link:hover { color: var(--green); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img { height: 36px; width: auto; }
.gnav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.gnav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer; letter-spacing: .04em;
  position: relative;
}
.gnav-link:hover, .gnav-link.is-active { color: var(--green); }
.gnav-link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--green);
}
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.gnav-item.has-sub { position: relative; }
.gnav-sub {
  list-style: none; position: absolute; top: calc(100% + 10px); left: -12px; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--green);
  box-shadow: 0 12px 32px rgba(20, 32, 46, .08); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.gnav-item.has-sub.is-open .gnav-sub { opacity: 1; visibility: visible; transform: none; }
.gnav-sub a { display: block; padding: 10px 20px; text-decoration: none; color: var(--ink); line-height: 1.5; }
.gnav-sub a span { display: block; font-size: 14px; font-weight: 700; }
.gnav-sub a small { display: block; font-size: 12px; color: var(--muted); }
.gnav-sub a:hover { background: var(--green-50); }
.gnav-sub a:hover span { color: var(--green); }
.gnav-cta { margin-left: 12px; }
.gnav-cta .btn { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); 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); }
  .gnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff;
    overflow-y: auto; padding: 8px var(--gutter) 40px; border-top: 1px solid var(--line);
    display: none;
  }
  .gnav.is-open { display: block; }
  .gnav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav-item { border-bottom: 1px solid var(--line); }
  .gnav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 16px; font-weight: 700; }
  .gnav-link.is-active::after { display: none; }
  .gnav-sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    display: none; padding: 0 0 12px; min-width: 0;
  }
  .gnav-item.has-sub.is-open .gnav-sub { display: block; }
  .gnav-sub a { padding: 10px 12px; }
  .gnav-cta { margin: 24px 0 0; border: 0; }
  .gnav-cta .btn { width: 100%; min-height: 52px; font-size: 16px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 共通セクション ---------- */
.section { padding: 104px 0; }
.section--beige { background: var(--beige); }
.section--tight { padding: 72px 0; }
/* 白地の section が続くときは、後ろの section に .section--flush を付けて上の余白を詰める */
.section--flush { padding-top: 0; }
.section--green-50 { background: var(--green-50); }
.eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--ink-2);
  text-transform: uppercase;
}
.section-head { margin-bottom: 48px; max-width: 820px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; letter-spacing: .04em; line-height: 1.45; }
.section-lead { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; }
.label-bar {
  display: inline-block; margin: 0 0 20px; padding-left: 12px; border-left: 3px solid var(--green);
  font-size: 14px; font-weight: 700; color: var(--green); line-height: 1.5; letter-spacing: .06em;
}
.num { font-family: var(--num); font-weight: 600; color: var(--green); letter-spacing: .02em; line-height: 1; }
.note { font-size: 12.5px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }
.lead-strong { font-size: 18px; font-weight: 700; line-height: 1.8; }
h3.h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }

.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- トップ: ヒーロー ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: stretch;
  min-height: 520px;
}
.hero-text {
  padding: 64px 48px 64px max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-title {
  font-size: clamp(30px, 3.2vw, 46px); font-weight: 900; line-height: 1.42; letter-spacing: .03em;
  margin: 0 0 28px;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-lead { font-size: 16px; color: var(--ink-2); margin: 0 0 40px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-actions .btn { min-width: 196px; }
.hero-figure { margin: 0; display: flex; flex-direction: column; }
.hero-figure img { flex: 1; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.hero-figure figcaption {
  text-align: right; font-size: 12px; color: var(--ink-2); padding: 10px max(var(--gutter), calc((100vw - var(--container)) / 2)) 0 0;
  letter-spacing: .08em;
}

.news-bar { margin-top: 28px; }
.news-bar-inner {
  display: flex; align-items: center; gap: 20px; padding: 18px 0;
  border-top: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.news-bar-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.news-bar-label small { font-size: 11px; font-weight: 500; margin-left: 12px; letter-spacing: .04em; color: var(--muted); }
.news-bar-sep { width: 1px; height: 18px; background: var(--line-strong); }
.news-bar time { font-family: var(--num); font-size: 15px; color: var(--muted); }
.news-bar-text { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-bar-inner:hover .news-bar-text { color: var(--green); }

/* ---------- サービスカード ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.svc-card { display: block; text-decoration: none; color: var(--ink); }
.svc-card-figure { margin: 0 0 24px; overflow: hidden; aspect-ratio: 16 / 7.2; background: var(--line); }
.svc-card-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-card-figure img { transform: scale(1.03); }
.svc-card-head { display: flex; align-items: center; gap: 20px; margin: 0 0 12px; }
.svc-card-head .num { font-size: 36px; }
.svc-card-head .sep { width: 1px; height: 24px; background: var(--ink-2); }
.svc-card-title { font-size: 22px; font-weight: 900; letter-spacing: .06em; }
.svc-card-text { color: var(--ink-2); margin: 0 0 20px; font-size: 15px; }

.menu-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.menu-item {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  position: relative; transition: border-color .2s;
}
.menu-item:hover { border-color: var(--green); }
.menu-item-tag { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.menu-item-title { font-size: 18px; font-weight: 900; }
.menu-item-text { font-size: 13.5px; color: var(--muted); line-height: 1.7; padding-right: 28px; }
.menu-item .arrow { position: absolute; right: 24px; bottom: 28px; width: 18px; color: var(--green); }

/* ---------- 数字の帯 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 8px; }
.stat-value .num { font-size: 60px; }
.stat-unit { font-size: 16px; font-weight: 700; color: var(--green); }
.stat-label { font-size: 14px; font-weight: 700; margin: 0; }
.stat-sub { font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* ---------- ステップ(HOW WE WORK) ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-head .num { font-size: 40px; }
.step-line { flex: 1; height: 1.5px; background: var(--green); position: relative; }
.step-line::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; border: 1.5px solid var(--green);
  border-radius: 50%; background: #fff; transform: translate(0, -50%);
}
.js .steps .step-line { transform-origin: left; transform: scaleX(0); transition: transform .9s ease; }
.js .steps.is-visible .step-line { transform: scaleX(1); }
.js .steps.is-visible li:nth-child(2) .step-line { transition-delay: .15s; }
.js .steps.is-visible li:nth-child(3) .step-line { transition-delay: .3s; }
.js .steps.is-visible li:nth-child(4) .step-line { transition-delay: .45s; }
.step-title { font-size: 19px; font-weight: 900; margin: 0 0 10px; }
.step-text { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.9; }

/* ---------- デモカード ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.demo-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.demo-card:hover { border-color: var(--green); transform: translateY(-2px); }
.demo-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--beige); border-bottom: 1px solid var(--line); }
.demo-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.demo-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.demo-card-industry { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .06em; }
.demo-card-title { font-size: 17px; font-weight: 900; line-height: 1.5; margin: 0; }
.demo-card-catch { font-size: 13px; color: var(--muted); line-height: 1.7; }
.demo-card[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 16px;
  font-size: 13px; font-weight: 500; font-family: inherit; color: var(--ink); cursor: pointer; line-height: 1.6;
}
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip:hover { border-color: var(--green); }

/* ---------- 助成金の帯 ---------- */
.subsidy-band {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 48px 56px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
}
.subsidy-band-figure { text-align: center; }
.subsidy-band-figure .label { font-size: 14px; font-weight: 700; margin: 0; }
.subsidy-band-figure .num { font-size: 88px; }
.subsidy-band-figure .num small { font-size: 40px; }
.subsidy-band-title { font-size: 24px; font-weight: 900; margin: 0 0 12px; }

/* ---------- トップの最新コラム ---------- */
.home-column { list-style: none; border-top: 1px solid var(--line); }
.home-column li { border-bottom: 1px solid var(--line); }
.home-column a { display: grid; grid-template-columns: 120px minmax(0, 1fr) 24px; align-items: center; gap: 20px; padding: 20px 4px; color: var(--ink); text-decoration: none; }
.home-column a:hover span { color: var(--green); }
.home-column time { font-family: var(--num); font-size: 15px; color: var(--muted); }
.home-column span:not(.arrow) { font-weight: 700; line-height: 1.6; word-break: auto-phrase; }
.home-column .arrow { width: 18px; color: var(--green); }
@media (max-width: 860px) { .home-column a { grid-template-columns: 1fr 20px; gap: 4px 12px; } .home-column time { grid-column: 1 / -1; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 44px 22px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 16px; line-height: 1.7; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq-q, .faq-a-mark { font-family: var(--num); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--green); flex: none; width: 20px; }
.faq-a-mark { color: var(--muted); }
.faq-a { display: flex; gap: 16px; padding: 0 0 26px; color: var(--ink-2); font-size: 15px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA帯 ---------- */
.cta-band { background: var(--green); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.cta-band-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; margin: 0; letter-spacing: .06em; }
.cta-band-text { font-size: 14px; margin: 6px 0 0; opacity: .9; }

/* ---------- フッター ---------- */
.site-footer { padding: 64px 0 28px; background: #fff; border-top: 1px solid var(--line); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-2); font-size: 13px; line-height: 1.9; margin: 0 0 8px; }
.footer-mail a { color: var(--ink); }
.footer-head { font-size: 13px; font-weight: 700; margin: 0 0 12px; letter-spacing: .08em; }
.footer-col ul { list-style: none; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--green); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ---------- 下層ページ ---------- */
.breadcrumbs { padding: 20px 0 0; font-size: 12.5px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.page-hero { padding: 0 0 72px; border-bottom: 1px solid var(--line); }
.page-hero-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; }
.page-hero--image .page-hero-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.page-title { font-size: clamp(30px, 3.8vw, 46px); font-weight: 900; line-height: 1.42; letter-spacing: .04em; margin: 0 0 24px; }
.page-lead { font-size: 17px; color: var(--ink-2); line-height: 2; margin: 0 0 24px; max-width: 760px; }
.page-hero-figure { margin: 0; }
.page-hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 12.5px; color: var(--muted); margin: 0; }
.meta-line a { color: var(--muted); }

.definition {
  background: var(--green-50); border-left: 4px solid var(--green); padding: 28px 32px; margin: 0 0 56px;
}
.definition-term { font-size: 14px; font-weight: 700; color: var(--green); margin: 0 0 8px; letter-spacing: .06em; }
.definition-body { font-size: 17px; line-height: 2; margin: 0; font-weight: 500; }

.prose { max-width: 800px; }
.prose p { color: var(--ink-2); }
.prose h3 { font-size: 20px; font-weight: 700; margin: 40px 0 12px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; color: var(--ink-2); }
.prose li { margin-bottom: .4em; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 8px; border: 1px solid var(--line); background: #fff; }
.table { width: 100%; min-width: 640px; font-size: 14.5px; line-height: 1.75; }
.table th, .table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: var(--green-50); font-size: 13px; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table td strong { color: var(--green-dark); }
.table .col-em { background: #FBFDFB; }
.table-scroll-hint { display: none; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.table-wrap--narrow { max-width: 880px; }
/* 列が少ない表は横スクロールさせず、画面幅に収める(直前に .table-scroll-hint は置かない) */
.table--fit { min-width: 0; }
.table--fit thead th, .table--fit tbody th { white-space: normal; }
/* 横スクロールする表でも、行見出しは折り返して1列目を広げすぎない */
.table--wrap-th tbody th { white-space: normal; min-width: 9em; }
.cell-line { display: block; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.section--beige .card { border-color: #fff; }
.card-num { font-family: var(--num); font-weight: 600; font-size: 34px; color: var(--green); line-height: 1; margin: 0 0 16px; display: block; }
.card-title { font-size: 18px; font-weight: 900; margin: 0 0 10px; line-height: 1.55; }
.card-text { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.card-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-50); padding: 2px 10px; border-radius: 2px; margin-bottom: 12px; }
.card-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.card a.text-link { margin-top: 20px; }

.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin: 0 0 12px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.figure-photo { margin: 0; }
.figure-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

.vs { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: stretch; }
.vs-col { border: 1px solid var(--line); padding: 28px; background: #fff; }
.vs-col--em { border: 2px solid var(--green); }
.vs-col h3 { font-size: 17px; font-weight: 900; margin: 0 0 4px; }
.vs-col .vs-sub { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.vs-arrow { display: flex; align-items: center; justify-content: center; color: var(--green); }
.vs-arrow .arrow { width: 24px; }

.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: #fff; }
.level { padding: 32px 28px; }
.level + .level { border-left: 1px solid var(--line); }
.level-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.level-head .num { font-size: 44px; }
.level-head span { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .1em; }
.level-title { font-size: 19px; font-weight: 900; margin: 0 0 6px; }
.level-target { display: inline-block; font-size: 12px; font-weight: 700; background: var(--green); color: #fff; padding: 1px 10px; border-radius: 2px; margin-bottom: 14px; }
.level p { font-size: 14px; color: var(--ink-2); margin: 0; }
.level .level-target { color: #fff; }

.price-box { display: grid; grid-template-columns: repeat(5, auto); align-items: center; justify-content: center; gap: 12px 28px; padding: 40px 32px; background: #fff; border: 1px solid var(--line); text-align: center; }
.price-item-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 8px; }
.price-item-value { font-family: var(--num); font-size: 56px; font-weight: 600; line-height: 1; color: var(--ink); margin: 0; }
.price-item-value small { font-family: var(--font); font-size: 18px; font-weight: 700; margin-left: 2px; }
.price-item--em .price-item-value { color: var(--green); }
.price-item-sub { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.price-op { font-family: var(--num); font-size: 36px; color: var(--line-strong); }

.flow-v { list-style: none; counter-reset: flow; }
.flow-v li { position: relative; padding: 0 0 28px 64px; }
.flow-v li::before {
  counter-increment: flow; content: counter(flow, decimal-leading-zero);
  position: absolute; left: 0; top: -2px; font-family: var(--num); font-weight: 600; font-size: 26px; color: var(--green);
}
.flow-v li::after { content: ""; position: absolute; left: 14px; top: 38px; bottom: 6px; width: 1.5px; background: var(--green-100); }
.flow-v li:last-child::after { display: none; }
.flow-v h3, .flow-v h4, .flow-v .flow-v-title { font-size: 17px; font-weight: 900; margin: 0 0 4px; }
.flow-v p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.callout { padding: 24px 28px; border: 1px solid var(--line); background: var(--beige); font-size: 14.5px; color: var(--ink-2); }
.callout strong { color: var(--ink); }

.tag-kind { display: inline-block; min-width: 72px; text-align: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border: 1px solid var(--green); color: var(--green); border-radius: 2px; margin-right: 12px; flex: none; line-height: 1.7; }
.ai-points { list-style: none; }
.ai-points li { display: flex; align-items: flex-start; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.ai-points li:first-child { border-top: 1px solid var(--line); }

.demo-shot { margin: 0; border: 1px solid var(--line); background: var(--beige); }
.demo-shot img { width: 100%; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 24px; }
.form-row { display: grid; gap: 8px; }
.form-row label, .form-label { font-size: 14px; font-weight: 700; }
.req, .opt { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 8px; margin-left: 8px; border-radius: 2px; vertical-align: 2px; line-height: 1.8; }
.req { background: var(--green); color: #fff; }
.opt { background: var(--line); color: var(--ink-2); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); line-height: 1.6;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(20, 77, 49, .15); }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.form-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--green); }
.form-error { border: 1px solid var(--danger); background: #FDF2F1; color: var(--danger); padding: 16px 20px; font-size: 14px; white-space: pre-line; }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { background: var(--beige); padding: 32px; }
.contact-aside h2 { font-size: 18px; font-weight: 900; margin: 0 0 16px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .demo-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 15px; }
  .site-logo img { height: 30px; }
  .section { padding: 72px 0; }
  .section--flush { padding-top: 0; }
  .section-head { margin-bottom: 32px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 40px var(--gutter) 36px; }
  .hero-title { font-size: clamp(28px, 7.6vw, 40px); }
  .hero-title span { white-space: normal; }
  .hero-lead { margin-bottom: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-figure img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .hero-figure figcaption { padding-right: var(--gutter); }
  .news-bar-inner { flex-wrap: wrap; gap: 6px 14px; }
  .news-bar-sep { display: none; }
  .news-bar-text { flex-basis: 100%; white-space: normal; }
  .news-bar .arrow { display: none; }
  .hero-lead br { display: none; }
  .svc-grid, .menu-row, .cards, .cards--2, .related { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { gap: 48px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 24px 12px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .subsidy-band { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band-inner .btn { width: 100%; }
  .page-hero { padding-bottom: 48px; }
  .page-hero-body, .page-hero--image .page-hero-body { grid-template-columns: 1fr; padding-top: 32px; gap: 32px; }
  .page-lead { font-size: 15.5px; }
  .definition { padding: 22px 20px; margin-bottom: 40px; }
  .definition-body { font-size: 15.5px; }
  .split, .split--wide-left { grid-template-columns: 1fr; gap: 32px; }
  .vs { grid-template-columns: 1fr; }
  .vs-arrow { height: 40px; transform: rotate(90deg); }
  .levels { grid-template-columns: 1fr; }
  .level + .level { border-left: 0; border-top: 1px solid var(--line); }
  .price-box { grid-template-columns: 1fr; gap: 8px; padding: 28px 20px; }
  .price-op { line-height: 1; }
  .table-scroll-hint { display: block; }
  .table--fit th, .table--fit td { padding: 12px 10px; font-size: 13.5px; }
  .table--fit thead th { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .demo-grid--4 { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr; }
  .subsidy-band-figure .num { font-size: 72px; }
  .stat-value .num { font-size: 52px; }
  .price-item-value { font-size: 48px; }
  .cta-band .btn { padding-left: 18px; padding-right: 18px; gap: 10px; letter-spacing: .02em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .steps .step-line { transform: none; }
}
