/* =========================================
   T-System LP v5 — styles.css
   v4 + ベネフィット数値・信頼性表記改善・抑揚追加
   ========================================= */

/* feature-benefit: 機能カード下部の数値ベネフィット */
.feature-benefit {
  margin-top: var(--sp-md);
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--accent-container) 0%, #FFF7E6 100%);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  color: var(--accent-hover);
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.feature-benefit::before {
  content: '→ ';
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-right: 4px;
}

/* uc-num: ユースケース内の数値効果 */
.uc-num {
  display: inline-block;
  margin-top: 4px;
  margin-left: 4px;
  font-family: 'BIZ UDPGothic', 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-container);
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.5;
  white-space: normal;
}

:root {
  /* Colors */
  --primary: #1E40AF;
  --primary-hover: #1E3A8A;
  --primary-container: #DBEAFE;
  --on-primary: #FFFFFF;
  --secondary: #2563EB;
  --secondary-container: #EFF6FF;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-container: #FEF3C7;
  --on-accent: #0F172A;
  --success: #16A34A;
  --success-container: #DCFCE7;
  --danger: #DC2626;
  --danger-container: #FEE2E2;
  --text: #0F172A;
  --text-muted: #475569;
  --text-subtle: #94A3B8;
  --text-on-dark: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --surface-section: #F1F5F9;
  --surface-dark: #0F172A;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Rounded (すぐる#5 アンチパターン: 16px+ は shadcn デフォルト感が強いため縮小) */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-pill: 999px;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;
  --sp-4xl: 128px;

  /* Elevation */
  --shadow-card: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-hover: 0 4px 8px rgba(15,23,42,0.06), 0 16px 32px rgba(30,64,175,0.12);
  --shadow-sticky: 0 -4px 16px rgba(15,23,42,0.08);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 600ms;

  --container: 1200px;
}

/* ====== Base ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'BIZ UDPGothic', sans-serif;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== Typography ====== */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 var(--sp-md);
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.75rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.45; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 var(--sp-md); }

.caption {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}
.caption-light { color: var(--accent); }
.h2-light { color: var(--text-on-dark); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }

/* ====== Badges ====== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.badge-trust {
  background: var(--secondary-container);
  color: var(--primary);
  padding: 6px 14px;
}
.badge-success {
  background: var(--success-container);
  color: var(--success);
}
.badge-accent {
  background: var(--accent-container);
  color: var(--accent-hover);
}
.badge-danger {
  background: var(--danger-container);
  color: var(--danger);
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-md { padding: 14px 24px; font-size: 0.95rem; }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--primary); }
.btn-ghost-light {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); color: var(--text-on-dark); }

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0);
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease), backdrop-filter 300ms var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  padding: 16px 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.logo-mark {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}
.site-nav {
  display: flex;
  gap: var(--sp-lg);
  margin-left: var(--sp-xl);
  flex: 1;
}
.site-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms var(--ease);
}
.site-nav a:hover { color: var(--primary); }
.header-cta {
  display: flex;
  gap: var(--sp-sm);
  margin-left: auto;
}

/* ====== Sections ====== */
.section {
  padding: var(--sp-3xl) 0;
  background: var(--surface);
  position: relative;
}
.section-alt {
  background: var(--surface-alt);
  /* B-4: 2階調脱出 — 薄いドットパターンで紙質感 */
  background-image: radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}
/* v5: セクションごとの微妙な抑揚 */
.section-alt#solution {
  background-image:
    radial-gradient(circle, rgba(30,64,175,0.05) 1px, transparent 1px),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  background-size: 28px 28px, auto;
}
.section-alt#features {
  background-image:
    radial-gradient(circle, rgba(15,23,42,0.04) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}
.section-alt#pricing {
  background-image:
    linear-gradient(90deg, rgba(15,23,42,0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15,23,42,0.03) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
}
.section-dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  /* 微細なドットパターンだけ残す */
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-2xl);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.section-dark .section-lead { color: rgba(248,250,252,0.75); }

/* ====== Grids ====== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-xl);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
}

/* ====== Card base ====== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

/* ====== HERO ====== */
.hero {
  padding: 80px 0 var(--sp-3xl);
  /* すぐる#5: AI青グラデを撤廃。微細グリッドで紙の質感 */
  background:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--surface);
  overflow: hidden;
  position: relative;
}
/* B-7: 奥行き — ヒーロー左下に装飾ブロックを敷いて要素を浮かす */
.hero::before {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  background: var(--primary-container);
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(40px);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: var(--sp-md) 0 var(--sp-lg);
}
.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: var(--sp-xl);
}
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-cta {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-2xl);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.stat-card {
  background: var(--primary-container);
  border-radius: var(--r-lg);
  padding: 20px 18px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.stat-num-unit {
  font-size: 0.6em;
  font-weight: 800;
  margin-left: 2px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--primary-hover);
  margin-top: 6px;
  font-weight: 600;
}

/* ===== Hero visual: countdown (上) + product screen mock (下) ===== */
.hero-visual {
  position: relative;
  height: 760px;
}
.countdown-visual {
  position: relative;
  z-index: 3;
  margin: 0 0 var(--sp-2xl);   /* スクショとの空白を大きく */
  margin-top: -24px;            /* もう少し上に */
  background: var(--surface);
  box-shadow: var(--shadow-hover);
}
.hero-screen-desktop {
  position: absolute;
  top: 230px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.06);
  overflow: hidden;
  z-index: 2;
}
.screen-bar {
  background: #1a1a1a;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.screen-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #444;
}
.screen-bar span:nth-child(1) { background: #ff5f57; }
.screen-bar span:nth-child(2) { background: #febc2e; }
.screen-bar span:nth-child(3) { background: #28c840; }
.screen-body { background: #f5f5f5; }
.screen-header {
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  height: 48px;
}
.screen-logo {
  font-weight: 800;
  font-size: 1rem;
}
.screen-logo span { color: var(--secondary); }
.screen-search {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.screen-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.screen-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  padding: 12px 16px 0;
  border-bottom: 1px solid var(--border);
}
.screen-tab {
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px 6px 0 0;
  margin-bottom: -1px;
}
.screen-tab.active {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--border);
  border-bottom: 1px solid #fff;
}
.screen-cards {
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
}
.screen-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  border-left: 3px solid #ccc;
}
.screen-card.red { border-left-color: var(--danger); }
.screen-card.blue { border-left-color: var(--secondary); }
.screen-card.black { border-left-color: #111; }
.screen-card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
}
.screen-card-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* AIチャットカード (右下、傾き+2deg、対称に縮小) */
.hero-screen-ai {
  position: absolute;
  bottom: 10px;
  right: 0;
  width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(15,23,42,0.18), 0 4px 14px rgba(15,23,42,0.08);
  overflow: hidden;
  transform: rotate(2deg);
  z-index: 3;
}
.hsa-bar {
  background: #1a1a1a;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.hsa-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #444;
}
.hsa-bar span:nth-child(1) { background: #ff5f57; }
.hsa-bar span:nth-child(2) { background: #febc2e; }
.hsa-bar span:nth-child(3) { background: #28c840; }
.hsa-body { padding: 14px; }
.hsa-head {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.hsa-bubble {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  margin-bottom: 6px;
  line-height: 1.5;
  max-width: 85%;
}
.hsa-bubble-me {
  background: var(--secondary);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}
.hsa-bubble-ai {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 2px;
}
.hsa-bubble-ai strong { color: var(--primary); }
.hsa-tag {
  display: inline-block;
  background: var(--success-container);
  color: var(--success);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  margin-top: 6px;
}

/* ====== Hero customer screen (左下、独立、コンパクト) ====== */
.hero-screen-customer {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 22px 48px rgba(15,23,42,0.16), 0 4px 14px rgba(15,23,42,0.08);
  overflow: hidden;
  transform: rotate(-2deg);
  z-index: 3;
}
.hsc-bar {
  background: #1a1a1a;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.hsc-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #444;
}
.hsc-bar span:nth-child(1) { background: #ff5f57; }
.hsc-bar span:nth-child(2) { background: #febc2e; }
.hsc-bar span:nth-child(3) { background: #28c840; }
.hsc-body { padding: 10px 12px 6px; }
.hsc-head {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hsc-head::after {
  content: '4件';
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0;
}
.hsc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}
.hsc-row:last-child { border-bottom: none; }
.hsc-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex: none;
}
.hsc-row:nth-child(3) .hsc-avatar { background: var(--secondary); }
.hsc-row:nth-child(4) .hsc-avatar { background: var(--accent-hover); }
.hsc-row:nth-child(5) .hsc-avatar { background: #475569; }
.hsc-info { flex: 1; min-width: 0; }
.hsc-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsc-meta {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ====== Trust Bar (実在事実+免責) ====== */
.trust-bar {
  padding: var(--sp-xl) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xl);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}
.trust-meta-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.trust-meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.trust-disclaimer {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.7;
  margin: var(--sp-md) 0 0;
  padding-top: var(--sp-md);
  border-top: 1px dashed var(--border-strong);
}

/* ====== Pain Cards ====== */
.pain-card {
  text-align: left;
}
.pain-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-container);
  color: var(--primary);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
}
.pain-icon svg { width: 24px; height: 24px; }
.pain-card p { color: var(--text-muted); }

/* ====== Product Trio (実画面スクショ風モック 3並列) ====== */
.product-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  max-width: 1080px;
  margin: 0 auto;
}
.product-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-card figcaption {
  padding: 18px 20px 22px;
}
.product-card figcaption h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.product-card figcaption p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.product-mock { background: #f6f8fa; }
.pm-bar {
  height: 22px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.pm-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #444;
}
.pm-bar span:nth-child(1) { background: #ff5f57; }
.pm-bar span:nth-child(2) { background: #febc2e; }
.pm-bar span:nth-child(3) { background: #28c840; }
.pm-body { padding: 14px; min-height: 220px; font-size: 0.7rem; color: var(--text); }
.pm-row { display: flex; justify-content: space-between; align-items: center; }
.pm-row-head { font-weight: 700; margin-bottom: 10px; font-size: 0.75rem; color: var(--text); }
.pm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.pm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.pm-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--secondary);
  border-radius: 4px;
  padding: 6px 8px;
}
.pm-stat-red { border-left-color: var(--danger); }
.pm-stat-blue { border-left-color: var(--secondary); }
.pm-stat-black { border-left-color: #111; }
.pm-stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.pm-stat small { display: block; font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }
.pm-list { display: flex; flex-direction: column; gap: 4px; }
.pm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.7rem;
}
.pm-item i {
  width: 4px; height: 12px;
  background: var(--secondary);
  display: inline-block;
  border-radius: 2px;
  flex: none;
}
.pm-item small { margin-left: auto; color: var(--text-subtle); font-size: 0.62rem; }
.pm-done { background: #f3f4f6; color: var(--text-subtle); }
.pm-done i { background: var(--success); }
.pm-bubble {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  margin-bottom: 8px;
  line-height: 1.5;
  max-width: 85%;
}
.pm-bubble-me {
  background: var(--secondary);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}
.pm-bubble-ai {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 2px;
}
.pm-tag {
  display: inline-block;
  background: var(--success-container);
  color: var(--success);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  margin-top: 6px;
}
.pm-plugin {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 0.75rem;
}
.pm-plugin i { color: var(--primary); font-size: 1rem; }
.pm-plugin span { flex: 1; font-weight: 600; }
.pm-plugin em {
  font-style: normal;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  color: var(--text-subtle);
  font-weight: 500;
}
.pm-plugin-soon { background: #f6f8fa; opacity: 0.75; }
.pm-plugin-soon em { color: var(--accent-hover); font-weight: 700; }

@media (max-width: 980px) {
  .product-trio { grid-template-columns: 1fr; max-width: 480px; }
}

/* ====== Simulator (P-1: デジタル庁政策ダッシュボード風) ====== */
.simulator {
  background: #F1F3F5;            /* デジタル庁 Solid Gray の背景相当 */
  border-radius: 6px;             /* P-1: 大角丸から控えめへ */
  padding: var(--sp-2xl);
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);  /* 上部にBlueアクセントライン */
  position: relative;
}
.simulator::before {
  content: 'SUBSIDY SIMULATOR / 政策ダッシュボード準拠';
  position: absolute;
  top: -1px;
  left: 22px;
  transform: translateY(-100%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 4px 4px 0 0;
}
.sim-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}
.sim-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--sp-sm);
}
.sim-value {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
  font-size: 1.125rem;
}
.sim-field input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--border);
  outline: none;
}
.sim-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30,64,175,0.4);
  border: 3px solid #fff;
}
.sim-field input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
}
.sim-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 6px;
}
.sim-amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sim-amount-prefix {
  position: absolute;
  left: 16px;
  font-weight: 700;
  color: var(--text-muted);
}
.sim-field input[type="number"] {
  width: 100%;
  padding: 14px 16px 14px 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  background: var(--surface);
  outline: none;
  transition: border-color 200ms var(--ease);
}
.sim-field input[type="number"]:focus {
  border-color: var(--primary);
}
.sim-presets {
  display: flex;
  gap: 6px;
  margin-top: var(--sp-sm);
  flex-wrap: wrap;
}
.sim-presets button {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 200ms var(--ease);
}
.sim-presets button:hover {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.sim-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
/* P-1: デジタル庁「政策データダッシュボード」風の数値カード
   - 白背景 + 細ボーダー + 上部のみ太アクセントライン
   - 左寄せ大型数字、ラベルはCaps lock風キャプション
   参考: https://www.digital.go.jp/resources/dashboard-guidebook/color-palette */
.sim-result {
  background: var(--surface);
  border-radius: 4px;
  padding: 22px 22px 18px;
  text-align: left;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
  position: relative;
}
.sim-result.flash { background: #FFF7E6; border-top-color: var(--accent); }
.sim-result-subsidy { border-top-color: var(--success); }
.sim-result-burden  { border-top-color: var(--primary); }
.sim-result-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sim-result-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.sim-result-subsidy .sim-result-num { color: var(--success); }
.sim-result-burden .sim-result-num  { color: var(--primary); }
.sim-result-note {
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.55;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.sim-cap-warn {
  background: var(--accent-container);
  color: var(--accent-hover);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--sp-md);
}
.sim-disclaimer {
  background: var(--surface);
  border-left: 3px solid var(--border-strong);
  padding: 12px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: var(--sp-md);
}
.sim-cta { display: flex; margin: 0 auto; max-width: 360px; }

/* ====== Flow ====== */
.flow-deadline {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  justify-content: center;
  margin-bottom: var(--sp-2xl);
  flex-wrap: wrap;
}
.flow-deadline-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  font-weight: 500;
}
.flow-deadline-days {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--danger);
  margin: 0 4px;
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-md);
  position: relative;
}
.flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  position: relative;
  text-align: left;
  box-shadow: var(--shadow-card);
}
.flow-step-num {
  width: 36px; height: 36px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
  margin-bottom: var(--sp-md);
}
.flow-step h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-md);
  line-height: 1.6;
}

/* ====== Features ====== */
.feature-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: default;
  /* B-7: 奥行き — カード自体を浮かせて section-alt のドット背景から際立たせる */
  box-shadow: var(--shadow-card);
  position: relative;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--sp-md);
}
.feature-icon-core { background: var(--primary-container); }
.feature-icon-task { background: var(--secondary-container); }
.feature-icon-ai { background: var(--accent-container); }
.feature-icon .ph-duotone,
.feature-icon i { font-size: 1.75rem; line-height: 1; color: var(--primary); }
.feature-icon-task i { color: var(--secondary); }
.feature-icon-ai i { color: var(--accent-hover); }
.arch-plugin-icon i { font-size: 1.75rem; line-height: 1; color: var(--primary); display: inline-block; }
.arch-plugin-icon { font-size: inherit; margin-bottom: 6px; }
.feature-sub {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin: -8px 0 var(--sp-md);
  font-weight: 500;
}
.feature-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
/* feature-list (旧✓スタイル) は廃止。feature-meta に置き換え */
.feature-meta {
  margin: var(--sp-md) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: var(--sp-md);
}
.feature-meta > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 0.8rem;
  line-height: 1.5;
}
.feature-meta dt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0;
}
.feature-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}
.features-note {
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
  margin-top: var(--sp-xl);
}

/* ====== Safety (Dark) ====== */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}
.safety-lead {
  color: rgba(248,250,252,0.85);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.safety-lead strong { color: var(--accent); font-weight: 700; }
.safety-lead em { color: var(--text-on-dark); font-style: normal; font-weight: 700; }
.safety-list-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 32px;
}
.safety-list-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 var(--sp-md);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.safety-list li {
  color: var(--text-on-dark);
  font-size: 0.95rem;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}
.safety-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--danger);
  font-weight: 700;
  font-size: 1.1rem;
}
.safety-list-foot {
  margin: var(--sp-lg) 0 0;
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.safety-code {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: 'Space Grotesk', monospace;
  box-shadow: var(--shadow-hover);
}
.safety-code-bar {
  background: #0f172a;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #1e293b;
}
.safety-code-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #334155;
}
.safety-code-bar span:nth-child(1) { background: #ef4444; }
.safety-code-bar span:nth-child(2) { background: #f59e0b; }
.safety-code-bar span:nth-child(3) { background: #22c55e; }
.safety-code-title {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-left: 8px;
  flex: none;
  width: auto;
  background: none;
  height: auto;
  border-radius: 0;
}
.safety-code pre {
  margin: 0;
  padding: 20px 24px;
  font-family: 'Space Grotesk', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
}
.safety-code .tk-key { color: #93c5fd; }
.safety-code .tk-str { color: #86efac; }
.safety-code .tk-num { color: #fbbf24; }
.safety-code .tk-bool { color: #f472b6; }
.safety-code-note {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: var(--accent);
  text-align: center;
}

/* ====== Use Cases / Tabs ====== */
.tabs {
  max-width: 960px;
  margin: 0 auto;
}
.tab-buttons {
  display: flex;
  gap: 4px;
  background: var(--surface-section);
  padding: 6px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
  justify-content: center;
}
.tab-button {
  background: transparent;
  border: none;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.tab-button.active {
  background: var(--primary);
  color: var(--on-primary);
}
.tab-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  animation: fadeIn 400ms var(--ease);
}
.tab-panel.active { display: block; }
.tab-panel h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: var(--sp-md);
}
.usecase-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-md);
}
.usecase-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.65;
}
.usecase-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}
.usecase-cost {
  background: var(--primary-container);
  color: var(--primary);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: var(--sp-md);
}

/* ====== Pricing ====== */
.price-card {
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border: 1px solid var(--accent);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-card);
  /* B-6: shadcn風の真ん中だけ持ち上げ演出をやめてフラット並列に。
     代わりに border-top のアクセント色だけで差別化 */
}
.price-badge {
  position: absolute;
  top: -12px;
  right: 20px;
}
.price-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-config {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: var(--sp-sm) 0 var(--sp-md);
  min-height: 3em;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.price-row strong {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
}
.price-divider {
  border-top: 1px dashed var(--border-strong);
  margin: var(--sp-md) 0;
}
.price-row-burden {
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}
.price-burden {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.price-card .btn { margin-top: auto; margin-top: var(--sp-md); }

/* ====== FAQ ====== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 200ms var(--ease);
}
.faq-item:hover { box-shadow: var(--shadow-card); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  flex: none;
  transition: transform 300ms var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

/* ====== Final CTA ====== */
.cta-section {
  padding: var(--sp-4xl) 0;
  /* すぐる#5 アンチパターン: 暖色/青グラデを撤廃。
     ダーク単色 + 微細グリッドで質感だけ残す */
  background:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--surface-dark);
}
.cta-inner {
  text-align: center;
  max-width: 760px;
}
.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-on-dark);
}
.cta-lead {
  color: rgba(248,250,252,0.85);
  font-size: 1.0625rem;
  line-height: 1.85;
  margin: var(--sp-md) 0 var(--sp-xl);
}
.cta-days {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  color: var(--accent);
  font-size: 1.5rem;
  margin: 0 4px;
}
.cta-buttons {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
}
.cta-contact {
  color: rgba(248,250,252,0.65);
  font-size: 0.9rem;
}
.cta-contact strong {
  color: var(--text-on-dark);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin: 0 6px;
}

/* ====== Footer ====== */
.site-footer {
  background: #020617;
  color: rgba(248,250,252,0.75);
  padding: var(--sp-2xl) 0 var(--sp-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-2xl);
}
.footer-brand .logo-mark { color: var(--text-on-dark); font-size: 1.25rem; }
.footer-brand .logo-sub { color: rgba(248,250,252,0.5); }
.footer-tag {
  margin-top: var(--sp-md);
  color: rgba(248,250,252,0.5);
  font-size: 0.85rem;
}
.site-footer h4 {
  color: var(--text-on-dark);
  font-size: 0.85rem;
  margin-bottom: var(--sp-md);
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: rgba(248,250,252,0.65);
  font-size: 0.85rem;
}
.site-footer a:hover { color: var(--text-on-dark); }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: var(--sp-md);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
  align-items: flex-end;
}
.footer-bottom small {
  color: rgba(248,250,252,0.4);
  font-size: 0.75rem;
  line-height: 1.6;
}
.footer-disclaimer { max-width: 600px; text-align: right; }
.footer-disclaimer a { color: rgba(248,250,252,0.6); text-decoration: underline; }

/* ====== Sticky CTA ====== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-sticky);
  z-index: 40;
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform 400ms var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
.sticky-cta-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.sticky-cta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.sticky-cta-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.sticky-cta-context {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Sticky CTA 内のカウントダウン表示 */
.sticky-cd {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
.sticky-cd-label {
  font-family: 'Space Grotesk', 'BIZ UDPGothic', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-hover);
  text-transform: uppercase;
  white-space: nowrap;
}
.sticky-cd-time {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.sticky-cd-n {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  min-width: 1.3em;
  text-align: right;
  display: inline-block;
}
/* 「日」だけ赤・大型・太字 */
.sticky-cd-n:first-of-type {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: -0.03em;
}
.sticky-cd-u {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-subtle);
  margin: 0 8px 0 1px;
  letter-spacing: 0;
}
.sticky-cd-u:first-of-type {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.74rem;
}
.sticky-cd-tag {
  font-family: 'Space Grotesk', 'BIZ UDPGothic', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--danger);
  background: var(--danger-container);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--danger);
  white-space: nowrap;
  flex: none;
}

/* ====== Hero Brand Stamp (T-System の存在感を出す) ====== */
.brand-stamp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin: 16px 0 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  position: relative;
  padding-left: 14px;
}
.brand-stamp::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.brand-stamp span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ====== Contact Form ====== */
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.form-row-2 {
  grid-template-columns: 1fr 1fr;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: 'Space Grotesk', sans-serif, 'BIZ UDPGothic';
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-req {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  outline: none;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'BIZ UDPGothic', sans-serif;
  line-height: 1.7;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.10);
}
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}
.form-consent {
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-actions {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: var(--sp-lg);
}
.form-actions .btn {
  min-width: 280px;
}
.form-note {
  margin: var(--sp-md) 0 0;
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.form-success {
  max-width: 560px;
  margin: 0 auto;
  background: var(--success-container);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  animation: fadeInUp 500ms var(--ease);
}
.form-success-icon {
  font-size: 3rem;
  color: var(--success);
  line-height: 1;
  margin-bottom: var(--sp-md);
}
.form-success h3 {
  font-size: 1.25rem;
  margin: 0 0 var(--sp-md);
  color: var(--text);
}
.form-success p {
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
  line-height: 1.75;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .contact-form { padding: 24px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-actions .btn { min-width: 100%; }
}

/* ====== Countdown (先着スタート) ====== */
.countdown {
  margin: var(--sp-lg) 0 var(--sp-xl);
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
}
.countdown.active { border-left-color: var(--success); }
.countdown.ended  { border-left-color: var(--danger); }
.countdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
  text-transform: uppercase;
}
.countdown.active .countdown-label { color: var(--success); }
.countdown.ended  .countdown-label { color: var(--danger); }
.countdown-firstcome {
  font-family: 'Space Grotesk', 'BIZ UDPGothic', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--danger);
  background: var(--danger-container);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--danger);
  white-space: nowrap;
  flex: none;
}
.countdown-grid {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: nowrap;
}
.cd-unit {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
/* デフォルト (時・分・秒): 黒・小さめ・控えめ */
.cd-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-align: right;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
/* 「日」だけ赤・大型・太字 — 焦りの軸 */
.cd-unit:first-child {
  flex: 1;
  align-items: flex-end;
}
.cd-unit:first-child .cd-num {
  font-size: clamp(2.6rem, 5.4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--danger);
  text-align: left;
}
.cd-unit:first-child .cd-label {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 4px;
}
/* 受付中(active)以降は緊急色を緑/赤に */
.countdown.active .cd-unit:first-child .cd-num { color: var(--success); }
.countdown.active .cd-unit:first-child .cd-label { color: var(--success); }
.countdown.ended  .cd-num { color: var(--text-subtle); opacity: 0.6; }
.countdown.ended  .cd-unit:first-child .cd-num { color: var(--danger); opacity: 0.6; }

.cd-label {
  font-size: 0.62rem;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cd-sep {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--border-strong);
  line-height: 1;
  align-self: center;
  padding-bottom: 2px;
}
/* 「日」の直後のセパレータは消す。日と時間グループに余白を取る形に */
.cd-unit:first-child + .cd-sep {
  display: none;
}
.cd-unit:first-child {
  margin-right: 18px;
  padding-right: 18px;
  border-right: 1px solid var(--border);
}
.countdown-target {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====== Legal pages (about / privacy / tokushou) ====== */
.legal-page {
  background: var(--surface);
  padding: 96px 0 var(--sp-3xl);
}
.legal-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}
.legal-head .caption {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.legal-head h1 {
  font-family: 'Space Grotesk', 'BIZ UDPGothic', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal-head p.lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.legal-section {
  margin-bottom: var(--sp-2xl);
}
.legal-section h2 {
  font-family: 'Space Grotesk', 'BIZ UDPGothic', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 var(--sp-md);
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  letter-spacing: -0.01em;
}
.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: var(--sp-lg) 0 8px;
  color: var(--text);
}
.legal-section p,
.legal-section li {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.92rem;
}
.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin: 0 0 var(--sp-md);
}
.legal-section li { margin-bottom: 4px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.legal-table th,
.legal-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.7;
}
.legal-table th {
  width: 200px;
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.legal-table td { color: var(--text-muted); }
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: none; }
.legal-update {
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-md);
  border-top: 1px dashed var(--border-strong);
  font-size: 0.82rem;
  color: var(--text-subtle);
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-xl);
  font-family: 'Space Grotesk', 'BIZ UDPGothic', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.legal-back:hover { color: var(--primary-hover); }
@media (max-width: 640px) {
  .legal-table th, .legal-table td { padding: 10px 12px; font-size: 0.85rem; }
  .legal-table th { width: 110px; }
  .legal-page { padding: 64px 0 var(--sp-2xl); }
}

/* ====== Reveal animation ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====== Responsive ====== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: auto; max-width: 560px; margin: 0 auto; padding-bottom: 580px; position: relative; }
  .countdown-visual { margin-bottom: var(--sp-lg); }
  .hero-screen-desktop { top: auto; bottom: 330px; left: 50%; transform: translateX(-50%) rotate(-1.5deg); width: 92%; max-width: 380px; }
  .hero-screen-ai { right: 0; bottom: 20px; transform: rotate(2deg); }
  .hero-screen-customer { left: 0; bottom: 20px; transform: rotate(-2deg); }
  .site-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sim-inputs { grid-template-columns: 1fr; }
  .sim-results { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: var(--sp-2xl) 0; }
  .hero { padding: 40px 0 var(--sp-2xl); }
  .footer-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .footer-disclaimer { text-align: left; }
  .sticky-cd-label { display: none; }
  .sticky-cd-tag { display: none; }
  .sticky-cd { gap: 6px; }
  .sticky-cd-n { font-size: 1.1rem; }
  .sticky-cd-u { font-size: 0.65rem; margin: 0 2px 0 0; }
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
