:root {
  --navy: #0b1f3a;
  --navy-2: #12345a;
  --blue: #2196f3;
  --blue-dark: #1565c0;
  --orange: #f2994a;
  --text: #333333;
  --muted: #667085;
  --line: #d8e3ee;
  --soft: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(11, 31, 58, 0.1);
  --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(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 { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 227, 238, 0.82);
  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: 900;
}

.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 {
  padding: 8px 10px;
  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: 8px;
  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;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  align-items: center;
  gap: 52px;
  width: min(var(--max), calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  padding: 88px 0 72px;
}

.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: 820px;
  margin: 18px 0 24px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  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;
}

.hero-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin-top: 24px;
}

.hero-goals span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(140, 200, 255, 0.28);
  border-radius: 999px;
  color: #d7ecff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  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: 30px;
  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: "C / C++ / C# FIELD GUIDE";
  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: 18px;
  align-items: center;
  min-height: 88px;
  padding: 18px 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.76); font-size: 16px; font-weight: 900; }
.signal-row strong {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: 0;
}

.section { padding: 104px 0; }
.section-white { background: rgba(255, 255, 255, 0.96); }
.section-tint { background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%); }
.section-navy { color: var(--white); background: var(--navy); }

.section-head,
.two-column,
.text-block,
.learning-block,
.practice-strip,
.role-grid,
.compare-block,
.domain-grid,
.keyword-board,
.notice-box,
.dossier-layout,
.translation-board,
.interview-layout,
.level-grid,
.proposal-grid,
.quiz-grid,
.summary-grid {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.focus-grid,
.acceptance-box {
  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: 860px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-head.inverted h2,
.section-head.inverted p:last-child { color: var(--white); }
.section-head.inverted p:last-child { opacity: 0.84; }
.section-head.inverted .section-kicker { color: var(--white); background: rgba(255, 255, 255, 0.12); }

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: stretch;
}

.text-block {
  padding: 30px;
  border: 1px solid #d9e7f4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 48px rgba(11, 31, 58, 0.08);
}

.text-block h3,
.compare-block h3,
.notice-box h3,
.question-box h3,
.comment-examples h3,
.point-box h4 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.4;
}

.text-block p,
.point-box p,
.notice-box p,
.role-card p,
.domain-grid p,
.level-card p,
.summary-grid p { margin: 0; }

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

.mini-diagram {
  display: grid;
  grid-template-columns: 1fr;
  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);
}

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

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

.role-card,
.explain-card,
.term-panel,
.practice-strip article,
.focus-card,
.domain-grid article,
.level-card,
.question-box,
.comment-examples,
.job-ticket,
.reading-notes article,
.quiz-card,
.acceptance-box,
.summary-grid article {
  border: 1px solid #d8e7f4;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.focus-card {
  min-height: 128px;
  padding: 20px 22px;
  border-top: 5px solid #d9ecff;
}

.focus-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.focus-card p {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.65;
}

.role-card,
.domain-grid article,
.level-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.role-label,
.level-card span,
.ticket-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;
}

.role-card h3,
.domain-grid h3,
.summary-grid h3,
.level-card h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.42;
}

.role-card ul,
.notice-box ul,
.question-box ul {
  margin: 16px 0 0;
  padding-left: 1.2em;
}

.learning-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: stretch;
}

.explain-card,
.term-panel { padding: 28px; }

.explain-card h3,
.term-panel h3,
.practice-strip h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.42;
}

.explain-card { display: flex; flex-direction: column; }
.explain-card h3 { margin-bottom: 18px; }
.explain-card p { margin: 0; line-height: 2; }
.explain-card p + p { margin-top: 22px; }

.term-panel {
  color: var(--white);
  border: 0;
  background:
    radial-gradient(circle at 85% 12%, rgba(33, 150, 243, 0.22), transparent 28%),
    linear-gradient(160deg, #07172b 0%, #0b1f3a 72%);
}

.term-panel h3 { color: var(--white); }
.term-panel dl { margin: 0; }
.term-panel div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.term-panel dt { color: #8cc8ff; font-weight: 900; }
.term-panel dd { margin: 4px 0 0; color: rgba(255, 255, 255, 0.84); }

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

.practice-strip article {
  min-height: 190px;
  padding: 26px;
}

.practice-strip article::before {
  content: "";
  display: block;
  width: 42px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--blue);
}

.compare-block {
  margin-top: 34px;
  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);
}

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

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  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;
}

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

tbody tr:nth-child(even) { background: var(--soft); }
tbody tr:last-child td { border-bottom: 0; }

.domain-grid article:nth-child(2),
.role-card:nth-child(2) { background: #f7fbff; }
.domain-grid article:nth-child(3),
.role-card:nth-child(3) { background: #fffaf4; }
.domain-grid article:nth-child(4) { background: #f8fafc; }
.domain-grid strong { display: block; margin-top: 16px; color: var(--navy); }

.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: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.keyword-board h3 { margin: 0 0 14px; 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);
  font-size: 14px;
  font-weight: 800;
}

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

.section-navy .notice-box { background: rgba(255, 248, 240, 0.96); }

.dossier-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  gap: 24px;
}

.job-ticket {
  padding: 30px;
  border-top: 8px solid #d9ecff;
}

.job-ticket h3 {
  margin: 12px 0 18px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.25;
}

.job-ticket dl { margin: 0; }
.job-ticket div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.job-ticket dt { color: var(--blue-dark); font-weight: 900; }
.job-ticket dd { margin: 0; }

.reading-notes {
  display: grid;
  gap: 14px;
}

.reading-notes article { padding: 22px; }
.reading-notes span { color: var(--orange); font-size: 13px; font-weight: 900; }
.reading-notes h3 {
  margin: 6px 0 8px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.38;
}
.reading-notes p { margin: 0; }

.translation-board {
  display: grid;
  grid-template-columns: 0.85fr 1.05fr 1.2fr 1.2fr;
  gap: 0;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(11, 31, 58, 0.08);
}

.translation-board div {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.translation-board div:last-child {
  border-right: 0;
  background: linear-gradient(180deg, #f7fbff, #eaf4ff);
}

.translation-board h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.translation-board p { margin: 0; }

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

.question-box,
.comment-examples { padding: 26px; }

.question-box.accent {
  border-color: rgba(33, 150, 243, 0.36);
  background: #f0f8ff;
}

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

.level-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: var(--blue);
}

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

.rating-table th { min-width: 210px; }
.rating-table th:first-child { min-width: 240px; }

.rating-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
  line-height: 1;
}

.rating-badge.triangle { background: #98a2b3; }
.rating-badge.circle { background: var(--blue); }
.rating-badge.double { background: var(--orange); }

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

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

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

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

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

.comment-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.comment-compare article {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff8f0;
}

.comment-compare article.good {
  background: #f0f8ff;
}

.comment-compare span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.comment-compare article.good span {
  background: var(--blue);
}

.comment-compare p {
  margin: 12px 0 0;
  color: var(--navy);
  font-weight: 800;
}

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

.quiz-card {
  overflow: hidden;
  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); }

.answer-hint p {
  margin: 0;
}

.answer-hint p + p {
  margin-top: 10px;
}

.acceptance-box {
  margin-bottom: 24px;
  padding: 26px;
  border-top: 6px solid var(--orange);
  background: #fff8f0;
}

.acceptance-box h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 24px;
}

.acceptance-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding-left: 1.2em;
}

.acceptance-box li {
  color: var(--navy);
  font-weight: 800;
}

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

.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; }

@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; }
  .global-nav a { border-radius: var(--radius); }

  .section-head { grid-template-columns: 1fr; row-gap: 8px; }
  .section-head h2,
  .section-head p:last-child { grid-column: 1; }

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

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

  .role-grid,
  .role-grid.three,
  .domain-grid,
  .practice-strip,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .level-grid,
  .quiz-grid,
  .keyword-board,
  .focus-grid,
  .comment-compare,
  .acceptance-box ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head,
  .two-column,
  .learning-block,
  .practice-strip,
  .role-grid,
  .compare-block,
  .domain-grid,
  .keyword-board,
  .notice-box,
  .dossier-layout,
  .translation-board,
  .interview-layout,
  .level-grid,
  .proposal-grid,
  .quiz-grid,
  .summary-grid,
  .focus-grid,
  .acceptance-box,
  .hero-inner {
    width: min(100% - 32px, var(--max));
  }

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

  .role-grid,
  .role-grid.three,
  .domain-grid,
  .practice-strip,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .focus-grid,
  .comment-compare,
  .acceptance-box ul {
    grid-template-columns: 1fr;
  }

  .job-ticket div { grid-template-columns: 1fr; gap: 4px; }
  .translation-board div { border-right: 0; border-bottom: 1px solid var(--line); }
  .translation-board div:last-child { border-bottom: 0; }
  .site-footer { flex-direction: column; padding: 24px 20px; }
}

@media print {
  html { scroll-padding-top: 0; }
  body { color: #111; background: #fff; font-size: 12pt; }
  .site-header,
  .hero-actions,
  .site-footer { display: none; }
  .hero,
  .section-navy { color: #111; background: #fff; }
  .section { padding: 28px 0; break-inside: avoid; }
  .section-head,
  .two-column,
  .learning-block,
  .practice-strip,
  .role-grid,
  .compare-block,
  .domain-grid,
  .keyword-board,
  .notice-box,
  .dossier-layout,
  .translation-board,
  .interview-layout,
  .level-grid,
  .proposal-grid,
  .quiz-grid,
  .focus-grid,
  .acceptance-box,
  .summary-grid,
  .hero-inner { width: 100%; }
}

/* === 図版ブロック（2026-06-17 ブラッシュアップで追加） === */
.figure-block {
  width: min(var(--max), calc(100% - 48px));
  margin: 36px auto 0;
}

.figure-block figure {
  margin: 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);
}

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

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

.figure-block 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;
}

.figure-block.on-navy figure {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.figure-block.on-navy figcaption { color: rgba(255, 255, 255, 0.74); }

/* 図のサイズ別中央寄せ（過大表示・粗さ防止） */
.figure-block.medium figure { max-width: 760px; margin-left: auto; margin-right: auto; }
.figure-block.narrow figure { max-width: 560px; margin-left: auto; margin-right: auto; }

/* === ホバー演出・トランジション（2026-06-17 見た目磨き込み） === */
.role-card,
.explain-card,
.term-panel,
.practice-strip article,
.focus-card,
.domain-grid article,
.level-card,
.question-box,
.comment-examples,
.job-ticket,
.reading-notes article,
.quiz-card,
.figure-block figure {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.role-card:hover,
.explain-card:hover,
.term-panel:hover,
.focus-card:hover,
.domain-grid article:hover,
.level-card:hover,
.question-box:hover,
.job-ticket:hover,
.reading-notes article:hover,
.figure-block figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(11, 31, 58, 0.14);
  border-color: #b9d8f4;
}

.quiz-card:hover { box-shadow: 0 26px 52px rgba(11, 31, 58, 0.14); }
.quiz-card summary:hover { background: #eef6ff; }

.button-primary,
.button-secondary {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(33, 150, 243, 0.34); }
.button-secondary:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.16); }

.table-wrap tbody tr { transition: background 0.15s ease; }
.table-wrap tbody tr:hover { background: #f3f9ff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* === 読書進捗バー（PM・PMOと同等） === */
.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;
}

/* === スクロール出現アニメ（PM・PMOと同等） === */
.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;
}

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

/* === 印刷対応（PM・PMOと同等） === */
@media print {
  .read-progress,
  .site-header,
  .hero-actions,
  .nav-toggle,
  .site-footer { display: none; }

  .reveal { opacity: 1; transform: none; }

  body { color: #111; background: #fff; font-size: 12pt; }
  .hero, .section-navy { color: #111; background: #fff; }
  .section { padding: 28px 0; break-inside: avoid; }

  .figure-block figure {
    box-shadow: none;
    break-inside: avoid;
    background: #fff;
  }

  article,
  .question-box,
  .notice-box,
  .comment-examples,
  .acceptance-box,
  .point-box,
  .text-block,
  .compare-block { margin-bottom: 12px; box-shadow: none; break-inside: avoid; }

  .section-head h2,
  .section-head.inverted h2,
  .summary-grid h3,
  .role-card h3,
  .domain-grid h3,
  .level-card h3 { color: #111; }
}
