/* ============================================================
   すごいよ山下くん — スタイルシート
   色役割:
     --c-brand  : #005BAC  ブランド（ロゴ・見出し・アクセント）
     --c-action : #E85A25  アクション（CTAボタンのみ）
     --c-ok     : #188038  状態・正常
     --c-warn   : #B45309  状態・警告
     --c-ng     : #D93025  状態・異常/エラー
   セクション背景の流れ:
     Hero（白/ブランドブルー分割）→ Problems（薄グレー）
     → Solution（白） → Story（薄グレー）→ Reasons（白）
     → Cases（薄グレー）→ Features（白）→ Flow（薄ブルー）
     → FAQ（薄グレー）→ CTA（薄ブルー）→ Footer（ダーク）
============================================================ */

/* ===========================
   1. リセット / ベース
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-brand:       #005BAC;
  --c-action:      #E85A25;
  --c-action-dark: #C44A1A;
  --c-ok:          #188038;
  --c-warn:        #B45309;
  --c-ng:          #D93025;

  --c-text:        #1A1A2E;
  --c-text-sub:    #2E2E3E;
  --c-bg:          #F7F8FA;
  --c-bg-raised:   #FFFFFF;
  --c-border:      #E0E3E8;

  --header-h:      110px;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);

  --font: 'Noto Sans JP', sans-serif;

  --space-section: clamp(56px, 7vw, 88px);
  --container: 1320px;

  /* フォームページ用の旧変数エイリアス */
  --color-gray:       var(--c-bg);
  --color-border:     var(--c-border);
  --color-primary:    var(--c-brand);
  --color-text:       var(--c-text);
  --color-text-muted: var(--c-text-sub);
  --color-black:      var(--c-text);
  --color-warn:       var(--c-ng);
  --shadow:           var(--shadow-md);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg-raised);
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  line-break: strict;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
br.sp-br { display: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===========================
   2. レイアウト
=========================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

main { padding-top: var(--header-h); }

.section { padding-block: var(--space-section); }

/* ===========================
   3. ボタン
=========================== */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-action);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  transition: background .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-action:hover {
  background: var(--c-action-dark);
  box-shadow: 0 4px 14px rgba(232,90,37,.35);
  transform: translateY(-1px);
}
.btn-action:active { transform: translateY(0); }
.btn-action.btn-lg { font-size: 16px; padding: 15px 36px; border-radius: var(--radius-md); }
.btn-action.btn-sm { font-size: 16px; padding: 13px 30px; }
.btn-action.btn-block { width: 100%; padding-block: 13px; text-align: center; }

/* アウトラインボタン（ライト背景用） */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--c-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border);
  transition: border-color .18s, background .18s, color .18s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--c-brand); color: var(--c-brand); background: #EEF5FF; }
.btn-outline.btn-lg { font-size: 16px; padding: 15px 36px; border-radius: var(--radius-md); }

/* ゴーストボタン（ダーク背景用・フォームページ等） */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-action);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: none;
  transition: background .18s, transform .12s, box-shadow .18s;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--c-action-dark); }
.btn-ghost.btn-lg { font-size: 16px; padding: 15px 36px; border-radius: var(--radius-md); }

/* ===========================
   4. スクロールリビール
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===========================
   5. セクション共通
=========================== */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 14px;
}

.section-header { margin-bottom: clamp(28px, 4vw, 48px); }
.section-header--center { text-align: center; }

.section-heading {
  text-wrap: pretty;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.25;
  color: var(--c-text);
}
.section-sub {
  margin-top: 14px;
  font-size: 15px;
  color: var(--c-text-sub);
}

/* ===========================
   6. ヘッダー
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(245,248,255,.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 100%;
  padding-inline: clamp(20px, 4vw, 60px);
}
.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.header-nav { justify-self: center; }
.header-btns {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2BB9A8;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: opacity .15s;
}
.btn-login:hover { opacity: .85; }
.header-nav ul { display: flex; gap: 0; }
.header-nav a {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-text);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.header-nav a:hover { color: var(--c-text); background: rgba(0,0,0,.04); }

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビ */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - var(--header-h));
  background: rgba(255,255,255,.98);
  padding: 24px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 99;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0; }
.mobile-nav li a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}
.mobile-nav li a.btn-action { margin-top: 24px; border-bottom: none; color: #fff; }
.mobile-nav li a.btn-login { margin-top: 8px; border-bottom: none; display: flex; justify-content: center; color: #fff; }

/* ===========================
   7. ヒーロー（斜め分割：左 #EEF5FF / 右 Heroback.png）
=========================== */
.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: calc(100vh - var(--header-h) - 340px);
  position: relative;
  background:
    linear-gradient(rgba(26,127,212,.7), rgba(26,127,212,.7)),
    url('images/hero-bg.jpg') center center / cover no-repeat;
}

/* 左側の斜め #EEF5FF エリア（pseudo で全体に重ねる） */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #EEF5FF;
  clip-path: polygon(0 0, 46% 0, 46% 100%, 0 100%);
  z-index: 0;
}

.hero-copy-wrap {
  background: transparent;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px) clamp(12px, 1.5vw, 24px) clamp(20px, 3vw, 36px) clamp(24px, 3vw, 48px);
}

.hero-copy {
  max-width: 820px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 12px;
  display: block;
}

.hero-heading {
  text-wrap: pretty;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 16px;
}
.hero-heading em {
  font-style: normal;
  color: var(--c-brand);
}

/* 小さな社会的証明テキスト（数字が確定したら使用） */
.hero-proof {
  font-size: 12px;
  color: var(--c-text-sub);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: .01em;
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual-wrap {
  background: transparent;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.hero-invoice-img {
  flex-shrink: 0;
  width: 23%;
  max-width: 160px;
  align-self: flex-end;
  object-fit: contain;
  object-position: bottom;
  margin-left: -14%;
  margin-bottom: 8%;
  pointer-events: none;
  user-select: none;
}

.hero-worker-img {
  flex-shrink: 0;
  width: 28%;
  max-width: 190px;
  align-self: flex-end;
  object-fit: contain;
  object-position: bottom;
  margin-right: -4%;
  pointer-events: none;
  user-select: none;
  position: relative;
  z-index: 2;
}

.hero-screen-float {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px 12px 24px 0;
  max-width: 75%;
}

.hero-dashboard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 8px 40px rgba(0,0,0,.35));
}

.hero-caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--c-text-sub);
  text-align: center;
  font-weight: 500;
  letter-spacing: .03em;
}

/* ===========================
   8. スクリーンモックアップ
=========================== */
.screen-window {
  background: var(--c-bg-raised);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: 0 12px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  font-size: 11px;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F0F1F4;
  border-bottom: 1px solid var(--c-border);
}
.sdot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sdot--r { background: #FF5F57; }
.sdot--y { background: #FEBC2E; }
.sdot--g { background: #28C840; }
.screen-title {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-sub);
  letter-spacing: .02em;
}
.screen-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* KPIカード行 */
.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash-kpi {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-kpi--hi   { background: #EFF6FF; border-color: #BFDBFE; }
.dash-kpi--warn { background: #FFF7ED; border-color: #FED7AA; }
.dash-kpi-l { font-size: 10px; color: var(--c-text-sub); font-weight: 500; line-height: 1.3; }
.dash-kpi-v { font-size: 18px; font-weight: 800; color: var(--c-text); letter-spacing: -.04em; line-height: 1; }
.dash-kpi-u { font-size: 11px; font-weight: 600; margin-left: 1px; }

/* ダッシュボードテーブル */
.dash-table-wrap { overflow-x: auto; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}
.dash-table th,
.dash-table td {
  padding: 7px 8px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-table th {
  font-size: 10px;
  font-weight: 600;
  color: var(--c-text-sub);
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}
.dash-table th:nth-child(1) { width: 36%; }
.dash-table th:nth-child(2),
.dash-table th:nth-child(3) { width: 18%; }
.dash-table th:nth-child(4),
.dash-table th:nth-child(5) { width: 14%; }
.dash-td-name { max-width: 0; }
.dash-td-num { text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dash-row--warn { background: #FFFBEB; }
.dash-row--ng   { background: #FEF2F2; }

/* バッジ */
.pbadge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: -.01em;
}
.pbadge--ok   { background: #DCFCE7; color: #15803D; }
.pbadge--warn { background: #FEF3C7; color: #92400E; }
.pbadge--ng   { background: #FEE2E2; color: #B91C1C; }

.sbadge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.sbadge--active { background: #DBEAFE; color: #1D4ED8; }
.sbadge--done   { background: #DCFCE7; color: #15803D; }
.sbadge--warn   { background: #FEF3C7; color: #92400E; }
.sbadge--ng     { background: #FEE2E2; color: #B91C1C; }

/* ===========================
   8.5. ロゴマーキー
=========================== */
.logo-strip {
  background: #fff;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding-block: 24px 32px;
  overflow: hidden;
  position: relative;
}

/* 左右フェードマスク */
.logo-strip::before,
.logo-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.logo-strip::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.logo-strip::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.logo-strip-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text);
  opacity: 1;
  text-align: center;
  margin-bottom: 20px;
}

.logo-track-wrap {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
}
.logo-track--fwd  { animation: logo-marquee-fwd 12s linear infinite; }
.logo-track--fwd2 { animation: logo-marquee-rev 12s linear infinite; }

@keyframes logo-marquee-fwd {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}
@keyframes logo-marquee-rev {
  from { transform: translateX(-33.3333%); }
  to   { transform: translateX(0); }
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 110px;
  padding: 0 36px;
  flex-shrink: 0;
  position: relative;
}

/* 区切り線 */
.logo-chip::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: var(--c-border);
}

.logo-chip-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ===========================
   9. 課題（薄グレー、2×2 グリッド）
=========================== */
.problems { background: var(--c-bg); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.2vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  align-items: center;
}

.problem-img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.problem-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.04em;
  line-height: 1.35;
  margin-bottom: 10px;
}

.problem-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.8;
}

/* ===========================
   10. ソリューション（白）
=========================== */
.solution {
  background:
    linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.70)),
    url('images/solution-section-bg.png') center center / cover no-repeat;
}

/* 暗背景に合わせた白文字対応 */
.solution .section-heading,
.solution .section-sub { color: var(--c-text); }
.sol-label { color: var(--c-text) !important; }
.sol-arrow { color: var(--c-brand) !important; }
.sol-values { border-top-color: var(--c-text); }
.sol-value-title { color: var(--c-text) !important; }
.sol-value-desc { color: var(--c-text) !important; }

/* フロー図 */
.sol-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: clamp(56px, 7vw, 80px);
  overflow-x: auto;
  padding: 16px 0 24px;
}

.sol-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.sol-circle {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(145deg, #005BAC 0%, #0040A0 100%);
  border: 2.5px solid #005BAC;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,91,172,.35);
  position: relative;
  transition: transform .2s;
}
.sol-circle:hover { transform: translateY(-3px); }
.sol-circle svg { width: 44px; height: 44px; display: block; }

/* 外側の薄いリング */
.sol-circle::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,91,172,.15);
  pointer-events: none;
}

/* sol-circle 内画像アイコン */
.sol-icon-img {
  width: 54%;
  height: 54%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* 画像トリミング用アイコン */
.sol-circle--imgcrop {
  overflow: hidden;
  padding: 0;
}
.sol-imgcrop {
  width: 100%;
  height: 100%;
  background-image: url('images/illust-worker-desk.png');
  background-size: 200% 200%;
  background-repeat: no-repeat;
}
.sol-imgcrop--tl { background-position: 0% 0%; }
.sol-imgcrop--tr { background-position: 100% 0%; }

/* ¥バッジ */
.sol-yen-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: #005BAC;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: sans-serif;
}

.sol-circle--accent {
  background: linear-gradient(145deg, #005BAC 0%, #0040A0 100%);
  border-color: #005BAC;
  box-shadow: 0 6px 24px rgba(0,91,172,.35);
}
.sol-circle--accent::before {
  border-color: rgba(0,91,172,.3);
}

.sol-label {
  font-size: clamp(15px, 1.6vw, 24px);
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: -.05em;
  text-align: center;
  white-space: nowrap;
}
.sol-label--accent { color: var(--c-brand); font-size: clamp(15px, 1.6vw, 24px); }

.sol-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  align-self: flex-start;
  margin-top: calc((116px - 28px) / 2); /* 丸の中央に合わせる */
  padding-inline: 40px;
}
.sol-arrow svg {
  width: 48px;
  height: 28px;
  display: block;
}

/* 3つの価値 */
.sol-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--c-border);
}

.sol-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sol-value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(145deg, #005BAC 0%, #0040A0 100%);
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sol-value-icon svg { width: 34px; height: 34px; display: block; filter: brightness(0) invert(1); }

.sol-value-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.sol-value-desc {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.85;
}

/* ===========================
   11. Before/After ストーリー（薄グレー）
=========================== */
.story { background: var(--c-bg); }

.scene {
  margin-bottom: clamp(48px, 6vw, 72px);
}
.scene:last-child { margin-bottom: 0; }

.scene-hd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.scene-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--c-brand);
  background: rgba(0,91,172,.08);
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.scene-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--c-text);
}

.scene-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.ba-col {
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ba-col--before { border-top: 2px solid var(--c-ng); }  /* Before = 課題状態 → 状態色:赤 */
.ba-col--after  { border-top: 2px solid var(--c-ok); }  /* After  = 解決状態 → 状態色:緑 */

.ba-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}
.ba-tag--before { background: #FEE2E2; color: #991B1B; }
.ba-tag--after  { background: #DCFCE7; color: #14532D; }

.ba-illust {
  background: var(--c-bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow: hidden;
}
.ba-illust svg { width: 100%; height: auto; display: block; }
.ba-illust img { width: 100%; height: 160px; object-fit: contain; display: block; }
.ba-illust--after { background: #F0F6FF; }

.ba-arrow-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.ba-arrow-img {
  width: 64px;
  height: auto;
  display: block;
}

.ba-text { font-size: 14px; color: var(--c-text-sub); line-height: 1.75; flex: 1; }

/* ミニスクリーン */
.mini-screen {
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 11px;
}
.mini-bar {
  background: #F0F1F4;
  border-bottom: 1px solid var(--c-border);
  padding: 7px 12px;
}
.mini-title { font-size: 10px; font-weight: 600; color: var(--c-text-sub); }
.mini-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mini-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}
.mini-table th,
.mini-table td {
  padding: 5px 6px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-table th { font-size: 9px; font-weight: 700; color: var(--c-text-sub); background: var(--c-bg); }
.mini-td-num { text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mini-td-ok  { text-align: right; color: var(--c-ok); font-weight: 700; }
.mini-td-ng  { text-align: right; color: var(--c-ng); font-weight: 700; }

.mini-badge { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.mini-badge--ref { background: #EFF6FF; color: var(--c-brand); }

.mini-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px 2px;
  border-top: 1px solid var(--c-border);
}
.mini-total-label { font-size: 10px; color: var(--c-text-sub); font-weight: 600; }
.mini-total-value { font-size: 13px; font-weight: 800; color: var(--c-text); letter-spacing: -.03em; }

.mini-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px 2px;
  border-top: 1px solid var(--c-border);
  gap: 8px;
}
.mini-summary-l { font-size: 10px; color: var(--c-text-sub); font-weight: 500; }
.mini-summary-v { font-size: 14px; font-weight: 800; color: var(--c-ok); letter-spacing: -.03em; }

/* ===========================
   12. 選ばれる理由（白、大きい番号）
=========================== */
.reasons {
  background:
    linear-gradient(rgba(255,255,255,.70), rgba(255,255,255,.70)),
    url('images/section-bg.jpg') center center / cover no-repeat;
}

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

.reason-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.reason-icon-wrap {
  width: 56px;
  height: 56px;
  background: #EEF5FF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.reason-icon-img { width: 36px; height: 36px; object-fit: contain; }

.reason-rule { display: none; }

.reason-num {
  font-size: 52px;
  font-weight: 900;
  color: var(--c-brand);
  line-height: 1;
  letter-spacing: -.04em;
  opacity: .4;
}

.reason-title {
  text-wrap: pretty;
  font-size: 19px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.4;
}

.reason-desc {
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 1.8;
}

/* ===========================
   13. 導入事例（薄グレー）
=========================== */
.cases { background: var(--c-bg); }

/* セクション眉 */
.cases-eyebrow {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: -.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cases-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-brand);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ビルダー見出し */
.cases-group-heading {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: -.04em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cases-group-heading::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--c-brand);
  border-radius: 1px;
  flex-shrink: 0;
}

/* 2列グリッド */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

/* カード本体 */
.case-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

/* ダークグレーヘッダー帯 */
.case-card-header {
  background: #3a3f4a;
  padding: 20px 24px;
}

.case-heading {
  color: #fff;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  letter-spacing: -.01em;
}

/* カード本文 */
.case-card-body {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  align-items: flex-start;
}

.case-card-text { flex: 1; min-width: 0; }

/* 会社名（青いborder-left） */
.case-company {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand);
  border-left: 3px solid var(--c-brand);
  padding-left: 8px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.case-card-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-text);
}

/* 協力業者カード内の工種ラベル */
.partner-trade-inline {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-text-sub);
  margin-bottom: 2px;
}

/* 丸久材木店ロゴ用 */
.case-thumb-img--logo {
  object-fit: contain;
  padding: 16px;
  background: #fff;
}

/* サムネイル */
.case-thumb {
  width: 150px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--c-bg);
  align-self: flex-start;
}

.case-thumb-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 協力業者の声 */
.partner-voices {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--c-border);
}

.partner-voices-heading {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: -.04em;
  margin-bottom: 28px;
}

/* 協力業者カード — 2列グリッド */
.partner-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.partner-case-card {
  display: flex;
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.partner-case-left {
  flex: 1;
  padding: clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.partner-case-right {
  width: 110px;
  flex-shrink: 0;
  border-left: 1px solid var(--c-border);
  overflow: hidden;
  background: var(--c-bg);
  align-self: flex-start;
}

.partner-case-img {
  width: 100%;
  height: auto;
  display: block;
}

.partner-case-img--logo {
  object-fit: contain;
  padding: 20px;
  background: #fff;
}

.partner-trade {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-brand);
  text-transform: uppercase;
}

.partner-company-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.01em;
}

.partner-case-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.02em;
  line-height: 1.4;
  margin-top: 6px;
}

.partner-case-body {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.75;
  margin-top: 2px;
}

.partner-note { font-size: 11px; color: var(--c-text-sub); }

/* ===========================
   14. 基本機能（白、3×2ボーダーグリッド）
=========================== */
.features { background: var(--c-bg-raised); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-item {
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  transition: background .15s;
}
.feature-item:hover { background: #F8FAFF; }
.feature-item:nth-child(3n) { border-right: none; }
.feature-item:nth-child(7),
.feature-item:nth-child(8),
.feature-item:nth-child(9) { border-bottom: none; }

.feature-icon-lg {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon-lg svg { width: 100%; height: 100%; display: block; }
.feature-icon-img { width: 100%; height: 100%; object-fit: contain; display: block; filter: brightness(0) saturate(100%) invert(26%) sepia(90%) saturate(1200%) hue-rotate(196deg) brightness(88%); }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.03em;
  line-height: 1.3;
}

.feature-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.7;
}

.feature-link-row {
  margin-top: 24px;
  text-align: center;
}
.feature-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brand);
  transition: color .15s;
  letter-spacing: -.01em;
}
.feature-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===========================
   15. 導入の流れ（薄ブルー）
=========================== */
.flow-section { background: #EEF5FF; }
.flow-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.flow-heading-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.flow-group {
  margin-bottom: 24px;
}

.flow-group-label {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  background: #005BAC;
  border: 1px solid #005BAC;
  display: inline-block;
  padding: 4px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.flow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 8px;
  row-gap: 6px;
  margin-bottom: 0;
}

.flow-s {
  grid-row: 1 / 4;
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 0 clamp(16px, 2vw, 24px);
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "header icon"
    "title  title"
    "desc   desc";
  column-gap: 12px;
}

.flow-s-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(20px, 2.5vw, 28px);
}

.flow-s-step {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-text-sub);
  text-transform: uppercase;
  line-height: 1;
}

.flow-s-num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  color: var(--c-brand);
  letter-spacing: -.07em;
  line-height: 1;
}

.flow-s-icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  align-self: center;
}
.flow-s-icon svg { width: 100%; height: 100%; display: block; }
.flow-s-icon-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.flow-s-icon-img[src*="start.png"] {
  filter: brightness(0) saturate(100%) invert(22%) sepia(92%) saturate(958%) hue-rotate(194deg) brightness(96%);
}

.flow-s-title {
  grid-area: title;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.02em;
  line-height: 1.3;
  align-self: start;
}

.flow-s-desc {
  grid-area: desc;
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.65;
  align-self: start;
  padding-bottom: clamp(20px, 2.5vw, 28px);
}

.flow-s-arrow {
  grid-row: 1 / 4;
  font-size: 20px;
  color: rgba(0,91,172,.3);
  font-weight: 300;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* 料金ノートボックス */
.pricing-note-box {
  background: var(--c-bg-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.pricing-note-heading { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; color: var(--c-text); letter-spacing: -.03em; }
.pricing-note-body { font-size: 14px; color: var(--c-text-sub); line-height: 1.75; }

/* ===========================
   16. FAQ（薄グレー）
=========================== */
.faq { background: var(--c-bg); }

.faq-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.faq-character-spacer {
  width: clamp(80px, 10vw, 130px);
  flex-shrink: 0;
}
.faq-character {
  width: clamp(80px, 10vw, 130px);
  height: auto;
  display: block;
  flex-shrink: 0;
}

.faq-list {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-raised);
}

.faq-item {
  padding: clamp(24px, 3vw, 36px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--c-border);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  text-wrap: pretty;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -.02em;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  line-height: 1.4;
}
.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--c-brand);
  line-height: 1.15;
}
.faq-a {
  font-size: 16px;
  color: var(--c-text-sub);
  line-height: 1.85;
  padding-left: 28px;
  position: relative;
}
.faq-a::before {
  content: 'A';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--c-text-sub);
  line-height: 1.15;
}

.faq-more {
  margin-top: 32px;
  text-align: center;
}

/* ===========================
   17. CTA（ジオメトリック）
=========================== */
.cta-section {
  position: relative;
  overflow: hidden;
  background: #0F4C91;
  padding-block: clamp(72px, 10vw, 120px);
}

/* 背景ジオメトリック三角形 */
.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.cta-section::before {
  width: clamp(300px, 40vw, 560px);
  height: clamp(300px, 40vw, 560px);
  background: rgba(255,255,255,.05);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  top: -60px;
  left: -60px;
}
.cta-section::after {
  width: clamp(240px, 35vw, 480px);
  height: clamp(240px, 35vw, 480px);
  background: rgba(255,255,255,.07);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  bottom: -60px;
  right: -60px;
}

/* 中央の明るい三角 */
.cta-geo {
  position: absolute;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.cta-geo--1 {
  width: clamp(180px, 25vw, 340px);
  height: clamp(180px, 25vw, 340px);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
}
.cta-geo--2 {
  width: clamp(120px, 18vw, 240px);
  height: clamp(120px, 18vw, 240px);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  top: 20%;
  right: 12%;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cta-illust { display: none; }

.cta-heading {
  text-wrap: pretty;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.2;
  color: #fff;
}

.cta-body {
  font-size: 15px;
  color: #fff;
  line-height: 1.85;
  max-width: 480px;
  white-space: nowrap;
}

.cta-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.cta-btn-primary { /* btn-action btn-lg はそのまま適用 */ }
.cta-btn-secondary {
  /* ダーク背景なのでゴーストに変える */
}

.cta-divider {
  width: 100%;
  max-width: 320px;
  border: none;
  border-top: 1px solid rgba(255,255,255,.15);
  margin-block: 8px;
}

.cta-sub-label {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  font-weight: 500;
}

/* ===========================
   18. フッター
=========================== */
.footer {
  background: #fff;
  color: rgba(0,0,0,.5);
  padding-top: 40px;
  border-top: 1px solid var(--c-border);
}
.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 32px;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; color: #000; margin-bottom: 8px; }
.footer-company { font-size: 13px; color: #000; margin-bottom: 12px; }
.footer-company strong { color: #000; }
.footer-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-tel-icon { height: 18px; width: auto; display: block; flex-shrink: 0; }
.footer-tel-number { font-size: 20px; font-weight: 800; color: #000; letter-spacing: .02em; line-height: 1; }
.footer-address { font-size: 13px; color: #000; line-height: 2; font-style: normal; margin-bottom: 14px; }

.footer-sns { display: flex; gap: 10px; }
.footer-sns a { display: inline-block; transition: opacity .15s; }
.footer-sns a:hover { opacity: .7; }
.footer-sns img { height: 32px; width: auto; display: block; }

.footer-nav-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 14px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 2px; }
.footer-nav a { font-size: 14px; color: #000; transition: color .15s; line-height: 2.2; display: inline-block; white-space: nowrap; }
.footer-nav a:hover { opacity: .6; }

.footer-privacy-icon {
  display: flex;
  justify-content: center;
  padding-block: 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.footer-privacy-icon img { height: 80px; width: auto; display: block; opacity: .85; }
.footer-privacy-icon a::after { display: none; }

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-block: 14px;
}
.footer-bottom p { font-size: 13px; color: #000; text-align: center; }

/* ===========================
   外部リンクアイコン
=========================== */
a[href^="../"]::after,
a[href^="https://sugoyama.com"]::after,
a[href^="https://www.futurelink.biz"]::after {
  content: '↗';
  font-size: 0.75em;
  margin-left: 3px;
  opacity: .7;
  vertical-align: super;
  line-height: 1;
}
/* 画像のみのリンク（SNSアイコン等）には付けない */
.footer-sns a::after { display: none; }
/* ヘッダーロゴには付けない */
.header-logo::after { display: none; }

/* ===========================
   19. レスポンシブ
=========================== */
/* ===========================
   19. レスポンシブ
=========================== */

/* ---- 1024px (タブレット横) ---- */
@media (max-width: 1024px) {
  /* Hero: 1カラムスタック */
  .hero { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .hero::before { clip-path: none; }
  .hero-copy-wrap {
    background: #EEF5FF;
    justify-content: center;
    padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  }
  .hero-copy { max-width: 680px; }
  .hero-visual-wrap { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); }
  .hero-screen-float { max-width: 520px; }

  /* Solution: フロー左寄せ */
  .sol-flow { justify-content: flex-start; }

  /* Flow steps: subgrid無効→2カラムflex */
  .flow-steps { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; gap: 16px; }
  .flow-s { grid-row: auto; display: flex; flex-direction: column; gap: 4px; padding: clamp(16px, 2vw, 24px); }
  .flow-s-header { padding-top: 0; }
  .flow-s-step { padding-top: 0; }
  .flow-s-arrow { display: none; }
}

/* ---- 768px (タブレット縦 / スマートフォン) ---- */
@media (max-width: 768px) {
  /* ヘッダー */
  :root { --header-h: 64px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .header-btns { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .header-logo-img { height: 40px; }

  /* Logo strip */
  .logo-strip-label { font-size: 13px; margin-bottom: 12px; }
  .logo-chip { width: 180px; height: 72px; padding: 0 20px; }

  /* Hero */
  .hero-copy-wrap { padding: 36px 24px; }
  .hero-heading { font-size: clamp(26px, 6.5vw, 40px); letter-spacing: -.04em; }
  .hero-sub { font-size: 14px; line-height: 1.7; }
  .hero-eyebrow { font-size: 13px; }
  .hero-visual-wrap { display: none; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn-action { width: 100%; justify-content: center; font-size: 15px; }

  /* Problems */
  .problem-grid { grid-template-columns: 1fr; }

  /* Solution: br.sp-br 有効化 */
  br.sp-br { display: block; }

  /* Solution フロー: 3+2の2段配置 */
  .sol-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 0;
    overflow-x: visible;
    padding: 8px 0 20px;
  }
  .sol-step { width: 33.33%; flex-shrink: 0; }
  .sol-arrow { display: none; }
  .sol-circle { width: 72px; height: 72px; }
  .sol-circle::before { inset: -4px; }
  .sol-circle svg { width: 28px; height: 28px; }
  .sol-label { font-size: 14px; }

  /* Solution 3つの価値 */
  .sol-values { grid-template-columns: 1fr; gap: 20px; }
  .sol-value { flex-direction: row; text-align: left; gap: 16px; }
  .sol-value-icon { flex-shrink: 0; width: 48px; height: 48px; margin-bottom: 0; }
  .sol-value-icon svg { width: 24px; height: 24px; }
  .sol-value-title { font-size: 18px; margin-bottom: 4px; }
  .sol-value-desc { font-size: 14px; }

  /* BA scenes */
  .scene-cols { grid-template-columns: 1fr; gap: 12px; }
  .ba-arrow-wrap { display: none; }
  .ba-arrow-img { display: none; }

  /* Reasons: 1カラム、数字＋タイトル横並び・本文下段 */
  .reason-list { grid-template-columns: 1fr; gap: 12px; }
  .reason-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    padding: 20px;
  }
  .reason-num { grid-column: 1; grid-row: 1; font-size: 36px; line-height: 1; align-self: center; }
  .reason-title { grid-column: 2; grid-row: 1; font-size: 16px; align-self: center; }
  .reason-desc { grid-column: 1 / -1; grid-row: 2; font-size: 14px; margin-top: 4px; }

  /* Cases */
  .cases-grid { grid-template-columns: 1fr; }
  .partner-case-grid { grid-template-columns: 1fr; }

  /* Features */
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(3n) { border-right: 1px solid var(--c-border); }
  .feature-item:nth-child(2n) { border-right: none; }

  /* Flow steps: 1カラム */
  .flow-steps { grid-template-columns: 1fr; gap: 12px; }
  .flow-s { padding: 20px; }
  .flow-s-arrow { display: none; }

  /* Pricing note */
  .pricing-note-box { flex-direction: column; text-align: center; gap: 10px; }
  .pricing-note-heading { font-size: clamp(18px, 5vw, 24px); }

  /* 料金テーブル: table-layout fixed で4列を維持 */
  .price-table-wrap { overflow-x: hidden; padding-top: 20px; }
  .price-table { table-layout: fixed; min-width: 0 !important; width: 100%; }
  .price-th-label { width: 28%; }
  .price-th { width: 24% !important; padding: 10px 2px 8px !important; overflow: hidden; }
  .price-plan-name { font-size: 12px !important; margin-bottom: 4px !important; line-height: 1.3 !important; }
  .price-plan-name span { display: none !important; }
  .price-users { font-size: 9px !important; padding: 2px 5px !important; margin-bottom: 4px !important; }
  .price-num { font-size: 16px !important; white-space: nowrap; }
  .price-yen { font-size: 10px !important; }
  .price-unit { font-size: 9px !important; }
  .price-initial { display: none !important; }
  .price-plan-desc { display: none !important; }
  .price-recommend-badge { font-size: 9px !important; padding: 2px 6px !important; top: -14px !important; }
  .price-initial { display: none; }
  .price-plan-desc { display: none; }
  .price-recommend-badge { font-size: 9px; padding: 2px 6px; top: -14px; }
  .price-table tbody tr th { font-size: 11px; padding: 8px 6px; line-height: 1.4; }
  .price-table tbody tr td { font-size: 14px; padding: 8px 4px; }
  .price-sort th { font-size: 12px !important; padding: 8px 6px !important; }
  .price-note { display: none !important; }
  .price-att { font-size: 11px; }

  /* CTA */
  .cta-section { padding-block: clamp(48px, 8vw, 72px); }
  .cta-heading { font-size: clamp(22px, 5.5vw, 32px); }
  .cta-body { white-space: normal; font-size: 14px; }
  .cta-btns { flex-direction: column; align-items: center; gap: 12px; }
  .cta-btns .btn-action,
  .cta-btns .btn-ghost { width: 100%; max-width: 320px; justify-content: center; }

  /* FAQ */
  .faq-item { padding: 20px; }
  .faq-header { gap: 10px; }
  .faq-character { width: clamp(56px, 12vw, 80px); }
  .faq-character-spacer { width: clamp(56px, 12vw, 80px); }
  .faq-q { font-size: 16px; }
  .faq-a { font-size: 14px; }

  /* Footer */
  .footer-layout { grid-template-columns: 1fr; gap: 24px; }
  .footer-logo-img { height: 40px; }
  .footer-tel-number { font-size: 18px; }
  .footer-address { font-size: 12px; }
  .footer-nav a { font-size: 13px; }
}

/* ---- 480px (小型スマートフォン) ---- */
@media (max-width: 480px) {
  /* Solution: 3+2配置を維持（circle縮小） */
  .sol-step { width: 33.33%; }
  .sol-circle { width: 64px; height: 64px; }
  .sol-label { font-size: 13px; }

  /* Cases */
  .case-card-body { flex-direction: column; }
  .case-thumb { width: 130px; }

  /* Features: 1カラム */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item:nth-child(n) { border-right: none; border-bottom: 1px solid var(--c-border); }
  .feature-item:last-child { border-bottom: none; }

  /* Flow steps */
  .flow-s-num { font-size: clamp(26px, 7vw, 36px); }

  /* FAQ */
  .faq-q, .faq-a { padding-left: 20px; }
  .faq-character { width: 48px; }
  .faq-character-spacer { width: 48px; }

  /* Pricing page */
  .price-hero { padding-block: 40px; }
  .price-hero-heading { font-size: clamp(22px, 6vw, 32px); }
}

/* ===========================
   20. フォームページ用クラスエイリアス
=========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: var(--shadow-sm);
}
.site-header .header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { font-size: 16px; font-weight: 800; color: var(--c-brand); letter-spacing: -.03em; flex-shrink: 0; }

.btn.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-action);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  transition: background .18s, transform .12s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn.btn-primary:hover { background: var(--c-action-dark); transform: translateY(-1px); }
.btn.btn-primary.btn-sm { font-size: 13px; padding: 8px 18px; }
.btn.btn-primary.btn-block { width: 100%; padding-block: 13px; }

.btn.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--c-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-border);
  transition: border-color .18s, background .18s, color .18s;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.btn.btn-outline:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn.btn-outline.btn-sm { font-size: 13px; padding: 8px 18px; }

.site-footer { background: #0A1628; padding-block: 20px; }
.footer-copy p { font-size: 12px; color: rgba(255,255,255,.25); text-align: center; }


/* ===========================
   価格ページ
=========================== */

/* Hero */
.price-hero {
  background:
    linear-gradient(rgba(0,30,80,.65), rgba(0,30,80,.65)),
    url('images/cta-bg.jpg') center center / cover no-repeat;
  padding: 56px 0 52px;
  text-align: center;
}
.price-hero-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  margin-bottom: 16px;
}
.price-hero-lead {
  font-size: 16px;
  color: #fff;
  line-height: 1.9;
}
.price-hero-lead strong { color: #fff; }

/* Section */
.price-section { background: var(--c-bg); }

/* Table wrap */
.price-table-wrap {
  overflow-x: auto;
  padding-top: 32px;
}

/* Table base */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 700px; /* モバイルでは768pxメディアクエリで上書き */
}
.price-table thead tr th { vertical-align: top; }

/* Label column */
.price-th-label { width: 32%; }

/* Plan header cells */
.price-th {
  width: 22.6%;
  padding: 28px 20px 20px;
  text-align: center;
  border: 1px solid var(--c-border);
  border-bottom: none;
  position: relative;
  background: #fff;
}
.price-th--standard { overflow: visible; }

/* おすすめバッジ */
.price-recommend-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 20px;
  border-radius: 20px 20px 0 0;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* Plan name */
.price-plan-name {
  font-size: 19px;
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.price-plan-name span { display: inline; }

/* User pill */
.price-users {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  padding: 6px 24px;
  border-radius: 40px;
  margin-bottom: 14px;
}
.price-th--light   .price-users { background: #2BB9A8; }
.price-th--standard .price-users { background: #1A9BD5; }
.price-th--pro      .price-users { background: #1A3A6E; }

/* Price amount */
.price-amount {
  margin: 4px 0 6px;
  line-height: 1;
}
.price-yen  { font-size: 20px; font-weight: 700; color: var(--c-brand); }
.price-num  { font-size: 40px; font-weight: 900; color: var(--c-brand); letter-spacing: -.03em; }
.price-unit { font-size: 15px; color: var(--c-text-sub); }

.price-initial {
  font-size: 13px;
  color: var(--c-text-sub);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}

.price-plan-desc {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.75;
  text-align: left;
}

/* Body rows */
.price-table tbody tr th {
  padding: 13px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border);
}
.price-table tbody tr td {
  padding: 13px 8px;
  text-align: center;
  font-size: 16px;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  background: #fff;
}
.price-table tbody tr:nth-child(even) td,
.price-table tbody tr:nth-child(even) th { background: #F8FAFC; }

/* Category headers */
.price-sort th {
  background: var(--c-brand) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  padding: 10px 16px !important;
  border-color: var(--c-brand) !important;
}

.price-note {
  display: block;
  font-size: 11px;
  color: var(--c-text-sub);
  font-weight: 400;
  margin-top: 3px;
}

.price-att {
  font-size: 12px;
  color: var(--c-text-sub);
  text-align: right;
  margin-top: 12px;
}
