:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --dark: #1d1d1f;
  --text: #1d1d1f;
  --text-mid: #6e6e73;
  --muted: #86868b;
  --border: #d2d2d7;

  /* Apple.com system tokens */
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-dark: #0058a3;
  --blue-light: #2997ff;
  --blue-tint: rgba(0,113,227,0.08);

  --mac-red: #FF5F57;
  --mac-yellow: #FEBC2E;
  --mac-green: #28C840;
  --mac-red-text: #D93A30;
  --mac-yellow-text: #9A6400;
  --mac-green-text: #1B8F37;

  --purple: var(--blue);
  --purple-light: var(--blue-light);
  --purple-dark: var(--blue-dark);
  --purple-tint: var(--blue-tint);
  --green: #1a8a4a;
  --red: #c53030;
  --shadow-sm: 0 2px 14px rgba(0,0,0,0.06);
  --shadow: 0 10px 34px rgba(0,0,0,0.09);
  --shadow-lg: 0 22px 60px rgba(0,0,0,0.14);
  --radius: 18px;
  --radius-lg: 28px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro JP", "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  --font-heading: var(--font);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
strong { font-weight: 700; }

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

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251,251,253,0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dark);
}
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important, transform var(--transition) !important;
}
.nav-cta:hover { background: var(--purple) !important; transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: var(--white);
  padding: 148px 24px 0;
  text-align: center;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.hero-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-transform: none;
  margin-bottom: 14px;
  display: block;
}
.hero-label::before { content: none; }
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6vw, 4.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--dark); }
.hero-sub {
  font-size: 1.25rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 620px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 12px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-link {
  background: none;
  color: var(--blue);
  padding: 12px 4px;
  font-weight: 400;
}
.btn-link:hover { color: var(--blue-hover); text-decoration: underline; }
.btn-outline {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-tint); }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 100px;
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transition: all var(--transition);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0,0,0,0.24); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; padding: 22px 24px 26px; }
.trust-item { font-size: 0.8rem; color: var(--muted); }

/* Hero visual — full-bleed product shot, Apple product-page style */
.hero-visual { display: flex; justify-content: center; align-items: flex-end; margin-top: 36px; background: var(--bg-alt); padding: 48px 24px 0; overflow: hidden; }
.hero-mouse { width: 100%; max-width: 760px; display: block; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.18)); }

/* =====================================================
   STATS BAR — Apple "tech specs" strip
   ===================================================== */
.stats-bar { background: var(--white); padding: 64px 24px; text-align: center; border-bottom: 1px solid var(--border); }
.stats-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: center;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 12px 28px; }
.stat-num { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--dark); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.stat-unit { font-size: 1.4rem; font-weight: 600; }
.stat-desc { font-size: 0.86rem; color: var(--text-mid); letter-spacing: 0.01em; white-space: nowrap; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }
.stats-note { font-size: 0.72rem; color: var(--muted); margin-top: 24px; }

/* =====================================================
   WHY
   ===================================================== */
.why { padding: 100px 0; background: var(--white); }
.section-label {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--muted); text-transform: none; margin-bottom: 12px;
  display: block;
}
.section-label::before { content: none; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  color: var(--dark);
}
.section-desc { font-size: 1.05rem; color: var(--text-mid); line-height: 1.9; max-width: 640px; margin-bottom: 56px; }
.section-desc strong { color: var(--dark); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why-icon { font-size: 2.2rem; margin-bottom: 18px; }

/* 写真付きのカード：写真はカードの端まで広げる（余白 32px 28px を打ち消す） */
.why-card-img {
  display: block;
  width: calc(100% + 56px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -32px -28px 24px;
}
.why-card h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--dark); letter-spacing: -0.01em; }
.why-card p { font-size: 0.925rem; color: var(--text-mid); line-height: 1.8; }
.why-note { font-size: 0.78rem; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.why-note a { color: var(--purple); font-weight: 500; }
.why-note a:hover { text-decoration: underline; }

/* =====================================================
   FEATURES (交互レイアウト)
   ===================================================== */
.feature-row { padding: 80px 0; background: var(--white); }
.feature-row--alt { background: var(--bg-alt); }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-row--alt .feature-inner { direction: rtl; }
.feature-row--alt .feature-inner > * { direction: ltr; }

.feature-img-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── 16ボタン overlay visual ───────────────────── */
.btn-visual { position: relative; aspect-ratio: 4/3; background: var(--dark); overflow: hidden; }
.btn-visual-mouse { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btn-top-highlight { position: absolute; left: 38%; top: 12%; width: 22%; height: 16%; border: 1.5px dashed var(--mac-red); border-radius: 6px; background: rgba(255,95,87,0.16); }
.btn-side-highlight { position: absolute; right: 5%; top: 24%; width: 31%; height: 52%; border: 1.5px dashed var(--mac-yellow); border-radius: 7px; background: rgba(254,188,46,0.16); }
.btn-bottom-highlight { position: absolute; left: 44%; top: 47%; width: 12%; height: 32%; border: 1.5px dashed var(--mac-green); border-radius: 6px; background: rgba(40,200,64,0.16); }
.btn-badge-group { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.btn-badge { padding: 10px 18px; border-radius: 12px; text-align: center; min-width: 88px; }
.btn-badge--total { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
.btn-badge--custom { background: rgba(254,188,46,0.28); border: 1.5px solid var(--mac-yellow); }
.btn-badge-num { display: block; font-family: var(--font-heading); font-size: 1.85rem; font-weight: 800; line-height: 1; }
.btn-badge--total .btn-badge-num { color: #ffffff; }
.btn-badge--custom .btn-badge-num { color: #ffffff; }
.btn-badge-label { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.4px; margin-top: 4px; }
.btn-badge--total .btn-badge-label { color: rgba(255,255,255,0.82); }
.btn-badge--custom .btn-badge-label { color: #ffffff; }
.btn-visual-label { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 0.64rem; font-weight: 700; letter-spacing: 3px; color: rgba(255,255,255,0.6); white-space: nowrap; margin: 0; }

.feature-label { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; text-transform: none; margin-bottom: 12px; color: var(--muted); display: block; }
.feature-label::before { content: none; }
.label-blue, .label-green, .label-orange, .label-purple { color: var(--muted); }

.feature-title { font-family: var(--font-heading); font-size: clamp(1.55rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.32; letter-spacing: -0.015em; color: var(--dark); margin-bottom: 20px; }
.feature-desc { font-size: 0.975rem; color: var(--text-mid); line-height: 1.9; margin-bottom: 24px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.925rem; color: var(--text); line-height: 1.6; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* App switching demo */
.feature-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; padding: 16px 20px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border); }
.app-tag { font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: var(--white); border: 1px solid var(--border); color: var(--text-mid); }
.app-tag.app-active { background: var(--purple); color: var(--white); border-color: var(--purple); }
.app-arrow { color: var(--muted); font-size: 0.75rem; }

/* Metric highlight */
.feature-metric { display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 24px; background: var(--purple-tint); border-left: 3px solid var(--purple); border-radius: 0 var(--radius) var(--radius) 0; }
.metric-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--purple); line-height: 1; }
.metric-unit { font-size: 1rem; color: var(--text-mid); }
.metric-label { font-size: 0.82rem; color: var(--purple); font-weight: 500; }
.feature-metric--red { background: rgba(255,95,87,0.09); border-left-color: var(--mac-red); }
.feature-metric--red .metric-num, .feature-metric--red .metric-label { color: var(--mac-red-text); }
.feature-metric--yellow { background: rgba(254,188,46,0.14); border-left-color: var(--mac-yellow); }
.feature-metric--yellow .metric-num, .feature-metric--yellow .metric-label { color: var(--mac-yellow-text); }
.feature-note { font-size: 0.8rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

/* Compare table */
.compare-table { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 24px; }
.compare-row { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: none; }
.compare-row > span { padding: 12px 16px; font-size: 0.875rem; color: var(--text-mid); border-right: 1px solid var(--border); }
.compare-row > span:last-child { border-right: none; }
.compare-row--head { background: var(--bg-alt); }
.compare-row--head > span { font-weight: 700; color: var(--dark); }
.compare-row:not(.compare-row--head):nth-child(even) > span { background: var(--bg-alt); }
.good { color: var(--green) !important; font-weight: 600 !important; }
.bad  { color: var(--red) !important; }

/* =====================================================
   IMPACT
   ===================================================== */
.impact { padding: 100px 0; background: var(--bg-alt); }
.impact .section-desc { margin-bottom: 48px; }
.impact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }

.impact-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.impact-before-after { display: flex; align-items: stretch; }
.impact-col { flex: 1; padding: 28px 24px; }
.impact-before { background: var(--bg-alt); border-right: 1px solid var(--border); }
.impact-after  { background: var(--purple-tint); }
.col-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; margin-bottom: 20px; }
.impact-after .col-label { color: var(--purple); }
.impact-arrow { display: flex; align-items: center; padding: 0 12px; font-size: 1.5rem; color: var(--purple); background: var(--bg-alt); font-weight: 700; }
.time-block { display: flex; flex-direction: column; margin-bottom: 20px; }
.time-val { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: var(--muted); line-height: 1; margin-bottom: 4px; }
.time-val small { font-size: 0.9rem; }
.time-val.accent { color: var(--purple); }
.time-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.impact-total { background: var(--dark); color: var(--white); padding: 20px 28px; display: flex; flex-direction: column; gap: 4px; }
.total-label { font-size: 0.72rem; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; }
.total-val { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--white); }
.total-sub { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.55); }
.total-money { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.total-money strong { color: var(--purple-light); }

.impact-usecase { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 32px 28px; box-shadow: var(--shadow); }
.impact-usecase h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 24px; color: var(--dark); letter-spacing: -0.01em; }
.usecase-list { display: flex; flex-direction: column; gap: 20px; }
.usecase-item { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.usecase-item:last-child { border-bottom: none; padding-bottom: 0; }
.usecase-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.usecase-item strong { display: block; font-size: 0.925rem; color: var(--dark); margin-bottom: 4px; }
.usecase-item p { font-size: 0.845rem; color: var(--text-mid); line-height: 1.7; }

/* =====================================================
   SOFTWARE
   ===================================================== */
.software { padding: 0; }
.software-bg { background: var(--dark); padding: 100px 0; }
.software-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.software-bg .section-label { color: var(--purple-light); }
.software-bg .section-title { color: var(--white); }
.software-desc { font-size: 0.975rem; color: rgba(255,255,255,0.55); line-height: 1.9; margin-bottom: 32px; }
.software-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.software-list li { display: flex; align-items: flex-start; gap: 14px; }
.sw-check { width: 22px; height: 22px; background: var(--purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--white); flex-shrink: 0; margin-top: 2px; }
.software-list li strong { display: block; font-size: 0.925rem; color: var(--white); margin-bottom: 3px; }
.software-list li p { font-size: 0.845rem; color: rgba(255,255,255,0.45); line-height: 1.6; }
.screen-wrap { border-radius: 10px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08); }
.app-img { width: 100%; height: auto; display: block; }

/* =====================================================
   SPECS
   ===================================================== */
.specs { padding: 100px 0; background: var(--white); }
.specs-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); margin-top: 40px; }
.specs-table { width: 100%; border-collapse: collapse; background: var(--white); }
.specs-table th { background: var(--bg-alt); padding: 14px 20px; font-size: 0.82rem; font-weight: 700; color: var(--text-mid); text-align: left; border-bottom: 1px solid var(--border); }
.specs-table td { padding: 16px 20px; font-size: 0.925rem; color: var(--text-mid); border-bottom: 1px solid var(--border); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover td { background: var(--bg-alt); }
.specs-table td:first-child { font-weight: 500; color: var(--dark); }
.specs-table td strong { color: var(--dark); }
.spec-note { font-size: 0.8rem; color: var(--muted); line-height: 1.7; margin-top: 16px; padding: 0 4px; }

/* =====================================================
   CTA
   ===================================================== */
.cta {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.15)),
    linear-gradient(135deg, #FF5F57 0%, #FEBC2E 50%, #28C840 100%);
  padding: 100px 0;
  text-align: center;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.28; letter-spacing: -0.015em; margin-bottom: 20px; }
.cta-sub { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.9; margin-bottom: 28px; }
.cta-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.ctabadge { font-size: 0.82rem; color: rgba(255,255,255,0.92); padding: 6px 16px; border: 1px solid rgba(255,255,255,0.35); border-radius: 100px; background: rgba(255,255,255,0.12); }
.cta-note { margin-top: 24px; font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.8; }

/* =====================================================
   Q&A
   ===================================================== */
.qa { padding: 100px 0; background: var(--bg-alt); }
.qa .section-title { margin-bottom: 40px; }
.qa-list { display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.qa-item { border: 1px solid var(--border); border-bottom: none; background: var(--white); border-radius: 0; }
.qa-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.qa-item:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.qa-item[open] { border-color: var(--purple); }
.qa-item[open] + .qa-item { border-top-color: var(--purple); }
.qa-question { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--dark); user-select: none; transition: color var(--transition), background var(--transition); }
.qa-question::-webkit-details-marker { display: none; }
.qa-question::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--purple); flex-shrink: 0; line-height: 1; }
.qa-item[open] .qa-question::after { content: '×'; }
.qa-question:hover { color: var(--purple); background: var(--purple-tint); }
.qa-answer { padding: 0 24px 20px; }
.qa-answer p { font-size: 0.925rem; color: var(--text-mid); line-height: 1.9; border-left: 3px solid var(--purple); padding-left: 16px; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact { padding: 100px 0; background: var(--white); border-top: 1px solid var(--border); }
.contact .section-title { margin-bottom: 12px; }
.contact-desc { font-size: 0.975rem; color: var(--text-mid); margin-bottom: 48px; line-height: 1.8; }
.contact-form { max-width: 680px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.form-input, .form-select, .form-textarea {
  background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; color: var(--text); font-family: var(--font); font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none; width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-tint); background: var(--white);
}
.form-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; background-color: var(--bg-alt);
}
.form-select:focus { background-color: var(--white); }
.form-select option { background: var(--white); color: var(--text); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.form-submit {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  background: var(--dark); color: var(--white); border: none; border-radius: 100px;
  padding: 14px 40px; font-family: var(--font); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: all var(--transition);
}
.form-submit:hover { background: var(--purple); transform: translateY(-2px); }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--dark); padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-logo { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; color: var(--white); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .why-grid      { grid-template-columns: 1fr 1fr; }
  .feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .feature-row--alt .feature-inner { direction: ltr; }
  .impact-grid   { grid-template-columns: 1fr; }
  .software-inner{ grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .hero { padding: 76px 20px 0; }
  .hero-title  { font-size: 2.4rem; }
  .hero-sub    { font-size: 1.05rem; }
  .hero-visual { padding: 32px 16px 0; }
  .why-grid    { grid-template-columns: 1fr; }
  .stat        { padding: 16px 24px; }
  .stat-divider{ display: none; }
  .compare-table { font-size: 0.78rem; }
  .impact-before-after { flex-direction: column; }
  .impact-arrow { padding: 10px 0; justify-content: center; font-size: 0; }
  .impact-arrow::before { content: "↓"; font-size: 1.5rem; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(251,251,253,0.98); flex-direction: column; padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
  .qa { padding: 80px 0; }
  .qa-question { padding: 16px 20px; font-size: 0.9rem; }
  .qa-answer { padding: 0 20px 16px; }
  .contact { padding: 80px 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

/* 数字の帯：4項目をPCで1段に収める */
@media (min-width: 900px) {
  .stats-inner { max-width: 1100px; flex-wrap: nowrap; }
  .stat { padding: 12px 32px; flex: 1 1 0; min-width: 0; text-align: center; }
}

/* スマホではスペック表を1項目ずつのカード型にする */
@media (max-width: 600px) {
  .specs-table thead { display: none; }
  .specs-table, .specs-table tbody, .specs-table tr, .specs-table td { display: block; width: 100%; }
  .specs-table tr { padding: 14px 18px; border-bottom: 1px solid var(--border); }
  .specs-table tr:last-child { border-bottom: none; }
  .specs-table td, .specs-table tr:last-child td { padding: 0; border: none; background: none; }
  .specs-table tr:hover td { background: none; }
  .specs-table td:first-child { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted, var(--text-light)); margin-bottom: 4px; }
  .specs-table td:nth-child(2) { font-size: 1rem; margin-bottom: 4px; }
  .specs-table td:nth-child(3) { font-size: 0.82rem; }
}

/* 日本語を言葉のまとまりで改行する（未対応のブラウザでは従来どおり） */
body { word-break: auto-phrase; line-break: strict; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
