/* ============================================================
   ヤリキル — Senpai as a Service
   デザイン言語: 原稿用紙 × 赤ペン(朱) × 墨
   ============================================================ */

:root {
  --paper: #FAF6EE;
  --paper-deep: #F3EDE0;
  --ink: #211B15;
  --ink-soft: #453D33;
  --gray: #6E655A;
  --line: #E3DACA;
  --vermillion: #D93A2B;
  --vermillion-dark: #A82616;
  --vermillion-pale: #FBE9E6;
  --green-line: #06C755;
  --chat-bg: #A7B9D4;
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

.pc-only { display: inline; }
.sp-only { display: none; }
.no-wrap { white-space: nowrap; }

/* ---------- 原稿用紙テクスチャ ---------- */
.genkoyoshi {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(217, 58, 43, 0.07) 31px, rgba(217, 58, 43, 0.07) 32px),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(217, 58, 43, 0.05) 31px, rgba(217, 58, 43, 0.05) 32px);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  line-height: 1.4;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--vermillion);
  color: #fff;
  box-shadow: 0 3px 0 var(--vermillion-dark);
}
.btn-primary:hover { background: var(--vermillion-dark); box-shadow: 0 3px 0 #8a1f12; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-line {
  background: var(--green-line);
  color: #fff;
  box-shadow: 0 3px 0 #049a42;
}
.btn-line:hover { filter: brightness(0.95); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(33, 27, 21, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-mark {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--vermillion);
  font-weight: 700;
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.header-nav a:hover { color: var(--vermillion); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--vermillion);
  background-image: linear-gradient(transparent 78%, var(--vermillion-pale) 78%);
}
.hero-lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-badges li::before {
  content: "◉";
  color: var(--vermillion);
  margin-right: 6px;
  font-size: 10px;
}
.hero-badges strong { color: var(--vermillion); font-weight: 700; }

/* 宣言カード */
.hero-visual { display: flex; justify-content: center; }
.declaration-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(33, 27, 21, 0.12);
  padding: 28px;
  width: 100%;
  max-width: 360px;
  transform: rotate(1.5deg);
}
.declaration-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 16px;
  padding-right: 56px;
}
.declaration-week {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
}
.declaration-rate {
  font-size: 12px;
  font-weight: 700;
  color: var(--vermillion);
}
.declaration-list {
  list-style: none;
  margin-bottom: 20px;
}
.declaration-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.declaration-list li.done { color: var(--gray); text-decoration: line-through; text-decoration-color: rgba(217,58,43,0.5); }
.checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--vermillion);
  background: #fff;
}
.declaration-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-track {
  flex: 1;
  height: 8px;
  background: var(--paper-deep);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--vermillion);
  border-radius: 4px;
}
.progress-label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--vermillion);
}
.progress-label span { font-size: 12px; color: var(--gray); }

/* 印鑑 */
.hanko {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 72px;
  height: 72px;
  border: 3px solid var(--vermillion);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
  color: var(--vermillion);
  transform: rotate(-12deg);
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
}

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--vermillion-dark);
  margin-bottom: 18px;
}
.label-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--vermillion);
  color: var(--vermillion);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  border-radius: 2px;
  flex-shrink: 0;
}
.hero-label {
  color: var(--vermillion-dark) !important;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.5;
  margin-bottom: 36px;
}
.section-body p { margin-bottom: 22px; }
.section-body p:last-child { margin-bottom: 0; }
.section-body strong {
  font-weight: 700;
  background-image: linear-gradient(transparent 72%, var(--vermillion-pale) 72%);
}
.section-body .punch {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 2;
  padding-left: 18px;
  border-left: 3px solid var(--vermillion);
}
.narrow-body { max-width: 780px; }

/* ---------- 言い訳（原稿用紙カード×赤ペン） ---------- */
.section-excuses { border-bottom: 1px solid var(--line); }
.excuse-stage { margin-bottom: 44px; }
.manuscript-card {
  position: relative;
  background: #fff;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(217, 58, 43, 0.10) 27px, rgba(217, 58, 43, 0.10) 28px),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(217, 58, 43, 0.06) 27px, rgba(217, 58, 43, 0.06) 28px);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(33, 27, 21, 0.10);
  padding: 40px 32px;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-0.6deg);
  overflow: hidden;
}
.excuse-line {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.6vw, 27px);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  transition: opacity 0.35s ease;
  position: relative;
  z-index: 1;
}
.excuse-line.fading { opacity: 0; }
.red-strike {
  position: absolute;
  left: 8%;
  right: 92%;
  top: 52%;
  height: 3px;
  background: var(--vermillion);
  border-radius: 2px;
  transform: rotate(-2.5deg);
  transform-origin: left center;
  box-shadow: 0 1px 0 rgba(217, 58, 43, 0.3);
  z-index: 2;
  transition: right 0.3s cubic-bezier(0.5, 0, 0.75, 0);
}
.manuscript-card.struck .red-strike { right: 8%; }
.excuse-caption {
  text-align: right;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gray);
  margin-top: 14px;
  padding-right: 6px;
}

/* ---------- します/しません ---------- */
.section-boundary { border-bottom: 1px solid var(--line); }
.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 44px;
}
.boundary-col {
  border-radius: 8px;
  padding: 32px;
}
.boundary-col h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}
.boundary-col ul { list-style: none; }
.boundary-col li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px dashed;
  position: relative;
  font-size: 15px;
}
.boundary-col li:last-child { border-bottom: none; }
.boundary-col li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}
.boundary-not {
  background: var(--paper-deep);
  color: var(--gray);
}
.boundary-not h3 { color: var(--ink-soft); }
.boundary-not li { border-color: var(--line); }
.boundary-not li::before { content: "✕"; color: var(--gray); }
.boundary-do {
  background: var(--ink);
  color: var(--paper);
}
.boundary-do h3 { color: #fff; }
.boundary-do-note { font-size: 14px; font-weight: 400; color: var(--gray); margin-left: 4px; }
.boundary-do li { border-color: rgba(250, 246, 238, 0.18); }
.boundary-do li::before { content: "✓"; color: var(--vermillion); }

/* ---------- 12週間の流れ ---------- */
.section-how { border-bottom: 1px solid var(--line); }
.steps {
  list-style: none;
  max-width: 780px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.step {
  position: relative;
  padding: 0 0 40px 76px;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 3px;
  background: var(--paper);
  border: 2px solid var(--vermillion);
  color: var(--vermillion);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.step-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--vermillion);
  background: var(--vermillion-pale);
  padding: 2px 10px;
  border-radius: 999px;
}
.step p { font-size: 15px; color: var(--ink-soft); }

/* ---------- チャットモック ---------- */
.section-chat {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.phone {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 380px;
  background: #211B15;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(33, 27, 21, 0.28), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #211B15;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.chat-mock {
  background: var(--chat-bg);
  border-radius: 28px;
  overflow: hidden;
  width: 100%;
}
.chat-silence { max-width: 100%; margin: 4px auto 10px; text-align: center; }
.chat-silence p {
  display: inline-block;
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 12px;
}
.chat-header {
  background: #2B3A4F;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vermillion);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
}
.chat-name { font-size: 14px; font-weight: 500; }
.chat-body { padding: 18px 14px 22px; }
.chat-day {
  text-align: center;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  padding: 2px 12px;
  width: fit-content;
  margin: 14px auto 10px;
}
.chat-msg {
  max-width: 78%;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.chat-msg.visible { opacity: 1; transform: translateY(0); }
.chat-msg p {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.7;
}
.from-senpai p {
  background: #fff;
  border-top-left-radius: 4px;
}
.from-user {
  margin-left: auto;
}
.from-user p {
  background: #8DE055;
  border-top-right-radius: 4px;
}

/* ---------- デポジット ---------- */
.section-deposit { border-bottom: 1px solid var(--line); }
.deposit-visual {
  text-align: center;
  margin-bottom: 44px;
}
.deposit-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  display: inline-block;
  min-width: 320px;
  box-shadow: 0 8px 24px rgba(33, 27, 21, 0.06);
}
.deposit-amount {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 44px;
  display: block;
  margin-bottom: 16px;
}
.deposit-amount small { font-size: 20px; }
.deposit-split {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
}
.deposit-part {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.deposit-part em { font-style: normal; font-size: 11px; font-weight: 500; }
.deposit-part.main {
  flex: 4;
  background: var(--ink);
  color: var(--paper);
}
.deposit-part.back {
  flex: 1.4;
  background: var(--vermillion);
  color: #fff;
  min-width: 96px;
}
.deposit-arrow {
  margin: 20px 0;
  font-size: 15px;
  font-weight: 500;
}
.deposit-arrow::before { content: "↓ "; color: var(--vermillion); font-weight: 700; }
.deposit-arrow strong { color: var(--vermillion); }
.deposit-refund {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  border: 2px solid var(--vermillion);
  color: var(--vermillion);
  border-radius: 8px;
  padding: 12px 28px;
  background: var(--vermillion-pale);
}
.rest-week {
  margin-top: 44px;
  background: var(--paper-deep);
  border-left: 3px solid var(--vermillion);
  border-radius: 0 8px 8px 0;
  padding: 26px 30px;
}
.rest-week h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 10px;
}
.rest-week p { font-size: 15px; color: var(--ink-soft); }
.rest-week strong { color: var(--vermillion); }

/* ---------- 先輩とは / 気まずさ ---------- */
.section-senpai { border-bottom: 1px solid var(--line); }
.section-kimazusa { border-bottom: 1px solid var(--line); }

/* ---------- 料金 ---------- */
.section-pricing { border-bottom: 1px solid var(--line); }
.pricing-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 44px 40px;
  box-shadow: 8px 8px 0 var(--vermillion-pale);
}
.pricing-head h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
}
.pricing-tagline {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 24px;
}
.pricing-price {
  border-top: 2px solid var(--ink);
  border-bottom: 1px dashed var(--line);
  padding: 22px 0;
  margin-bottom: 24px;
}
.price-main {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 52px;
  line-height: 1.1;
}
.price-main small { font-size: 22px; }
.price-note {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}
.price-note em {
  font-style: normal;
  font-weight: 500;
  color: var(--vermillion);
}
.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--vermillion);
  font-weight: 700;
}
.pricing-cohort {
  background: var(--paper);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.alumni-note {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 36px;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 0;
  font-family: var(--font-serif);
  color: var(--vermillion);
  font-weight: 900;
}
.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 8px;
  top: 22px;
  color: var(--vermillion);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "－"; }
.faq-item summary:hover { color: var(--vermillion); }
.faq-item p {
  padding: 0 8px 26px 36px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- 申込 ---------- */
.section-apply {
  border-top: 1px solid var(--line);
  padding: 110px 0;
}
.apply-inner {
  text-align: center;
  position: relative;
}
.apply-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.5;
  margin-bottom: 24px;
}
.apply-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.apply-lead strong { color: var(--vermillion); }
.apply-note {
  font-size: 12px;
  color: var(--gray);
  margin-top: 14px;
}
.apply-hanko {
  position: absolute;
  right: 0;
  top: -44px;
  width: 88px;
  height: 88px;
  border: 3px solid var(--vermillion);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 26px;
  color: var(--vermillion);
  transform: rotate(12deg);
  opacity: 0.5;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(250, 246, 238, 0.15);
}
.footer-brand .brand-mark { color: var(--paper); display: block; }
.footer-brand .brand-sub { display: block; margin-top: 2px; }
.footer-tagline {
  font-size: 13px;
  color: var(--gray);
  margin-top: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--paper);
  opacity: 0.75;
  font-size: 13px;
  text-decoration: none;
}
.footer-nav a:hover { opacity: 1; color: #fff; }
.footer-copy {
  padding-top: 24px;
  font-size: 12px;
  color: var(--gray);
}

/* ---------- スクロールアニメーション（JS有効時のみ隠す） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   セクション背景の交互配置
   ============================================================ */
.section.alt-deep { background: var(--paper-deep); }
.section.ink-invert { background: var(--ink); color: var(--paper); }
.ink-invert .section-title { color: var(--paper); }
.ink-invert .section-body { color: rgba(250, 246, 238, 0.82); }
.ink-invert .section-body strong {
  color: #fff;
  background-image: linear-gradient(transparent 72%, rgba(217, 58, 43, 0.45) 72%);
}
.ink-invert .section-label { color: #E9A79E; }
.ink-invert .label-num { border-color: #E9A79E; color: #E9A79E; }

/* 本文の可読性（日本語の行長を抑える） */
.section-body { max-width: 42em; }
.section-body .punch { max-width: none; }

/* ---------- 06 先輩：履歴書カード ---------- */
.senpai-layout {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 56px;
  align-items: center;
}
.senpai-visual { display: flex; justify-content: center; }
.resume-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 32px 34px 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 8px 8px 0 var(--vermillion-pale);
  transform: rotate(-1deg);
}
.resume-portrait {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  color: var(--vermillion);
}
.resume-portrait svg { width: 100%; height: 100%; display: block; }
.resume-name {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.resume-list { display: flex; flex-direction: column; gap: 0; }
.resume-list > div {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.resume-list > div:last-child { border-bottom: none; }
.resume-list dt {
  flex-shrink: 0;
  width: 82px;
  font-size: 11px;
  font-weight: 700;
  color: var(--vermillion-dark);
  letter-spacing: 0.08em;
}
.resume-list dd {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 07 気まずさ：縦書き引用 ---------- */
.kimazusa-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}
.kimazusa-quote {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #fff;
  border-right: 3px solid var(--vermillion);
  padding-right: 24px;
  margin: 0;
  height: fit-content;
  justify-self: center;
}
.kimazusa-punch {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  padding-left: 18px;
  border-left: 3px solid var(--vermillion);
}

/* ---------- 08 その先：完走証カード ---------- */
.section-vision {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.vision-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.vision-visual { display: flex; justify-content: center; }
.cert-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 34px 32px 30px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(33, 27, 21, 0.14);
  transform: rotate(1deg);
}
.cert-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
}
.cert-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 8px;
}
.cert-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  color: var(--ink);
}
.cert-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--vermillion-dark);
  margin: 6px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.cert-work {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}
.cert-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.cert-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}
.cert-meta > div:last-child { border-bottom: none; }
.cert-meta dt { color: var(--gray); font-weight: 700; }
.cert-meta dd {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
}
.cert-meta dd span { font-size: 11px; margin-left: 1px; }
.cert-hanko {
  position: absolute;
  top: -16px;
  right: -14px;
  width: 76px;
  height: 76px;
  border: 3px solid var(--vermillion);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
  color: var(--vermillion);
  transform: rotate(-12deg);
  background: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
}

/* ---------- 申込フォーム ---------- */
.apply-form {
  max-width: 460px;
  margin: 0 auto 24px;
  text-align: left;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.form-row input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-row input:focus {
  outline: none;
  border-color: var(--vermillion);
  box-shadow: 0 0 0 3px var(--vermillion-pale);
}
.form-row input::placeholder { color: #B8AF9F; }
.apply-form .btn { margin-top: 6px; }
.form-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  margin-top: 14px;
  line-height: 1.7;
}
.form-done {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--vermillion-dark);
  text-align: center;
  margin-top: 20px;
  padding: 16px;
  background: var(--vermillion-pale);
  border-radius: 8px;
}
.apply-alt {
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
}
.apply-alt a { color: var(--vermillion-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .chat-msg { opacity: 1; transform: none; transition: none; }
  .excuse-line, .red-strike { transition: none; }
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 860px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }

  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }

  .hero { padding: 56px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-title { font-size: clamp(22px, 7.2vw, 40px); }
  .hero-title .no-wrap { white-space: normal; }
  .hero-cta .btn { flex: 1; min-width: 180px; }

  .declaration-card { transform: rotate(0.8deg); }

  .section { padding: 64px 0; }

  .boundary-grid { grid-template-columns: 1fr; }

  .chat-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing-card { padding: 32px 24px; }

  .deposit-box { min-width: 0; width: 100%; }

  .apply-hanko {
    position: static;
    margin: 32px auto 0;
    transform: rotate(8deg);
  }

  .senpai-layout { grid-template-columns: 1fr; gap: 40px; }
  .senpai-visual { order: -1; }

  .vision-layout { grid-template-columns: 1fr; gap: 40px; }

  .kimazusa-layout { grid-template-columns: 1fr; gap: 32px; }
  .kimazusa-quote {
    writing-mode: horizontal-tb;
    border-right: none;
    border-left: 3px solid var(--vermillion);
    padding-right: 0;
    padding-left: 20px;
    justify-self: start;
  }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .site-header .brand-sub { display: none; }
  .header-inner { gap: 12px; }
  .header-inner .btn-sm {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 12px;
  }
}
