/* ============================================================
   山口道場 LP — 誌面調・抑制のきいたエディトリアルデザイン
   モバイルファースト / 明朝主体 / 色数を絞る
   ============================================================ */

:root {
  --paper: #f9f7f2;
  --paper-tint: #efece4;
  --ink: #1e2733;          /* 紺を含んだ濃いインク */
  --ink-muted: #64707e;    /* 冷たみのある淡色 */
  --line: #d8d3c7;
  --accent: #1f3a5c;       /* 深い紺 */
  --accent-deep: #142a41;  /* 最も深い紺（面・フッター・hover） */
  --accent-light: #5f92b3; /* 水色の差し色 */
  --accent-wash: #e9eff4;  /* 冷色の淡い地 */
  --accent-ink: #ffffff;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "BIZ UDMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --measure: 40rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  /* 日本語の禁則処理（行頭に句読点・閉じ括弧が来ない等）を厳格化 */
  line-break: strict;
  word-break: normal;
}

/* 段落・箇条書きは行末の“ぼっち文字”を避ける（対応ブラウザ） */
p, li, dd, dt, blockquote, figcaption, .cheer-comment {
  text-wrap: pretty;
}

/* 見出し類は各行の長さを均す（対応ブラウザ）。1語だけ次行に落ちるのを防ぐ */
h1, h2, h3, .hero-catch, .section-heading, .plan-name, .curriculum-title {
  text-wrap: balance;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

/* ---------- ヘッダー ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  max-width: 60rem;
  margin: 0 auto;
}

.site-brand {
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.header-cta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.45em 1.1em;
  border-radius: 2px;
}

/* ---------- レイアウト ---------- */

main { display: block; }

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 0;
}

main > .section:last-child, .thanks .section, .legal .section { padding-bottom: 4.5rem; }

.section-tinted {
  max-width: none;
  background: var(--accent-wash);
  margin-top: 4.5rem;
  padding: 4rem 1.5rem;
}

.section-tinted > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }

/* 紺地セクション（メリハリ用・白抜き） */
.section-navy {
  max-width: none;
  background: var(--accent-deep);
  color: rgba(255, 255, 255, 0.92);
  margin-top: 4.5rem;
  padding: 4.5rem 1.5rem;
}
.section-navy > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.section-navy .section-heading { color: #fff; }
.section-navy .section-heading::after { background: var(--accent-light); }
.section-navy .section-body { color: rgba(255, 255, 255, 0.9); }
.section-navy a { color: var(--accent-light); }

/* 紺のCTA帯（プラン直前の行動喚起） */
.cta-band {
  background: var(--accent-deep);
  color: #fff;
  margin-top: 4.5rem;
  padding: 3.75rem 1.5rem;
}
.cta-band-inner {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}
.cta-band-heading {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 1.9rem;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--accent);
}

.section-heading::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--accent-light);
  margin-top: 1rem;
}

.section-subheading {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: -1.25rem 0 2rem;
  letter-spacing: 0.15em;
}

.section-body { margin-bottom: 2rem; }
.section-body p + p { margin-top: 1em; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  padding: 0.9em 2.2em;
  border-radius: 2px;
  transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.9; }

.btn-primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); opacity: 1; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-block { display: block; width: 100%; }
.btn-invert { background: #fff; color: var(--accent-deep); border: 1px solid #fff; }
.btn-invert:hover { background: var(--accent-wash); border-color: var(--accent-wash); opacity: 1; }

/* ---------- ヒーロー ---------- */

.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 5rem 1.5rem 0;
  text-align: left;
}

.hero-series {
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--ink-muted);
}

.hero-edition {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: #fff;
  margin-top: 0.9rem;
  display: inline-block;
  background: var(--accent-deep);
  padding: 0.45em 1em;
  border-radius: 2px;
}

.hero-catch {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin: 1.75rem 0;
}

.hero-lead { color: var(--ink); }
.hero-lead p + p { margin-top: 1em; }

.hero .video-frame { margin-top: 2.5rem; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

/* ---------- 動画 ---------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  margin: 2rem auto 0;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* ---------- こんな方へ ---------- */

.audience-list { list-style: none; }

.audience-list li {
  padding: 1.1rem 0 1.1rem 1.75rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.audience-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

.audience-closing { margin-top: 2rem; color: var(--ink); }

/* ---------- カリキュラム ---------- */

.curriculum-list { list-style: none; }

.curriculum-item { padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.curriculum-item:first-child { padding-top: 0; }
.curriculum-item:last-child { border-bottom: none; }

.curriculum-no {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.curriculum-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.8;
  margin: 0.5rem 0 0.9rem;
}

.curriculum-summary { color: var(--ink); font-size: 0.95rem; }

.curriculum-digest { margin-top: 1.5rem; }
.curriculum-digest .video-frame { margin-top: 0; }

.curriculum-digest-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  margin-top: 0.6rem;
  text-align: right;
}

/* ---------- プレビュー ---------- */

.preview-pdf { margin-top: 2rem; }

/* ---------- 提供形式 ---------- */

.format-list { display: grid; gap: 1.75rem; }

.format-item dt {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.format-item dd { color: var(--ink-muted); font-size: 0.95rem; }

.format-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 1px;
}
.format-link:hover { color: var(--accent-deep); }

/* ---------- 価格 ---------- */

.plans { display: grid; gap: 1.5rem; }

.plan-card {
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 3px rgba(20, 42, 65, 0.05);
}

.plan-card-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(20, 42, 65, 0.14);
}

.plan-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.4em 0.95em;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.plan-kind {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
}

.plan-name { font-size: 1.1rem; font-weight: 600; margin: 0.6rem 0 1rem; line-height: 1.8; word-break: keep-all; }

.plan-price { font-size: 1.7rem; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.plan-price-note { font-size: 0.85rem; color: var(--ink-muted); margin-left: 0.4em; white-space: nowrap; }

/* プラン内のボタン文言（「メールで問い合わせる」等）が途中で折り返さないように */
.plan-card .btn { white-space: nowrap; padding-left: 1rem; padding-right: 1rem; }
.plan-price-small { font-size: 1.05rem; }

.plan-includes { list-style: none; margin-bottom: 1.75rem; font-size: 0.92rem; }

.plan-note {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--ink-muted);
  margin: -0.75rem 0 1.5rem;
}

.plan-includes li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-bottom: 1px dotted var(--line);
  position: relative;
}

.plan-includes li::before { content: "・"; position: absolute; left: 0; color: var(--accent); }

.plan-note { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-muted); margin-top: 1rem; }

.plan-coming {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
  border: 1px dashed var(--line);
  padding: 0.9em;
}

.comparison { margin-top: 3rem; }

.pricing-note {
  margin-top: 2.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--ink-muted);
  background: var(--paper-tint);
  border-left: 2px solid var(--accent-light);
  padding: 1rem 1.25rem;
  border-radius: 2px;
}

.comparison-heading { font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; letter-spacing: 0.1em; }

.table-scroll { overflow-x: auto; }

.comparison-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-family: var(--sans);
  line-height: 1.8;
}

.comparison-table th, .comparison-table td {
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.comparison-table thead th {
  background: var(--paper-tint);
  font-weight: 600;
  text-align: center;
}

.comparison-table tbody th {
  background: var(--paper-tint);
  white-space: nowrap;
  font-weight: 600;
}

/* ---------- 講師 ---------- */

.instructor { display: grid; gap: 1.5rem; }

.instructor-photo { width: 8.5rem; border-radius: 2px; }

.instructor-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; }

.instructor-kana {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-left: 1em;
  letter-spacing: 0.15em;
}

.instructor-bio { font-size: 0.95rem; }
.instructor-bio p + p { margin-top: 1em; }

/* ---------- 受講生の声 ---------- */

.testimonials { display: grid; gap: 1.5rem; }

.testimonial {
  border-left: 2px solid var(--line);
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.testimonial figcaption {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- 応援コメント（横スクロール） ---------- */
.supporters-note {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* 横スクロールのギャラリー。カードを一列に並べ、はみ出した分を横方向にスクロールさせる。 */
.supporters-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  /* スクロール可能なことが伝わるよう、右端を少しだけ余白として残す */
  padding-bottom: 1rem;
  margin-bottom: -1rem;
}

.supporters-track {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  width: max-content;
}

.cheer-card {
  scroll-snap-align: start;
  flex: 0 0 17rem;
  max-width: 78vw;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  /* カードは横並びで最大高に揃うため、コメント＋名前をまとめて中央寄せにし、
     コメントの長短にかかわらず余白のバランスを揃える */
  justify-content: center;
}

.cheer-comment {
  font-size: 0.95rem;
  line-height: 1.9;
}

.cheer-author {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.cheer-role {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* キーボード操作時のフォーカスを明示 */
.supporters-scroll:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0; }

.faq-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { padding-top: 0; }

.faq-item dt { font-weight: 600; margin-bottom: 0.5rem; }
.faq-item dt::before { content: "Q. "; color: var(--accent); }

.faq-item dd { font-size: 0.95rem; color: var(--ink); }
.faq-item dd::before { content: "A. "; color: var(--ink-muted); }

/* ---------- 受け取りページ ---------- */

.delivery-bookmark {
  background: var(--accent-wash);
  border: 1px solid var(--accent-light);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* 個人化バッジ（D）: このページは ◯◯様専用 */
.delivery-owner {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* 共有警告（B） */
.delivery-warning {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--ink-muted);
  border-left: 2px solid var(--accent-light);
  padding: 0.25rem 0 0.25rem 0.9rem;
  margin-bottom: 1.5rem;
}

.delivery-materials-note {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 0.25rem 0 1.25rem;
}

/* 受け取りページ：特別指導つきプランの課題添削の案内 */
.tutoring {
  margin-top: 2.75rem;
  background: var(--accent-wash);
  border: 1px solid var(--accent-light);
  border-radius: 2px;
  padding: 1.6rem 1.5rem;
  font-family: var(--sans);
}
.tutoring-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.tutoring-lead { font-size: 0.9rem; line-height: 1.95; }
.tutoring-assignment {
  font-weight: 600;
  background: #fff;
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1rem;
  margin: 1.1rem 0;
  font-size: 0.92rem;
  line-height: 1.85;
}
.tutoring-points { margin: 1rem 0 0; padding-left: 1.2rem; font-size: 0.88rem; line-height: 1.9; }
.tutoring-points li { margin: 0.5rem 0; }
.tutoring-turnaround { font-size: 0.82rem; color: var(--ink-muted); margin-top: 1.1rem; line-height: 1.8; }

.delivery { margin-top: 1rem; }

.delivery-status { color: var(--ink-muted); padding: 2rem 0; }

.delivery-error {
  border: 1px solid var(--line);
  background: var(--paper-tint);
  padding: 1.5rem;
  font-size: 0.95rem;
}

.delivery-item { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.delivery-item:last-child { border-bottom: none; }

.delivery-item-title { font-size: 1.1rem; font-weight: 600; line-height: 1.8; }

.delivery-item-no {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.delivery-pdf { margin-top: 1.5rem; }

.delivery-pending {
  color: var(--ink-muted);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.delivery-note, .delivery-support {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 2rem;
}

/* ---------- 法務ページ ---------- */

.legal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.legal-table th, .legal-table td {
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  line-height: 1.9;
}

.legal-table th { background: var(--paper-tint); white-space: nowrap; font-weight: 600; }

.legal-section-heading { font-size: 1.05rem; font-weight: 600; margin: 2.25rem 0 0.75rem; }

/* ---------- フッター ---------- */

.site-footer {
  border-top: none;
  background: var(--accent-deep);
  margin-top: 5rem;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.footer-nav a { color: rgba(255, 255, 255, 0.82); }

.footer-contact { margin-bottom: 1rem; }
.footer-contact a { color: rgba(255, 255, 255, 0.82); }

/* ---------- タブレット以上 ---------- */

@media (min-width: 640px) {
  body { font-size: 1.05rem; }

  .site-brand { font-size: 1.55rem; }

  .hero { padding-top: 7rem; }
  .hero-catch { font-size: 2.4rem; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { min-width: 14rem; }

  .section { padding-top: 6rem; }
  .section-tinted { margin-top: 6rem; padding: 5rem 1.5rem; }
  .section-heading { font-size: 1.35rem; letter-spacing: 0.1em; }

  .plans { grid-template-columns: 1fr 1fr; align-items: start; }

  .instructor { grid-template-columns: auto 1fr; gap: 2.5rem; }

  .format-list { gap: 2.25rem; }
}
