/* ===================================================
   特定技能1号 外食業技能測定試験 予想問題集 LP
   メインスタイルシート / updated: 2026-03-01
=================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #c0622a;      /* オレンジブラウン */
  --color-primary-light: #e87c3e; /* 明るいオレンジ */
  --color-primary-pale: #fdf3ec; /* 薄いオレンジ */
  --color-accent: #f0a868;       /* アクセントオレンジ */
  --color-dark: #2c1a0e;         /* 深い茶色 */
  --color-text: #3d2b1f;         /* テキスト */
  --color-text-light: #7a6055;   /* 薄いテキスト */
  --color-white: #ffffff;
  --color-bg: #fdfaf7;           /* 温かみのある白 */
  --color-bg-gray: #f5f0eb;      /* 薄いグレー */
  --color-border: #e8ddd6;
  --color-correct: #2a7a3b;      /* 正解の緑 */
  --color-correct-bg: #edf7ef;

  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  --shadow-sm: 0 2px 8px rgba(44, 26, 14, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 26, 14, 0.12);
  --shadow-lg: 0 8px 40px rgba(44, 26, 14, 0.16);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition: 0.3s ease;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

rt {
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(192, 98, 42, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(192, 98, 42, 0.5);
}

.btn-large {
  padding: 18px 44px;
  font-size: 1.1rem;
  border-radius: 60px;
}

.btn-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-header:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 22px 56px;
  font-size: 1.15rem;
  border-radius: 60px;
  box-shadow: 0 6px 30px rgba(192, 98, 42, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(192, 98, 42, 0.55);
}

.btn-arrow {
  transition: transform var(--transition);
}

.btn-cta:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Section Common ---------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(192, 98, 42, 0.2);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
}

.highlight-text {
  color: var(--color-primary);
  position: relative;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
}

/* ============================================
   SITE HEADER
============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-logo .logo-text {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 400;
}

.header-logo .logo-text strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(145deg, #fdfaf7 0%, #faf0e6 50%, #f5e6d3 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(192, 98, 42, 0.06) 0%, transparent 70%),
              radial-gradient(ellipse at 60% 80%, rgba(240, 168, 104, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  animation: fadeInDown 0.6s ease both;
}

.hero-badge i {
  font-size: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  line-height: 1.35;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title-main {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--color-primary);
  font-weight: 600;
}

.hero-product-name {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.7s ease 0.2s both;
  /* 本画像と横並びにするため flex に */
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* テキスト部分 */
.hero-product-text {
  flex: 1;
  min-width: 0;
  line-height: 2.0;  /* ルビ対応 */
}

.hero-product-sub {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--color-dark);
}

/* ---- 表紙ブック風 ---- */
.hero-book-wrap {
  flex-shrink: 0;
  /* 本が枠を少しはみ出して立体感を出す */
  margin-top: -24px;
  margin-bottom: -24px;
  margin-right: -8px;
}

.hero-book-inner {
  /* 少し右に傾けて「本を手に持っている」雰囲気 */
  transform: rotate(4deg) translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* 濃い茶色の枠線で表紙が背景に溶け込まないよう際立たせる */
  border: 2px solid #8a5a3a;
  border-radius: 3px 6px 6px 3px;
  box-shadow:
    -3px 3px 0 rgba(90, 46, 10, 0.35),   /* 背表紙の厚み感（薄め） */
    3px 6px 14px rgba(44, 26, 14, 0.18); /* 浮き上がりの影（薄め） */
  overflow: hidden;
  line-height: 0;
}

.hero-book-inner:hover {
  transform: rotate(2deg) translateY(-8px);
  box-shadow:
    -3px 3px 0 rgba(90, 46, 10, 0.35),
    4px 10px 18px rgba(44, 26, 14, 0.25);
}

.hero-book-img {
  width: 90px;
  height: auto;
  display: block;
  object-fit: cover;
}

/* タブレット以下では本を少し小さく */
@media (max-width: 1024px) {
  .hero-book-img {
    width: 72px;
  }
}

/* スマホでは本を小さくして横並びを維持 */
@media (max-width: 640px) {
  .hero-product-name {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .hero-book-wrap {
    display: block;
    margin-top: -16px;
    margin-bottom: -16px;
    margin-right: -4px;
  }
  .hero-book-img {
    width: 58px;
  }
}

.hero-features {
  margin-bottom: 36px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.hero-features li:last-child {
  border-bottom: none;
}

.hero-features li i {
  color: var(--color-primary);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.hero-cta {
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-cta-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  animation: fadeInRight 0.8s ease 0.2s both;
}

.hero-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 3px rgba(192, 98, 42, 0.15);
  z-index: 1;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-author-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.author-avatar-small i {
  font-size: 2.5rem;
  color: var(--color-accent);
}

.author-name-small {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.author-title-small {
  font-size: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-text-light);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
  font-size: 0.9rem;
}

/* ============================================
   MESSAGE SECTION
============================================ */
.message-section {
  padding: 100px 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.message-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}

.message-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.message-quote-icon {
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 3rem;
  line-height: 1;
  opacity: 0.6;
}

.message-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.5;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.message-body p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

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

.message-body strong {
  color: var(--color-primary);
  font-weight: 700;
}

.message-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.message-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-accent);
}

.author-img-round {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.author-role {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ============================================
   COMPREHENSIVE COVERAGE SECTION
============================================ */
.coverage-section {
  padding: 100px 0;
  background: var(--color-bg-gray);
  position: relative;
}

/* 目次画像 */
.toc-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.toc-image-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.toc-image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.toc-image-label {
  background: var(--color-dark);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  letter-spacing: 0.08em;
}

.toc-img {
  width: 100%;
  object-fit: contain;
  display: block;
}

/* ============================================================
   章カード
   ・全章同一カラー（サイトのプライマリ系に統一）
   ・ルビを考慮した line-height / padding
   ・箇条書きは均等な行間で揃える
============================================================ */

/* グリッド */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

/* ---- カード共通 ---- */
.chapter-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---- カードヘッダー ---- */
.chapter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  background: var(--color-bg-gray);
  border-bottom: 1px solid var(--color-border);
}

/* 章番号バッジ：全章統一カラー */
.chapter-num-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 20px;
  line-height: 1.9;          /* ルビ分の高さを確保 */
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border: 1px solid rgba(192, 98, 42, 0.2);
  white-space: nowrap;
}

/* アイコン：全章統一カラー */
.chapter-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
}

/* 章別アイコンは色なし（統一） */
.chapter-icon-1,
.chapter-icon-2,
.chapter-icon-3,
.chapter-icon-4 {
  background: var(--color-primary);
  color: #fff;
}

/* ---- カードボディ ---- */
.chapter-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 章タイトル */
.chapter-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 2.0;          /* ルビを確実に表示 */
  margin-bottom: 10px;
}

/* 説明文 */
.chapter-desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 2.1;          /* ルビが重ならないよう広めに */
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* ---- 箇条書き（説明文と同じ扱い） ---- */
.chapter-topics {
  display: block;
  margin: 0;
  padding: 0;
}

.chapter-topics li {
  display: block;           /* flex をやめてブロック表示に統一 */
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 2.1;         /* chapter-desc と同じ値 */
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--color-bg-gray);
}

.chapter-topics li:first-child {
  padding-top: 0;
}

.chapter-topics li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* 矢印記号：インラインで本文と自然に流れる */
.topic-arrow {
  display: inline;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 4px;
}

/* 全章同色 */
.chapter-1 .topic-arrow,
.chapter-2 .topic-arrow,
.chapter-3 .topic-arrow,
.chapter-4 .topic-arrow {
  color: var(--color-primary);
}

/* ---- レスポンシブ ---- */
@media (max-width: 1024px) {
  .chapters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .chapters-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FEATURES SECTION
============================================ */
.features-section {
  padding: 100px 0;
  background: var(--color-white);
}

.features-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: start;
}

.features-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.features-image-wrap:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.features-image-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  color: white;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px;
  letter-spacing: 0.1em;
}

.features-img {
  width: 100%;
  object-fit: contain;
  padding-top: 36px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
}

.feature-item:first-child {
  padding-top: 0;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item::before {
  content: attr(data-num);
  position: absolute;
  right: 0;
  top: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(192, 98, 42, 0.05);
  line-height: 1;
  pointer-events: none;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
  transition: all var(--transition);
}

.feature-item:hover .feature-icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   SAMPLE SECTION
============================================ */
.sample-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--color-bg-gray) 0%, var(--color-bg) 100%);
}

.samples-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sample-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.sample-card:hover {
  box-shadow: var(--shadow-lg);
}

.sample-category {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 20px;
}

.sample-num {
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 20px;
  border-bottom: 1px solid rgba(192, 98, 42, 0.15);
}

.sample-question {
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
}

.q-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.q-text {
  font-size: 1.05rem;
  color: var(--color-dark);
  line-height: 2.0;  /* ルビ対応 */
}

.sample-choices {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--color-border);
}

.choice {
  display: flex;
  align-items: flex-start;  /* ルビ付きテキストに対応 */
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  transition: all var(--transition);
  position: relative;
}

.choice.correct {
  border-color: var(--color-correct);
  background: var(--color-correct-bg);
}

.choice-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--color-text);
  margin-top: 0.6em;  /* ルビ分だけ下にずらして行頭に揃える */
}

.choice.correct .choice-letter {
  background: var(--color-correct);
  color: white;
}

.choice-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 2.0;   /* ルビが重ならない行間 */
}

.choice.correct .choice-text {
  color: var(--color-dark);
  font-weight: 500;
}

.correct-badge {
  background: var(--color-correct);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sample-answer {
  padding: 24px 28px;
  background: linear-gradient(135deg, #fffdf9, #fdf6f0);
}

.answer-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.answer-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 2.0;  /* ルビ対応 */
  margin-bottom: 14px;
}

.answer-mark {
  color: var(--color-primary);
  font-size: 1.05em;
}

.answer-point {
  display: block;          /* inline-flex をやめてブロックに */
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  line-height: 2.0;        /* ルビが重ならない行間 */
}

.answer-point i {
  margin-right: 6px;       /* アイコンとテキストの間隔をインラインで均一に */
  vertical-align: middle;
}

/* Formula box */
.formula-box {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.formula-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.formula {
  font-size: 0.95rem;
  color: var(--color-dark);
  font-weight: 600;
  margin-bottom: 6px;
  padding: 8px 12px;
  background: var(--color-bg-gray);
  border-radius: 6px;
}

.formula-calc {
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 6px 12px;
}

.formula-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding: 4px 12px;
}

/* ============================================
   AUTHOR SECTION
============================================ */
.author-section {
  padding: 100px 0;
  background: var(--color-white);
}

.author-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}

.author-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.author-photo {
  width: 100%;
  object-fit: cover;
  display: block;
}

.author-detail .section-label {
  margin-bottom: 16px;
}

.author-name-large {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.author-roles {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 28px;
  line-height: 1.8;
}

.author-bio p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.author-bio p:last-child {
  margin-bottom: 0;
}

.author-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(192, 98, 42, 0.2);
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--color-dark) 0%, #3d2015 50%, #5a3020 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(192, 98, 42, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(240, 168, 104, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-label-wrap {
  margin-bottom: 20px;
}

.cta-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1.4;
  margin-bottom: 40px;
}

.cta-highlight {
  color: var(--color-accent);
}

.cta-product {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 28px 36px;
  display: inline-block;
  margin-bottom: 48px;
  text-align: left;
  max-width: 480px;
}

.cta-product-name {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.cta-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.cta-check-list li i {
  color: var(--color-accent);
  font-size: 0.85rem;
}

.cta-sub-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: #1a0e08;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 20px;
  flex-wrap: wrap;
}

.footer-product {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.footer-author {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-links a {
  color: var(--color-accent);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-copy {
  padding: 16px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================
   FLOATING CTA
============================================ */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.btn-floating {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(192, 98, 42, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(192, 98, 42, 0.6);
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE
============================================ */
.sp-only { display: none; }

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .sp-only { display: inline; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-image-wrap {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-photo {
    height: 380px;
  }

  .hero-author-card {
    bottom: -14px;
    left: 10px;
  }

  .hero-features {
    text-align: left;
  }

  .hero-cta {
    text-align: center;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 1rem;
  }

  .message-inner {
    flex-direction: column;
    gap: 16px;
  }

  .message-quote-icon {
    font-size: 2rem;
  }

  .toc-images {
    grid-template-columns: 1fr;
  }

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

  .features-image-wrap {
    max-width: 480px;
    margin: 0 auto;
  }

  .author-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .author-photo-wrap {
    max-width: 340px;
    margin: 0 auto;
  }

  .author-photo {
    max-height: 380px;
    object-fit: cover;
    object-position: top;
  }

  .cta-product {
    padding: 20px 22px;
    max-width: 100%;
  }

  .btn-cta {
    padding: 18px 32px;
    font-size: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .floating-cta {
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .sample-choices {
    padding: 16px 16px;
  }

  .sample-question, .sample-answer {
    padding: 18px 16px;
  }

  .choice {
    padding: 12px 14px;
  }

  .btn-cta {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
