/* ============================================================
   コノマップ® LP  —  style.css
   Design tokens follow LP_DESIGN_RULES.md / HANDOFF.md
   Font: Zen Kaku Gothic New  |  letter-spacing 4% / line-height 175%
   Size scale: 10/12/14/16/18/20/24/32/40
   Spacing: 8/16/24/32/64/104
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* 比例スケール係数（main.js が更新 / JS無効時は等倍） */
  --hs: 1;

  /* Colors */
  --bg-page: #ffffff;
  --bg-section: #f5f7f6;
  --bg-section-2: #eef2f0;
  --bg-dark: #1f2a24;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;
  --text-inverse: #ffffff;
  --border-default: #e5e7e6;
  --border-strong: #bcc2bf;
  --brand: #4ca13f;
  --brand-dark: #2e7a24;
  --accent: #fb7185;
  --placeholder: #d9d9d9;

  /* Spacing scale */
  --sp-8: 8px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-64: 64px;
  --sp-104: 104px;

  /* Layout */
  --content-max: 1280px;
  --gutter: 80px;
  --header-h: 80px;

  /* Type */
  --font-sans: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --ls: 0.04em;
  --lh: 1.75;

  /* Effects */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(31, 42, 36, 0.04),
    0 8px 24px rgba(31, 42, 36, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(31, 42, 36, 0.06),
    0 16px 40px rgba(31, 42, 36, 0.1);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: var(--lh);
  letter-spacing: var(--ls);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* WebP配信のため<img>を<picture>でラップ。pictureはレイアウトに影響させず、
   既存のクラス指定（.proof-img / .hero__worker 等）はラップ後も<img>に効かせる。
   未対応の旧ブラウザは<source>を無視し<img>のpngを表示する。 */
picture {
  display: contents;
}

button {
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */
.section {
  padding-top: var(--sp-104);
  padding-bottom: var(--sp-104);
}

.section--gray {
  background: var(--bg-section);
}

.section--gray2 {
  background: var(--bg-section-2);
}

.section--green {
  background: var(--brand);
  color: var(--text-inverse);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.block + .block {
  margin-top: var(--sp-64);
}

/* ---------- 固定構図セクション（>=769px は 1440基準を zoom で比例縮小）----------
   画面幅に関わらずレイアウトが変わらない。可変高さでも zoom はリフローするため
   高さ計算が不要。768px以下は responsive.css でモバイル縦流しに戻す。 */
.section--fixed {
  padding-top: 0;
  padding-bottom: 0;
}

.section__stage {
  width: 1440px;
  margin-inline: auto;
  zoom: var(--hs);
  padding-top: var(--sp-104);
  padding-bottom: var(--sp-104);
}

/* ---------- Eyebrow + H2 (C/H2, Figma 414:1443) ---------- */
/* Eyebrow: green tab flush to the content-left edge, rounded right only */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 24px 6px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--brand);
  border-left: none;
  border-radius: 0 24px 24px 0;
}

.section--green .eyebrow,
.section--dark .eyebrow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* eyebrow → title gap = 4px (Figma gap-4) */
.h2-head {
  margin-top: 4px;
}

.h2-head__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
  color: var(--brand-dark);
}

.section--green .h2-head__title,
.section--dark .h2-head__title {
  color: #fff;
}

.h2-bar {
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: var(--sp-16);
}

.lead {
  margin-top: var(--sp-24);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 1040px;
}

.section--green .lead,
.section--dark .lead {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: var(--ls);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(76, 161, 63, 0.28);
}

.btn--primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 22px rgba(46, 122, 36, 0.32);
}

.btn--secondary {
  background: transparent;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-dark);
}

.btn--secondary:hover {
  background: rgba(76, 161, 63, 0.08);
}

.btn--on-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  font-size: 14px;
  padding: 10px 18px;
}

.btn--lg {
  font-size: 18px;
  padding: 16px 36px;
}

/* ---------- Generic Card (C/Card) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: var(--sp-24);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-dark);
  background: rgba(76, 161, 63, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.card__title {
  font-size: 20px;
  font-weight: 700;
  margin-top: var(--sp-16);
}

.card__body {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: var(--sp-8);
}

/* icon list dot */
.dotlist li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
}

.dotlist li + li {
  margin-top: 8px;
}

/* ============================================================
   Section-specific styles are defined in the order of the page
   ============================================================ */

/* ---------- Header (Figma C/Header 281:3) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #e5e8e5;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
  color: var(--text-primary);
  white-space: nowrap;
  flex: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}

.brand__mark--invert {
  background: #fff;
  border-radius: 7px;
  padding: 3px;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-32);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-32);
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--text-primary);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--brand-dark);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

/* header CTA buttons: 14px medium, px-24 py-12, rounded-8 */
.header__cta .btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
}

.header__cta .btn--secondary {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (Figma 473:1850) ----------
   PC〜タブレット(>=768px): 1440×720 の固定設計を transform: scale で
   全幅に比例縮小。構図・作業員位置・フォントが常に同一比率を保つ。
   --hs（=min(1, viewport/1440)）は main.js が設定する。
   768px未満は responsive.css で専用の縦積みレイアウトに切り替える。 */
.hero {
  position: relative;
  width: 100%;
  height: calc(720px * var(--hs));
  overflow: hidden;
  color: #fff;
  /* 背景写真＋左濃→右透明グラデは全幅で敷く（スケール対象外） */
  /* 旧ブラウザ用フォールバック（png） */
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.42) 38%,
      rgba(102, 102, 102, 0) 78%
    ),
    url("../assets/images/hero-bg.png");
  /* 対応ブラウザは webp を使用（未対応は上の宣言にフォールバック） */
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.42) 38%,
      rgba(102, 102, 102, 0) 78%
    ),
    image-set(
      url("../assets/images/hero-bg.webp") type("image/webp"),
      url("../assets/images/hero-bg.png") type("image/png")
    );
  background-size: cover;
  background-position: center;
}

/* 1440×720 の固定ステージ。中央寄せして比例スケール */
.hero__stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 720px;
  transform: translateX(-50%) scale(var(--hs));
  transform-origin: top center;
}

/* 作業員：Figma実寸 1016×678・右下基準。
   画像に左右の透明余白があるため右へオフセットして見た目を右寄せ。 */
.hero__worker {
  position: absolute;
  right: -60px;
  bottom: 0;
  width: 1016px;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* コンテンツ領域：1440内側の1280（左右80ガター）、縦中央 */
.hero__inner {
  position: absolute;
  left: 80px;
  right: 80px;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-24);
  max-width: 760px;
}

.hero__headgroup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-16);
}

/* Tag: white pill, square left / rounded right, green border, logo on right */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  background: #fff;
  border: 1px solid var(--brand-dark);
  border-left: none;
  border-radius: 0 999px 999px 0;
  padding: 6px 24px;
}

.hero__tag-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
  white-space: nowrap;
}

.hero__tag-logo {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: var(--ls);
  color: #fff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.hero__sub {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: var(--ls);
  color: #fff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.hero__cta {
  padding: var(--sp-16) 0;
}

/* Single primary CTA: vertical gradient + 2px white border, 24px */
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  max-width: 100%;
  padding: 16px 32px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: linear-gradient(to bottom, var(--brand-dark), #62ac59);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* Proofs: three baked badge images (laurel + white text) */
.hero__proofs {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 672px;
  max-width: 100%;
}

.proof-img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 208;
  object-fit: contain;
}

/* スマホ専用ヒーロー（≤768pxで表示。PCはステージ、SPはこちら） */
.hero__m {
  display: none;
}

/* ---------- S03 Issues (Figma 473:966) ---------- */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-24);
  align-items: start;
}

.issue-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-16);
  padding-bottom: var(--sp-24);
}

/* Number badge: green tab flush-left, rounded right */
.issue-card__badge {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--brand-dark);
  border-left: none;
  border-radius: 0 999px 999px 0;
  white-space: nowrap;
}

.issue-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
}

.issue-card__media {
  width: 100%;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--placeholder);
}

.issue-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.issue-card__body {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Bump: large bridge line (Figma 32px bold green) */
.bump {
  margin-top: var(--sp-64);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: var(--sp-24) var(--sp-32);
  border-radius: var(--radius);
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
  color: var(--brand-dark);
}

.section--green .bump,
.section--dark .bump {
  color: #fff;
}

/* ---------- S04 Inside (green) : INPUT/ORGANIZE/OUTPUT (Figma 473:979) ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: stretch;
  /* Figma実値：カード幅392pxとなるよう列間10px（473:979） */
  gap: 10px;
}

.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow__arrow img {
  width: 28px;
  height: auto;
}

/* Card: white, right side rounded 200px, flat left, green border (no left) */
.flow-card {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--brand-dark);
  border-left: none;
  border-radius: 0 200px 200px 0;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: clip;
}

/* 中央(ORGANIZE)カードはコーラル系アクセント（Figma 473:1006） */
.flow-card--accent {
  border-color: var(--accent);
}

.flow-card--accent .flow-card__label {
  background: var(--accent);
}

.flow-card--accent .flow-card__title {
  color: var(--accent);
}

/* Label: dark-green tab, flat left / rounded right */
.flow-card__label {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls);
  color: #fff;
  background: var(--brand-dark);
  padding: 6px 12px;
  border-radius: 0 999px 999px 0;
}

.flow-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-card__icon {
  width: 40px;
  height: 40px;
  flex: none;
}

.flow-card__title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
  white-space: nowrap;
}

.flow-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-card__list li {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  padding-left: 14px;
  position: relative;
}

.flow-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-dark);
}

/* 中央(ORGANIZE)カードのドットだけコーラル */
.flow-card--accent .flow-card__list li::before {
  background: var(--accent);
}

/* Feature rows: white pill, right rounded 120px, big number + text */
.feature-rows {
  margin-top: var(--sp-64);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.feature-row {
  display: flex;
  align-items: flex-start;
  /* Figma実値：番号〜本文の間隔40px（473:1057） */
  gap: 40px;
  background: #fff;
  color: var(--text-primary);
  border-radius: 0 120px 120px 0;
  padding: var(--sp-24);
  overflow: clip;
}

.feature-row__num {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
  flex: none;
}

.feature-row__text {
  flex: 1;
  min-width: 0;
}

.feature-row__title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: var(--ls);
  line-height: 1.75;
  color: var(--brand-dark);
}

.feature-row__body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------- S05 Solutions (Figma 473:1079) ---------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.sol-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header tab: number + title, green tab flush-left / rounded-right */
.sol-card__head {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--sp-16);
  padding: 8px 24px 8px 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--brand-dark);
  border-left: none;
  border-radius: 0 999px 999px 0;
  white-space: nowrap;
}

/* Solid dark-green title box with white text */
.sol-card__titlebox {
  width: 100%;
  padding: 8px 16px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
}

.sol-card__media {
  height: 150px;
  border-radius: var(--radius-sm);
  background: var(--placeholder);
  overflow: hidden;
}

.sol-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sol-card__body {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.75;
}

.sol-card__checks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  width: 100%;
}

.sol-card__checks li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 16px;
  line-height: 1.75;
  color: var(--brand-dark);
}

.sol-card__checks img {
  width: 16px;
  height: auto;
  flex: none;
}

/* ---------- S06 How it works (Figma 473:1144 — 2×2 clockwise loop) ---------- */
.steps {
  display: grid;
  grid-template-columns: 500px 112px 500px;
  grid-template-areas:
    "s1 ar s2"
    "au amid ad"
    "s4 al s3";
  justify-content: center;
  align-items: stretch;
  row-gap: var(--sp-16);
  /* Figma 473:1144: 上下 #f5f7f6 → 中央 白 の縦グラデで card群中央を浮かせる */
  padding: 40px 0;
  border-radius: var(--radius);
  background-image: linear-gradient(
    #f5f7f6 0%,
    #ffffff 39.9%,
    #ffffff 59.6%,
    #f5f7f6 100%
  );
}

.step--1 { grid-area: s1; }
.step--2 { grid-area: s2; }
.step--3 { grid-area: s3; }
.step--4 { grid-area: s4; }

/* Green rounded step card */
.step {
  position: relative;
  background: var(--brand);
  border-radius: 80px;
  /* Figma実値：カード500px・内容幅340pxとなるよう左右80px（473:1146） */
  padding: 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  color: #fff;
  overflow: clip;
}

/* STEP tab is centered in the card content; device circle is pinned to the
   content's right edge (Figma: badge row centered, device absolute left-121/top-11) */
.step__top {
  display: inline-flex;
  align-items: center;
}

/* STEP badge: white-bordered tab — flat left / rounded right, text flush left */
.step__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 24px 8px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: #fff;
  border: 1px solid #fff;
  border-left: none;
  border-radius: 0 40px 40px 0;
  white-space: nowrap;
}

/* device tag: white circle (66) with green text, pinned to content right edge */
.step__device {
  position: absolute;
  top: 13px;
  right: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--ls);
}

.step__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
  text-align: center;
}

.step__media {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  background: var(--placeholder);
  overflow: hidden;
}

.step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step__body {
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: #fff;
}

/* Loop arrows */
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.sa-r { grid-area: ar; }
.sa-d { grid-area: ad; }
.sa-l { grid-area: al; }
.sa-u { grid-area: au; }

.sa-d svg { transform: rotate(90deg); }
.sa-l svg { transform: rotate(180deg); }
.sa-u svg { transform: rotate(270deg); }

/* ---------- S07 Features (Figma 473:1203 — 4×2 green cards) ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
}

.feat-card {
  background: var(--brand);
  /* 既定（1・3・8枚目）。各カードは個別の角丸を nth-child で上書き */
  border-radius: 40px 40px 64px 40px;
  /* Figma実値：カード308px・内容幅276pxとなるよう左右16px（473:1205） */
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  overflow: clip;
}

/* 各カードの角丸（Figma 473:1205〜1241 / TL TR BR BL） */
.feat-card:nth-child(2) { border-radius: 40px 64px 40px 40px; }
.feat-card:nth-child(4) { border-radius: 64px 40px 64px 40px; }
.feat-card:nth-child(5) { border-radius: 64px 40px 64px 40px; }
.feat-card:nth-child(6) { border-radius: 40px 64px 64px 40px; }
.feat-card:nth-child(7) { border-radius: 64px 40px 64px 40px; }

.feat-card__tag {
  display: inline-flex;
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
  background: #fff;
  border-radius: 999px;
  white-space: nowrap;
}

.feat-card__title {
  width: 100%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: var(--ls);
  line-height: 1.75;
  text-align: center;
}

/* 小さい補足行（例：（26年バージョンアップ予定）） */
.feat-card__title-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: var(--ls);
}

.feat-card__body {
  width: 100%;
  font-size: 16px;
  line-height: 1.75;
  color: #fff;
}

/* ---------- S08 Outcomes (Figma 473:1253) ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
}

/* circle: white, 4px green border, number + full-width band + caption inside.
   グリッド 1fr/auto/1fr で帯を常に円の縦中央に固定 → 4円すべて帯が揃う */
.kpi {
  aspect-ratio: 1;
  background: #fff;
  border: 4px solid var(--brand);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  gap: 12px;
  /* 横52px: border-box+4pxボーダー込みで内容幅をFigma同値の196pxに合わせ、
     キャプションを2行に収める */
  padding: 32px 52px;
  text-align: center;
}

.kpi__num {
  align-self: end;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: var(--ls);
  color: var(--brand);
  white-space: nowrap;
}

.kpi__cap {
  align-self: start;
}

.kpi__unit {
  font-size: 20px;
}
.kpi__unit-sm {
  font-size: 24px;
}
.kpi__unit-md {
  font-size: 32px;
}

/* full-width green band (breaks out of the 56px side padding) */
.kpi__band {
  width: calc(100% + 104px);
  margin-inline: -52px;
  padding: 8px 0;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.kpi__cap {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* BEFORE / AFTER */
.ba {
  display: flex;
  align-items: center;
  margin-top: var(--sp-64);
}

.ba__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  background: #fff;
}

.ba__card--before {
  border: 1px solid var(--brand-dark);
}

.ba__card--after {
  border: 1px solid var(--accent);
}

.ba__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
}

.ba__card--before .ba__title {
  color: var(--brand-dark);
}

.ba__card--after .ba__title {
  color: var(--accent);
}

.ba__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  align-items: flex-start;
}

.ba__list li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.ba__ic {
  flex: none;
}

.ba__ic--x {
  color: var(--text-muted);
}

.ba__ic--check {
  color: var(--accent);
}

.ba__arrow {
  flex: none;
  width: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

/* ---------- S09 Case (Figma 473:1321 / 473:1334) ---------- */
/* Industry chips: 6 equal top-rounded boxes; 鉄鋼 dark-green, rest gray */
.chips {
  display: flex;
  gap: var(--sp-16);
  width: 100%;
}

.chip {
  flex: 1;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--placeholder);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
  border-radius: 12px 12px 0 0;
}

.chip--on {
  background: var(--brand-dark);
}

/* Case card: image left (480×320) + text right */
.case {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.case__media {
  flex: none;
  width: 480px;
  height: 320px;
  border-radius: var(--radius);
  background: var(--placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.case__body-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case__tag {
  align-self: flex-start;
  padding: 4px 24px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls);
  border-radius: 0 999px 999px 0;
}

.case__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
  color: var(--text-primary);
}

.case__body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------- S10 Why universal (Figma 473:1349) ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
  align-items: stretch;
}

.why-col {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* label: green-dark tab, flush left / rounded right */
.why-col__label {
  align-self: flex-start;
  padding: 8px 24px 8px 0;
  border: 1px solid var(--brand-dark);
  border-left: none;
  border-radius: 0 40px 40px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
  white-space: nowrap;
}

.why-col__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: var(--ls);
  line-height: 1.75;
  color: var(--text-primary);
}

.why-col__divider {
  width: 100%;
  height: 1px;
  background: var(--border-default);
}

.why-checks {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  width: 100%;
}

.why-checks li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--brand);
}

.why-checks img {
  width: 16px;
  height: auto;
  flex: none;
}

.why-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  width: 100%;
}

.why-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-row__tag {
  flex: none;
  width: 60px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-section-2);
  border-radius: 0 40px 40px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
}

.why-row__desc {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--brand);
}

/* ---------- S11 Pricing (Figma 473:1437) ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
  align-items: stretch;
}

.price {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

/* featured: vertical green gradient */
.price--featured {
  background: linear-gradient(to bottom, var(--brand), #72b867);
  border: none;
  color: #fff;
}

/* tag: tab — flat left / rounded right, white bg, green border */
.price__tag {
  align-self: flex-start;
  padding: 4px 24px 4px 12px;
  background: #fff;
  border: 1px solid var(--brand-dark);
  border-left: none;
  border-radius: 0 999px 999px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--brand-dark);
  white-space: nowrap;
}

.price--featured .price__tag {
  border-color: var(--accent);
  color: var(--accent);
}

.price__name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--brand);
}

.price--featured .price__name {
  color: #fff;
}

.price__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-8);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: var(--ls);
  color: var(--text-primary);
}

.price--featured .price__amount {
  color: #fff;
}

.price__unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.price--featured .price__unit {
  color: #fff;
}

.price__note {
  font-size: 12px;
  color: var(--text-muted);
}

.price--featured .price__note {
  color: #fff;
}

.price__divider {
  width: 100%;
  height: 1px;
  background: var(--border-default);
}

.price--featured .price__divider {
  background: var(--border-strong);
}

.price__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.price__list li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.price--featured .price__list li {
  color: #fff;
}

.price__check {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.price--featured .price__check {
  color: #fff;
}

.price-note {
  margin-top: var(--sp-64);
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- S12 Onboarding (Figma 473:1503 — 5 outlined cards) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-16);
  align-items: stretch;
}

/* gray card with green border + big right-curve */
.tl-step {
  background: var(--bg-section);
  border: 1px solid var(--brand-dark);
  border-left: none;
  border-radius: 0 160px 160px 0;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-16);
  overflow: clip;
}

.tl-step__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-step__head {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.tl-step__no {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: var(--ls);
}

.tl-step__when {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.tl-step__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
  color: var(--brand-dark);
}

.tl-step__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.tl-step__dur {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- S13 Roadmap (Figma 473:1556 — white cards, green border) ---------- */
.road-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-16);
  align-items: stretch;
}

.road-card {
  background: #fff;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.road-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
  color: var(--brand-dark);
}

.road-card__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ---------- S14 FAQ (Figma 473:1583 — full width gray cards + accordion) ---------- */
.faq {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-section);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Q row = clickable summary */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: var(--sp-24) var(--sp-32);
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

/* green square Q-number badge */
.faq-q__no {
  flex: none;
  padding: 4px 12px;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls);
}

.faq-q__text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--text-primary);
}

.faq-q__icon {
  margin-left: auto;
  flex: none;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-item[open] .faq-q__icon {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 var(--sp-32) var(--sp-24);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ---------- S15 Final CTA (Figma 473:1617 — centered, single button) ---------- */
.final {
  text-align: center;
}

.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* CTA eyebrow: 白地・緑ボーダーのタブ（左フラット/右丸） */
.final__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 24px;
  background: #fff;
  border: 1px solid var(--brand);
  border-left: none;
  border-radius: 0 24px 24px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: var(--brand);
}

.final__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: var(--ls);
  color: #fff;
}

.final__sub {
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: var(--ls);
  color: rgba(255, 255, 255, 0.85);
}

.final__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--ls);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(76, 161, 63, 0.3);
}

.final__btn:hover {
  background: #56b048;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(76, 161, 63, 0.38);
}

/* ---------- CTA Band（お気軽お問い合わせ・全幅バンド×3） Figma 654:1039 ---------- */
.cta-band {
  position: relative;
  padding: 56px var(--gutter);
  overflow: hidden;
  /* 旧ブラウザ用フォールバック（jpg） */
  background-image: linear-gradient(
      rgba(238, 242, 240, 0.2),
      rgba(238, 242, 240, 0.2)
    ),
    url("../assets/images/cta-band.jpg");
  /* 対応ブラウザは webp */
  background-image: linear-gradient(
      rgba(238, 242, 240, 0.2),
      rgba(238, 242, 240, 0.2)
    ),
    image-set(
      url("../assets/images/cta-band.webp") type("image/webp"),
      url("../assets/images/cta-band.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
}

.cta-band__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
}

.cta-band__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-8);
  text-align: center;
  color: #fff;
}

.cta-band__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
}

.cta-band__sub {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: var(--ls);
  line-height: 1.75;
}

/* ボタンはヒーロー primary と同一意匠（緑グラデ・白枠2px・角丸8） */
.cta-band__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  max-width: 100%;
  padding: 16px 32px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: linear-gradient(to bottom, var(--brand-dark), #62ac59);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--ls);
  line-height: 1.75;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-band__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* ---------- Footer (Figma C/Footer 290:16) ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding-top: var(--sp-64);
  padding-bottom: var(--sp-32);
}

/* brand(360) + 4 flex columns, gap 64; whole footer block gap 40 */
.footer .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 上段：ブランド(360) ＋ 横並びナビ（中央寄せ・折返し可） */
.footer__top {
  display: flex;
  gap: var(--sp-64);
  align-items: center;
  justify-content: center;
}

.brand--footer {
  gap: var(--sp-8);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.brand--footer .brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.footer__brand {
  width: 360px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.footer__desc {
  font-size: 14px;
  line-height: 1.75;
  /* 140年〜の行を1行に収めるため字間を詰めて折返し禁止（PC: ブランド幅360px内） */
  letter-spacing: 0;
  white-space: nowrap;
  color: #fff;
}

.footer__nav {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-24);
}

.footer__nav a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: #fff;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.footer__nav a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* 下段：法務リンク（区切り線付き）＋ KONOIKEロゴ／著作権 */
.footer__bottom {
  display: flex;
  gap: var(--sp-32);
  align-items: stretch;
}

.footer__legal {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer__legal a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--ls);
  color: #fff;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__sep {
  flex: none;
  width: 1px;
  height: 16px;
  background: var(--placeholder);
}

.footer__copy-col {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-16);
}

.footer__group-logo {
  width: 310px;
  max-width: 100%;
  height: auto;
}

.footer__copy {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls);
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* ---------- Reveal on scroll ---------- */
/* Reveal is a progressive enhancement: only hide when JS is active,
   so content is never permanently invisible if scripts fail to run. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
