/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 色は css/theme.css がまとめて持っている（黒地と白地の両方）。
   ★以前はここにも同じ意味の色があり、#ff3b3b と #ef4444 の2つの赤が
     ページごとに混ざっていた。theme.css の --red に寄せて1つにしてある。 */
:root {
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  /* ★ページ内リンクで飛んだとき、見出しが固定ヘッダー(64px)の下に潜らないようにする。
     これまでスマホ幅(720px以下)にしか指定が無く、パソコンでは毎回隠れていた。 */
  scroll-padding-top: 84px;
}
/* 動きを減らす設定にしている人には、勝手にスクロールを滑らせない。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  /* Windows で日本語がばらけないようにする。
     'Segoe UI' は欧文だけ、日本語は 'Yu Gothic UI' が受ける（Windows 自身と同じ組み合わせ）。
     以前は Mac 専用の指定が先頭で、Windows では欧文と日本語で別々の書体になっていた。 */
  font-family: 'Segoe UI', 'Yu Gothic UI', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* キーボードで辿っている人に、いまどこにいるかを見せる。
   :focus ではなく :focus-visible なので、マウスで押したときには出ない。 */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--red-strong);
  /* ★赤い面の上は、地が黒でも白でも白い文字のまま。
     --text-strong にすると、白地で黒い文字が赤いボタンに載る（3.38:1）。 */
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--red-strong); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-white {
  background: var(--text-strong);
  color: var(--bg2);
}
.btn-white:hover { background: var(--text-2); transform: translateY(-1px); }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 10px; }
.btn-full { width: 100%; text-align: center; display: block; }

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-blur);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-strong);
}
.logo-icon { font-size: 22px; }
.logo-accent { color: var(--red); }
.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.header-cta { font-size: 14px; padding: 10px 20px; }
/* ヘッダー右側（ナビ＋ログイン＋CTA）。PCでは横並び、スマホではハンバーガーで開くドロップダウン。 */
.header-menu { display: flex; align-items: center; gap: 20px; margin-left: auto; }

/* 言語の切り替え（JA / EN）。目立たせず、どのページでもヘッダーの同じ位置に出す。 */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-opt {
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--text-muted); padding: 6px 6px; min-height: 24px;
  transition: color .15s;
}
.lang-opt:hover { color: var(--text); }
.lang-opt.active { color: var(--red-2); }
.lang-sep { color: var(--border); font-size: 12px; }
.header-menu .nav { margin-left: 0; }
/* ハンバーガーボタン（PCでは非表示、スマホで表示） */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; margin-left: auto; padding: 8px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,59,59,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,59,59,0.12);
  color: var(--red);
  border: 1px solid rgba(255,59,59,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--red-2), var(--red-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 760px;   /* 文が長くなったので広げた。540pxだと行がガタつく */
  margin: 0 auto 40px;
  line-height: 1.9;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
/* 3つの安心材料。1つの項目が途中で折れないよう、項目ごとに塊にして並べる。
   狭い画面では折り返して2行になるが、折れるのは項目と項目のあいだだけ。 */
.hero-assure {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}
.hero-assure span { white-space: nowrap; }

.hero-browsers {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.browser-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 問題提起 ===== */
.problem { padding: 88px 0; background: var(--bg2); }
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.problem-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  /* 上に細い赤の線を1本。4枚が同じ調子で並ぶと、どこが1枚の区切りか
     読み取りにくかった。機能カードの見出しと同じ作法にそろえる。 */
  border-top: 2px solid rgba(255,59,59,0.35);
  /* ★中央揃えをやめる。3行あると最後の行に2〜3文字だけが取り残されて、
     4枚並んだときに行末がバラバラに見える。左揃えなら行頭が縦に揃う。 */
  text-align: left;
  display: flex;
  align-items: center;   /* 文の量が違うので、高さを揃えたうえで中央に置く */
}
.problem-card p { color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.problem-card strong { color: var(--text); }
.problem-solution {
  padding: 28px 32px;
  background: rgba(255,59,59,0.05);
  border: 1px solid rgba(255,59,59,0.2);
  border-radius: var(--radius);
}
/* ★中央揃えをやめる。4文ぶんの長さがあるのに1行が画面いっぱいまで伸びていて、
   目が次の行の頭を見つけられなかった。行の長さを抑えて左に揃える。 */
.solution-text {
  font-size: 17px; color: var(--text); line-height: 1.9;
  max-width: 46em; margin: 0 auto; text-align: left;
}
.solution-text strong { color: var(--red); }

/* ===== セクション共通 ===== */
.features, .browsers, .pricing, .install, .faq {
  padding: 100px 0;
}
.features { background: var(--bg); }
.browsers { background: var(--bg2); }
.pricing { background: var(--bg); }
.install { background: var(--bg2); }
.faq { background: var(--bg); }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 60px;
  font-size: 16px;
}

/* ===== 機能グリッド ===== */
/* 機能一覧の上に置く、実際の操作画面の写真 */
/* 写真の大きさ。入れ物いっぱいだと画面を占領して全体が見えないので抑える。
   元の写真が1008px幅なので、720pxなら約7割。文字はまだ読める。 */
.feature-shot { max-width: 600px; margin: 0 auto 48px; }
.feature-shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.feature-shot figcaption {
  margin-top: 12px; text-align: center;
  font-size: 13px; line-height: 1.7; color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  /* ★中身の量がカードごとに違うので、縦に伸ばして高さを揃える。
     揃えないと、行数の少ないカードの下に穴が空いて並びがガタつく。 */
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, background .2s;
}
.feature-card:hover {
  border-color: rgba(255,59,59,0.45);
  background: var(--surface-2);
  transform: translateY(-2px);
}
/* 見出しの頭に細い赤の印を置く。
   同じ灰色の箱が9つ並ぶと、どこからどこまでが1つの機能か分かりにくい。 */
.feature-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 10px;
  padding-left: 12px; position: relative; line-height: 1.5;
}
.feature-card h3::before {
  content: ""; position: absolute; left: 0; top: .28em; bottom: .28em;
  width: 3px; border-radius: 2px; background: var(--red);
}
/* 日本語が「関/係ない」のように語の途中で折れるのを防ぐ。
   対応していないブラウザは、これまでどおりの折り返しになるだけ。 */
body { word-break: auto-phrase; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.75; }

/* ===== ブラウザグリッド ===== */
.browsers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.browser-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  /* ★説明の行数がブラウザごとに違い（Edgeだけ2行）、
     「対応済み」の印だけ1つ下にずれていた。下端に押しつけて揃える。 */
  display: flex;
  flex-direction: column;
}
.browser-logo { margin-bottom: 12px; line-height: 1; }
.browser-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.browser-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.browser-card .badge { margin-top: auto; align-self: center; }
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.badge-available { background: rgba(34,197,94,0.15); color: var(--green-on-tint); border: 1px solid rgba(34,197,94,0.3); }
.badge-coming { background: rgba(251,191,36,0.15); color: var(--amber-on-tint); border: 1px solid rgba(251,191,36,0.3); }

/* ===== 料金 ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto 40px;
}
/* ★カードを縦並び(flex)にした副作用で、幅を持たない小物（「スタンダード」の札や
   割引のバッジ、支払い周期の切り替え）が横いっぱいに伸びてしまう。
   これらは文字の幅のままにして、左端に置く。 */
.pricing-standard-tag,
.pricing-save,
.billing-toggle { align-self: flex-start; }

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  /* ★特典の行数がプランごとに違うので、下端のボタンがバラバラの高さに出ていた。
     縦に伸ばして、特典の欄で余りを吸わせる＝ボタンが3枚とも同じ高さに並ぶ。 */
  display: flex;
  flex-direction: column;
}
.pricing-card-featured {
  background: var(--red-card);
  border-color: var(--red-card);
  /* ★赤い面の上の文字は、必ず白側にする。
     ここを書かずに body の文字色を継いでいた。黒地では body の文字が明るいので
     たまたま白く見えていたが、白地では body の文字が暗いので、赤の上に
     黒い文字が乗る（実測 対比 2.62。読めない）。
     「地の色に関係なく、この面の上は白」と決め打つのが正しい。 */
  color: var(--on-accent);
}
.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  /* 赤いカードの上に載る札。地の色ではなくカードの色が背景なので、
     --text-strong（白地では黒くなる）ではなく白で固定する。 */
  background: var(--on-accent);
  color: var(--red-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
}
.pricing-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-accent-85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.pricing-card:not(.pricing-card-featured) .pricing-label { color: var(--text-muted); }
.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}
.price-amount {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}
.price-period {
  font-size: 16px;
  color: var(--on-accent-85);
  margin-bottom: 6px;
}
.price-strike {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-accent-45);
  text-decoration: line-through;
  margin-bottom: 8px;
}
.pricing-card:not(.pricing-card-featured) .price-strike { color: var(--text-muted); }
.pricing-save {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-on-tint);
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 999px;
  padding: 2px 10px;
}
.pricing-standard-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--tint-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}
.pricing-card:not(.pricing-card-featured) .price-period { color: var(--text-muted); }
.pricing-annual {
  font-size: 13px;
  color: var(--on-accent-85);
  margin-bottom: 28px;
}
.pricing-card:not(.pricing-card-featured) .pricing-annual { color: var(--text-muted); }
.billing-toggle {
  display: inline-flex;
  background: var(--tint-soft);
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 16px;
}
.billing-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.billing-toggle-btn.active {
  background: var(--red-strong);
  color: var(--on-accent);
}
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;            /* 余りをここで吸って、ボタンを下端で揃える */
}
.pricing-features li { font-size: 14px; }
/* 赤い面の上の注記。0.5 だと赤地でほとんど読めなかった。 */
.pricing-note {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--on-accent-85);
}
.pricing-card:not(.pricing-card-featured) .pricing-note { color: var(--text-muted); }
.pricing-guarantee {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}
.pricing-guarantee span { font-size: 24px; }

/* ===== 安心してお支払いいただけます =====
   料金の直後。カード入力の手前で不安を消すための区画。 */
.trust {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg3);
  padding: 28px;
}
.trust-head { text-align: center; margin-bottom: 22px; }
.trust-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.trust-lead { font-size: 14px; color: var(--text-muted); }
.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
  padding: 0;
}
.trust-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.trust-ico { width: 22px; height: 22px; color: var(--green-2); margin-top: 2px; }
.trust-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 5px;
  line-height: 1.5;
}
.trust-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.85; }
.trust-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.9;
}
.trust-note a { color: var(--text-3); text-decoration: underline; }
.trust-note a:hover { color: var(--red-2); }
@media (max-width: 720px) {
  .trust { padding: 22px 18px; }
  .trust-list { grid-template-columns: 1fr; gap: 18px; }
}

/* ===== ステップ ===== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  /* ★中央揃えをやめる。中央揃えの日本語は行の左端も右端も揃わないので、
     3〜4行になると急に読みにくくなる。ここは説明が4行あった。 */
  text-align: left;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-number {
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.step-content { flex: 1; min-width: 0; }
.step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.step-content p { color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.step-arrow {
  font-size: 22px;
  /* ★枠線と同じ色にしていたので 1.38:1 しかなく、実質見えていなかった。
     飾りとはいえ「手順が続く」ことを示す矢印なので、見える濃さにする。 */
  color: var(--text-faint);
  padding-top: 6px;
}

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
/* ★「押すと開く」ことが見た目から分からなかった。＋／−の印を右端に置く。
   印は装飾なので読み上げからは外す（質問文だけが読まれる）。 */
.faq-question {
  width: 100%;
  background: var(--bg2);
  color: var(--text);
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1.6;
}
.faq-question::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--text-muted), var(--text-muted)) center/13px 2px no-repeat,
    linear-gradient(var(--text-muted), var(--text-muted)) center/2px 13px no-repeat;
  transition: transform .2s, background-size .2s;
}
.faq-item.open .faq-question::after {
  /* 縦棒を消して「−」にする */
  background:
    linear-gradient(var(--red), var(--red)) center/13px 2px no-repeat;
}
.faq-question:hover { background: var(--bg3); }
.faq-item.open .faq-question { background: var(--bg3); }
.faq-answer {
  display: none;
  padding: 16px 24px;
  background: var(--bg3);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-answer { display: block; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--hero-tint), var(--bg));
  border-top: 1px solid rgba(255,59,59,0.2);
  border-bottom: 1px solid rgba(255,59,59,0.2);
  padding: 100px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.cta-section p { color: var(--text-muted); margin-bottom: 36px; font-size: 16px; }

/* ===== フッター ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 800; margin-bottom: 24px; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 12px; }

/* ===== 注文最終確認モーダル ===== */
.oc-modal {
  display: none; position: fixed; inset: 0;
  background: var(--overlay); z-index: 200;
  align-items: center; justify-content: center; padding: 20px;
}
.oc-modal.open { display: flex; }
.oc-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 26px; width: 420px; max-width: 100%;
  display: flex; flex-direction: column; gap: 14px;
}
.oc-title { font-size: 17px; font-weight: 700; }
.oc-table { display: flex; flex-direction: column; gap: 10px; }
.oc-row { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.oc-row:last-child { border-bottom: none; padding-bottom: 0; }
.oc-label { font-size: 11px; color: var(--text-muted); }
.oc-value { font-size: 13px; color: var(--text); line-height: 1.6; }
.oc-btns { display: flex; gap: 8px; margin-top: 4px; }
.oc-cancel {
  flex: 1; background: var(--bg3); color: var(--text-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.oc-confirm {
  flex: 1; background: var(--red-strong); color: var(--on-accent); border: none;
  border-radius: 8px; padding: 12px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.oc-confirm:disabled { opacity: 0.6; cursor: default; }


/* ===== スマホ用の常駐バー ===== */
/* ★このページは縦に長い。ヒーローのボタンを通り過ぎると、
   料金の欄までスクロールしない限り「試す」入口が1つも無くなる。
   スマホでは画面の下に置いておく。
   ・ヒーローを過ぎてから出す（最初から出すと1画面目を狭めるだけ）
   ・料金の欄が見えているあいだは引っ込める（同じボタンが二重に出る）
   パソコンではヘッダーの「今すぐ始める」が常に見えているので出さない。 */
.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 12px;
  align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg-blur-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .22s ease;
}
.buy-bar.show { transform: translateY(0); }
.buy-bar-price { font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.buy-bar-price b { display: block; color: var(--text); font-size: 15px; font-weight: 800; }
.buy-bar .btn { flex: 1; padding: 13px 16px; font-size: 15px; text-align: center; }
@media (max-width: 720px) { .buy-bar { display: flex; } }
/* バーの下に本文が隠れないよう、末尾に余白を足す */
@media (max-width: 720px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ===== レスポンシブ ===== */

/* タブレット・小型ノート */
@media (max-width: 900px) {
  .header .container { gap: 16px; }
  .nav { gap: 18px; }
  .features, .browsers, .pricing, .install, .faq, .cta-section { padding: 72px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .browsers-grid { grid-template-columns: repeat(3, 1fr); }
}

/* スマートフォン */
@media (max-width: 720px) {
  /* アンカー移動時に固定ヘッダーへ潜り込まないようにする */
  section[id] { scroll-margin-top: 60px; }

  .container { padding: 0 18px; }

  /* ── ヘッダー：ハンバーガー＋ドロップダウン ── */
  .header .container { height: 56px; gap: 12px; }
  .logo { font-size: 17px; }
  .logo svg { width: 24px; height: 24px; }
  .nav-toggle { display: flex; }
  .header-menu {
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    margin-left: 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    background: var(--bg-blur-2);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 56px); overflow-y: auto;
    display: none;
  }
  .header-menu.open { display: flex; }
  .header-menu .nav { flex-direction: column; gap: 0; margin-left: 0; }
  /* 狭い画面ではメニューが縦積みになるので、切り替えは横並びのまま左寄せにする。 */
  .lang-switch { justify-content: flex-start; padding: 10px 0 4px; }
  .lang-opt { font-size: 15px; padding: 8px 8px; }
  .header-menu .nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .header-menu .btn { width: 100%; text-align: center; }
  .header-menu .header-login { margin-top: 10px; }

  /* ── セクション余白を圧縮（スマホの縦スクロールを短く） ── */
  .features, .browsers, .pricing, .install, .faq { padding: 56px 0; }
  .cta-section { padding: 64px 0; }
  .problem { padding: 44px 0; }
  .difference { padding: 48px 0; }
  .section-sub { margin-bottom: 36px; font-size: 15px; }

  /* ── ヒーロー ── */
  .hero { padding: 56px 0 48px; }
  .hero-title { margin-bottom: 18px; }
  /* ★6行の中央揃えは読みにくい。左揃えにして行頭を縦に揃える。
     見出しは中央のままでよい（1〜2行なので端のガタつきが出ない）。 */
  .hero-sub { font-size: 15px; margin-bottom: 28px; padding: 0 2px; text-align: left; }
  .hero-assure { font-size: 12.5px; }
  /* PC用の強制改行はスマホでは切り、画面幅なりに自然に折り返す */
  .hero-sub br, .cta-section h2 br { display: none; }
  .hero-buttons { flex-direction: column; gap: 12px; margin-bottom: 32px; }
  .hero-buttons .btn { width: 100%; }
  .btn-lg { padding: 16px 24px; font-size: 16px; }

  /* ── 問題提起：2列に圧縮して縦の長さを抑える ── */
  .problem-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
  .problem-card { padding: 20px 14px; }
  .problem-card p { font-size: 13px; }
  .problem-solution { padding: 18px 16px; }
  .solution-text { font-size: 15px; }

  /* ── 機能・ブラウザ・料金 ── */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 24px 20px; }
  /* ブラウザ対応は3枚を横並びのまま小型化＝一目で「3つとも対応」と分かる */
  .browsers-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .browser-card { padding: 20px 10px; }
  .browser-logo img { width: 36px; height: 36px; }
  .browser-card h3 { font-size: 13px; }
  .browser-card p { display: none; }
  .badge { font-size: 10px; padding: 3px 9px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-card { padding: 28px 22px; }
  .price-amount { font-size: 40px; }
  .pricing-features { margin-bottom: 22px; }
  .pricing-guarantee { align-items: flex-start; text-align: left; }

  /* ── 差別化セクション ── */
  .diff-col { padding: 22px 18px; }

  /* ── ステップ ── */
  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: stretch; gap: 22px; }
  .step { max-width: none; width: 100%; }

  /* ── FAQ：タップ領域を確保 ── */
  .faq-question { padding: 18px; font-size: 14.5px; }
  .faq-answer { padding: 16px 18px; }

  /* ── 注文確認モーダル：下から出す＋ボタン縦積みで誤タップ防止 ── */
  .oc-modal { padding: 14px; align-items: flex-end; }
  .oc-box {
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
    max-height: calc(100vh - 28px); overflow-y: auto; border-radius: 16px;
  }
  .oc-btns { flex-direction: column-reverse; gap: 10px; }
  .oc-cancel, .oc-confirm { padding: 15px; font-size: 14px; }

  /* ── フッター（ホームバー分の余白を確保） ── */
  .footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
  .footer-links { gap: 14px 20px; }
}

/* 小型スマートフォン（iPhone SE 等） */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .problem-cards { grid-template-columns: 1fr; }
  .logo { font-size: 16px; }
  .price-amount { font-size: 36px; }
  .browser-card h3 { font-size: 12px; }
}

/* ===== 違い（差別化）===== */
.difference { padding: 72px 0; background: var(--bg2); }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.diff-col { border-radius: var(--radius-lg); padding: 28px 26px; }
.diff-col.plain { background: var(--bg3); border: 1px solid var(--border); }
.diff-col.ours { background: rgba(255,59,59,0.06); border: 1px solid rgba(255,59,59,0.35); }
.diff-label { font-size: 13px; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 18px; }
.diff-col.plain .diff-label { color: var(--text-muted); }
.diff-col.ours .diff-label { color: var(--red); }
.diff-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.diff-list li { font-size: 14px; line-height: 1.6; color: var(--text); font-weight: 600; }
.diff-list li span { display: block; color: var(--text-muted); font-size: 13px; margin-top: 3px; font-weight: 400; }
@media (max-width: 720px) { .diff-grid { grid-template-columns: 1fr; } }


/* 法務ページの断り書き。英語のときだけ中身が入るので、空なら表示しない。 */
.legal-notice { font-size: 13px; line-height: 1.7; color: var(--text-muted);
  border-left: 3px solid var(--red-2); background: rgba(255,59,59,.06);
  padding: 10px 14px; margin: 0 0 24px; border-radius: 0 6px 6px 0; }
.legal-notice:empty { display: none; }
