:root {
  --navy: #0b1f3a;
  --navy-2: #12345a;
  --blue: #2196f3;
  --blue-dark: #1565c0;
  --orange: #f2994a;
  --text: #333333;
  --muted: #667085;
  --line: #d8e7f4;
  --soft: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(11, 31, 58, 0.1);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fb 42%, #ffffff 100%);
  background-size: 52px 52px, auto;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 231, 244, 0.9);
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 96px;
  height: auto;
  object-fit: contain;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 76vw;
  overflow-x: auto;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  scrollbar-width: none;
}

.global-nav::-webkit-scrollbar {
  display: none;
}

.global-nav a {
  flex: 0 0 auto;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a.is-active {
  color: var(--blue-dark);
  background: #eaf4ff;
  border-color: #cde9ff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 24%, rgba(33, 150, 243, 0.2), transparent 24%),
    linear-gradient(135deg, #07172b 0%, #0b1f3a 58%, #11385f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 42px 5vw auto auto;
  width: min(38vw, 520px);
  height: min(38vw, 520px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  transform: rotate(12deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  align-items: center;
  gap: 64px;
  padding: 86px 0 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(140, 200, 255, 0.32);
  border-radius: 999px;
  color: #b8ddff;
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 710px;
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid var(--blue);
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 900;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 32px rgba(33, 150, 243, 0.24);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel::before {
  content: "PHP SALES PLAYBOOK";
  display: block;
  margin-bottom: 12px;
  color: #8cc8ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.signal-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.signal-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 21px;
}

.section {
  position: relative;
  padding: 96px 0;
}

.section-white {
  background: var(--white);
}

.section-tint {
  background:
    linear-gradient(90deg, rgba(33, 150, 243, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  background-size: 56px 56px, auto;
}

.section-navy {
  color: var(--white);
  background: var(--navy);
}

.section-head,
.two-column,
.learning-block,
.practice-strip,
.step-flow,
.domain-grid,
.keyword-board,
.compare-block,
.checklist-grid,
.skill-lens,
.judgement-grid,
.interview-layout,
.level-grid,
.proposal-grid,
.quiz-grid,
.summary-grid,
.notice-box,
.table-wrap,
.point-box.wide,
.must-know,
.chapter-summary,
.exercise-grid {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eaf4ff;
}

.section-head h2,
.section-head p:last-child {
  grid-column: 2;
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p:last-child {
  max-width: 850px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head.inverted .section-kicker {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.section-head.inverted h2,
.section-head.inverted p:last-child {
  color: var(--white);
}

.two-column,
.learning-block,
.interview-layout,
.proposal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.text-block,
.explain-card,
.term-panel,
.question-box,
.notice-box,
.comment-examples,
.checklist,
.level-card,
.judgement-card,
.quiz-card,
.summary-grid article,
.domain-grid article,
.step-flow article,
.practice-strip article,
.lens-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.text-block,
.explain-card,
.question-box,
.comment-examples,
.checklist,
.level-card,
.domain-grid article,
.step-flow article,
.practice-strip article,
.lens-card {
  padding: 26px;
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.4;
}

p {
  margin-top: 0;
}

.point-box {
  margin-top: 22px;
  padding: 22px 24px;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: #fff8f0;
}

.point-box p,
.notice-box p {
  margin-bottom: 0;
}

.mini-diagram {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #0b1f3a, #11385f);
  box-shadow: 0 24px 52px rgba(11, 31, 58, 0.18);
}

.mini-diagram div {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
  text-align: center;
}

.mini-diagram span {
  width: 2px;
  height: 18px;
  margin: 0 auto;
  background: var(--blue);
}

.term-panel {
  padding: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 12%, rgba(33, 150, 243, 0.22), transparent 28%),
    linear-gradient(160deg, #07172b 0%, #0b1f3a 72%);
  box-shadow: 0 24px 50px rgba(11, 31, 58, 0.2);
}

.term-panel h3 {
  color: var(--white);
}

.term-panel dl {
  margin: 0;
}

.term-panel div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.term-panel dt {
  color: #8cc8ff;
  font-weight: 900;
}

.term-panel dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.practice-strip,
.step-flow,
.domain-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.practice-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.step-flow.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-strip article,
.step-flow article,
.domain-grid article,
.level-card {
  border-top: 6px solid #d9ecff;
}

.step-flow span,
.level-card span,
.role-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--white);
  background: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.compare-block {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid #dbe8f5;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.06);
}

.block-lead {
  max-width: 880px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

table {
  width: 100%;
  min-width: 760px;
  border: 0;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--white);
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--white);
  background: linear-gradient(135deg, #0b1f3a, #134a78);
  font-weight: 900;
}

tbody tr:nth-child(even) {
  background: var(--soft);
}

td:first-child {
  color: var(--navy);
  font-weight: 900;
}

.keyword-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.keyword-board div {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.keyword-board h3 {
  color: var(--white);
  font-size: 20px;
}

.keyword-board p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.keyword-board span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(140, 200, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.notice-box {
  margin-top: 24px;
  padding: 24px;
  border-color: rgba(242, 153, 74, 0.48);
  background: #fff8f0;
  color: var(--text);
}

.must-know {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid #cfe7fb;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(33, 150, 243, 0.08) 0 6px, transparent 6px),
    linear-gradient(180deg, #f7fbff, #ffffff);
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.06);
}

.must-know.compact {
  margin-bottom: 24px;
}

.must-know h3,
.chapter-summary h3 {
  margin-bottom: 16px;
}

.must-know-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.must-know-grid article {
  padding: 18px;
  border: 1px solid #d8e7f4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.must-know-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 900;
}

.must-know-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.chapter-summary {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid rgba(33, 150, 243, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.06);
}

.section-navy .chapter-summary {
  color: var(--text);
}

.chapter-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.chapter-summary li + li {
  margin-top: 8px;
}

.exercise-grid {
  display: grid;
  gap: 18px;
}

.exercise-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

.exercise-card summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--navy);
  background: #f7fbff;
  font-weight: 900;
  list-style-position: inside;
}

.exercise-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.exercise-body {
  padding: 24px;
}

.case-ticket {
  padding: 20px 22px;
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: #fff8f0;
}

.case-ticket p {
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 800;
}

.exercise-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.exercise-columns article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.exercise-columns h3 {
  font-size: 18px;
}

.exercise-columns p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
}

.notice-box.light {
  margin: 0;
}

.checklist-grid,
.skill-lens,
.judgement-grid,
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checklist label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.checklist input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--blue);
}

.lens-card.good {
  background: linear-gradient(180deg, #ffffff, #f0f8ff);
}

.lens-card.caution {
  background: linear-gradient(180deg, #ffffff, #fff8f0);
  border-top-color: rgba(242, 153, 74, 0.6);
}

.judgement-card {
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(11, 31, 58, 0.08);
}

.sheet-quote {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 20px 22px;
  color: var(--white);
  background: linear-gradient(135deg, #0b1f3a, #155486);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.45;
}

.judgement-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  min-height: 104px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.judgement-row span,
.rating-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
}

.judgement-row p {
  margin: 0;
}

.judgement-row.weak span,
.rating-badge.triangle {
  background: #98a2b3;
}

.judgement-row.ok span,
.rating-badge.circle {
  background: var(--blue);
}

.judgement-row.great {
  background: #fff8f0;
}

.judgement-row.great span,
.rating-badge.double {
  background: var(--orange);
}

.ask-line {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 16px 20px 20px;
  border-top: 1px dashed #cfd8e3;
  color: var(--navy);
  background: linear-gradient(90deg, #eaf4ff, #f7fbff);
  font-weight: 900;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.level-card strong {
  display: block;
  margin: 18px 0 4px;
  color: var(--navy);
}

.mistake-block {
  border-color: rgba(242, 153, 74, 0.42);
  background: linear-gradient(180deg, #ffffff, #fff8f0);
}

blockquote {
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #eaf4ff 0 8px, #f7fbff 8px 100%);
  color: var(--navy);
  font-weight: 800;
}

blockquote:last-child {
  margin-bottom: 0;
}

.quiz-card {
  overflow: hidden;
  padding: 0;
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

.quiz-card summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--navy);
  background: #f7fbff;
  font-weight: 900;
  list-style-position: inside;
}

.quiz-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.answer-hint {
  padding: 18px 22px 22px;
  border-left: 6px solid var(--blue);
}

.answer-hint strong {
  color: var(--blue-dark);
}

.summary-grid article {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.summary-grid h3 {
  color: var(--white);
}

.summary-grid p {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  color: rgba(255, 255, 255, 0.78);
  background: #07172b;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.level-card,
.domain-grid article,
.step-flow article,
.practice-strip article,
.summary-grid article,
.term-panel,
.explain-card,
.quiz-card,
.lens-card,
.judgement-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.level-card:hover,
.domain-grid article:hover,
.step-flow article:hover,
.practice-strip article:hover,
.summary-grid article:hover,
.term-panel:hover,
.explain-card:hover,
.quiz-card:hover,
.lens-card:hover,
.judgement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(11, 31, 58, 0.14);
}

/* --- ブラッシュアップ: 微細なインタラクションと仕上げ --- */
.button-primary,
.button-secondary {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(33, 150, 243, 0.34);
}

.button-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.global-nav a {
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.keyword-board span {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.keyword-board span:hover {
  transform: translateY(-2px);
  background: rgba(33, 150, 243, 0.34);
  border-color: rgba(140, 200, 255, 0.6);
}

.exercise-card summary,
.quiz-card summary {
  transition: background 0.2s ease, color 0.2s ease;
}

.exercise-card summary:hover,
.quiz-card summary:hover {
  background: #eaf4ff;
  color: var(--blue-dark);
}

.section-kicker {
  box-shadow: 0 8px 18px rgba(33, 150, 243, 0.18);
}

.must-know-grid article {
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.must-know-grid article:hover {
  transform: translateY(-2px);
  border-color: #b6d8f6;
  background: #ffffff;
}

.checklist label {
  transition: color 0.18s ease;
}

.checklist label:hover {
  color: var(--blue-dark);
}

/* --- 図版（gpt-image-2 生成 / 姉妹資料と共通の体裁）--- */
.diagram-figure {
  width: min(var(--max), calc(100% - 48px));
  margin: 30px auto 0;
  padding: 22px;
  border: 1px solid #d8e7f4;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(33, 150, 243, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 20px 46px rgba(11, 31, 58, 0.08);
}

/* 縦長の図は横幅を抑えて中央寄せし、横長図(01)とのバランスを取る */
.diagram-figure.is-compact {
  max-width: 760px;
}

.diagram-figure img,
.diagram-figure svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.diagram-figure figcaption {
  margin: 16px 4px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.diagram-figure figcaption::before {
  content: "図";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
  vertical-align: -4px;
}

.section-navy .diagram-figure {
  border-color: rgba(140, 200, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92));
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .global-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: flex;
  }

  .hero-inner,
  .two-column,
  .learning-block,
  .interview-layout,
  .proposal-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 64px;
    gap: 34px;
  }

  .section-head {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .section-head h2,
  .section-head p:last-child {
    grid-column: 1;
  }

  .practice-strip,
  .step-flow,
  .domain-grid,
  .summary-grid,
  .level-grid,
  .skill-lens,
  .judgement-grid,
  .quiz-grid,
  .checklist-grid,
  .keyword-board,
  .must-know-grid,
  .exercise-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head,
  .two-column,
  .learning-block,
  .practice-strip,
  .step-flow,
  .domain-grid,
  .keyword-board,
  .compare-block,
  .checklist-grid,
  .skill-lens,
  .judgement-grid,
  .interview-layout,
  .level-grid,
  .proposal-grid,
  .quiz-grid,
  .summary-grid,
  .notice-box,
  .table-wrap,
  .point-box.wide,
  .must-know,
  .chapter-summary,
  .exercise-grid,
  .hero-inner {
    width: min(100% - 32px, var(--max));
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .practice-strip,
  .step-flow,
  .domain-grid,
  .keyword-board,
  .summary-grid,
  .level-grid,
  .skill-lens,
  .judgement-grid,
  .quiz-grid,
  .checklist-grid,
  .must-know-grid,
  .exercise-columns {
    grid-template-columns: 1fr;
  }

  .term-panel div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .level-card:hover,
  .domain-grid article:hover,
  .step-flow article:hover,
  .practice-strip article:hover,
  .summary-grid article:hover,
  .term-panel:hover,
  .explain-card:hover,
  .quiz-card:hover,
  .lens-card:hover,
  .judgement-card:hover,
  .button-primary:hover,
  .button-secondary:hover,
  .keyword-board span:hover,
  .must-know-grid article:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  .read-progress,
  .site-header,
  .hero-actions,
  .nav-toggle,
  .site-footer {
    display: none;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 12pt;
  }

  .diagram-figure {
    box-shadow: none;
    break-inside: avoid;
  }

  .hero,
  .section-navy {
    color: #111;
    background: #fff;
  }

  .section {
    padding: 28px 0;
    break-inside: avoid;
  }

  .section-head,
  .two-column,
  .learning-block,
  .practice-strip,
  .step-flow,
  .domain-grid,
  .keyword-board,
  .compare-block,
  .checklist-grid,
  .skill-lens,
  .judgement-grid,
  .interview-layout,
  .level-grid,
  .proposal-grid,
  .quiz-grid,
  .summary-grid,
  .notice-box,
  .table-wrap,
  .point-box.wide,
  .hero-inner {
    width: 100%;
  }
}
