:root {
  --ink: #18232e;
  --muted: #5f6b76;
  --line: #d6dde3;
  --paper: #ffffff;
  --soft: #f3f5f6;
  --navy: #203348;
  --navy-2: #17283a;
  --accent: #2d6b68;
  --accent-soft: #e7f0ef;
  --warm: #aa7540;
  --danger: #8f3d3d;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(24, 35, 46, 0.08);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  letter-spacing: 0.015em;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.container.narrow { width: min(calc(100% - 40px), 860px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-mark { font-weight: 750; text-decoration: none; letter-spacing: 0.04em; }
.primary-nav { display: flex; align-items: center; gap: 22px; }
.primary-nav a { color: #394754; text-decoration: none; font-size: 0.88rem; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--accent); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 12px; }

.hero {
  padding: 92px 0 74px;
  background:
    linear-gradient(90deg, rgba(32,51,72,0.035) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(32,51,72,0.035) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--soft);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr); gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1 { margin: 0; max-width: 900px; font-size: clamp(2.35rem, 4.7vw, 4rem); line-height: 1.18; letter-spacing: -0.035em; }
h1 span { display: block; }
.hero-lead { max-width: 760px; margin: 30px 0 0; font-size: clamp(1.05rem, 1.55vw, 1.28rem); color: #3d4b57; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 720;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { background: #fff; border-color: #aeb8c1; color: var(--ink); }
.button-secondary:hover { border-color: var(--navy); }
.button-small { min-height: 38px; padding: 7px 12px; font-size: 0.88rem; background: var(--navy); color: #fff; }
.button-light { background: #fff; color: var(--navy); }
.button-ghost-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }

.summary-card { padding: 30px; background: #fff; border: 1px solid #cfd6dc; border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-card h2 { margin: 0 0 18px; font-size: 1.15rem; }
.number-list { margin: 0; padding: 0; list-style: none; counter-reset: summary; }
.number-list li { display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); counter-increment: summary; }
.number-list li::before { content: counter(summary, decimal-leading-zero); color: var(--accent); font-weight: 800; font-size: 0.82rem; }
.number-list strong, .number-list span { display: block; }
.number-list span { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.note { margin: 18px 0 0; padding: 14px 16px; background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: .9rem; }

.section { padding: 96px 0; }
.section-muted { background: var(--soft); border-block: 1px solid var(--line); }
.section-dark { background: var(--navy); color: #fff; }
.section-heading { max-width: 830px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.3; letter-spacing: -0.025em; }
.section-heading p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 1.02rem; }
.section-heading.light p:not(.eyebrow) { color: #c7d0d9; }
.section-heading.light .eyebrow { color: #8fc2bd; }
.source-ref { display: inline-block; margin-left: 3px; color: var(--accent); font-weight: 700; text-decoration: none; font-size: .82em; }
.section-dark .source-ref { color: #a6d2ce; }

.degree-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 42px; align-items: center; }
.degree-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.label { display: inline-block; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.degree-card h3 { margin: 8px 0 18px; font-size: 1.55rem; }
.fact-list { margin: 0; }
.fact-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: .85rem; }
.fact-list dd { margin: 0; font-weight: 680; }
.small { color: var(--muted); font-size: .84rem; }

.route-figure { display: grid; grid-template-columns: 1fr auto 1fr auto 1.25fr; align-items: center; gap: 12px; }
.route-node { min-height: 138px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid var(--line); background: #fff; border-radius: 12px; text-align: center; }
.route-node span { color: var(--muted); font-size: .75rem; }
.route-node strong { margin-top: 8px; line-height: 1.5; }
.route-node.current { background: var(--accent-soft); border-color: #a7c8c5; }
.route-node.optional { border-style: dashed; }
.route-arrow { color: var(--accent); font-size: 1.5rem; }

.plain-box { margin-top: 48px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.plain-box > h3 { margin: 0 0 22px; font-size: 1.3rem; }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.three-grid > div { position: relative; padding-left: 42px; }
.three-grid .index { position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; font-weight: 800; font-size: .78rem; }
.three-grid h4 { margin: 0 0 8px; }
.three-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

.route-selector { margin-top: 28px; padding: 28px; background: var(--soft); border-radius: var(--radius); }
.route-selector h3 { margin: 0 0 18px; }
.route-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.route-tabs button { border: 1px solid #b9c2c9; background: #fff; border-radius: 999px; padding: 8px 14px; }
.route-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.route-answer { min-height: 86px; margin-top: 18px; padding: 18px 20px; background: #fff; border-left: 3px solid var(--accent); }
.route-answer strong { display: block; margin-bottom: 4px; }

.beginner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.step-number { display: inline-grid; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--navy); border-radius: 50%; font-weight: 800; }
.step-card h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.worksheet { margin-top: 30px; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.worksheet-head, .template-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.worksheet h3, .template-head h3 { margin: 0; font-size: 1.45rem; }
.text-button { border: 0; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 2px; }
.text-button.light { color: #a6d2ce; }
.form-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 26px; }
label { font-weight: 650; font-size: .9rem; }
input, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfc8cf;
  border-radius: 8px;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,107,104,.13); }
textarea { resize: vertical; }
.generated-box { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: end; margin-top: 24px; padding: 22px; background: var(--accent-soft); border-radius: 10px; }
.generated-box .label { grid-column: 1 / -1; }
.generated-box p { margin: 0; font-size: 1.03rem; font-weight: 680; }

.topic-examples { margin-top: 30px; }
.topic-examples h3 { margin-bottom: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { padding: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; }

.reading-block { display: grid; grid-template-columns: .75fr 1.25fr; gap: 42px; margin-top: 48px; padding-top: 46px; border-top: 1px solid var(--line); }
.reading-block h3 { margin: 0; font-size: 1.45rem; }
.simple-steps { margin: 18px 0 0; padding-left: 1.4em; }
.simple-steps li { margin: 8px 0; }
.paper-list { display: grid; gap: 10px; }
.paper-list a { display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.paper-list a:hover { border-color: var(--accent); }
.paper-list span, .paper-list strong { display: block; }
.paper-list span { color: var(--accent); font-size: .75rem; font-weight: 800; margin-bottom: 4px; }
.paper-list strong { line-height: 1.55; }

.checklist { display: grid; gap: 12px; }
.check-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.check-item input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.check-item strong, .check-item small { display: block; }
.check-item small { color: var(--muted); font-weight: 400; margin-top: 3px; }
.check-item:has(input:checked) { background: var(--accent-soft); border-color: #aac6c4; }
.progress-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin-top: 18px; font-size: .85rem; color: var(--muted); }
progress { width: 100%; height: 10px; border: 0; border-radius: 999px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e3e8eb; }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }

.memo-builder { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.memo-form, .mail-template { padding: 28px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); }
.memo-form h3 { margin: 0 0 18px; }
.memo-form label { display: block; margin-top: 14px; color: #e7edf2; }
.memo-form input, .memo-form textarea { background: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mail-template pre { white-space: pre-wrap; word-break: break-word; margin: 20px 0 0; padding: 20px; color: #e8eef3; background: rgba(0,0,0,.18); border-radius: 10px; font-family: inherit; font-size: .87rem; line-height: 1.75; }
.light-muted { color: #b9c5cf; }
.question-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; margin-top: 42px; }
.question-columns h3 { margin-top: 0; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding: 11px 0 11px 24px; border-top: 1px solid rgba(255,255,255,.16); color: #dce4ea; }
.clean-list li::before { content: "—"; position: absolute; left: 0; color: #8fc2bd; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 148px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline article { display: grid; grid-template-columns: 128px 1fr; gap: 40px; position: relative; padding: 0 0 34px; }
.timeline article::after { content: ""; position: absolute; left: 141px; top: 8px; width: 15px; height: 15px; background: var(--paper); border: 3px solid var(--accent); border-radius: 50%; }
.timeline-time { color: var(--accent); font-weight: 800; text-align: right; font-size: .88rem; }
.timeline h3 { margin: 0; font-size: 1.2rem; }
.timeline p { margin: 6px 0 8px; color: var(--muted); }
.deliverable { display: inline-block; padding: 4px 9px; background: var(--soft); border-radius: 5px; color: #495761; font-size: .78rem; }
.time-test { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-top: 22px; padding: 30px; background: var(--navy); color: #fff; border-radius: var(--radius); }
.time-test h3 { margin: 0; }
.time-test p:not(.eyebrow) { color: #c7d1da; }
.time-test .eyebrow { color: #8fc2bd; }
.week-sample { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.week-sample span { padding: 12px 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.work-card.recommended { border-top: 4px solid var(--accent); }
.work-card h3 { margin: 8px 0 10px; }
.work-card p { color: var(--muted); }
.work-card ul { margin: 16px 0 0; padding-left: 1.2em; }
.work-card li { margin: 6px 0; }
.gate-box { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.gate-box summary { padding: 18px 20px; font-weight: 750; }
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 0 20px 20px; }
.gate-grid label { display: flex; align-items: start; gap: 9px; font-weight: 500; }
.gate-grid input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }

.funding-stage { margin-top: 34px; }
.stage-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.stage-title span { color: var(--accent); font-size: .8rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.stage-title h3 { margin: 0; }
.funding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.funding-grid article { position: relative; min-height: 285px; padding: 24px 24px 52px; border: 1px solid var(--line); border-radius: 12px; }
.funding-grid h4 { margin: 0 0 12px; font-size: 1.08rem; }
.funding-grid p { margin: 0; color: var(--muted); font-size: .91rem; }
.who { position: absolute; left: 24px; bottom: 22px; color: var(--accent); font-size: .78rem; font-weight: 700; }

.budget-tool { display: grid; grid-template-columns: .65fr 1.35fr; gap: 34px; align-items: start; margin-top: 40px; padding: 30px; background: var(--soft); border-radius: var(--radius); }
.budget-tool h3 { margin: 0; }
.budget-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.budget-result { grid-column: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.budget-result span { color: var(--muted); }
.budget-result strong { font-size: 1.45rem; }

.confirm-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.confirm-grid > div { min-height: 150px; padding: 22px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confirm-grid span { color: var(--accent); font-size: .77rem; font-weight: 850; }
.confirm-grid p { margin: 12px 0 0; font-weight: 650; line-height: 1.55; }

.decision-table { border-top: 1px solid var(--ink); }
.decision-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; padding: 16px 10px; border-bottom: 1px solid var(--line); }
.decision-row.head { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.decision-row span:first-child { font-weight: 690; }
.decision-row span:last-child { color: var(--muted); }

.sources-section { background: #fafbfb; border-top: 1px solid var(--line); }
.sources-list { margin: 0; padding: 0; list-style: none; counter-reset: sources; border-top: 1px solid var(--line); }
.sources-list li { display: grid; grid-template-columns: 44px 1.45fr 1fr; gap: 16px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--line); counter-increment: sources; }
.sources-list li::before { content: counter(sources, decimal-leading-zero); color: var(--accent); font-weight: 800; font-size: .78rem; }
.sources-list a { text-decoration: none; }
.sources-list a:hover { text-decoration: underline; }
.sources-list span { color: var(--muted); font-size: .84rem; }

.site-footer { padding: 36px 0; color: #d8e0e7; background: var(--navy-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.site-footer p { margin: 4px 0 0; color: #9eacb8; font-size: .84rem; }
.footer-meta { display: flex; flex-direction: column; align-items: end; gap: 4px; font-size: .84rem; }
.footer-meta a { color: #fff; }

.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; padding: 12px 16px; background: var(--navy); color: #fff; border-radius: 8px; box-shadow: var(--shadow); }

@media (max-width: 980px) {
  .hero-grid, .degree-panel, .memo-builder, .reading-block, .time-test, .budget-tool { grid-template-columns: 1fr; }
  .hero-grid { gap: 38px; }
  .beginner-grid { grid-template-columns: 1fr 1fr; }
  .three-grid, .work-grid, .funding-grid, .confirm-grid { grid-template-columns: 1fr 1fr; }
  .budget-result { grid-column: 1; }
  .route-figure { grid-template-columns: 1fr; }
  .route-arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 760px) {
  .container, .container.narrow { width: min(calc(100% - 28px), var(--max)); }
  .site-header { position: relative; }
  .header-inner { min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px 0; border-top: 1px solid var(--line); }
  .hero { padding: 62px 0 50px; }
  h1 { font-size: clamp(2rem, 10vw, 3.1rem); }
  .section { padding: 70px 0; }
  .beginner-grid, .three-grid, .work-grid, .funding-grid, .confirm-grid, .question-columns, .gate-grid, .form-grid, .budget-fields { grid-template-columns: 1fr; }
  .plain-box, .worksheet { padding: 24px; }
  .generated-box { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .timeline article { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .timeline article::after { left: 1px; }
  .timeline-time { text-align: left; }
  .sources-list li { grid-template-columns: 34px 1fr; }
  .sources-list span { grid-column: 2; }
  .decision-row { grid-template-columns: 1fr; gap: 5px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { align-items: start; }
  .budget-result { flex-direction: column; gap: 4px; }
}

@media print {
  .site-header, .hero-actions, .nav-toggle, .button, .text-button, .toast, .budget-tool { display: none !important; }
  body { font-size: 10.5pt; line-height: 1.45; }
  .hero, .section, .section-dark, .section-muted, .sources-section { background: #fff !important; color: #000 !important; padding: 24px 0; border: 0; }
  .section-dark *, .section-dark p, .section-dark li { color: #000 !important; }
  .memo-form, .mail-template { border: 1px solid #999; background: #fff; }
  .mail-template pre { color: #000; background: #fff; border: 1px solid #bbb; }
  .hero-grid, .degree-panel, .memo-builder, .reading-block, .time-test, .budget-tool { grid-template-columns: 1fr; }
  a { text-decoration: none; }
  .sources-list a::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
}

/* Supplementary notes added for the July 2026 edition */
.pre-enrollment-box,
.ethics-note,
.funding-caution {
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
}
.funding-caution h4 {
  margin: 0 0 .5rem;
  font-size: 1rem;
}
.funding-caution p,
.pre-enrollment-box p,
.ethics-note p {
  margin-bottom: 0;
}
