/* =========================================
   退職代行Jobs LP（B案）
   モバイルファースト・レスポンシブ
   ========================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #e8e8e8;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

strong {
  font-weight: 700;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section Base ---------- */
.section {
  padding: 60px 0;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   FV（ファーストビュー）
   ========================================== */
.section-fv {
  background: #060d1a;
  padding: 0 !important;
  position: relative;
}

.fv-manga {
  margin-top: 0;
  margin-bottom: 0 !important;
  padding: 0;
}

.fv-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
}

.fv-catch {
  font-family: "Noto Serif JP", serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 24px;
}

.fv-catch em {
  font-style: normal;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.fv-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.fv-scroll-hint {
  text-align: center;
  margin-top: 40px;
}

.fv-scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 auto 8px;
  animation: scrollPulse 2s ease-in-out infinite;
}

.fv-scroll-hint p {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ==========================================
   漫画セクション
   ========================================== */
.section-manga {
  padding: 0;
  line-height: 0;
}

.manga-img {
  width: 100%;
  height: auto;
}

.section-manga-p1 { background: #0f1d35; }
.section-manga-p2 { background: #2a3554; }
.section-manga-p3 { background: #354566; }
.section-manga-p4 { background: #c4956a; }
.section-manga-p5 { background: #f0d0c0; }

/* 漫画（チャプター冒頭配置用） */
.chapter-manga {
  padding: 0 12px;
  line-height: 0;
  margin-top: -8px;
  margin-bottom: 40px;
}

.chapter-manga .manga-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   チャプターセクション背景色
   ========================================== */
.section-ch1 {
  background: linear-gradient(180deg, #1a2744 0%, #243352 100%);
}

.section-ch2 {
  background: linear-gradient(180deg, #2f3d5c 0%, #3a4a6b 100%);
}

.section-ch3 {
  background: linear-gradient(180deg, #4a5a7a 0%, #5c6d8e 100%);
}

/* Ch.4 — 明るい背景＋暗い文字でコントラスト確保 */
.section-ch4 {
  background: linear-gradient(180deg, #b8c8e0 0%, #cdd8ea 100%);
  color: #1a1a2e;
}

.section-ch4 .chapter-number {
  color: rgba(26, 26, 46, 0.35);
}

.section-ch4 strong {
  color: #1a1a2e;
}

.section-ch5 {
  background: linear-gradient(180deg, #d4a880 0%, #e8c4a0 100%);
  color: #2a1a0a;
}

.section-ch5 .chapter-number {
  color: rgba(42, 26, 10, 0.3);
}

.section-ch5 strong {
  color: #2a1a0a;
}

/* ==========================================
   チャプター共通
   ========================================== */
.chapter-header {
  margin-bottom: 32px;
  text-align: center;
}

.chapter-number {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.chapter-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.chapter-title::before,
.chapter-title::after {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.chapter-title::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

/* ---------- 本文 18px ---------- */
.chapter-body {
  font-size: 1.125rem;
  line-height: 2.1;
}

.chapter-body p {
  margin-bottom: 24px;
}

.chapter-body p:last-child {
  margin-bottom: 0;
}

/* ---------- ハイライト・マーカー（1.2倍サイズ） ---------- */
.highlight-text {
  color: #ffd700;
  font-weight: 900;
  font-size: 1.2em;
  background: linear-gradient(transparent 55%, rgba(255, 215, 0, 0.35) 55%);
  padding: 0 4px;
}

.section-ch4 .highlight-text,
.section-ch5 .highlight-text {
  color: #c0392b;
  background: linear-gradient(transparent 55%, rgba(255, 215, 0, 0.4) 55%);
}

/* 本文中の strong — 1.2倍 + 黄色マーカー */
.chapter-body strong {
  font-size: 1.2em;
  background: linear-gradient(transparent 55%, rgba(255, 215, 0, 0.3) 55%);
  padding: 0 2px;
}

.section-ch4 .chapter-body strong {
  color: #1a1a2e;
  background: linear-gradient(transparent 55%, rgba(255, 215, 0, 0.35) 55%);
}

.section-ch5 .chapter-body strong {
  color: #2a1a0a;
  background: linear-gradient(transparent 55%, rgba(255, 215, 0, 0.3) 55%);
}

/* --- 囲みボックス内の strong はハイライト除去（太字のみ） --- */
.chapter-body .symptoms-box strong,
.chapter-body .inner-voice-box strong,
.chapter-body .reality-check strong,
.chapter-body .service-explain strong,
.chapter-body .faq-item strong,
.chapter-body .reason-card strong,
.chapter-body .price-highlight strong {
  font-size: inherit;
  background: none !important;
  padding: 0;
}

/* ---------- 症状ボックス (Ch.1) — 余白半分・チェック大きく・文字1.2倍 ---------- */
.symptoms-box {
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid rgba(255, 107, 107, 0.7);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 36px 0;
}

.symptoms-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6b6b;
  margin-bottom: 10px;
}

.symptoms-list {
  list-style: none;
  padding: 0;
}

.symptoms-list li {
  position: relative;
  padding-left: 32px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.8;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.symptoms-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.symptoms-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff6b6b;
  font-weight: 900;
  font-size: 1.3rem;
}

/* ---------- 内なる声ボックス (Ch.2) ---------- */
.inner-voice-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}

.inner-voice-box p {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px !important;
}

.inner-voice-box p:last-child {
  margin-bottom: 0 !important;
}

/* ---------- 現実チェック (Ch.2) ---------- */
.reality-check {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
}

.reality-check p {
  font-size: 1.1rem;
  margin-bottom: 10px !important;
  line-height: 1.9;
}

.reality-check p:last-child {
  margin-bottom: 0 !important;
}

/* ---------- 検索クエリ (Ch.3) ---------- */
.search-queries {
  margin: 32px 0;
  text-align: center;
}

.search-queries .query {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 10px 22px;
  margin: 5px 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: monospace;
}

/* ---------- サービス説明 (Ch.3) ---------- */
.service-explain {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 36px 0;
}

.service-explain h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #ffd700;
}

.service-explain ul {
  list-style: none;
  padding: 0;
}

.service-explain li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.service-explain li::before {
  content: "◎";
  position: absolute;
  left: 0;
  color: #4ecdc4;
}

/* ---------- FAQ ストーリー (Ch.4) ---------- */
.faq-story {
  margin: 36px 0;
}

.faq-item {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 18px;
}

.faq-question {
  font-family: "Noto Serif JP", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a3e;
  margin-bottom: 14px;
  line-height: 1.6;
}

.faq-item p {
  font-size: 1.05rem;
  line-height: 2;
  color: #1a1a2e;
  margin-bottom: 0;
}

/* ---------- 理由カード (Ch.5) ---------- */
.reasons-list {
  margin: 36px 0;
}

.reason-card {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.reason-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(42, 26, 10, 0.08);
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
}

.reason-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2a1a0a;
  margin-bottom: 14px;
}

.reason-card p {
  font-size: 1.05rem;
  line-height: 2;
  color: #3a2a1a;
  margin-bottom: 0;
}

/* ---------- 料金ハイライト (Ch.5) ---------- */
.price-highlight {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 36px 24px;
  margin: 44px 0;
  text-align: center;
}

.price-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #5a3a1a;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2a1a0a;
}

.price-amount span {
  font-size: 2.8rem;
  font-weight: 900;
  color: #c0392b;
}

.price-amount small {
  font-size: 0.85rem;
  font-weight: 400;
}

.price-note {
  font-size: 0.85rem;
  color: #5a3a1a;
  margin-top: 8px;
}

/* ==========================================
   CTA セクション
   ========================================== */
.section-cta1 {
  background: linear-gradient(180deg, #8494b2 0%, #4a3a5c 30%, #5a3a5c 70%, #c4956a 100%);
  padding: 80px 0;
}

.section-cta-final {
  background: linear-gradient(180deg, #f0d0c0 0%, #f8e0d8 40%, #fff0ec 100%);
  color: #2a1a2e;
  padding: 80px 0;
}

.cta-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cta-title em {
  font-style: normal;
  color: #ffd700;
}

.section-cta-final .cta-title em {
  color: #c0392b;
}

.cta-text {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.9;
}

.cta-text-highlight {
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #c0392b;
  margin: 28px 0 36px;
}

/* ---------- CTAボタン（LINEのみ・大型） ---------- */
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 36px 0 28px;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 22px 28px;
  border-radius: 9999px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn:active {
  transform: scale(0.97);
}

/* LINE ボタン */
.cta-btn-line {
  background: linear-gradient(180deg, #07d45c 0%, #06c755 30%, #05a847 100%);
  color: #ffffff;
  box-shadow:
    0 4px 0 #049a3f,
    0 8px 24px rgba(6, 199, 85, 0.45);
}

.cta-btn-line:active {
  transform: translateY(2px) scale(0.98);
  box-shadow:
    0 2px 0 #049a3f,
    0 4px 12px rgba(6, 199, 85, 0.4);
}

.cta-btn-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 75%,
    transparent 100%
  );
  animation: lineShine 2.5s ease-in-out infinite;
}

@keyframes lineShine {
  0% { left: -100%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

.cta-btn-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cta-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-btn-label {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.cta-btn-note {
  font-size: 0.7rem;
  opacity: 0.9;
  margin-top: 2px;
}

/* ---------- バッジ ---------- */
.cta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.section-cta-final .badge {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

/* ---------- CTA補足 ---------- */
.cta-reassurance {
  text-align: center;
  margin-top: 16px;
}

.cta-reassurance p {
  font-size: 0.8rem;
  color: rgba(42, 26, 46, 0.6);
  line-height: 1.6;
}

/* ---------- CTAペルソナ ---------- */
.cta-persona {
  text-align: center;
  margin-top: 48px;
  padding-top: 20px;
}

.cta-persona-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.cta-persona-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   デフォルメキャラ + 吹き出し
   横並びレイアウト（左20%キャラ + 右コメント）
   ========================================== */
.deform-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 24px 20px 14px 8px;
  border-radius: 20px;
  border: 3px solid;
  position: relative;
  overflow: visible;
}

/* --- セクション別カラーテーマ --- */

/* 暗いセクション（Ch.1〜3）— ピンク枠 */
.section-ch1 .deform-block,
.section-ch2 .deform-block,
.section-ch3 .deform-block {
  border-color: #e85d75;
  background: rgba(255, 255, 255, 0.95);
}

/* Ch.4 明るいセクション — ネイビー枠 */
.section-ch4 .deform-block {
  border-color: #3a4a6b;
  background: rgba(255, 255, 255, 0.92);
}

/* Ch.5 暖色セクション — ブラウン枠 */
.section-ch5 .deform-block {
  border-color: #8b5e3c;
  background: rgba(255, 255, 255, 0.92);
}

/* 最終CTA — ピンク枠 */
.section-cta-final .deform-block {
  border-color: #e85d75;
  background: rgba(255, 255, 255, 0.95);
}

/* --- ラベルバッジ「美咲の声」（枠の上端に配置） --- */
.deform-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.7rem, 3vw, 0.85rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 4px 18px;
  border-radius: 20px;
  color: #fff;
  z-index: 3;
  white-space: nowrap;
}

.section-ch1 .deform-label,
.section-ch2 .deform-label,
.section-ch3 .deform-label,
.section-cta-final .deform-label {
  background: #e85d75;
}

.section-ch4 .deform-label {
  background: #3a4a6b;
}

.section-ch5 .deform-label {
  background: #8b5e3c;
}

/* ラベルは常にセンター配置 */

/* --- キャラ画像（左20%・上下にはみ出し） --- */
.deform-img-wrap {
  flex: 0 0 20%;
  order: -1;
  margin-top: -44px;
  margin-bottom: -28px;
  z-index: 2;
}

.deform-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* --- 吹き出し（フレーム内テキスト） --- */
.speech-bubble {
  flex: 1;
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  max-width: none;
  box-shadow: none;
  text-align: center;
}

.speech-bubble p {
  font-size: clamp(0.85rem, 4.2vw, 1.25rem);
  line-height: 1.7;
  font-weight: 700;
  margin-bottom: 0 !important;
}

/* テキストカラー（セクション別） */
.section-ch1 .speech-bubble p,
.section-ch2 .speech-bubble p,
.section-ch3 .speech-bubble p {
  color: #3a2030;
}

.section-ch4 .speech-bubble p {
  color: #1a1a2e;
}

.section-ch5 .speech-bubble p {
  color: #2a1a0a;
}

.section-cta-final .speech-bubble p {
  color: #2a1a2e;
}

/* 吹き出し矢印を全て消す */
.speech-bubble-right::before,
.speech-bubble-right::after,
.speech-bubble-left::before,
.speech-bubble-left::after,
.speech-bubble-center::before,
.speech-bubble-center::after {
  display: none;
}

/* deform-center もテキスト左寄せ（横並びに統一） */

/* ==========================================
   PR表記（ステマ規制対応）
   ========================================== */
.pr-disclosure {
  background: #fff0ec;
  padding: 20px 16px 0;
  text-align: center;
}

.pr-disclosure p {
  display: inline-block;
  font-size: 0.7rem;
  color: rgba(42, 26, 46, 0.5);
  border: 1px solid rgba(42, 26, 46, 0.15);
  border-radius: 4px;
  padding: 6px 14px;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================
   フッター
   ========================================== */
.footer {
  background: #fff0ec;
  padding: 40px 0;
  text-align: center;
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(42, 26, 46, 0.5);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.65rem;
  color: rgba(42, 26, 46, 0.35);
  margin-top: 16px;
}

/* ---------- SP only ---------- */
.sp-only {
  display: inline;
}

/* ==========================================
   レスポンシブ（タブレット〜PC）
   ========================================== */
@media (min-width: 640px) {
  .container {
    max-width: 680px;
    padding: 0 32px;
  }

  .section {
    padding: 80px 0;
  }

  .fv-catch {
    font-size: 2.2rem;
  }

  .chapter-title {
    font-size: 1.85rem;
  }

  .sp-only {
    display: none;
  }

  .deform-block {
    gap: 12px;
    padding: 26px 24px 16px 12px;
  }

  .deform-img-wrap {
    margin-top: -48px;
    margin-bottom: -32px;
  }

  .cta-title {
    font-size: 1.85rem;
  }

  .cta-btn {
    max-width: 400px;
  }
}

@media (min-width: 960px) {
  .container {
    max-width: 760px;
    padding: 0 40px;
  }

  .section {
    padding: 100px 0;
  }

  .section-fv {
    padding: 140px 0 120px;
  }

  .fv-catch {
    font-size: 2.6rem;
  }

  .fv-sub {
    font-size: 1.1rem;
  }

  .chapter-title {
    font-size: 2.1rem;
  }

  .chapter-body {
    font-size: 1.2rem;
  }

  .manga-img {
    max-width: 760px;
    margin: 0 auto;
  }

  .deform-block {
    gap: 16px;
    padding: 28px 28px 18px 16px;
  }

  .deform-img-wrap {
    margin-top: -52px;
    margin-bottom: -36px;
  }

  .reason-card {
    padding: 32px 28px;
  }

  .cta-btn {
    max-width: 440px;
    padding: 24px 32px;
  }

  .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow:
      0 6px 0 #049a3f,
      0 12px 36px rgba(6, 199, 85, 0.5);
  }
}
