/* ==========================================================================
   資格試験対策ラボ ポータルデザインシステム (専門書籍・教材仕様)
   ========================================================================== */

:root {
  --primary: #1e3a8a; /* 深みのあるネイビー */
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --accent: #f59e0b; /* マスタードイエロー（アクション） */
  --accent-hover: #d97706;
  --dark: #0f172a; /* 深いブラック/ダークネイビー */
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--gray-800);
  background-color: var(--gray-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #1d4ed8;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* アイコン用クラス */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-inline {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 0.25rem;
}
.icon-check {
  color: #10b981;
  vertical-align: middle;
  flex-shrink: 0;
}

/* サイトヘッダー (添付画像準拠・白背景＆清潔感あふれる専門ストア仕様) */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.25rem;
}
.brand-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-logo-icon {
  flex-shrink: 0;
}
.brand-name {
  color: #0f172a;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-sub {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  margin-left: 0.6rem;
  padding-left: 0.75rem;
  border-left: 1px solid #cbd5e1;
  display: inline-block;
}
.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.header-nav-link {
  color: #475569;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}
.header-nav-link:hover {
  color: #0f172a;
}
.header-search-btn {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.header-search-btn:hover {
  background: #bfdbfe;
  color: #1e40af;
}

/* パンくずリスト */
.breadcrumb-wrap {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.65rem 0;
  font-size: 0.825rem;
  color: #64748b;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}
.breadcrumb-item a {
  color: #2563eb;
  text-decoration: none;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-separator {
  color: #94a3b8;
}

/* ヒーローセクション (コーポレートブルー・左モックアップ×右コピー) */
.hero-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-pre-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}
.hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* リアルタイム検索バー (添付画像イエローアクセント・高コントラスト) */
.hero-search-area {
  max-width: 620px;
}
.search-box-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}
.search-input-group {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.5rem 0.4rem 1.15rem;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.35);
  align-items: center;
}
.search-icon-wrap {
  color: var(--gray-400);
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.925rem;
  color: var(--gray-900);
  font-weight: 500;
}
.search-input::placeholder {
  color: var(--gray-400);
  font-size: 0.85rem;
}
.search-submit-btn {
  background: #f59e0b;
  color: #0f172a;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.search-submit-btn:hover {
  background: #fbbf24;
}
.search-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}
.quick-tag-label {
  font-weight: 700;
}
.quick-tag-item {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}
.quick-tag-item:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.scroll-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  text-align: left;
}
.search-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s ease;
  color: var(--gray-800);
}
.search-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}
.search-dropdown-item:last-child {
  border-bottom: none;
}
.search-item-cat {
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* iPad教材モックアップコンポーネント (添付画像準拠・斜め3Dパースペクティブ構図) */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  padding: 1.5rem 1rem 2.5rem;
}
.ipad-mockup {
  background: #ffffff;
  border-radius: 38px;
  padding: 10px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    -28px 40px 75px -12px rgba(15, 23, 42, 0.65),
    -10px 15px 30px -5px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 0 0 2px rgba(226, 232, 240, 0.85);
  position: relative;
  width: 100%;
  max-width: 450px;
  /* 添付画像（image_0.png）と同じ右斜め向きのリアルな3Dアングル */
  transform: rotateY(16deg) rotateX(4deg) rotateZ(-3deg);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.ipad-mockup:hover {
  transform: rotateY(11deg) rotateX(2deg) rotateZ(-1.5deg) translateY(-8px);
  box-shadow: 
    -36px 52px 90px -15px rgba(15, 23, 42, 0.75),
    -12px 20px 35px -5px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 0 0 2px rgba(226, 232, 240, 0.95);
}
.ipad-camera {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  margin: 0 auto 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ipad-screen {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: var(--gray-900);
  position: relative;
}
/* ガラス反射光エフェクト */
.ipad-screen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 10;
}
.ipad-appbar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--gray-600);
}
.ipad-sheet-content {
  padding: 14px 16px;
  font-size: 0.75rem;
  line-height: 1.5;
}
.sheet-meta-pill {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.4rem;
}
.sheet-sample-q {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.4rem;
  line-height: 1.45;
}

/* リアルな選択肢と誤答理由アノテーション */
.ipad-choices-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.choice-item-annotated {
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.7rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.choice-item-annotated.is-wrong-focused {
  border-color: #fca5a5;
  background: #fff5f5;
}
.choice-item-annotated.is-correct-focused {
  border-color: #86efac;
  background: #f0fdf4;
}
.choice-text-line {
  color: var(--gray-800);
  margin-bottom: 3px;
  line-height: 1.4;
}
.choice-wrong-note {
  background: #fee2e2;
  border-left: 3px solid #dc2626;
  padding: 3px 6px;
  border-radius: 2px;
  color: #991b1b;
  font-size: 0.65rem;
  line-height: 1.4;
  margin-top: 3px;
}
.choice-wrong-note strong {
  color: #b91c1c;
  font-weight: 800;
}
.choice-correct-note {
  background: #dcfce7;
  border-left: 3px solid #16a34a;
  padding: 3px 6px;
  border-radius: 2px;
  color: #166534;
  font-size: 0.65rem;
  line-height: 1.4;
  margin-top: 3px;
}
.choice-correct-note strong {
  color: #15803d;
  font-weight: 800;
}

.ipad-footer-info {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 6px 12px;
  font-size: 0.675rem;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Apple Pencil モックアップ (斜めiPadの側面に3D吸着) */
.apple-pencil-mockup {
  position: absolute;
  right: -16px;
  top: 50px;
  width: 10px;
  height: 250px;
  background: linear-gradient(180deg, #e2e8f0 0%, #ffffff 15%, #ffffff 85%, #cbd5e1 100%);
  border-radius: 5px;
  box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 4px;
  transform: translateZ(25px) rotate(4deg);
  z-index: 15;
}
.apple-pencil-tip {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 14px solid #64748b;
  position: absolute;
  bottom: -13px;
}

/* 利用フロー（3ステップ） */
.flow-section {
  padding: 3rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.flow-step-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}
.flow-step-no {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.flow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.flow-step-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* 運営理念セクション */
.philosophy-section {
  padding: 4rem 0;
  background: #ffffff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.philosophy-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.philosophy-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.philosophy-lead {
  font-size: 1.05rem;
  color: var(--gray-800);
  font-weight: 600;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.philosophy-body {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* カテゴリ一覧（ユーザー指定画像準拠・白背景ピルタグクラウド形式） */
.category-pill-section {
  background: #ffffff;
  padding: 4rem 0 4.5rem;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.category-pill-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}
.category-pill-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.category-pill-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
}
.category-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.1rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}
.category-pill-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem 1.35rem;
  text-decoration: none;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.category-pill-item:hover {
  background: #ffffff;
  border-color: #2563eb;
  color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.15);
  z-index: 50;
}
.category-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.category-pill-name {
  white-space: nowrap;
}
.category-pill-count {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  background: #edf2f7;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-left: 0.2rem;
  transition: all 0.2s ease;
}
.category-pill-item:hover .category-pill-count {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ホバー時に表示される代表資格ツールチップ */
.category-pill-tooltip {
  position: absolute;
  bottom: calc(100% + 11px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.45);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.3;
}
.category-pill-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}
.category-pill-item:hover .category-pill-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.tooltip-badge {
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.tooltip-text {
  color: #f1f5f9;
  font-weight: 500;
}

/* カテゴリ一覧（洗練されたインデックス形式） */
.category-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.category-index-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}
.category-index-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.category-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.category-item-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.category-item-count {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 600;
}
.category-item-tags {
  font-size: 0.775rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}
.category-item-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* クイックピックアップグリッド */
.pickup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.exam-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.exam-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}
.exam-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.badge-national { background: #fee2e2; color: #b91c1c; }
.badge-public { background: #e0e7ff; color: #4338ca; }
.badge-private { background: #fef3c7; color: #b45309; }
.exam-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  flex: 1;
}
.exam-card-meta {
  font-size: 0.825rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.exam-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.exam-card-price small {
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 0.25rem;
}
.exam-card-btn {
  display: block;
  text-align: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.exam-card-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* =============================================================
   個別LPページ（添付画像完全準拠・高成約率成約特化型UI）
   ============================================================= */

.lp-main-section {
  background: #ffffff;
  padding: 1.75rem 0 3.5rem;
}
.lp-header-wrap {
  margin-bottom: 1.5rem;
}
.lp-top-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.lp-top-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  line-height: 1.3;
}
.badge-division-public { background: #e0f2fe; color: #0284c7; }
.badge-division-national { background: #dbeafe; color: #1d4ed8; }
.badge-division-private { background: #f1f5f9; color: #475569; }
.badge-year-latest { background: #dcfce7; color: #15803d; }
.badge-gov-auth { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.lp-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.lp-lead-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1.15rem;
}
.lp-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.lp-spec-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  line-height: 1.3;
}
.spec-tag-blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.spec-tag-green { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.spec-tag-yellow { background: #fefce8; color: #92400e; border: 1px solid #fde68a; }
.spec-tag-purple { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }

/* 2カラム分割（左コンテンツ × 右固定Buy Box） */
.lp-split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.25rem;
  align-items: start;
}

/* 左側：書籍モックアップ ＋ 4大メリットリスト */
.lp-left-top {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}
.book-cover-mock {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 14px 28px -5px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.book-cover-mock::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.book-label-top {
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.book-sub-series {
  font-size: 0.68rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.book-title-main {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.book-title-accent {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 0.85rem;
}
.book-points-list {
  list-style: none;
  font-size: 0.68rem;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}
.book-points-list li {
  line-height: 1.35;
}
.book-footer-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-align: center;
  line-height: 1.3;
}

/* 4大メリットカード */
.merit-card-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.merit-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.merit-icon-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}
.merit-content-wrap h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.15rem;
}
.merit-content-wrap p {
  font-size: 0.775rem;
  color: #64748b;
  line-height: 1.45;
}

/* 右側：固定Buy Box（購買カード） */
.lp-buybox {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 5rem;
}
.buybox-header-bar {
  background: #ecfdf5;
  border-bottom: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.775rem;
  font-weight: 700;
  text-align: center;
  padding: 0.55rem 0.75rem;
}
.buybox-body {
  padding: 1.35rem 1.25rem;
}
.buybox-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.85rem;
}
.buybox-price-num {
  font-size: 2.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.buybox-price-note {
  font-size: 0.75rem;
  color: #64748b;
}
.buybox-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-bottom: 1.35rem;
}
.buybox-specs-table tr {
  border-bottom: 1px dashed #e2e8f0;
}
.buybox-specs-table th {
  text-align: left;
  padding: 0.45rem 0;
  color: #64748b;
  font-weight: 500;
  width: 32%;
}
.buybox-specs-table td {
  padding: 0.45rem 0;
  color: #0f172a;
  font-weight: 700;
}
.btn-buy-booth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #059669;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}
.btn-buy-booth:hover {
  background: #047857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.45);
}
.buybox-footer-note {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.4;
}
.btn-comingsoon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #94a3b8;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  cursor: not-allowed;
  text-align: center;
  user-select: none;
  box-shadow: none;
}
.badge-comingsoon {
  background: #64748b !important;
  color: #ffffff !important;
}
.closing-cta-card.is-comingsoon {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: none;
}
.closing-cta-btn.is-comingsoon {
  background: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}
.closing-cta-btn.is-comingsoon:hover {
  background: #64748b;
  transform: none;
  box-shadow: none;
}
.exam-card.is-comingsoon .exam-card-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.exam-card.is-comingsoon .exam-card-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* 紙面サンプル（BOOTH実画像＆Coming Soon） */
.sample-spread-section {
  margin-bottom: 2.5rem;
}
.sample-images-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sample-image-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sample-image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.sample-image-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}
.sample-image-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.sample-image-zoom-hint {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}
.sample-spread-link {
  display: block;
  position: relative;
  background: #f1f5f9;
  cursor: zoom-in;
}
.sample-spread-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.sample-comingsoon-card {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2.75rem 1.5rem;
  text-align: center;
}
.sample-comingsoon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  margin-bottom: 1rem;
}
.sample-comingsoon-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.sample-comingsoon-desc {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 合格へ導く「3大必須構成ルール」 */
.lp-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.rule-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.rule-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 0.45rem;
}
.rule-card-desc {
  font-size: 0.825rem;
  color: #475569;
  line-height: 1.65;
}

/* 紙面サンプル（実際の学習レイアウト）見開きUI */
.spread-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.spread-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.page-sheet-mock {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
}
.page-sheet-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
}
.badge-q-no {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.badge-ans-no {
  background: #059669;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.sheet-theme-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}
.sheet-question-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sheet-choices-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.sheet-choice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.45;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.choice-num {
  font-weight: 800;
  color: #2563eb;
  flex-shrink: 0;
}
.ans-summary-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}
.sheet-expl-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.sheet-expl-item {
  font-size: 0.775rem;
  line-height: 1.5;
  color: #334155;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}
.sheet-expl-item.is-correct-expl {
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
}
.sheet-expl-item.is-wrong-expl {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
}
.sheet-point-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.775rem;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.sheet-point-header {
  font-weight: 800;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.page-sheet-footer-no {
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
}

/* 収録カリキュラム・目次構成（全問） */
.curriculum-box-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.curriculum-part-block {
  margin-bottom: 1.5rem;
}
.curriculum-part-block:last-child {
  margin-bottom: 0;
}
.curriculum-part-head {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e40af;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}
.curriculum-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}
.curriculum-table tr:hover td {
  background: #f8fafc;
}
.curriculum-col-title {
  color: #334155;
  font-weight: 600;
}
.curriculum-col-meta {
  text-align: right;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}

/* よくあるご質問 (FAQ) */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 3.5rem;
}
.faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.faq-q {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.faq-a {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  padding-left: 1.5rem;
}

/* ラストクロージングCTA (淡いミントグリーン背景＆大型エメラルドグリーンボタン) */
.closing-cta-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  margin-bottom: 2rem;
}
.closing-cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.closing-cta-sub {
  font-size: 0.925rem;
  color: #334155;
  margin-bottom: 1.5rem;
}
.closing-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #059669;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.closing-cta-btn:hover {
  background: #047857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
}

/* クリーンフッター (白・薄グレー背景＆中央揃え免責) */
.site-footer {
  background: #ffffff;
  color: #64748b;
  padding: 2.5rem 0 2rem;
  font-size: 0.8rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}
.footer-copy {
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}
.footer-disclaimer {
  font-size: 0.725rem;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}
.footer-nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.78rem;
}
.footer-nav-links a {
  color: #64748b;
  text-decoration: none;
}
.footer-nav-links a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 法的情報静的ページ用 */
.legal-page-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin: 2.5rem auto 4rem;
  max-width: 860px;
}
.legal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0.75rem;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
}
.legal-table th {
  background: var(--gray-50);
  width: 25%;
  text-align: left;
  font-weight: 700;
  color: var(--gray-700);
}
.legal-table td {
  color: var(--gray-800);
  line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-content-right {
    order: 1;
    text-align: center;
  }
  .hero-mockup-wrapper {
    order: 2;
    margin: 0 auto;
  }
  .hero-search-area {
    margin: 0 auto;
  }
  .search-quick-tags {
    justify-content: center;
  }
  .hero-scroll-cue {
    display: none;
  }
  .ipad-mockup {
    margin: 0 auto;
    transform: rotateY(8deg) rotateX(2deg) rotateZ(-1deg);
  }
  .header-actions {
    display: none;
  }
  .lp-split-layout {
    grid-template-columns: 1fr;
  }
  .lp-buybox {
    position: static;
    margin-bottom: 2rem;
  }
  .lp-left-top {
    grid-template-columns: 1fr;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .spread-layout {
    grid-template-columns: 1fr;
  }
  .features-grid, .flow-steps, .trust-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .ipad-mockup {
    transform: none;
    box-shadow: 0 15px 35px -8px rgba(15, 23, 42, 0.4);
  }
  .header-nav {
    display: none;
  }
  .apple-pencil-mockup {
    display: none;
  }
  .ipad-sheet-content {
    padding: 10px 12px;
  }
  .lp-main-title {
    font-size: 1.4rem;
  }
}

/* 印刷対応 */
@media print {
  .site-header, .site-footer, .footer-cta, .cta-btn-main, .search-box-wrap, .trust-banner {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  .page-sheet {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-after: always;
  }
}
