:root {
  --navy: #0b1f3a;
  --navy-2: #12345a;
  --blue: #2196f3;
  --blue-dark: #1565c0;
  --orange: #f2994a;
  --text: #333333;
  --muted: #667085;
  --line: #e0e0e0;
  --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(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: 24px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(224, 224, 224, 0.78);
  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: 700;
  scrollbar-width: none;
}

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

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

.global-nav a:hover,
.global-nav a.is-active {
  color: var(--blue-dark);
  background: #eaf4ff;
  border-color: #cde9ff;
  box-shadow: 0 7px 16px rgba(33, 150, 243, 0.12);
}

.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);
  pointer-events: none;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  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: 0 0 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lead {
  position: relative;
  max-width: 690px;
  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: 8px;
  font-weight: 800;
}

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

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  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: "JAVA SALES 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: 84px minmax(0, 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: 700; }
.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: clamp(18px, 1.9vw, 21px);
  white-space: nowrap;
}

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

.section-head,
.two-column,
.role-grid,
.compare-block,
.keyword-board,
.dossier-layout,
.domain-grid,
.skill-lens,
.translation-board,
.interview-layout,
.counsel-script,
.level-grid,
.judgement-section,
.quiz-grid,
.proposal-grid,
.summary-grid,
.starter-box,
.quick-check-grid,
.term-mini-grid,
.practice-grid,
.flow-cards {
  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;
  text-wrap: balance;
}

.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.82; }
.section-head.inverted .section-kicker { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.section-head.mini { margin-top: 54px; margin-bottom: 22px; }
.section-head.mini h2 { font-size: clamp(28px, 3vw, 38px); }

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

.text-block,
.compare-block,
.job-ticket,
.reading-notes article,
.role-card,
.domain-grid article,
.lens-card,
.question-box,
.level-card,
.notice-box,
.comment-examples,
.quiz-card,
.summary-grid article,
.starter-box,
.quick-check,
.term-mini-grid article,
.practice-grid article,
.flow-cards article {
  border: 1px solid #d8e7f4;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

.text-block { padding: 30px; }

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

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

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

.starter-box {
  margin-top: 24px;
  padding: 26px 28px;
  border-left: 6px solid var(--orange);
  color: var(--text);
  background: linear-gradient(180deg, #fff8f0, #ffffff);
}

.starter-box span,
.quick-check span,
.practice-grid span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--white);
  background: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.starter-box h3,
.quick-check h3,
.term-mini-grid strong,
.practice-grid h3,
.flow-cards h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.38;
}

.starter-box p,
.quick-check p,
.practice-grid p,
.flow-cards p {
  margin: 0;
}

.starter-box.inverted {
  border-color: rgba(242, 153, 74, 0.76);
  background: rgba(255, 248, 240, 0.97);
}

.quick-check-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.quick-check {
  padding: 24px;
}

.quick-check.primary {
  border-left: 6px solid var(--orange);
  background: linear-gradient(180deg, #fff8f0, #ffffff);
}

.block-note {
  margin: -4px 0 16px;
  color: var(--muted);
  font-weight: 700;
}

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

.term-mini-grid article {
  padding: 18px 20px;
  border-radius: 14px;
  background: #f7fbff;
}

.term-mini-grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.term-mini-grid span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.section-navy .starter-box {
  color: var(--text);
}

.light-on-navy {
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

.mini-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  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: 800;
  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-card,
.domain-grid article,
.level-card {
  position: relative;
  overflow: hidden;
  min-height: 244px;
  padding: 26px;
}

.role-label,
.level-card span {
  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 p,
.domain-grid p,
.summary-grid p,
.level-card p { margin: 0; }

.compare-block {
  margin-top: 34px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
}

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

td:first-child { color: var(--navy); font-weight: 800; }
tbody tr:nth-child(even) { background: var(--soft); }
tbody tr:last-child td { border-bottom: 0; }

.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;
  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);
  font-size: 14px;
  font-weight: 700;
}

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

.job-ticket {
  padding: 30px;
  border-top: 8px solid #d9ecff;
  color: var(--text);
}

.ticket-label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.job-ticket h3 {
  margin: 0 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;
  color: var(--text);
}
.reading-notes span { color: var(--orange); font-size: 13px; font-weight: 900; }
.reading-notes h3,
.lens-card h3,
.translation-board h3 {
  margin: 6px 0 8px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.38;
}
.reading-notes p,
.translation-board p { margin: 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),
.role-card:nth-child(4) { background: #f8fafc; }

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

.practice-grid article {
  padding: 22px;
  border-top: 5px solid #d9ecff;
}

.practice-grid article:nth-child(2) {
  background: #f7fbff;
}

.practice-grid article:nth-child(3) {
  background: #fffaf4;
}

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

.lens-card {
  padding: 26px;
  border-top: 5px solid var(--blue);
}

.lens-card.caution { border-top-color: var(--orange); background: linear-gradient(180deg, #ffffff, #f7fbff); }
.lens-card.good { background: linear-gradient(180deg, #ffffff, #f0f8ff); }
.lens-card ul,
.notice-box ul,
.question-box ul,
.level-map ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.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);
}
.translation-board div:last-child {
  border-right: 0;
  background: linear-gradient(180deg, #f7fbff, #eaf4ff);
}

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

.question-box,
.comment-examples,
.notice-box { padding: 26px; }
.question-box.accent { border-color: rgba(33, 150, 243, 0.36); background: #f0f8ff; }

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

.counsel-script div {
  padding: 24px;
  border-radius: 16px;
  color: var(--white);
  background: radial-gradient(circle at 100% 0%, rgba(33, 150, 243, 0.24), transparent 32%), var(--navy);
}

.counsel-script span {
  display: block;
  margin-bottom: 10px;
  color: #8cc8ff;
  font-size: 13px;
  font-weight: 900;
}

.counsel-script p {
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
}

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

.level-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  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; }

.flow-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.flow-intro {
  width: min(var(--max), calc(100% - 48px));
  margin: 30px auto 0;
  padding: 24px 28px;
  border: 1px solid #d8e7f4;
  border-left: 6px solid var(--blue);
  border-radius: 18px;
  background: #f7fbff;
  box-shadow: 0 15px 36px rgba(11, 31, 58, 0.07);
}

.flow-intro span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.flow-intro h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.38;
}

.flow-intro p {
  margin: 0;
}

.flow-cards article {
  position: relative;
  padding: 24px;
  border-top: 6px solid #d9ecff;
}

.flow-cards span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.22);
}

.notice-box {
  margin-top: 24px;
  border-color: rgba(242, 153, 74, 0.48);
  background: #fff8f0;
}
.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: 700;
}
blockquote:last-child { margin-bottom: 0; }

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

.quiz-card {
  padding: 0;
  overflow: hidden;
}

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

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

.role-card,
.domain-grid article,
.level-card,
.quiz-card,
.lens-card,
.quick-check,
.flow-cards article,
.practice-grid article {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.role-card:hover,
.domain-grid article:hover,
.level-card:hover,
.quiz-card:hover,
.lens-card:hover,
.quick-check:hover,
.flow-cards article:hover,
.practice-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,
input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ===== 図版（インラインSVG） ===== */
.figure-panel {
  width: min(var(--max), calc(100% - 48px));
  margin: 34px auto 0;
  padding: 26px 28px 22px;
  border: 1px solid #d8e7f4;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.08);
}
.figure-panel.on-navy {
  border-color: rgba(140, 200, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}
.figure-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}
.figure-img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 6px auto 0;
  border-radius: 14px;
}
.fig-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--white);
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.fig-cap {
  margin: 16px 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.figure-panel.on-navy .fig-cap { color: rgba(255, 255, 255, 0.72); }

.figure-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-cell .figure-svg { max-height: 100%; }

/* 判断フロー（08）のカードを矢印でつなぐ */
.flow-cards { position: relative; }
.flow-cards article::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
  z-index: 3;
}
.flow-cards article:last-child::after { content: none; }

@media (max-width: 980px) {
  .flow-cards article::after {
    top: auto;
    right: 50%;
    bottom: -14px;
    transform: translateX(50%) rotate(135deg);
  }
}

@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,
  .dossier-layout,
  .translation-board,
  .interview-layout,
  .proposal-grid,
  .counsel-script {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    min-height: auto;
    padding-top: 64px;
    gap: 34px;
  }
  .role-grid,
  .domain-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .level-grid,
  .skill-lens,
  .quiz-grid,
  .keyword-board,
  .quick-check-grid,
  .term-mini-grid,
  .practice-grid,
  .flow-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head,
  .two-column,
  .role-grid,
  .compare-block,
  .keyword-board,
  .dossier-layout,
  .domain-grid,
  .skill-lens,
  .translation-board,
  .interview-layout,
  .counsel-script,
  .level-grid,
  .judgement-section,
  .quiz-grid,
  .proposal-grid,
  .summary-grid,
  .starter-box,
  .quick-check-grid,
  .term-mini-grid,
  .practice-grid,
  .flow-cards,
  .flow-intro,
  .hero-inner {
    width: min(100% - 32px, var(--max));
  }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 17px; }
  .role-grid,
  .domain-grid,
  .summary-grid,
  .quick-check-grid,
  .term-mini-grid,
  .practice-grid,
  .flow-cards {
    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 (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .role-card:hover,
  .domain-grid article:hover,
  .level-card:hover,
  .quiz-card:hover,
  .lens-card:hover,
  .quick-check:hover,
  .flow-cards article:hover,
  .practice-grid article:hover {
    transform: none;
  }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header,
  .hero-actions,
  .nav-toggle,
  .site-footer,
  .read-progress { display: none; }
  body { color: #111; background: #fff; font-size: 12pt; }
  .hero,
  .section-navy { color: #111; background: #fff; }
  .section { padding: 28px 0; break-inside: avoid; }
  .hero-inner,
  .two-column,
  .role-grid,
  .keyword-board,
  .dossier-layout,
  .domain-grid,
  .skill-lens,
  .translation-board,
  .interview-layout,
  .counsel-script,
  .level-grid,
  .quiz-grid,
  .proposal-grid,
  .summary-grid,
  .quick-check-grid,
  .term-mini-grid,
  .practice-grid,
  .flow-cards { display: block; width: 100%; }
  .flow-intro { width: 100%; }
  article,
  .question-box,
  .notice-box,
  .comment-examples,
  .compare-block,
  .starter-box,
  .flow-intro { margin-bottom: 12px; box-shadow: none; break-inside: avoid; }
  .section-head h2,
  .summary-grid h3,
  .role-card h3,
  .domain-grid h3,
  .level-card h3 { color: #111; }
}
