/* LP（トップ / と広告用 /demo/）の共通スタイル。両ページの <head> から読み込む */
/* ===== Font (Windows 游ゴシック対策トリック) ===== */
@font-face {
  font-family: AdjustedYuGothic;
  font-weight: 400;
  src: local("Yu Gothic Medium");
}
@font-face {
  font-family: AdjustedYuGothic;
  font-weight: 700;
  src: local("Yu Gothic Bold");
}

/* ===== Design Tokens ===== */
:root {
  --text: #23221e;
  --text-sub: #706d65;
  --bg: #f8f7f6;         /* Stone01 */
  --surface: #ffffff;
  --border: #d6d3d0;
  --primary: #0077c7;    /* 操作・ボタン */
  --primary-dark: #005fa0;
  --link: #0071c1;
  --accent: #ff9900;     /* 注目 */
  --brand: #00c4cc;      /* ロゴ・図版のみ */
  --pink: #ff4979;       /* ブランドピンク（限定アクセント） */
  --laurel: #c39a45;     /* 実績エンブレムの月桂樹のみ */
  --stone02: #edebe8;
  --dark: #23221e;
  --dark-2: #1d1c19;
  --radius: 6px;
  --shadow-card: 0 2px 4px rgba(0,0,0,.1);
  --shadow-float: 0 4px 8px rgba(0,0,0,.15);
  --shadow-soft: 0 1px 2px rgba(35,34,30,.06), 0 8px 24px rgba(35,34,30,.10);
  --surface-grad: linear-gradient(180deg, #ffffff 0%, #fcfbfa 100%);
  --font: AdjustedYuGothic, "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.25; margin: 0; overflow-wrap: break-word; }
p { margin: 0; overflow-wrap: break-word; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 日本語の意味句単位での折返し制御 */
.nb { display: inline-block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,119,199,.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,119,199,.30);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,119,199,.28);
}
.btn-header {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
}
.btn-block { display: flex; width: 100%; }

/* ===== Header ===== */
.site-header {
  /* スマホは非固定(スクロール後のCTA導線は下部固定バーが担う)。
     下部バーの無いPCのみ固定してCTAへの到達性を保つ */
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 600px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 30px; width: auto; display: block; }
.footer-logo img { height: 26px; width: auto; margin: 0 auto 10px; opacity: .9; }

/* ===== Section base ===== */
section { padding: 56px 0; }
.sec-white { background: var(--surface); }
.sec-stone { background: var(--bg); }
.sec-head {
  text-align: center;
  margin-bottom: 32px;
}
.sec-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .015em;
}
.sec-head p {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 16px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .12em;
  margin-bottom: 10px;
}
/* ラベル左の短い水平バー */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--pink);
  margin-right: 8px;
  vertical-align: 3px;
}

/* ===== Hero (light / clean) ===== */
.hero {
  position: relative;
  background:
    radial-gradient(110% 85% at 88% -5%, rgba(255,73,121,.05) 0%, rgba(255,73,121,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f8f7f6 100%);
  color: var(--text);
  padding: 44px 0 56px;
  overflow: hidden;
}
/* スタジオの方眼＝ファインドットグリッド（右へ向けてフェードイン） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .45;
  -webkit-mask-image: linear-gradient(105deg, transparent 25%, #000 80%);
  mask-image: linear-gradient(105deg, transparent 25%, #000 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--stone02);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #e5316a; }
.hero h1 {
  font-size: 34px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
}
/* マーカーハイライト（左→右へ塗られる） */
.hero h1 .hl {
  color: var(--text);
  background-image: linear-gradient(transparent 58%, rgba(255,73,121,.28) 58%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: markIn .5s ease .9s forwards;
}
@keyframes markIn { to { background-size: 100% 100%; } }
.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.7;
}
.hero-cta { margin-top: 0; }
.hero-cta .btn { width: 100%; }
.hero-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-sub);
  text-align: center;
}
/* 累計導入店舗数のエンブレム（社会的証明）。CTA の直上に置く。数字の定義と更新ルールは HTML 側のコメント */
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}
.hero-proof .laurel {
  width: 26px;
  height: 56px;
  flex: none;
  fill: var(--laurel);
}
.hero-proof .laurel .stem { fill: none; stroke: var(--laurel); stroke-width: 1.6; stroke-linecap: round; }
.hero-proof .laurel.r { transform: scaleX(-1); }
.hero-proof-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.hero-proof-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-sub);
}
.hero-proof-num {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-proof-num .unit {
  margin-left: 2px;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0;
}
.hero-proof-note { margin-top: 4px; color: var(--text-sub); font-size: 11px; }
/* 縦長カードが横にゆっくり流れる無限カルーセル。端はフェードで馴染ませる */
.hero-visual {
  margin: 28px -20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  animation: heroCardIn .6s ease .5s backwards;
}
.hero-track {
  display: flex;
  width: max-content;
  animation: marqueeX 36s linear infinite;
}
/* 下段（バナー）は逆方向へ */
.hero-track.t2 { margin-top: 12px; animation: marqueeXr 32s linear infinite; }
.hero-visual:hover .hero-track { animation-play-state: paused; }
@keyframes marqueeX { to { transform: translateX(-50%); } }
@keyframes marqueeXr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes heroCardIn { from { opacity: 0; transform: translateY(14px); } }
.hero-actions { margin-top: 24px; }
.hero-card {
  position: relative;
  width: 142px;
  aspect-ratio: 3 / 4;
  margin-right: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(35, 34, 30, .05), 0 8px 20px rgba(35, 34, 30, .08);
  background: var(--stone02);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* 下段のバナーカード（16:9・小さめ） */
.hero-card.bn { width: 172px; aspect-ratio: 16 / 9; }

/* ===== Pain list ===== */
.pain-list {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.pain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow-card);
}
.pain-item .mark {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fdecec;
  color: #d13b3b;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.pain-item p { font-size: 16px; }
.pain-solve {
  text-align: center;
  margin-top: 28px;
  font-size: 20px;
  font-weight: 700;
}
.pain-solve .hl { color: #e5316a; }
.castapp-more { text-align: center; margin-top: 24px; font-weight: 700; }

/* ===== Feature cards (できること) ===== */
/* スマホは2×2、広い画面は横1行。説明文は広い画面のみ表示 */
.feature-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
.feature-card {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.ico-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--stone02);
  margin-bottom: 8px;
}
.ico-chip svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 { font-size: 15px; margin-bottom: 0; }
.feature-card p { display: none; color: var(--text-sub); font-size: 16px; }
@media (min-width: 600px) {
  .feature-grid { gap: 16px; }
  .feature-card { padding: 24px 20px; }
  .ico-chip { width: 52px; height: 52px; margin-bottom: 12px; }
  .ico-chip svg { width: 26px; height: 26px; }
  .feature-card h3 { font-size: 19px; margin-bottom: 8px; }
  .feature-card p { display: block; }
}

/* ===== Steps ===== */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.step .num {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--text-sub); font-size: 15px; }
/* 箱にせずプレーンな中央寄せテキストで添える */
.steps-note {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}
.steps-note .sub { display: block; margin-top: 6px; color: var(--text-sub); font-size: 14px; }

/* ===== How-to video ===== */
.video-lead {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.video-wrap {
  max-width: 760px;
  margin: 16px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #000;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===== Free trial callout ===== */
.trial-callout {
  max-width: 760px;
  margin: 32px auto 0;
  background: #fff7ec;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.trial-callout .lead {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}
.trial-callout .sub {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

/* ===== Compare (最重要) ===== */
.sec-compare {
  background: linear-gradient(180deg, #fff 0%, #fbf6ee 100%);
}
.cmp-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
table.cmp {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.cmp col.c-item { width: 30%; }
.cmp col.c-us { width: 30%; }
.cmp th, .cmp td {
  padding: 9px 6px;
  border-top: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
  overflow-wrap: break-word;
}
.cmp thead th {
  border-top: none;
  background: var(--stone02);
  font-size: 11px;
  font-weight: 700;
  padding: 10px 4px;
  color: var(--text);
}
.cmp thead th.us {
  background: var(--accent);
  color: #23221e;
  font-size: 12px;
}
.cmp tbody th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 8px;
  background: var(--bg);
}
.cmp td.us {
  background: #fff7ec;
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  font-weight: 700;
}
.cmp tbody tr:last-child td.us { border-bottom: 2px solid var(--accent); }
.cmp .g { color: #e5316a; font-size: 19px; font-weight: 700; line-height: 1.1; }
.cmp .n { color: var(--text-sub); font-size: 16px; font-weight: 700; line-height: 1.1; }
.cmp .money { font-size: 12px; font-weight: 700; }
.cmp .money-o { font-size: 11px; color: var(--text); }
.cmp .sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #8a5c17;
  line-height: 1.3;
  margin-top: 2px;
}
@media (min-width: 600px) {
  .cmp th, .cmp td { padding: 12px 10px; }
  .cmp thead th { font-size: 13px; }
  .cmp thead th.us { font-size: 14px; }
  .cmp tbody th { font-size: 14px; }
  .cmp .g { font-size: 22px; }
  .cmp .n { font-size: 18px; }
  .cmp .money { font-size: 15px; }
  .cmp .money-o { font-size: 13px; }
  .cmp .sub { font-size: 12px; }
}
/* 比較表の見出し下の累計導入数（ヒーローのエンブレムと同じ数字） */
.sec-head p.cmp-proof {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.cmp-proof strong { font-size: 22px; color: var(--accent); }
.compare-cap {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ===== Heaven winning patterns ===== */
.win-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}
.win-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.win-card .ico-chip { width: 48px; height: 48px; margin-bottom: 8px; }
.win-card .ico-chip svg { width: 24px; height: 24px; }
.win-card h3 { font-size: 16px; }

/* ===== Pricing ===== */
.price-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}
.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(0,119,199,.12), var(--shadow-soft);
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-amount {
  font-size: 30px;
  font-weight: 700;
  margin: 8px 0 2px;
}
.price-amount .yen { font-size: 18px; }
.price-amount .per { font-size: 14px; color: var(--text-sub); font-weight: 400; }
.price-tax { font-size: 13px; color: var(--text-sub); }
.price-feats {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.price-feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}
.price-feats li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex: none;
}
.price-common {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
}
.price-common span { display: inline-block; margin: 2px 8px; }

/* ===== Support ===== */
.support-lead {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  font-size: 17px;
}
.support-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.support-card .ico-chip { width: 48px; height: 48px; margin-bottom: 8px; }
.support-card .ico-chip svg { width: 24px; height: 24px; }
.support-card h3 { font-size: 18px; margin-bottom: 6px; }
.support-card p { color: var(--text-sub); font-size: 15px; }
.support-reassure {
  max-width: 720px;
  margin: 28px auto 0;
  background: var(--stone02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 16px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;              /* Firefox の三角を消す */
  padding: 18px 48px 18px 20px;
  position: relative;
  font-weight: 700;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-sub);
  border-bottom: 2px solid var(--text-sub);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-sub);
  font-size: 15px;
}

/* ===== Form ===== */
.sec-form { background: var(--dark); color: #fff; }
.sec-form .sec-head h2 { color: #fff; }
.sec-form .sec-head p { color: #cbc9c4; }
/* 申込から使い始めるまで（申込前の不安を消す）。フォームの直前に置く */
.start-flow {
  list-style: none;
  max-width: 480px;
  margin: 0 auto 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  counter-reset: flow;
}
.start-flow li {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.start-flow li::before {
  counter-increment: flow;
  content: counter(flow);
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  font-size: 12px;
  display: grid;
  place-items: center;
}
.start-flow li:not(:last-child)::after {
  content: "→";
  margin-left: 6px;
  color: #8a877f;
  font-weight: 400;
}
@media (max-width: 374px) {
  .start-flow { gap: 4px; }
  .start-flow li { font-size: 12px; gap: 4px; }
  .start-flow li:not(:last-child)::after { margin-left: 4px; }
}
.form-wrap {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface-grad);
  color: var(--text);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 12px 32px rgba(0,0,0,.3);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.field input:focus {
  outline: none;
  border: 2px solid var(--primary);
  padding: 12px 13px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-msg {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.form-msg.error { color: #d13b3b; }
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}
.form-success {
  text-align: center;
  padding: 12px 0;
}
.form-success .big { font-size: 44px; }
.form-success h3 { font-size: 20px; margin: 10px 0 8px; }
.form-success p { color: var(--text-sub); font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ===== Footer ===== */
.site-footer {
  background: var(--dark-2);
  color: #b3b0aa;
  text-align: center;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 13px;
}
.site-footer .footer-reading { margin-bottom: 8px; color: #8f8c86; }
/* 既定の a 色（--link）は暗背景でコントラストが足りないので上書きする */
.site-footer .footer-links { margin-bottom: 10px; }
.site-footer .footer-links a { color: #cbc9c4; }

/* ===== Mobile fixed CTA bar ===== */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(248,247,246,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform .25s ease;
}
.cta-bar.show { transform: translateY(0); }
.cta-bar .btn { width: 100%; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ===== Hero staggered reveal ===== */
.hero-anim { opacity: 0; transform: translateY(14px); animation: heroIn .7s ease forwards; }
.hero-anim.d1 { animation-delay: .05s; }
.hero-anim.d2 { animation-delay: .18s; }
.hero-anim.d3 { animation-delay: .31s; }
.hero-anim.d4 { animation-delay: .44s; }
.hero-anim.d5 { animation-delay: .57s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-anim, .hero-card, .hero-track, .hero-visual { transition: none; animation: none; opacity: 1; transform: none; }
  .hero h1 .hl { animation: none; background-size: 100% 100%; }
  .cta-bar { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ===== Desktop ===== */
@media (min-width: 600px) {
  .win-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  section { padding: 80px 0; }
  .sec-head h2 { font-size: 32px; }
  .hero { padding: 72px 0 88px; }
  .hero .container {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    grid-template-areas:
      "copy visual"
      "actions visual";
    column-gap: 40px;
    row-gap: 0;
    align-items: center;
  }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-actions { grid-area: actions; align-self: start; margin-top: 28px; }
  .hero h1 { font-size: 46px; }
  .hero-sub { font-size: 19px; }
  .hero-cta .btn { width: auto; }
  .hero-note { text-align: left; }
  .hero-proof { justify-content: flex-start; }
  .hero-visual { grid-area: visual; margin: 0; width: 100%; }
  .hero-card { width: 168px; margin-right: 16px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); max-width: 100%; align-items: start; }
  .support-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-bar { display: none; }
}

/* StudioMaker のロゴ（認知のため。暗い背景には白文字の版） */
.footer-logo { display: inline-flex; margin-bottom: 12px; }
.footer-logo img { height: 28px; width: auto; display: block; }
.form-logo { display: block; height: 36px; width: auto; margin: 0 auto 16px; }
