:root {
  --navy: #0b1f3a;
  --navy-2: #12345a;
  --blue: #2196f3;
  --blue-dark: #1565c0;
  --orange: #f2994a;
  --text: #273244;
  --muted: #667085;
  --line: #e0e7ef;
  --soft: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(11, 31, 58, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0, #f7f9fc 520px, #ffffff 100%);
  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, summary { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(224, 231, 239, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 96px;
  height: auto;
  object-fit: contain;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #344054;
}

.global-nav a {
  padding: 8px 9px;
  border-radius: 999px;
}

.global-nav a:hover,
.global-nav a.is-active {
  color: var(--blue-dark);
  background: #eaf4ff;
}

.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 {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(33, 150, 243, 0.22), transparent 28%),
    linear-gradient(135deg, #07172b 0%, #0b1f3a 54%, #11385f 100%);
  overflow: hidden;
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 430px;
  align-items: center;
  gap: 64px;
  padding: 88px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
}

.hero-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.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 { background: var(--blue); color: var(--white); }
.button-secondary { border: 1px solid rgba(255, 255, 255, 0.34); color: var(--white); }

.hero-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.signal-row {
  display: grid;
  grid-template-columns: 92px 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 { font-size: 21px; line-height: 1.35; }

.section { padding: 104px 0; }
.section-white { background: var(--white); }
.section-tint { background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%); }
.section-editorial {
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.05) 0 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  background-size: 44px 44px, auto;
}
.section-navy { color: var(--white); background: var(--navy); }

.section-head,
.two-column,
.text-panel-full,
.compare-grid,
.table-block,
.tech-board,
.domain-grid,
.keyword-board,
.checklist-grid,
.interview-layout,
.judgement-grid,
.answer-board,
.mistake-grid,
.comment-examples,
.quiz-grid,
.summary-grid {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section-head { margin-bottom: 42px; }
.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}
.section-head p:not(.section-kicker) {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--muted);
}
.section-head.inverted h2,
.section-head.inverted p { color: var(--white); }
.section-head.inverted p:not(.section-kicker) { color: rgba(255,255,255,0.78); }

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: center;
}

.text-panel,
.compare-grid article,
.tech-board article,
.domain-grid article,
.keyword-board article,
.checklist-grid article,
.question-box,
.judgement-card,
.quiz-card,
.summary-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.08);
}

.text-panel { padding: 30px; }
h3 { margin: 0 0 12px; color: var(--navy); font-size: 23px; line-height: 1.35; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding-left: 1.25em; }
li + li { margin-top: 6px; }

.point-box {
  margin-top: 22px;
  padding: 18px;
  border-left: 5px solid var(--orange);
  background: #fff7ed;
  border-radius: var(--radius);
}
.point-box h4 { margin: 0 0 8px; color: #9a4b11; font-size: 16px; }

.mini-flow {
  display: grid;
  gap: 14px;
}
.mini-flow div {
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}
.mini-flow span {
  width: 2px;
  height: 22px;
  margin: 0 auto;
  background: var(--blue);
}

.compare-grid,
.tech-board,
.domain-grid,
.keyword-board,
.checklist-grid,
.interview-layout,
.judgement-grid,
.mistake-grid,
.quiz-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}
.compare-grid { grid-template-columns: repeat(4, 1fr); }
.tech-board { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.domain-grid { grid-template-columns: repeat(3, 1fr); }
.keyword-board,
.checklist-grid,
.interview-layout,
.judgement-grid,
.mistake-grid,
.quiz-grid,
.summary-grid { grid-template-columns: repeat(2, 1fr); }

.compare-grid article,
.tech-board article,
.domain-grid article,
.keyword-board article,
.checklist-grid article,
.question-box,
.quiz-card,
.summary-grid article {
  padding: 24px;
}

.pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: #eaf4ff;
}

.table-block,
.answer-board {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--navy);
  background: #f0f6fc;
  font-weight: 900;
}

.warning-card {
  border-color: #ffd3a8 !important;
  background: #fff7ed !important;
}

.check-list li::marker { color: #1f9d55; }
.ng-list li::marker { color: var(--orange); }

.judgement-card {
  padding: 26px;
  position: relative;
}
.judgement-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  color: var(--white);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}
.judgement-card.weak span { background: var(--orange); }
.judgement-card.good span { background: var(--blue); }
.judgement-card.excellent span { background: var(--navy); }
.judgement-grid { grid-template-columns: repeat(3, 1fr); }

.mistake-grid article {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
}
.mistake-grid h3 { color: #ffffff; }
.mistake-grid p { color: rgba(255,255,255,0.78); }

.comment-examples {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.comment-examples h3 {
  grid-column: 1 / -1;
  color: #ffffff;
}
.comment-examples article {
  padding: 22px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
}
.comment-examples span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.quiz-card details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.quiz-card summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.chapter-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 920px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #cfe3f8;
  border-radius: var(--radius);
  background: #f3f9ff;
}
.chapter-note strong {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 14px;
  white-space: nowrap;
}
.chapter-note span {
  color: #344054;
  font-size: 15px;
  line-height: 1.7;
}
.chapter-note-dark {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
}
.chapter-note-dark strong,
.chapter-note-dark span {
  color: rgba(255,255,255,0.9);
}

.type-grid,
.exercise-grid {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.type-card,
.exercise-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.type-card:hover,
.exercise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(11, 31, 58, 0.14);
}

.type-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}
.type-card dt,
.exercise-body h4 {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}
.type-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.type-card-wide {
  grid-column: 1 / -1;
}

.exercise-card {
  display: grid;
  gap: 18px;
}
.exercise-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.exercise-head span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  color: #9a4b11;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: #fff0df;
}
.exercise-head h3 {
  margin-bottom: 0;
}
.exercise-body {
  display: grid;
  gap: 12px;
}
.exercise-body section {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #f8fbff;
}
.exercise-body section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}
.exercise-body .decision {
  border-left: 5px solid var(--blue);
  background: #eef7ff;
}
.exercise-body .decision.caution {
  border-left-color: var(--orange);
  background: #fff7ed;
}
.exercise-body .decision.ng {
  border-left-color: #d92d20;
  background: #fff4f4;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  color: rgba(255,255,255,0.76);
  background: #07172b;
  font-size: 14px;
}
.site-footer p { margin: 0; }
.site-footer a { font-weight: 900; }

.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 div h3 {
  color: var(--white);
  font-size: 20px;
}

.keyword-board div p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.keyword-board div 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;
}

.chapter-summary,
.proposal-grid,
.notice-box {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.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);
}

.chapter-summary h3 {
  margin-bottom: 16px;
}

.chapter-summary ul {
  margin: 0;
  padding-left: 1.2em;
}

.chapter-summary li + li {
  margin-top: 8px;
}

.section-navy .chapter-summary {
  color: var(--text);
}

#mistakes .mistake-grid article {
  border: 1px solid var(--line);
  border-top: 6px solid rgba(242, 153, 74, 0.62);
  background: linear-gradient(180deg, #ffffff, #fff8f0);
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

#mistakes .mistake-grid h3 {
  color: var(--navy);
}

#mistakes .mistake-grid p {
  color: var(--muted);
}

.proposal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: stretch;
}

.notice-box {
  padding: 24px;
  border: 1px solid rgba(242, 153, 74, 0.48);
  border-radius: var(--radius);
  background: #fff8f0;
  color: var(--text);
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

.notice-box.light {
  width: auto;
  margin: 0;
}

.comment-examples {
  width: auto;
  margin: 0;
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

.comment-examples h3 {
  color: var(--navy);
}

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 {
  padding: 0;
}

.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);
}

.section-navy .summary-grid article {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.section-navy .summary-grid h3 {
  color: var(--white);
}

.section-navy .summary-grid p {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  .proposal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .chapter-summary,
  .proposal-grid,
  .notice-box {
    width: min(100% - 32px, var(--max));
  }
}

/* 背景の縦グリッドを外し、章メモの位置を読みやすく調整 */
body {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 42%, #ffffff 100%);
}

.section-tint {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.section-editorial {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}

.section-head .chapter-note {
  grid-column: 1 / -1;
  max-width: none;
}

/* まとめセクションはPHP教材と同じ横4カードに揃える */
#summary .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  #summary .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #summary .summary-grid {
    grid-template-columns: 1fr;
  }
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.compare-grid article,
.tech-board article,
.domain-grid article,
.keyword-board article,
.checklist-grid article,
.question-box,
.judgement-card,
.quiz-card,
.summary-grid article {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.compare-grid article:hover,
.tech-board article:hover,
.domain-grid article:hover,
.keyword-board article:hover,
.checklist-grid article:hover,
.question-box:hover,
.judgement-card:hover,
.quiz-card:hover,
.summary-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(11, 31, 58, 0.14);
}

a:focus-visible,
button:focus-visible,
summary: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: block; }
  .global-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 12px; }
  .hero-inner,
  .two-column {
    grid-template-columns: 1fr;
  }
  .hero-inner { min-height: auto; padding: 70px 0 56px; }
  .compare-grid,
  .tech-board,
  .domain-grid,
  .keyword-board,
  .checklist-grid,
  .interview-layout,
  .judgement-grid,
  .mistake-grid,
  .comment-examples,
  .quiz-grid,
  .summary-grid,
  .type-grid,
  .exercise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-head,
  .two-column,
  .compare-grid,
  .table-block,
  .tech-board,
  .domain-grid,
  .keyword-board,
  .checklist-grid,
  .interview-layout,
  .judgement-grid,
  .answer-board,
  .mistake-grid,
  .comment-examples,
  .quiz-grid,
  .summary-grid,
  .type-grid,
  .exercise-grid,
  .hero-inner {
    width: min(100% - 32px, var(--max));
  }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .compare-grid,
  .tech-board,
  .domain-grid,
  .keyword-board,
  .checklist-grid,
  .interview-layout,
  .judgement-grid,
  .mistake-grid,
  .comment-examples,
  .quiz-grid,
  .summary-grid,
  .type-grid,
  .exercise-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel { padding: 20px; }
  .signal-row { grid-template-columns: 80px 1fr; }
  .signal-row strong { font-size: 18px; }
  .table-block,
  .answer-board { padding: 18px; }
  .chapter-note {
    display: block;
  }
  .chapter-note strong {
    display: block;
    margin-bottom: 6px;
  }
  .type-card-wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* PHP教材の読みやすい質感を反映した磨き込み */
body {
  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;
}

.site-header {
  min-height: 68px;
  gap: 22px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(216, 231, 244, 0.9);
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
}

.global-nav {
  max-width: 76vw;
  overflow-x: auto;
  scrollbar-width: none;
}

.global-nav::-webkit-scrollbar {
  display: none;
}

.global-nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a.is-active {
  border-color: #cde9ff;
}

.hero {
  position: relative;
  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;
  min-height: 680px;
  padding: 86px 0 70px;
}

.hero h1 {
  max-width: 780px;
  margin: 22px 0 24px;
}

.hero-lead {
  max-width: 710px;
  margin: 0;
  padding-left: 18px;
  border-left: 4px solid var(--blue);
}

.button-primary {
  box-shadow: 0 16px 32px rgba(33, 150, 243, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(14px);
}

.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);
}

.section {
  position: relative;
  padding: 96px 0;
}

.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-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:not(.section-kicker),
.section-head .chapter-note {
  grid-column: 2;
}

.section-head h2 {
  line-height: 1.18;
}

.section-head p:not(.section-kicker) {
  margin-top: 16px;
  font-size: 18px;
}

.section-head.inverted .section-kicker {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.two-column {
  gap: 22px;
  align-items: stretch;
}

.text-panel,
.compare-grid article,
.tech-board article,
.domain-grid article,
.keyword-board article,
.checklist-grid article,
.question-box,
.judgement-card,
.quiz-card,
.summary-grid article,
.type-card,
.exercise-card {
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

.text-panel,
.compare-grid article,
.tech-board article,
.domain-grid article,
.keyword-board article,
.checklist-grid article,
.question-box,
.quiz-card,
.summary-grid article,
.type-card,
.exercise-card {
  padding: 26px;
}

.point-box {
  padding: 22px 24px;
  background: #fff8f0;
}

.mini-flow {
  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-flow div {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 12px;
  color: var(--white);
  border: 0;
  background: rgba(255, 255, 255, 0.1);
}

.mini-flow span {
  height: 18px;
}

.table-block,
.answer-board {
  border-color: #dbe8f5;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.06);
}

.table-wrap {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}

table {
  border: 0;
  background: var(--white);
}

th {
  color: var(--white);
  background: linear-gradient(135deg, #0b1f3a, #134a78);
}

tbody tr:nth-child(even) {
  background: var(--soft);
}

td:first-child {
  color: var(--navy);
  font-weight: 900;
}

.chapter-note {
  border-color: #cfe7fb;
  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.05);
}

.section-navy .chapter-note-dark {
  border-color: rgba(140, 200, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(33, 150, 243, 0.42) 0 6px, transparent 6px),
    rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.section-navy .chapter-note-dark strong,
.section-navy .chapter-note-dark span {
  color: rgba(255, 255, 255, 0.92);
}

.type-card {
  border-top: 6px solid #d9ecff;
}

.type-card:nth-child(2),
.type-card:nth-child(4) {
  border-top-color: rgba(33, 150, 243, 0.48);
}

.type-card-wide {
  border-top-color: rgba(242, 153, 74, 0.62);
}

.exercise-card {
  overflow: hidden;
  border-radius: 18px;
}

.exercise-head {
  margin: -26px -26px 0;
  padding: 20px 24px;
  background: #f7fbff;
}

.exercise-body section {
  border: 1px solid #e2eef8;
}

.exercise-body .decision {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.quiz-card {
  overflow: hidden;
  padding: 0;
}

.quiz-card h3,
.quiz-card > p {
  margin-left: 22px;
  margin-right: 22px;
}

.quiz-card h3 {
  margin-top: 20px;
}

.quiz-card details {
  margin-top: 16px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.quiz-card summary {
  padding: 16px 22px;
  background: #f7fbff;
}

.quiz-card details p {
  margin: 0;
  padding: 18px 22px 22px;
  border-left: 6px solid var(--blue);
}

.read-progress {
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

@media (max-width: 980px) {
  .section-head {
    display: block;
  }

  .section-kicker {
    margin-bottom: 14px;
  }

  .global-nav {
    max-width: none;
    overflow-x: visible;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    min-height: auto;
  }

  .hero h1 {
    margin-top: 0;
  }

  .hero-lead {
    padding-left: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}

/* 最終調整: 背景の縦線を消し、章メモを右寄せにしない */
body {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 42%, #ffffff 100%);
  background-size: auto;
}

.section-tint,
.section-editorial {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  background-size: auto;
}

.section-head .chapter-note {
  grid-column: 1 / -1;
  max-width: none;
}

/* --- 図版（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.is-narrow {
  max-width: 580px;
}

.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));
}

@media print {
  .diagram-figure {
    box-shadow: none;
    break-inside: avoid;
  }
}
