/* ===================================
   yomitori cloud LP - v3 改善版
   落ち着いたグリーン / テンプレ感排除 / 正確な情報
   =================================== */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #a7f3d0;
  --primary-50: #ecfdf5;
  --dark: #111827;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafb;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.08);
  --max-width: 1120px;
  --header-h: 64px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Inter", -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* --- コンテナ --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* --- セクション見出し共通構造 --- */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-header-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 7px;
  color: #1e40af;
}
.section-header-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 4px 0;
}
.section-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
  letter-spacing: .05em;
  margin-bottom: 9px;
}
.section-accent {
  width: 40px;
  height: 2.5px;
  background: #1e40af;
  border-radius: 2px;
  margin: 0 auto;
}
.section-subtitle {
  text-align: center;
  font-size: .95rem;
  color: var(--gray-500);
  margin-top: 20px;
  margin-bottom: 0;
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-sm { font-size: .85rem; padding: 8px 20px; }
.btn-lg { font-size: .95rem; padding: 14px 32px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===================================
   ヘッダー
   =================================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: #1e40af; }

.logo-icon {
  height: 32px;
  width: auto;
}
.logo-icon-footer {
  filter: brightness(0) invert(1);
}

.header-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 16px; }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-login {
  font-size: .85rem;
  font-weight: 600;
  color: #1e40af;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-login:hover { border-bottom-color: #1e40af; }
.header-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}
.header-nav a:hover { color: var(--primary); }

/* ===================================
   1. ファーストビュー
   =================================== */
.hero {
  padding: calc(var(--header-h) + 56px) 0 64px;
  background: linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.92)), url('../images/hero-bg2.png') center top/cover no-repeat;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.hero-visual {
  /* eyebrow（バッジ）の高さ分オフセットして、キャッチコピー上端とモック上端を揃える */
  margin-top: 52px;
}

.hero-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 500;
  color: #1e40af;
  background: #ebf2ff;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: .02em;
  line-height: 1.4;
}
.hero-eyebrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1e40af;
  color: #ffffff;
  flex-shrink: 0;
}

.hero-catch {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--dark);
}
.hero-catch-line { display: block; }
.hero-catch-line.accent {
  color: var(--primary);
  padding-left: 2.5em;
}

.hero-lead {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  margin-top: 20px;
  line-height: 1.7;
  letter-spacing: .01em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: 14px;
  line-height: 1.8;
}

.hero-actions { margin-top: 28px; }

/* 対応会計ソフトロゴ */
.hero-logos {
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-logos-group {
  display: flex;
  flex-direction: column;
}
.hero-logos-divider {
  width: 1px;
  align-self: stretch;
  background: var(--gray-200);
}
.hero-logos-label {
  display: block;
  font-size: .75rem;
  color: var(--gray-400);
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.logo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.soft-logo {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: var(--radius);
}
.logo-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.soft-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}
.soft-logo-img[alt="freee"] {
  height: 28px;
}
.soft-logo-img[alt="Chatwork"] {
  height: 20px;
}
.soft-logo-img[alt="弥生"] {
  height: 22px;
}

/* ダッシュボードモックアップ */
.dashboard-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.mock-dots { display: flex; gap: 5px; }
.mock-dots i {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
}
.mock-dots i:first-child { background: #f87171; }
.mock-dots i:nth-child(2) { background: #fbbf24; }
.mock-dots i:nth-child(3) { background: #34d399; }
.mock-url {
  font-size: .7rem;
  color: var(--gray-400);
  background: var(--white);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
}

.mock-body { display: flex; min-height: 260px; }

.mock-sidebar {
  width: 120px;
  background: #f0f5ff;
  border-right: 1px solid var(--gray-200);
  padding: 12px 0;
  flex-shrink: 0;
}
.mock-sidebar-item {
  font-size: .7rem;
  padding: 7px 14px;
  color: var(--gray-500);
  cursor: default;
}
.mock-sidebar-item.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-50);
  border-right: 2px solid var(--primary);
}

.mock-main { flex: 1; padding: 14px; }

.mock-header-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mock-search-box {
  flex: 1;
  font-size: .7rem;
  padding: 6px 10px;
  background: #f0f5ff;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  color: var(--gray-400);
}
.mock-filter {
  font-size: .7rem;
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  color: var(--gray-600);
  font-weight: 500;
}

.mock-table {
  font-size: .7rem;
  min-height: 235px;
}
.mock-row {
  display: grid;
  grid-template-columns: 50px 1fr 70px 80px;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
  color: var(--gray-600);
}
.mock-row-header {
  font-weight: 600;
  color: var(--gray-400);
  font-size: .65rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-200);
}
.mock-tag {
  font-size: .6rem;
  background: var(--primary-50);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
}

/* デモアニメーション */
.dashboard-mock { position: relative; }
.demo-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 10;
  transition: top 0.8s cubic-bezier(.4,0,.2,1), left 0.8s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
  opacity: 0;
}
.demo-cursor.visible { opacity: 1; }
.mock-search-box.demo-focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 2px rgba(30,64,175,.15);
  color: #1f2937;
}
.mock-row.demo-hidden {
  opacity: 0;
  height: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  transition: opacity 0.3s, height 0.3s, padding 0.3s;
}
.mock-row.demo-highlight {
  background: #dbeafe;
  border-radius: 4px;
}

/* ===================================
   2. 課題提示パート
   =================================== */
.challenges { padding: 56px 0; background: #f0f5ff; }

.challenges-lead {
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.9;
  margin-bottom: 28px;
}

.challenge-list {
  max-width: 680px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.challenge-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  padding: 16px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--gray-700);
  transition: transform var(--transition), box-shadow var(--transition);
}
.challenge-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, .08);
}
.challenge-text {
  min-width: 0;
}
.challenge-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: #f0f5ff;
  border-radius: 999px;
  overflow: hidden;
}
.challenge-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #93c5fd, #60a5fa);
  border-radius: 999px;
  transition: width 1s cubic-bezier(.4, 0, .2, 1);
}
.challenge-hours {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e40af;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-variant-numeric: tabular-nums;
}
.challenge-hours small {
  font-size: .7rem;
  font-weight: 500;
  color: #6b7280;
  margin-left: 2px;
}

.challenge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.challenge-footnote {
  max-width: 680px;
  margin: 10px auto 0;
  text-align: right;
  font-size: .72rem;
  color: #9ca3af;
}

.challenge-impact {
  max-width: 680px;
  margin: 28px auto 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 12px 32px -8px rgba(30, 64, 175, .35);
}
.challenge-impact p {
  margin: 0;
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.6;
}
.challenge-impact strong {
  display: inline-block;
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -.01em;
}
.challenge-impact-sub {
  display: inline-block;
  margin-left: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
}
.sp-only { display: none; }
@media (max-width: 768px) {
  .sp-only { display: inline; }
  .challenge-item { padding: 14px 16px; gap: 12px; }
  .challenge-hours { font-size: .9rem; }
  .challenge-impact p { font-size: 1rem; }
  .challenge-impact strong { font-size: 1.4rem; }
}

.challenge-answer {
  text-align: center;
  margin-top: 28px;
}
.challenge-answer p {
  font-size: 1.6rem;
  color: var(--dark);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.challenge-answer strong {
  color: var(--primary);
}

.brand-inline {
  font-weight: 700;
}
.brand-yomitori { color: #1f2937; }
.brand-cloud { color: #1e40af; }
.brand-inline-logo {
  height: 18px;
  width: auto;
  vertical-align: -3px;
  margin-right: 4px;
}
.brand-inline-logo-lg {
  height: 28px;
  vertical-align: -5px;
  margin-right: 6px;
}

/* ===================================
   3. ご利用の流れ（裏側プロセス対比版）
   =================================== */
.flow2 {
  padding: 56px 0;
  background: #f0f5ff;
}
.flow2-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}
.flow2-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

/* カラムヘッダー */
.flow2-col-head {
  text-align: center;
  margin-bottom: 18px;
}
.flow2-col-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.flow2-col-head-you .flow2-col-label {
  background: #f3f4f6;
  color: #4b5563;
}
.flow2-col-head-yc .flow2-col-label {
  background: #dbeafe;
  color: #1e40af;
}
.flow2-col-label img { height: 16px; width: auto; }
.flow2-col-title {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: .02em;
}
.flow2-col-title strong { color: #1e40af; }
.flow2-col-sub {
  margin-top: 6px;
  font-size: .8rem;
  color: #6b7280;
}

/* カラム本体 */
.flow2-col {
  display: flex;
  flex-direction: column;
}
.flow2-col-body {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flow2-col-yc .flow2-col-body {
  background: #f0f5ff;
  border: 1.5px solid #1e40af;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
}

/* お客様側ステップ */
.flow2-step-you {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1px solid #f3f4f6;
}
.flow2-step-you h3 {
  font-size: 1.05rem;
  color: #1f2937;
  margin: 0;
}
.flow2-step-you p {
  font-size: .82rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* ステップバッジ */
.step-badge-passive {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  letter-spacing: .04em;
}
.step-badge-active {
  background: #1e40af;
  color: #ffffff;
}
.step-photo-mini {
  margin-top: 8px;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ミニダッシュボードUI */
.mini-dash {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  text-align: left;
}
.mini-dash-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.mini-dash-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  border-radius: 5px;
  font-size: .68rem;
  color: #1f2937;
}
.mini-dash-search svg { color: #6b7280; }
.mini-dash-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  background: #1e40af;
  color: #ffffff;
  border-radius: 5px;
  font-size: .65rem;
  font-weight: 600;
}
.mini-dash-btn svg { color: #ffffff; }
.mini-dash-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 6px;
  padding: 5px 6px;
  font-size: .68rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.mini-dash-row .mini-date { color: #9ca3af; font-size: .62rem; }
.mini-dash-row .mini-merchant { color: #1f2937; font-weight: 500; }
.mini-dash-row .mini-amount { color: #1e40af; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-dash-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 6px 3px;
  font-size: .68rem;
  color: #1e40af;
  font-weight: 600;
}
.mini-freee-logo {
  height: 14px;
  width: auto;
}

/* yomitori cloud 側ステップ（4段階タイムライン） */
.flow2-step-yc {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #dbeafe;
  position: relative;
}
.flow2-step-yc::after {
  content: "";
  position: absolute;
  left: 31px;
  transform: translateX(-50%);
  top: 100%;
  width: 2px;
  height: 16px;
  background: #1e40af;
  opacity: .45;
  z-index: 1;
  pointer-events: none;
}
.flow2-step-yc-last::after { display: none; }
.flow2-step-yc .yc-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #1e40af;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}
.flow2-step-yc h4 {
  font-size: .95rem;
  color: #1f2937;
  margin: 0 0 3px 0;
  font-weight: 600;
}
.flow2-step-yc p {
  font-size: .75rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}
.flow2-step-yc p strong {
  display: inline-block;
  margin-top: 2px;
  color: #1e40af;
  font-weight: 700;
}
.flow2-step-yc .yc-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.yc-tag-human {
  background: #fef3c7;
  color: #92400e;
}
.yc-tag-ai {
  background: #dbeafe;
  color: #1e40af;
}

/* 品質ポリシー */
.flow2-stats {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow2-policy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}
.flow2-policy-icon {
  flex-shrink: 0;
}
.flow2-policy-text {
  font-size: 20px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.6;
  letter-spacing: .02em;
}

/* セクション冒頭の品質ポリシーバナー */
.flow2-policy-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 720px;
  margin: 28px auto 0;
  padding: 18px 28px;
  background: #ebf2ff;
  border-radius: 14px;
  border: 1px solid #dbeafe;
}
.flow2-policy-banner-icon {
  display: inline-flex;
  flex-shrink: 0;
}
.flow2-policy-banner p {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: #1f2937;
  letter-spacing: .02em;
  line-height: 1.5;
  text-align: center;
}
.flow2-policy-banner strong {
  color: #1e40af;
  font-weight: 700;
}
@media (max-width: 768px) {
  .flow2-policy-banner { padding: 14px 18px; gap: 10px; }
  .flow2-policy-banner p { font-size: 16px; }
}
.flow2-policy-text strong {
  color: #1e40af;
  font-weight: 700;
}

/* 下部のキャッチコピー */
.flow2-caption {
  text-align: center;
  margin-top: 32px;
  font-size: 1.1rem;
  color: #1f2937;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.7;
}
.flow2-caption strong { color: #1e40af; font-weight: 700; }

@media (max-width: 768px) {
  .flow2-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ===================================
   3(old). サービス概要（4ステップ）— 旧バージョン。使われていないが互換で残置
   =================================== */
.steps { padding: 56px 0; background: var(--white); }

/* 4ステップ flex レイアウト */
.steps-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.steps-group {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.steps-group:nth-child(3) {
  flex: 2;
}

/* ラベル */
.who-label {
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: .02em;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.who-label.who-you {
  color: var(--primary);
  background: none;
  border: none;
}
.who-label.who-yomitori {
  color: #1e40af;
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  gap: 10px;
}

.who-logo {
  height: 40px;
  width: auto;
}

/* yomitori グループボックス */
.steps-yomitori-group {
  border: 1.5px solid #1e40af;
  border-radius: 16px;
  padding: 16px 8px;
  background: #f0f5ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.steps-yomitori-group-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* yomitori グループ外側のステップ番号 */
.step-number-outer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.steps-yomitori-group { position: relative; }

/* 2工程を繋ぐ＋マーク */
.step-plus {
  font-size: 1.8rem;
  font-weight: 300;
  color: #1e40af;
  line-height: 1;
  padding: 0 4px;
  user-select: none;
}

.steps-yomitori-group .step-item {
  min-width: 160px;
}

.steps-yomitori-group .step-item h3 {
  white-space: nowrap;
}

.yomitori-group-label {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-top: auto;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  letter-spacing: .02em;
}

.step-item {
  text-align: center;
  padding: 16px 10px 20px;
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.step-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.steps-group > .step-item,
.steps-group > .steps-yomitori-group {
  flex: 1;
}

.step-you { background: var(--primary-50); border: 1px solid var(--primary-light); }
.step-yomitori { background: transparent; border: none; }

.step-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-yomitori .step-number {
  background: #1e40af;
}

.step-photo-wrap {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.step-icon-wrap {
  color: var(--primary);
  margin-bottom: 10px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-yomitori .step-icon-wrap { color: #1e40af; }

.step-item h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.step-item p {
  font-size: .78rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.step-item p { margin-bottom: 12px; }

.step-badge {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-top: auto;
  letter-spacing: .02em;
}
.badge-you {
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--primary-light);
}
.badge-yomitori {
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.step-connector {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  color: #1e40af;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  padding: 0 20px;
}
.step-connector.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Step 4 ミニダッシュボードモック */
.step4-mini-mock {
  width: 80px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}
.mini-mock-bar {
  height: 8px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.mini-mock-body {
  display: flex;
  height: 44px;
}
.mini-mock-sidebar {
  width: 18px;
  background: #f0f5ff;
  border-right: 1px solid var(--gray-200);
}
.mini-mock-content {
  flex: 1;
  padding: 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-mock-line {
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
}
.mini-mock-line.short { width: 60%; }

/* ===================================
   4. 機能一覧
   =================================== */
.features { padding: 56px 0; background: #f0f5ff; }

/* 管理画面プレビュー */
.dash-preview {
  padding: 56px 0 72px;
  background: #ffffff;
}
.dash-preview-head {
  text-align: center;
  margin-bottom: 32px;
}
.dash-preview-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: #1e40af;
  background: #dbeafe;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.browser-mock {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(30, 64, 175, .25), 0 8px 20px -6px rgba(0, 0, 0, .08);
  border: 1px solid #e5e7eb;
}
.browser-mock-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.browser-mock-dots {
  display: flex;
  gap: 6px;
}
.browser-mock-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d1d5db;
}
.browser-mock-dots i:first-child { background: #f87171; }
.browser-mock-dots i:nth-child(2) { background: #fbbf24; }
.browser-mock-dots i:nth-child(3) { background: #34d399; }
.browser-mock-url {
  flex: 1;
  max-width: 420px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 14px;
  margin: 0 auto;
}
.browser-mock-url svg { color: #9ca3af; }
.browser-mock-body {
  display: block;
  line-height: normal;
  background: #f9fafb;
}
.browser-mock-body > img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==================================
   インタラクティブダッシュボード
   ================================== */
.live-dash {
  padding: 28px 32px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  color: #1f2937;
}

/* トップナビ（ロゴ＋タブ＋ユーザー） */
.ld-topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 0 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e5e7eb;
}
.ld-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ld-topbar-logo {
  height: 24px;
  width: auto;
}
.ld-topbar-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.ld-tab {
  display: inline-block;
  padding: 7px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.ld-tab.is-active {
  background: #1e40af;
  color: #ffffff;
}
.ld-tab.is-disabled {
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}
.ld-topbar-user {
  text-align: right;
  flex-shrink: 0;
}

/* ヘッダー（ページタイトル） */
.ld-header {
  margin-bottom: 20px;
}
.ld-header-title h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 4px 0;
}
.ld-header-title p {
  font-size: .78rem;
  color: #6b7280;
  margin: 0;
}
.ld-user-email {
  font-size: .78rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 2px 0;
}
.ld-user-office {
  font-size: .66rem;
  color: #9ca3af;
  margin: 0;
}

/* KPI グリッド */
.ld-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.ld-kpi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  position: relative;
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ld-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #1e40af;
  box-shadow: 0 8px 20px -8px rgba(30, 64, 175, .25);
}
.ld-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ld-kpi-label {
  font-size: .72rem;
  color: #6b7280;
  font-weight: 500;
}
.ld-kpi-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ld-kpi-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.ld-kpi-delta {
  font-size: .68rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ld-delta-up { color: #10b981; }
.ld-delta-muted { color: #9ca3af; }
.ld-delta-link { color: #1e40af; font-weight: 600; }

/* プラン消化率 */
.ld-plan-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 18px;
  cursor: default;
  position: relative;
  transition: border-color var(--transition);
}
.ld-plan-card:hover { border-color: #1e40af; }
.ld-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.ld-plan-label {
  font-size: .7rem;
  color: #9ca3af;
  margin: 0 0 2px 0;
}
.ld-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0;
}
.ld-plan-count {
  text-align: right;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ld-plan-total {
  font-size: .8rem;
  font-weight: 500;
  color: #6b7280;
}
.ld-plan-percent {
  font-size: .68rem;
  color: #9ca3af;
  font-weight: 500;
  margin: 4px 0 0 0;
}
.ld-progress {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.ld-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

/* チャート行 */
.ld-charts-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.ld-chart-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
}
.ld-chart-head { margin-bottom: 14px; }
.ld-chart-sub {
  font-size: .68rem;
  color: #9ca3af;
  margin: 0 0 2px 0;
}
.ld-chart-title {
  font-size: .95rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* 棒グラフ */
.ld-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 150px;
  padding-top: 12px;
}
.ld-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
  position: relative;
}
.ld-bar {
  width: 100%;
  max-width: 36px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.ld-bar span {
  display: block;
  width: 100%;
  height: 0;
  background: #93c5fd;
  border-radius: 4px 4px 0 0;
  transition: height 1s cubic-bezier(.4, 0, .2, 1), background var(--transition);
}
.ld-bar-current .ld-bar span {
  background: #1e40af;
}
.ld-bar-item:hover .ld-bar span {
  background: #1e3a8a;
}
.ld-bar-label {
  font-size: .65rem;
  color: #9ca3af;
  font-weight: 500;
}
.ld-bar-item::after {
  content: attr(data-value) " 件";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  font-size: .62rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.ld-bar-item:hover::after { opacity: 1; }

/* ドーナツチャート */
.ld-donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ld-donut {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.ld-donut-seg {
  cursor: pointer;
  transition: stroke-width .25s, opacity .25s;
}
.ld-donut-box.has-selection .ld-donut-seg { opacity: .3; }
.ld-donut-box.has-selection .ld-donut-seg.is-active {
  opacity: 1;
  stroke-width: 8;
}

/* ドーナツ＋中央テキスト用ラッパー */
.ld-donut-box {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.ld-donut-box .ld-donut {
  width: 100%;
  height: 100%;
}
.ld-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: -.01em;
  line-height: 1;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.ld-donut-box.has-selection .ld-donut-center { opacity: 1; }
.ld-donut-legend li {
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 5px;
  transition: background .2s;
}
.ld-donut-legend li:hover { background: #f3f4f6; }
.ld-donut-legend li.is-active {
  background: #dbeafe;
  color: #1e40af;
}
.ld-donut-legend li.is-active em { color: #1e40af; }
.ld-donut-legend {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ld-donut-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  color: #4b5563;
}
.ld-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ld-donut-legend li em {
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
}

/* 最新レシート */
.ld-receipts-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 22px;
}
.ld-receipts-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}
.ld-receipts-all {
  font-size: .7rem;
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.ld-receipts-all:hover { color: #1e3a8a; }
.ld-receipts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ld-receipt-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}
.ld-receipt-row:last-child { border-bottom: none; }
.ld-receipt-row:hover { background: #f0f5ff; }
.ld-receipt-row:hover .ld-receipt-name { color: #1e40af; }

/* タグバッジ */
.ld-receipt-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 68px;
  justify-content: center;
}
.ld-receipt-tag:empty {
  background: transparent;
  border: none;
}
.ld-receipt-tag svg {
  flex-shrink: 0;
}
.ld-receipt-tag.ld-tag-blue {
  background: #dbeafe;
  color: #1e40af;
}
.ld-receipt-tag.ld-tag-orange {
  background: #ffedd5;
  color: #c2410c;
}
.ld-receipt-tag.ld-tag-green {
  background: #d1fae5;
  color: #047857;
}

/* ========== レシート詳細モーダル ========== */
.live-dash { position: relative; }
.ld-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity .25s;
}
.ld-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.ld-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ld-modal-panel {
  position: relative;
  width: min(720px, 92%);
  max-height: 92%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .4);
  padding: 22px 26px 24px;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .25s;
  overflow: auto;
}
.ld-modal.is-open .ld-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.ld-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.ld-modal-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}
.ld-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-right: 36px;
}
.ld-modal-label {
  font-size: .92rem;
  font-weight: 700;
  color: #1f2937;
}
.ld-modal-status {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
}
.ld-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
}
.ld-modal-tag.is-empty {
  display: none;
}
.ld-modal-tag.is-orange {
  background: #ffedd5;
  color: #c2410c;
}
.ld-modal-tag.is-green {
  background: #d1fae5;
  color: #047857;
}
.ld-modal-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
}

/* 左：領収書風モック */
.ld-modal-left {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ld-receipt-paper {
  width: 100%;
  background: #fffdf7;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  padding: 20px 18px 16px;
  font-family: "Courier New", monospace;
  color: #1f2937;
  position: relative;
}
.ld-receipt-paper::before,
.ld-receipt-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(-45deg, transparent 33.333%, #fffdf7 33.333%, #fffdf7 66.667%, transparent 66.667%),
              linear-gradient(45deg, transparent 33.333%, #fffdf7 33.333%, #fffdf7 66.667%, transparent 66.667%);
  background-size: 12px 20px;
}
.ld-receipt-paper::before { top: -10px; }
.ld-receipt-paper::after { bottom: -10px; transform: scaleY(-1); }

.ld-rp-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .3em;
  padding: 6px 0 10px;
  border-bottom: 1px solid #d6d3c7;
  margin-bottom: 12px;
}
.ld-rp-date {
  font-size: .72rem;
  text-align: right;
  color: #6b7280;
  margin-bottom: 8px;
}
.ld-rp-to {
  font-size: .82rem;
  padding-bottom: 4px;
  border-bottom: 1px solid #d6d3c7;
  margin-bottom: 14px;
}
.ld-rp-amount-wrap {
  text-align: center;
  padding: 10px;
  background: #f9f5e8;
  border: 1px solid #e5dfc8;
  border-radius: 4px;
  margin-bottom: 10px;
}
.ld-rp-amount-label {
  display: block;
  font-size: .62rem;
  color: #6b7280;
  letter-spacing: .1em;
  margin-bottom: 2px;
}
.ld-rp-amount {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #1e40af;
}
.ld-rp-desc {
  font-size: .62rem;
  color: #6b7280;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 14px;
}
.ld-rp-lines {
  height: 1px;
  background: repeating-linear-gradient(to right, #d6d3c7 0 4px, transparent 4px 8px);
  margin-bottom: 10px;
}
.ld-rp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ld-rp-vendor p {
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
  color: #1f2937;
}
.ld-rp-vendor .ld-rp-tnum {
  font-size: .58rem;
  font-weight: 400;
  color: #6b7280;
  margin-top: 2px;
}
.ld-rp-stamp {
  width: 32px;
  height: 32px;
  border: 2px solid #dc2626;
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  font-family: serif;
  transform: rotate(-8deg);
  opacity: .85;
}

/* 右：OCRデータ */
.ld-modal-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.ld-modal-dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  row-gap: 12px;
  column-gap: 14px;
  margin: 0;
}
.ld-modal-dl dt {
  font-size: .7rem;
  color: #9ca3af;
  font-weight: 500;
  align-self: center;
}
.ld-modal-dl dd {
  margin: 0;
  font-size: .88rem;
  color: #1f2937;
  font-weight: 500;
  align-self: center;
}
.ld-modal-amount {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1e40af !important;
  font-variant-numeric: tabular-nums;
}
.ld-modal-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 4px;
}
.ld-modal-confidence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 4px;
}
.ld-modal-tnum {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "Inter", monospace;
  font-size: .82rem !important;
}
.ld-modal-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .62rem;
  font-weight: 600;
  color: #047857;
  background: #d1fae5;
  padding: 2px 7px;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .ld-modal-panel { padding: 18px 16px 20px; width: 94%; }
  .ld-modal-body { grid-template-columns: 1fr; gap: 16px; }
  .ld-modal-left { max-width: 240px; margin: 0 auto; }
}
.ld-receipt-icon {
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ld-receipt-name {
  font-size: .82rem;
  font-weight: 500;
  color: #1f2937;
}
.ld-receipt-amount {
  font-size: .88rem;
  font-weight: 700;
  color: #1e40af;
  font-variant-numeric: tabular-nums;
}
.ld-receipt-date {
  font-size: .65rem;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

/* ツールチップ（data-tooltip 属性） */
[data-tooltip] { position: relative; }
.ld-kpi-card[data-tooltip]::after,
.ld-plan-card[data-tooltip]::after,
.ld-receipt-row[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #ffffff;
  font-size: .68rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 5;
}
.ld-kpi-card[data-tooltip]:hover::after,
.ld-plan-card[data-tooltip]:hover::after,
.ld-receipt-row[data-tooltip]:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .browser-mock-url { font-size: .7rem; max-width: none; }
  .dash-preview { padding: 40px 0 48px; }
  .live-dash { padding: 20px 18px; }
  .ld-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ld-charts-row { grid-template-columns: 1fr; }
  .ld-topbar { flex-wrap: wrap; gap: 14px; padding-bottom: 14px; margin-bottom: 16px; }
  .ld-topbar-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; gap: 2px; }
  .ld-tab { padding: 6px 10px; font-size: .72rem; }
  .ld-topbar-user { text-align: left; }
  .ld-plan-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ld-plan-count { text-align: left; }
  .ld-donut-wrap { flex-direction: column; align-items: flex-start; }
  .ld-bar { height: 90px; }
  .ld-bar-chart { height: 120px; }
  .ld-receipt-row { grid-template-columns: 24px 1fr auto; }
  .ld-receipt-date,
  .ld-receipt-tag { display: none; }
}

.feature-main-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-main-card {
  padding: 32px 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-main-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.feature-main-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-main-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.feature-main-card p {
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* コア機能（1列×4行・横並びリスト） */
.feature-core-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto 36px;
}
.feature-core-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-core-card:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 28px -10px rgba(30, 64, 175, .18);
}
.feature-core-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}
.feature-core-body {
  flex: 1;
  min-width: 0;
}
.feature-core-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px 0;
}
.feature-core-card p {
  font-size: .88rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
}

/* 補助機能（チップ形式・4列横並び） */
.feature-sub-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}
.feature-sub-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: help;
  position: relative;
  transition: border-color var(--transition);
}
.feature-sub-chip:hover {
  border-color: #1e40af;
}
.feature-sub-chip span {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feature-sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ツールチップ */
.feature-sub-chip[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  background: #1f2937;
  color: #ffffff;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.6;
  border-radius: 8px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10;
}
.feature-sub-chip[data-tooltip]::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 10;
}
.feature-sub-chip:hover::before,
.feature-sub-chip:hover::after {
  opacity: 1;
}

/* アイコンのカラートーン */
.icon-tone-blue   { background: #dbeafe; color: #1e40af; }
.icon-tone-green  { background: #d1fae5; color: #047857; }
.icon-tone-purple { background: #ede9fe; color: #6d28d9; }
.icon-tone-orange { background: #fed7aa; color: #c2410c; }
.icon-tone-teal   { background: #ccfbf1; color: #0f766e; }
.icon-tone-pink   { background: #fce7f3; color: #be185d; }
.icon-tone-amber  { background: #fef3c7; color: #b45309; }
.icon-tone-slate  { background: #e2e8f0; color: #334155; }

@media (max-width: 768px) {
  .feature-sub-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-core-card { padding: 18px 20px; column-gap: 16px; }
  .feature-core-icon { width: 48px; height: 48px; }
  .feature-core-card h3 { font-size: 1rem; }
  .feature-sub-row { grid-template-columns: 1fr; }
}

/* ===================================
   5. 競合比較表
   =================================== */
.comparison { padding: 56px 0; background: #ffffff; }

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--white);
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.comparison-table thead th {
  padding: 16px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  background: #f0f5ff;
  border-bottom: 2px solid var(--gray-200);
  text-align: center;
  white-space: nowrap;
}
.comparison-table thead th:first-child {
  text-align: left;
  padding-left: 20px;
}
.comparison-table thead th.highlight {
  background: var(--primary);
  color: var(--white);
}
.comparison-table thead th.highlight .brand-yomitori,
.comparison-table thead th.highlight .brand-cloud {
  color: var(--white);
}
.comparison-table thead th.highlight .brand-inline-logo {
  filter: brightness(0) invert(1);
}

.comparison-table tbody td {
  padding: 14px 12px;
  font-size: .82rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}
.comparison-table tbody td:first-child {
  text-align: left;
  padding-left: 20px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}
.comparison-table tbody td.highlight {
  background: var(--primary-50);
}
.comparison-table tbody td small {
  display: block;
  font-size: .65rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }

.mark-yes { color: var(--primary); font-weight: 700; }
.mark-no { color: var(--gray-300); }
.mark-partial { color: var(--gray-400); }

/* yomitori cloud列のチェックマーク（SVG版）
   フォールバック: JS無効時は通常表示。
   JSで .is-prepared を付与すると円とチェックを隠し、.is-animated で順番に描画。 */
.mark-yes-anim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--primary);
  vertical-align: middle;
}
.mark-yes-anim svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mark-yes-circle {
  /* circumference ≒ 2πr = 62.83 */
  stroke-dasharray: 63;
  stroke-dashoffset: 0;
}
.mark-yes-check {
  opacity: 1;
}
/* JS有効時のみ初期非表示 */
.comparison-table.is-prepared .mark-yes-circle {
  stroke-dashoffset: 63;
  transition: stroke-dashoffset .65s cubic-bezier(.4, 0, .2, 1);
}
.comparison-table.is-prepared .mark-yes-check {
  opacity: 0;
  transition: opacity .35s ease-in;
}
.comparison-table.is-prepared.is-animated .mark-yes-circle {
  stroke-dashoffset: 0;
}
.comparison-table.is-prepared.is-animated .mark-yes-check {
  opacity: 1;
}

/* 価格ハイライト用のフェードイン */
.comparison-table tbody td.highlight .price-highlight {
  display: inline-block;
  opacity: 1;
  transform: scale(1);
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1);
}
.comparison-table.is-prepared tbody td.highlight .price-highlight {
  opacity: 0;
  transform: scale(.8);
}
.comparison-table.is-prepared.is-animated tbody td.highlight .price-highlight {
  opacity: 1;
  transform: scale(1);
}

.price-row td {
  font-weight: 600;
  color: var(--gray-700);
  font-size: .85rem;
}
.price-row td.highlight {
  background: var(--primary-50);
}
.price-highlight {
  color: var(--primary);
  font-size: 1.05rem;
}

.comparison-cta {
  text-align: center;
  margin-top: 32px;
}

.comparison-notes {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
}
.comparison-notes p {
  font-size: .72rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ===================================
   6. 料金プラン
   =================================== */
.pricing { padding: 56px 0; background: #ffffff; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-btn { margin-top: auto; }
.pricing-card:hover { box-shadow: var(--shadow); }

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 16px;
  border-radius: var(--radius-full);
}

.pricing-card-header { margin-bottom: 20px; }
.pricing-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}
.pricing-desc {
  font-size: .82rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
}
.pricing-price .yen {
  font-size: 1.2rem;
  vertical-align: top;
  margin-right: 2px;
}
.pricing-price .unit {
  font-size: .8rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-left: 4px;
}

.pricing-initial {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: #1e40af;
  background: #ebf2ff;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* 全プラン共通機能 */
.pricing-common {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 22px 28px;
  background: #f0f5ff;
  border-radius: 12px;
  border: 1px solid #dbeafe;
}
.pricing-common-label {
  font-size: .78rem;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 12px 0;
  letter-spacing: .04em;
}
.pricing-common-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.pricing-common-list li {
  font-size: .82rem;
  font-weight: 500;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
}
.pricing-common-list li::before {
  content: "✓";
  color: #1e40af;
  font-weight: 700;
  margin-right: 6px;
}

.pricing-volume {
  font-size: .85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  font-size: .85rem;
  color: var(--gray-600);
  padding: 6px 0 6px 24px;
  position: relative;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 4l2 2L6.5 2.5' stroke='%23059669' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

.pricing-note {
  text-align: center;
  margin-top: 28px;
  font-size: .82rem;
  color: var(--gray-400);
}

/* ===================================
   7. FAQ
   =================================== */
.faq { padding: 56px 0; background: var(--white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

/* カテゴリ */
.faq-category {
  margin-bottom: 36px;
}
.faq-category + .faq-category {
  margin-top: 36px;
}
.faq-category:last-child { margin-bottom: 0; }
.faq-category-title {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  margin: 0 0 14px 0;
  padding: 0;
  letter-spacing: .1em;
}
.faq-category-title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #1e40af;
  vertical-align: middle;
  margin-right: 10px;
}

/* 質問アイテム */
.faq-item {
  background: transparent;
  border-bottom: 1px solid #d6e4ff;
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  color: #1f2937;
  text-align: left;
  line-height: 1.6;
  font-family: inherit;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover {
  color: #1e40af;
}

/* +/− アイコン */
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  color: #1e40af;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  top: 50%;
  left: 50%;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq-item.open .faq-icon::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

/* 開閉アニメーション
   フォールバック: JS無効時はデフォルトで開いた状態。
   JS有効時は .js-faq-init をルートに付けて最初は閉じる。 */
.faq-answer {
  overflow: hidden;
}
.faq-answer-inner {
  padding: 0 4px 18px;
  font-size: .87rem;
  color: #6b7280;
  line-height: 1.85;
}
.js-faq-init .faq-answer {
  max-height: 0;
  opacity: 0;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
}
.js-faq-init .faq-item.open .faq-answer {
  opacity: 1;
}

/* ===================================
   8. CTA / フォーム
   =================================== */
/* ===================================
   活用イメージ（カルーセル）
   =================================== */
.usecases { padding: 56px 0; background: #f0f5ff; border-bottom: 1px solid #dbeafe; }

.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.carousel-track-wrap {
  flex: 1;
  overflow: hidden;
}

.carousel-track-inner {
  display: flex;
  transition: transform .4s ease;
}

.usecase-card {
  width: calc(50% - 12px);
  min-width: calc(50% - 12px);
  margin: 0 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  flex-shrink: 0;
}

.usecase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 14px;
}

.usecase-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.usecase-card p {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.carousel-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.carousel-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}
.carousel-dot.active { background: var(--primary); }

@media (max-width: 768px) {
  .usecase-card { width: calc(100% - 12px); min-width: calc(100% - 12px); }
  .carousel-btn { display: none; }
}

/* シミュレーターセクション */
.simulator-section {
  padding: 56px 0;
  background: #f0f5ff;
}

/* スライダー式シミュレーター v2 */
.sv2-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}
.sv2-left {
  padding: 36px 32px;
  border-right: 1px solid #dbeafe;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.sv2-right {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.sv2-input-group {
  width: 100%;
}
.sv2-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.sv2-label-row label {
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
}
.sv2-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e40af;
}
.sv2-slider-wrap {
  position: relative;
}
.sv2-slider {
  position: relative;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, #1e40af 0%, #1e40af 5%, #dbeafe 5%, #dbeafe 100%);
  z-index: 2;
}
.sv2-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #1e40af;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  cursor: pointer;
}
.sv2-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #1e40af;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  cursor: pointer;
}
.sv2-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .7rem;
  color: #9ca3af;
}
.sv2-recommend-label {
  font-size: .78rem;
  color: #6b7280;
  margin-bottom: 10px;
}
.sv2-compare {
  font-size: .72rem;
  color: #9ca3af;
  margin: 6px 0 14px;
  line-height: 1.6;
}
.sv2-compare:empty { display: none; }
.sv2-plan-badge {
  display: inline-block;
  background: #1e40af;
  color: #ffffff;
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.sv2-price {
  font-size: 3rem;
  font-weight: 700;
  color: #1e40af;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.sv2-price-unit {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}
.sv2-price-tax {
  font-size: .8rem;
  color: #9ca3af;
  margin-bottom: 12px;
}
.sv2-meta {
  font-size: .85rem;
  color: #6b7280;
  margin-bottom: 8px;
}
.sv2-meta strong {
  color: #1f2937;
}
.sv2-breakdown {
  font-size: .72rem;
  color: #9ca3af;
  margin-bottom: 20px;
  line-height: 1.5;
}
.sv2-cta-btn {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid #1e40af;
  border-radius: 8px;
  color: #1e40af;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.sv2-cta-btn:hover {
  background: #1e40af;
  color: #ffffff;
}

/* お問い合わせセクション */
.contact-section {
  padding: 80px 0 72px;
  background: linear-gradient(180deg, #1e3a8a 0%, #1a2744 55%, #111827 100%);
  position: relative;
}

.cta-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.cta-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.cta-text .cta-lead {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 24px;
}
.cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: #e5edff;
}
.cta-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  flex-shrink: 0;
}
.cta-apply-link {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
  color: #cbd5e1;
}
.cta-apply-link a {
  color: #ffffff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  transition: border-color var(--transition);
}
.cta-apply-link a:hover {
  border-bottom-color: #ffffff;
}

.form-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, .35), 0 10px 30px -6px rgba(0, 0, 0, .15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}
.form-group .optional {
  font-size: .72rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: .9rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #f0f5ff;
  color: var(--gray-800);
  font-family: inherit;
  transition: all var(--transition);
}
.form-group textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}

/* シミュレーター */
.sim-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.sim-placeholder {
  text-align: center;
  padding: 24px;
  color: var(--gray-400);
  font-size: .9rem;
  border: 1.5px dashed var(--gray-300);
  border-radius: 12px;
  margin-bottom: 20px;
}

.sim-result {
  background: #ffffff;
  border: 2px solid #1e40af;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}
.sim-result-compact { margin-bottom: 16px; padding: 14px; }

.sim-result-label {
  font-size: .85rem;
  color: #1e40af;
  margin-bottom: 10px;
  font-weight: 700;
}

.sim-result-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sim-result-item {
  font-size: .85rem;
  color: var(--gray-600);
}
.sim-result-item strong {
  color: var(--dark);
  font-weight: 700;
}

.sim-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1e40af;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: -.02em;
}
.sim-tax {
  font-size: .8rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-left: 4px;
}

.sim-note {
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: 6px;
  min-height: 1.2em;
}

.form-submit { margin-top: 4px; }
.form-note {
  text-align: center;
  margin-top: 12px;
  font-size: .75rem;
  color: var(--gray-400);
}

/* サンクスメッセージ */
.thank-you {
  text-align: center;
  padding: 32px 0;
}
.thank-you-icon { margin-bottom: 16px; color: var(--primary); }
.thank-you h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.thank-you p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===================================
   フッター
   =================================== */
.footer {
  background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
  padding: 40px 0 24px;
}

/* 2カラムレイアウト */
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col-left {
  text-align: left;
}
.footer-col-right {
  display: flex;
  align-items: flex-end;
  align-self: end;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-logo span { color: #1e40af; }

.footer-operator {
  margin-top: 16px;
}
.footer-operator-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.5;
}
.footer-operator-line {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: #ffffff; }

/* 下部：区切り線の下 */
.footer-bottom {
  padding-top: 28px;
  text-align: center;
}
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-legal a:hover { color: #ffffff; }
.footer-security {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 10px 0;
}
.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* ===================================
   Legal / Privacy ページ
   =================================== */
.legal-page {
  padding: calc(var(--header-h) + 56px) 0 80px;
  background: #ffffff;
  min-height: 60vh;
}
.legal-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.legal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1e40af;
  letter-spacing: .02em;
}
.legal-lead {
  font-size: .95rem;
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 36px;
}
.legal-section {
  margin-bottom: 32px;
}
.legal-section h2 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid #1e40af;
}
.legal-section p {
  font-size: .92rem;
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 10px;
}
.legal-section ul {
  margin: 10px 0 10px 20px;
  padding: 0;
}
.legal-section ul li {
  font-size: .92rem;
  color: #4b5563;
  line-height: 1.9;
  list-style: disc;
}
.legal-box {
  background: #f0f5ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 8px;
}
.legal-box dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 10px;
  column-gap: 16px;
  margin: 0;
}
.legal-box dt {
  font-size: .85rem;
  font-weight: 600;
  color: #1e40af;
}
.legal-box dd {
  font-size: .9rem;
  color: #374151;
  margin: 0;
}
.legal-box dd a {
  color: #1e40af;
  text-decoration: underline;
}

/* 特商法テーブル */
.legal-table {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.legal-table dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  margin: 0;
}
.legal-table dt,
.legal-table dd {
  padding: 18px 24px;
  border-bottom: 1px solid #f3f4f6;
  margin: 0;
}
.legal-table dl > dt:last-of-type,
.legal-table dl > dd:last-of-type {
  border-bottom: none;
}
.legal-table dt {
  background: #f9fafb;
  font-size: .85rem;
  font-weight: 600;
  color: #1f2937;
}
.legal-table dd {
  font-size: .88rem;
  color: #4b5563;
  line-height: 1.8;
}
.legal-table dd a {
  color: #1e40af;
  text-decoration: underline;
}
.legal-table dd small {
  display: inline-block;
  margin-top: 4px;
  font-size: .75rem;
  color: #6b7280;
}
.legal-placeholder {
  display: inline-block;
  padding: 3px 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 4px;
}

.legal-updated {
  text-align: right;
  font-size: .78rem;
  color: #9ca3af;
  margin-top: 40px;
}
.legal-updated-top {
  text-align: right;
  margin: -12px 0 32px;
}

/* 利用規約専用: ol/ul */
.legal-ol {
  margin: 0;
  padding-left: 24px;
  counter-reset: none;
}
.legal-ol > li {
  font-size: .92rem;
  color: #374151;
  line-height: 1.9;
  margin-bottom: 10px;
  padding-left: 4px;
}
.legal-ol > li:last-child {
  margin-bottom: 0;
}
.legal-ul {
  list-style: disc;
  margin: 8px 0 8px 20px;
  padding: 0;
}
.legal-ul li {
  font-size: .9rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 4px;
}
.legal-signature {
  text-align: right;
  margin-top: 40px;
  font-size: .92rem;
  color: #374151;
  line-height: 2;
}

/* ========== お申し込みページ ========== */
.apply-page {
  padding: calc(var(--header-h) + 60px) 0 108px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(59, 130, 246, .12), transparent 70%),
    linear-gradient(180deg, #1e3a8a 0%, #1a2744 55%, #111827 100%);
  min-height: 100vh;
}
.apply-inner {
  max-width: 720px;
  margin: 0 auto;
}
.apply-head {
  text-align: center;
  margin-bottom: 36px;
}
.apply-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: .06em;
  line-height: 1.3;
}
.apply-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.8;
  margin: 0;
}

/* お申し込みの流れ — タイムライン形式 */
.apply-flow {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.apply-flow-title {
  font-size: .85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 22px 0;
  letter-spacing: .04em;
  text-align: center;
}
.apply-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  align-items: start;
}
/* 番号丸の中心を貫通する横線（タイムライン） */
.apply-flow-steps::before {
  content: "";
  position: absolute;
  top: 16px; /* num 32px の中心 */
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: rgba(255, 255, 255, .15);
  z-index: 0;
}
.apply-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.apply-flow-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
}
.apply-flow-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
  line-height: 1.4;
}
.apply-flow-step.is-active .apply-flow-num {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .18), 0 6px 18px rgba(59, 130, 246, .45);
}
.apply-flow-step.is-active .apply-flow-label {
  color: #ffffff;
  font-weight: 600;
}

/* 確認事項の注記ボックス */
.apply-notice {
  background: #fef9e7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 18px 22px;
}
.apply-notice-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 12px 0;
}
.apply-notice-title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  text-align: center;
  line-height: 18px;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'><circle cx='12' cy='12' r='10' fill='%23f59e0b'/><path d='M12 7v6M12 17h.01' stroke='white' stroke-width='2.5' stroke-linecap='round'/></svg>");
  background-size: contain;
}
.apply-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.apply-notice-list li {
  position: relative;
  padding-left: 18px;
  font-size: .82rem;
  color: #78350f;
  line-height: 1.8;
}
.apply-notice-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-size: .6rem;
  top: 6px;
}

.apply-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, .35), 0 10px 30px -6px rgba(0, 0, 0, .15);
}

.apply-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.apply-fieldset:last-of-type { margin-bottom: 20px; }
.apply-legend {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1e40af;
  width: 100%;
  display: block;
}
.apply-legend .required {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group .required {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
}
.form-hint {
  font-size: .72rem;
  color: #9ca3af;
  margin: 6px 0 0 0;
}

/* プラン選択 */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-options + .apply-notice {
  margin-top: 22px;
}
.plan-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.plan-option:hover {
  border-color: #93c5fd;
  background: #f0f5ff;
}
.plan-option input[type="radio"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: #1e40af;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.plan-option input[type="radio"]:checked + .plan-option-body {
  color: #1e40af;
}
.plan-option:has(input[type="radio"]:checked) {
  border-color: #1e40af;
  background: #ebf2ff;
}
.plan-option-body {
  flex: 1;
}
.plan-option-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
}
.plan-option-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}
.plan-option-price {
  font-size: .9rem;
  font-weight: 700;
  color: #1e40af;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plan-option-price small {
  font-size: .68rem;
  font-weight: 500;
  color: #6b7280;
  margin-left: 2px;
}
.plan-option-desc {
  font-size: .78rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

.apply-initial-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.6;
}
.apply-initial-note strong {
  font-weight: 700;
}

/* チェックボックス */
.apply-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
}
.apply-checkbox + .apply-checkbox {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}
.apply-checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #1e40af;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.apply-checkbox-body {
  flex: 1;
}
.apply-checkbox-title {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: #1f2937;
}
.apply-checkbox-title a {
  color: #1e40af;
  text-decoration: underline;
}
.apply-checkbox-desc {
  display: block;
  font-size: .75rem;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.6;
}

/* 同意セクション専用: シンプルなリスト形式（カード囲みなし） */
.apply-consent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.apply-consent-item {
  padding: 8px 0;
}
.apply-consent-item + .apply-consent-item {
  border-top: 1px solid #f3f4f6;
}
.apply-consent-item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 6px 0;
}
.apply-consent-item input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: #1e40af;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.apply-consent-item label > span {
  flex: 1;
  font-size: .9rem;
  color: #1f2937;
  line-height: 1.7;
}
.apply-consent-item label a {
  color: #1e40af;
  text-decoration: underline;
}
.apply-consent-desc {
  display: block;
  font-size: .75rem;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.6;
}

.apply-submit {
  margin-top: 8px;
  border: none;
  outline: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.apply-submit:not(:disabled) {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, .4);
}
.apply-submit:not(:disabled):hover {
  background: #2563eb;
  box-shadow: 0 6px 20px rgba(59, 130, 246, .5);
}
.apply-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .4);
}
/* 非活性: 明確に「無効」と分かるライトグレー */
.apply-submit:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  border: none;
  opacity: 1;
}
.apply-submit:disabled:hover {
  background: #d1d5db;
  transform: none;
}

/* ステップ完了状態 */
.apply-flow-step.is-done .apply-flow-num {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
  box-shadow: none;
}
.apply-flow-step.is-done .apply-flow-label {
  color: rgba(255, 255, 255, .7);
}

/* サンキュー画面 */
.apply-thank-you {
  background: #ffffff;
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, .35), 0 10px 30px -6px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.apply-thank-you-icon {
  margin-bottom: 20px;
}
.apply-thank-you-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 14px 0;
}
.apply-thank-you-text {
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.8;
  margin: 0 0 28px 0;
}
.apply-thank-you-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: .9rem;
  font-weight: 600;
  color: #1e40af;
  background: #ebf2ff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}
.apply-thank-you-btn:hover {
  background: #dbeafe;
}

@media (max-width: 768px) {
  .apply-page { padding: calc(var(--header-h) + 40px) 0 72px; }
  .apply-head { margin-bottom: 26px; }
  .apply-title { font-size: 24px; letter-spacing: .04em; }
  .apply-lead { font-size: 14px; padding: 0 8px; }

  .apply-form { padding: 24px 20px; border-radius: 14px; }
  .apply-fieldset { margin: 0 0 22px 0; }
  .apply-legend { font-size: .95rem; margin-bottom: 12px; padding-bottom: 8px; }

  /* フォーム行を縦スタックに */
  .apply-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .apply-form .form-group { margin-bottom: 14px; }
  .apply-form .form-group label { font-size: .8rem; }
  .apply-form input[type="text"],
  .apply-form input[type="email"],
  .apply-form input[type="tel"],
  .apply-form input[type="date"] {
    font-size: 16px; /* iOS でズームさせない */
    padding: 10px 12px;
  }

  /* プラン選択カード */
  .plan-option { padding: 14px 16px; gap: 10px; }
  .plan-option-head { flex-direction: column; gap: 2px; align-items: flex-start; }
  .plan-option-name { font-size: .95rem; }
  .plan-option-price { font-size: .85rem; }
  .plan-option-desc { font-size: .72rem; }

  .apply-initial-note {
    font-size: .75rem;
    padding: 10px 14px;
    align-items: flex-start;
    gap: 6px;
  }

  /* チェックボックス */
  .apply-checkbox { padding: 6px 0; gap: 10px; }
  .apply-checkbox-title { font-size: .82rem; line-height: 1.6; }
  .apply-checkbox-desc { font-size: .7rem; }
  .apply-checkbox + .apply-checkbox { margin-top: 12px; padding-top: 12px; }

  /* 確認事項ボックス */
  .apply-notice { padding: 14px 16px; }
  .apply-notice-title { font-size: .82rem; }
  .apply-notice-list li { font-size: .76rem; line-height: 1.7; }

  /* 申込の流れ — モバイルは 2 列 × 3 行、接続線なし */
  .apply-flow { padding: 22px 20px; margin-bottom: 32px; border-radius: 14px; }
  .apply-flow-title { font-size: .78rem; margin-bottom: 18px; }
  .apply-flow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }
  .apply-flow-steps::before { display: none; }
  .apply-flow-step { gap: 8px; }
  .apply-flow-label { font-size: 12px; }

  /* 開始希望日のヒント */
  .form-hint { font-size: .68rem; }

  /* 送信ボタン */
  .apply-submit { font-size: .95rem; padding: 14px; }

  /* ヘッダー: モバイルでボタンを小さく、gap詰める */
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 6px 12px; font-size: .75rem; }
}

@media (max-width: 480px) {
  .apply-form { padding: 20px 16px; }
  .apply-title { font-size: 22px; }
  /* 極小画面ではログインとお問い合わせボタンを非表示、お申し込みだけ残す */
  .header-login { display: none; }
  .header-actions .btn-outline { display: none; }
  .header-actions .btn-sm { padding: 6px 10px; font-size: .72rem; }
}
.legal-back {
  text-align: center;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .legal-title { font-size: 1.4rem; }
  .legal-box dl { grid-template-columns: 1fr; row-gap: 4px; }
  .legal-box dd { margin-bottom: 8px; }
  .legal-table dl { grid-template-columns: 1fr; }
  .legal-table dt { padding: 14px 20px 8px; }
  .legal-table dd { padding: 0 20px 14px; border-bottom: 1px solid #f3f4f6; }
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .feature-main-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-text { text-align: center; }
  .cta-benefits { align-items: center; display: inline-flex; }
  .cta-benefits li { justify-content: flex-start; text-align: left; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-title { font-size: 1.35rem; }
  .header-nav { display: none; }
  .header-login { display: none; }

  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; }
  .hero-catch { font-size: 2rem; }
  .hero-badge { font-size: .72rem; }

  .pain-item { gap: 10px; padding: 12px 16px; }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
  .who-label { display: none; }
  .steps-flow { flex-direction: column; gap: 8px; }
  .steps-yomitori-group { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); }
  .step-connector-inner { transform: rotate(90deg); }

  .feature-main-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .pricing-cards { grid-template-columns: 1fr; gap: 20px; }

  .cta-inner { grid-template-columns: 1fr; }
  .form-wrapper { padding: 28px 22px; }
  .contact-section { padding: 56px 0 48px; }
  .cta-text h2 { font-size: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-col-left { text-align: center; }
  .footer-col-right { justify-content: center; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 18px; }

  .sv2-wrapper { grid-template-columns: 1fr; }
  .sv2-left { border-right: none; border-bottom: 1px solid #dbeafe; }
}
