/* Learning Arts ENGLISH - 新LP共通スタイル
 * Source: Server/public/lp/index.html <style> block (TIC-16 LP移植プロジェクト ❶共通基盤)
 */

:root {
  --bg: #FBF5EA;
  --bg-2: #F5ECD9;
  --ink: #221C14;
  --ink-2: #5C4F3F;
  --line: #E6D9BE;
  --paper: #FFFBF2;
  --accent: #E06B4A;
  --accent-ink: #fff;
  --teal: #2D6B68;
  --mustard: #E6A93A;
  --berry: #B4456B;
  --sky: #7FB4C8;
  --shadow: 0 1px 0 rgba(34,28,20,.06), 0 12px 32px -14px rgba(34,28,20,.18);
}
[data-theme="calm"] {
  --bg: #F4F2EC; --bg-2: #ECE8DD; --ink: #1B1F24; --ink-2: #4A5260;
  --line: #D9D3C4; --paper: #FFFFFF; --accent: #2F5D4F; --accent-ink: #fff;
  --teal: #345E8B; --mustard: #B08A3E; --berry: #8B3A5B; --sky: #6B94A8;
}
[data-theme="bright"] {
  --bg: #FFF8E8; --bg-2: #FFECC4; --ink: #1F2A44; --ink-2: #4C5A78;
  --line: #FFD98A; --paper: #FFFFFF; --accent: #FF5A5F; --accent-ink: #fff;
  --teal: #2BB3A6; --mustard: #FFC83D; --berry: #E23E8C; --sky: #55A7F0;
  --shadow: 0 2px 0 rgba(31,42,68,.08), 0 16px 36px -14px rgba(255,90,95,.25);
}
html { scroll-padding-top: 80px; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px; line-height: 1.7; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Fraunces", "Zen Maru Gothic", serif; font-optical-sizing: auto; }
.jp-round { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, rgba(34,28,20,.045) 0 1px, transparent 1px 10px), var(--bg-2);
  border: 1px dashed rgba(34,28,20,.25);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .02em; text-align: center;
  padding: 12px; overflow: hidden;
}
.ph::after{
  content: attr(data-label);
  position: absolute; bottom: 8px; left: 8px;
  background: var(--paper); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--line);
}
.ph > span { opacity: .6; }
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 12px 40px -12px rgba(34,28,20,.22); }
.tweaks-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 300px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.3);
  padding: 16px; font-size: 13px; display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.tweaks-panel .row { margin-bottom: 14px; }
.tweaks-panel label { display:block; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); margin-bottom:6px; }
.seg { display: flex; gap: 4px; background: var(--bg-2); padding: 3px; border-radius: 8px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; cursor: pointer; font: inherit; color: var(--ink-2); font-size: 12px; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-6px) rotate(var(--r,0deg)); } }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(224,107,74,.4); } 50%{ box-shadow: 0 0 0 12px rgba(224,107,74,0); } }
.float-slow { animation: floaty 6s ease-in-out infinite; }
.float-med  { animation: floaty 4.2s ease-in-out infinite; }

/* fade-in on scroll */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .float-slow, .float-med { animation: none; }
}
@media (max-width: 720px) { .hide-mobile { display: none !important; } }

/* ========== Responsive layout utilities ========== */
/* Tablet (≤ 960px) */
@media (max-width: 960px) {
  .resp-2col,
  .resp-1-1-4,
  .resp-char-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .resp-3col { grid-template-columns: repeat(2, 1fr) !important; }
  .resp-4col { grid-template-columns: repeat(2, 1fr) !important; }
  .resp-7col { grid-template-columns: repeat(4, 1fr) !important; }
  .resp-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .resp-episode-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .resp-hero-text { max-width: 100% !important; }
  .resp-hero-photo-wrap { opacity: .35 !important; }
  .resp-hero-photo { max-width: 100% !important; width: 100% !important; object-fit: cover !important; object-position: center right !important; }
  .resp-hero-pad { padding: 56px 24px 72px !important; }
  .resp-section-pad { padding: 80px 24px !important; }
  .resp-char-collage { min-height: 420px !important; }
  .resp-flex-wrap { flex-wrap: wrap !important; }
  .resp-nav-gap { gap: 18px !important; }
  .resp-hero-h1 { font-size: clamp(22px, 3.8vw, 32px) !important; }
  .resp-about-h2 { font-size: clamp(30px, 7vw, 44px) !important; }
  .resp-section-h2 { font-size: clamp(28px, 6vw, 42px) !important; }
  .resp-trust-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .resp-trust-hero { grid-column: 1 / -1 !important; }
}
/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .resp-3col,
  .resp-4col { grid-template-columns: 1fr !important; }
  .resp-7col { grid-template-columns: repeat(2, 1fr) !important; }
  .resp-episode-grid { grid-template-columns: 1fr !important; }
  .resp-section-pad { padding: 64px 20px !important; }
  .resp-hero-pad { padding: 48px 20px 60px !important; }
  .resp-hero-h1 { font-size: clamp(20px, 4.8vw, 26px) !important; }
  .resp-hide-sm { display: none !important; }
  .resp-stack-sm { flex-direction: column !important; align-items: stretch !important; }
  .resp-stack-sm > * { width: 100%; }
  .resp-pricing-grid { grid-template-columns: 1fr !important; }
  .resp-price-hero { font-size: 48px !important; }
  .resp-char-collage { min-height: 360px !important; }
  .resp-card-pad { padding: 20px !important; }
  .resp-about-card { grid-template-columns: 48px 1fr !important; gap: 16px !important; }
  .resp-nav-cta-small { padding: 8px 14px !important; font-size: 12px !important; }
  .resp-logo-sm { height: 48px !important; }
  .resp-feat-row { gap: 10px 14px !important; font-size: 12px !important; }
  .resp-footer-grid { grid-template-columns: 1fr !important; }
  .resp-footer-bot { flex-direction: column !important; gap: 8px; text-align: center; }
  .resp-faq-body { padding: 0 20px 18px 20px !important; }
  .resp-trust-grid { grid-template-columns: 1fr !important; }
  .resp-trust-hero { grid-column: 1 !important; }
}

/* ========== LPレスポンシブ改善 (2026-07 / ボス承認A案 ③④) ==========
   PC(≥641px)は無変更。モバイル幅(≤640px)のみに適用。 */
@media (max-width: 640px) {
  /* ④ キャラ(Liz & Telly)のコラージュ: 画像を縮小し重なり・窮屈さを解消 */
  .resp-char-collage { min-height: 320px !important; }
  .resp-char-collage .float-slow { left: 16px !important; top: 24px !important; }
  .resp-char-collage .float-med  { right: 16px !important; bottom: 28px !important; }
  .resp-char-collage .float-slow img { width: 150px !important; height: 150px !important; }
  .resp-char-collage .float-med  img { width: 120px !important; height: 120px !important; }

  /* ③ 見出し・主要ラベルの1文字泣き別れを抑制。
       word-break:auto-phrase = 日本語を文節で改行(Chrome/Edge対応)。
       未対応ブラウザ(Safari等)では従来通りの改行にフォールバックし、悪化しない。
       .serif = LP見出し全般(trustbar/origin/flow/leadmagnet/characters/pricing 等)を一括カバー。 */
  .serif,
  .resp-hero-h1, .resp-about-h2, .resp-section-h2,
  .lp-hero p,
  #learn h3,
  #edu-blog h2, #edu-blog h3,
  #faq .jp-round,
  #free-report li,
  #bridge h2, #bridge p,
  .lp-cta-head { word-break: auto-phrase; }

  /* bridge 見出し・サブ: white-space:nowrap による横はみ出しをスマホで解除して折り返す
     (PCでは nowrap のまま1行表示。スマホのみ折り返しを許可) */
  #bridge h2 span,
  #bridge p span { white-space: normal !important; }
  /* さらにスマホでは文が長く折返しが細切れになるため、見出しを縮小して行数を抑える */
  #bridge h2 { font-size: 20px !important; line-height: 1.5 !important; }

  /* characters の SEASON タブ: 「SEASON 1」等が2行に割れないよう分割禁止 */
  #characters .lp-season-tab { white-space: nowrap; }

  /* trustbar 左の実証見出し: 枠が狭く一語(例「海外経験なしでも」)が入り切らず
     末尾1文字が残るため、スマホでは余白を詰め＋文字を少し縮小して各行を1行に収める */
  .lp-trustbar .resp-2col > div:first-child { padding: 32px 26px !important; }
  .lp-trustbar h3 { font-size: 26px !important; }

  /* --- ボス指示バッチ (2026-07): スマホ幅で見出しを少し縮小し改行位置を整える --- */
  #manifesto h2 { font-size: 26px !important; }
  #origin h2 { font-size: 24px !important; }
  #about .resp-about-h2 { font-size: 26px !important; }
  #learn h2 { font-size: 23px !important; }
  #characters h2 { font-size: 30px !important; }
  /* キャラ紹介の導入本文: 他セクション本文(15px)に合わせフォント・行間を統一 */
  #characters .resp-2col p { font-size: 15px !important; line-height: 1.9 !important; }
  .lp-cta-head { font-size: 20px !important; }
  .lp-cta-sec { padding-left: 20px !important; padding-right: 20px !important; }
  #edu-blog p { font-size: 14px !important; }
  /* trustbar 左hero の説明文（「自然に英語を学習できる」の泣き別れ対策） */
  .lp-trustbar .resp-2col > div:first-child p { font-size: 13px !important; }
  /* pricing 全体の泣き別れ抑制（「始められる。」等） */
  #pricing { word-break: auto-phrase; }
  /* 暗い強調ボックス(bridge/origin/about): 余白を詰め＋本文を縮小して読みやすく。
     word-break はボックス内の全テキストに継承させ、補足文の泣き別れも抑制する */
  .lp-emph-box { padding: 32px 22px !important; word-break: auto-phrase; }
  .lp-emph { font-size: 16px !important; line-height: 1.7 !important; }
}

/* スマホ幅のみ改行する <br class="br-sp">（PC/タブレットでは無効） */
.br-sp { display: none; }
@media (max-width: 640px) { .br-sp { display: inline !important; } }

/* 狭いスマホ(≤420px)専用の微調整 */
@media (max-width: 420px) {
  /* pricing 年間会員「月換算 約1,575円 でリーズナブルに始められる。」を1行に収める */
  #pricing .lp-price-sub { font-size: 12px !important; }
}

/* ========== Sub-page styles (TIC-116) ========== */

/* Page hero header */
.page-hero {
  padding: 80px 32px 56px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: 920px; margin: 0 auto; }
.page-hero__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .25em;
  color: var(--accent); text-transform: uppercase;
}
.page-hero__title {
  font-family: "Fraunces", "Zen Maru Gothic", serif;
  font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.1; margin: 14px 0 12px;
}
.page-hero__lead {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink-2); font-size: 16px; max-width: 720px; margin: 0 0 10px;
}
.page-hero__meta {
  margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-2); letter-spacing: .08em;
}

/* Content shell */
.page-body { padding: 64px 32px 120px; }
.page-body__inner { max-width: 920px; margin: 0 auto; }
.page-body h2 {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: -.005em;
  margin: 56px 0 16px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.page-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.page-body h3 {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px; font-weight: 700;
  margin: 28px 0 10px;
}
.page-body p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.page-body ul, .page-body ol { padding-left: 22px; color: var(--ink-2); font-size: 14.5px; }
.page-body ul li, .page-body ol li { margin-bottom: 6px; }
.page-body strong { color: var(--ink); }

/* Article numbered list */
.article-list { counter-reset: art; list-style: none; padding: 0; }
.article-list > li {
  counter-increment: art;
  padding: 18px 0 6px 56px;
  border-top: 1px dashed var(--line);
  position: relative;
}
.article-list > li:first-child { border-top: 0; }
.article-list > li::before {
  content: counter(art, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-family: "Fraunces", serif;
  font-weight: 600; font-style: italic;
  color: var(--accent); font-size: 28px; letter-spacing: -.02em;
}
.article-list h3 { margin: 0 0 8px; font-size: 17px; }
.article-list .sub-list { padding-left: 20px; margin: 8px 0; }
.article-list .sub-list > li { margin: 6px 0; padding-left: 4px; }
.article-list .sub-list .sub-list { padding-left: 24px; margin: 4px 0; list-style: lower-alpha; }
.article-list b { font-weight: 700; color: var(--ink); }

/* Definition table */
.def-table { width: 100%; border-collapse: collapse; }
.def-table th, .def-table td {
  text-align: left; padding: 18px 16px; vertical-align: top;
  border-top: 1px solid var(--line); font-size: 14.5px;
}
.def-table th {
  width: 220px; font-weight: 700; color: var(--ink);
  font-family: "Zen Maru Gothic", sans-serif;
  background: rgba(245, 236, 217, 0.6); /* fallback */
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
}
.def-table td { color: var(--ink-2); }
.def-table tr:first-child th, .def-table tr:first-child td { border-top: 1px solid var(--ink); }
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: 1px solid var(--line); }

/* Callout */
.callout {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px;
  display: flex; gap: 14px; align-items: flex-start;
  margin: 18px 0;
}
.callout__icon {
  width: 28px; height: 28px; border-radius: 999;
  background: rgba(230, 169, 58, 0.3); /* fallback */
  background: color-mix(in srgb, var(--mustard) 30%, transparent);
  display: grid; place-items: center; font-size: 14px; flex: none;
}
.callout p { margin: 0; font-size: 14px; }

/* TOC */
.toc {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 28px;
  margin: 0 0 40px;
}
.toc__title {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: .25em; color: var(--ink-2);
  text-transform: uppercase; margin: 0 0 12px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc ol li {
  counter-increment: t; display: flex; gap: 14px; align-items: baseline;
  padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px;
}
.toc ol li:first-child { border-top: 0; }
.toc ol li::before {
  content: counter(t, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; color: var(--accent); letter-spacing: .15em;
  min-width: 28px;
}
.toc ol li a { color: var(--ink); text-decoration: none; font-family: "Zen Maru Gothic", sans-serif; font-weight: 600; }
.toc ol li a:hover { color: var(--accent); }

/* Form */
.form-grid { display: grid; gap: 28px; }
.form-row { display: grid; gap: 8px; }
.form-row__label {
  display: flex; gap: 8px; align-items: center;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.form-row__label .req {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  background: var(--accent); color: #fff;
  padding: 2px 6px; border-radius: 4px; letter-spacing: .1em;
}
.form-row__label .opt {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  background: var(--bg-2); color: var(--ink-2);
  padding: 2px 6px; border-radius: 4px; letter-spacing: .1em;
}
.form-row__hint { font-size: 12px; color: var(--ink-2); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-row textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 107, 74, 0.18); /* fallback */
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-submit {
  background: var(--ink); color: var(--bg);
  padding: 16px 32px; border-radius: 999;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; align-self: flex-start;
  display: inline-flex; gap: 10px; align-items: center;
}
.form-submit:hover { background: var(--accent); color: var(--accent-ink); }
.form-consent {
  background: rgba(245, 236, 217, 0.6); /* fallback */
  background: color-mix(in srgb, var(--bg-2) 60%, transparent);
  border-radius: 12px; padding: 16px 18px;
  font-size: 13px; color: var(--ink-2);
}
.form-consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.form-consent input { margin-top: 4px; accent-color: var(--accent); }

/* Responsive: sub-page styles */
@media (max-width: 960px) {
  .page-hero { padding: 56px 24px 40px; }
  .page-body { padding: 48px 24px 96px; }
  .def-table th, .def-table td { display: block; width: 100%; padding: 10px 0; }
  .def-table th { border-top: 1px solid var(--line); padding-top: 18px; }
  .def-table td { border-top: 0; padding-bottom: 18px; }
}
@media (max-width: 640px) {
  .article-list > li { padding-left: 0; padding-top: 48px; }
  .article-list > li::before { top: 18px; left: 0; font-size: 22px; }
}

/* ========== 認証・購入フロー共通スタイル (TIC-117)
   旧 preview/auth/_styles.blade.php から統合。auth/register/subscribe 等の画面で使用。 ========== */

/* lp.css 未対応の input type を補完 (password / checkbox / radio) */
.form-row input[type="password"],
.form-row input[type="email"],
.form-row input[type="text"] { width: 100%; }
/* 入力欄の背景を白に統一（ベージュより視認性が高い） */
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row input[type="password"],
.form-row select,
.form-row textarea { background: #ffffff; }

.form-row input[type="password"] {
    font: inherit; font-size: 15px; color: var(--ink);
    border: 1px solid var(--line); border-radius: 10px;
    padding: 14px 16px;
    outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-row input[type="password"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(224, 107, 74, 0.18);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.auth-card {
    max-width: 480px; margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 10px 28px -16px rgba(0,0,0,.12);
}
.auth-card--wide { max-width: 720px; }
.auth-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 28px; }
.auth-actions .form-submit { align-self: stretch; justify-content: center; }
.auth-links { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; text-align: center; font-size: 13px; }
.auth-links a { color: var(--ink-2); text-decoration: underline; }
.auth-links a:hover { color: var(--accent); }

.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.auth-remember input[type="checkbox"] {
    appearance: auto; -webkit-appearance: auto; -moz-appearance: auto;
    width: 16px; height: 16px;
    accent-color: var(--accent);
    margin: 0; cursor: pointer;
}

/* ボタンの文字色復活 (app.css の button reset に負けないよう button.form-submit で特異性UP) */
button.form-submit, a.form-submit {
    background: var(--ink); color: var(--bg);
    border: 0; padding: 16px 32px; border-radius: 999px;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 700; font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex; gap: 10px; align-items: center; justify-content: center;
}
button.form-submit:hover, a.form-submit:hover {
    background: var(--accent); color: var(--accent-ink);
}

/* ファーストビュー優先のコンパクト hero (login など多用画面向け) */
.page-hero--compact { padding: 36px 32px 20px; }
.page-hero--compact .page-hero__title {
    font-size: clamp(22px, 3vw, 28px);
    margin: 6px 0 6px;
}
.page-hero--compact .page-hero__lead { font-size: 13px; margin: 0; }
.page-body--compact { padding: 24px 32px 60px; }

/* 注意ボックス */
.auth-notice {
    background: rgba(245, 236, 217, 0.6);
    background: color-mix(in srgb, var(--bg-2) 60%, transparent);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 8px;
}
.auth-notice--danger {
    background: rgba(254, 226, 226, .8);
    border: 1px solid #fca5a5;
    color: #b91c1c;
    font-weight: 600;
}
.auth-email-display {
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    color: var(--ink);
    word-break: break-all;
}

/* TOS スクロールエリア (intro / tos_confirm 用) */
.auth-tos-box {
    max-height: 320px;
    overflow-y: auto;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.65;
}

/* 購入フロー進捗表示 (register / verify / intro / plan / thanks 共通)
   auth-card の真上に中央寄せで配置。番号ピル + ラベル + コネクタライン */
.flow-progress {
    display: flex; align-items: center; gap: 6px;
    justify-content: center;
    margin: 0 auto 20px; padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.flow-progress__item {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 12px;
    color: var(--ink-2);
    opacity: .55;
}
.flow-progress__item--active { color: var(--ink); opacity: 1; font-weight: 700; }
.flow-progress__item--done   { color: var(--ink-2); opacity: .85; }
.flow-progress__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 999px;
    background: var(--bg-2);
    color: var(--ink-2);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px; font-weight: 700;
}
.flow-progress__item--active .flow-progress__num {
    background: var(--accent); color: var(--accent-ink);
}
.flow-progress__item--done .flow-progress__num {
    background: var(--ink); color: var(--bg);
}
.flow-progress__connector {
    flex: 0 0 24px;
    height: 1px;
    background: var(--line);
}
@media (max-width: 640px) {
    .flow-progress__connector { flex-basis: 12px; }
    .flow-progress__item span:last-child { display: none; }
    .flow-progress__item--active span:last-child { display: inline; }
}

@media (max-width: 640px) {
    .auth-card { padding: 28px 20px; border-radius: 12px; }
    .page-hero--compact { padding: 28px 24px 16px; }
}

/* EduBlog カード全体をクリック範囲にする（Read More リンクの当たり判定をカードに拡張） */
.lp-stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
}
