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

:root {
  --red: #ff3b3b;
  --red-dark: #cc0000;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

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;
}

/* ===== ボタン ===== */
.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);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); 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: #fff;
  color: #111;
}
.btn-white:hover { background: #f0f0f0; 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: rgba(10,10,10,0.9);
  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(--white);
}
.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: #ff3b3b; }
.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, #ff3b3b, #ff7b7b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.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: 60px 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: 28px 24px;
  text-align: center;
}
.problem-icon { font-size: 32px; margin-bottom: 12px; }
.problem-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.problem-card strong { color: var(--text); }
.problem-solution {
  text-align: center;
  padding: 24px;
  background: rgba(255,59,59,0.05);
  border: 1px solid rgba(255,59,59,0.2);
  border-radius: var(--radius);
}
.solution-text { font-size: 18px; color: var(--text); }
.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;
}

/* ===== 機能グリッド ===== */
.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: 32px 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(255,59,59,0.4); }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== ブラウザグリッド ===== */
.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;
}
.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; }
.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: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-coming { background: rgba(251,191,36,0.15); color: #fbbf24; 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;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.pricing-card-featured {
  background: var(--red);
  border-color: var(--red);
}
.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
}
.pricing-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  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: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.price-strike {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.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: #22c55e;
  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: rgba(255,255,255,0.06);
  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: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.pricing-card:not(.pricing-card-featured) .pricing-annual { color: var(--text-muted); }
.billing-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  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);
  color: #fff;
}
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li { font-size: 14px; }
.pricing-note {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.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; }

/* ===== ステップ ===== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
}
.step-number {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-content p { color: var(--text-muted); font-size: 14px; }
.step-arrow {
  font-size: 28px;
  color: var(--text-muted);
  padding-top: 14px;
}

/* ===== 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;
}
.faq-question:hover { 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, #1a0000, #0a0a0a);
  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: rgba(0,0,0,0.75); 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: #aaa; 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); color: #fff; 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; }

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

/* タブレット・小型ノート */
@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: rgba(10,10,10,0.98);
    -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; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; padding: 0 4px; }
  /* 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-icon { font-size: 26px; margin-bottom: 8px; }
  .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: center; gap: 28px; }
  .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: #a1a1aa;
  border-left: 3px solid #ff3b3b; background: rgba(255,59,59,.06);
  padding: 10px 14px; margin: 0 0 24px; border-radius: 0 6px 6px 0; }
.legal-notice:empty { display: none; }
