:root {
  --navy: #16324f;
  --navy-dark: #0d2236;
  --green: #2f5d50;
  --green-light: #eaf2ef;
  --gold: #b89445;
  --text: #1e2a32;
  --muted: #5f6c74;
  --line: #d8e0e5;
  --background: #f6f8f9;
  --white: #ffffff;
  --warning: #8a4b16;
  --warning-bg: #fff5e8;
  --shadow: 0 12px 28px rgba(22, 50, 79, 0.09);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
body { margin: 0; color: var(--text); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.8; }
a { color: inherit; }
button, input { font: inherit; }
code { font-family: inherit; }
[hidden] { display: none !important; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, 100%); }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.sticky-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-name { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.35; }
.site-name span { color: var(--muted); font-size: .78rem; }
.site-name strong { color: var(--navy); font-size: 1rem; }
.prototype-badge, .lesson-progress { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--green-light); color: var(--green); font-weight: 800; font-size: .78rem; white-space: nowrap; }
.header-nav { display: flex; gap: 20px; }
.header-nav a, .text-link { color: var(--navy); text-decoration: none; font-weight: 700; }

.hero, .training-hero, .lesson-hero { background: linear-gradient(135deg, rgba(13,34,54,.97), rgba(47,93,80,.92)), var(--navy-dark); color: var(--white); }
.hero-inner, .training-hero .container { padding-block: 84px; }
.lesson-hero .container { padding-block: 64px; }
.hero h1, .training-hero h1, .lesson-hero h1 { margin: 0 0 22px; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.18; letter-spacing: .02em; }
.lesson-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-lead { max-width: 780px; margin: 0 0 34px; font-size: 1.12rem; line-height: 1.9; }
.lesson-hero .hero-lead { margin-bottom: 0; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 24px; border: 0; border-radius: 12px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.button:hover, .button:focus-visible { filter: brightness(1.05); transform: translateY(-1px); }
.button-primary { background: var(--gold); color: var(--navy-dark); }
.button-secondary { background: var(--green); color: var(--white); }
.button-large { min-height: 62px; padding-inline: 34px; font-size: 1.08rem; }

.section { padding-block: 76px; }
.section-muted { background: var(--background); }
.section h2 { margin: 0 0 30px; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.35; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 0; }
.info-grid, .warning-grid, .plain-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.info-card, .warning-grid article, .plain-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.info-card h3, .warning-grid h3, .plain-grid h3, .lesson-card h3 { margin: 0 0 10px; color: var(--navy); line-height: 1.45; }
.info-card p, .warning-grid p, .plain-grid p, .lesson-card p { margin: 0; }
.large-text { margin: 0; font-size: 1.18rem; line-height: 2; }
.schedule-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.schedule-strip span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.08); }
.notice-box { margin-top: 28px; padding: 22px; border-left: 6px solid var(--gold); border-radius: 12px; background: #fffaf0; }
.notice-box p { margin: 8px 0 0; }
.notice-box.important { margin: 0 0 24px; }

.lesson-list { display: grid; gap: 20px; }
.lesson-card { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.step-number { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 900; }
.prompt-box { position: relative; margin-top: 18px; padding: 18px 100px 18px 18px; border: 1px solid #c6d5cf; border-radius: 12px; background: var(--green-light); }
.prompt-box code { color: var(--text); white-space: normal; }
.copy-button { position: absolute; top: 12px; right: 12px; padding: 8px 14px; border: 0; border-radius: 9px; background: var(--green); color: var(--white); font-weight: 800; cursor: pointer; }
.caution { margin-top: 14px !important; color: var(--warning); font-weight: 700; }
.compact-steps { margin: 12px 0 0; padding-left: 1.4em; }
.compact-steps li { margin-bottom: 8px; }
.status-card { display: grid; grid-template-columns: 150px 1fr; gap: 8px 18px; margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--background); }
.status-card span { color: var(--muted); font-weight: 700; }
.workshop-card { overflow: hidden; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.workshop-head { padding: 30px; background: var(--navy); color: var(--white); }
.workshop-head span { color: var(--gold); font-weight: 800; }
.workshop-head h3 { margin: 6px 0 8px; font-size: clamp(1.5rem,3vw,2rem); line-height: 1.4; }
.workshop-head p { margin: 0; }
.workshop-body { padding: 30px; }
.workshop-body h4 { margin: 0 0 10px; color: var(--navy); font-size: 1.1rem; }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.check-grid div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--background); }
.check-grid strong { color: var(--navy); }
.check-grid p { margin: 4px 0 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tool-grid article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.tool-grid h3 { margin: 0 0 8px; color: var(--navy); }
.tool-grid p { margin: 0 0 14px; }
.tool-grid code { display: block; padding: 12px; border-radius: 10px; background: var(--green-light); }
.review-steps { margin: 0; padding-left: 1.4em; }
.review-steps li { margin-bottom: 12px; padding-left: 6px; font-size: 1.08rem; }

.course-rule-card, .start-panel, .goal-card, .task-card, .stepup-panel, .next-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.course-rule-card { padding: 30px; }
.course-rule-card h2 { margin-bottom: 12px; }
.course-rule-card p { margin: 0; }
.start-panel { margin-top: 28px; padding: 28px; text-align: center; background: var(--background); }
.start-panel p { margin: 0 0 18px; }
.lesson-section { background: var(--background); }
.goal-card { margin-bottom: 24px; padding: 22px 26px; border-left: 7px solid var(--gold); }
.goal-card strong { color: var(--navy); font-size: 1.05rem; }
.goal-card p { margin: 4px 0 0; }
.task-card { padding: 34px; }
.task-card h2 { margin: 8px 0 24px; }
.task-card h3 { margin: 30px 0 8px; color: var(--navy); font-size: 1.12rem; }
.task-label, .stepup-label { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: .8rem; font-weight: 800; }
.large-steps { margin: 0; padding: 0; list-style: none; counter-reset: lesson-step; display: grid; gap: 14px; }
.large-steps li { counter-increment: lesson-step; position: relative; padding: 18px 18px 18px 66px; border: 1px solid var(--line); border-radius: 14px; background: var(--background); }
.large-steps li::before { content: counter(lesson-step); position: absolute; left: 18px; top: 17px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 900; }
.large-steps strong, .large-steps span { display: block; }
.large-steps span { margin-top: 3px; color: var(--muted); }
.completion-checks { display: grid; gap: 10px; margin-top: 24px; padding: 20px; border-radius: 14px; background: var(--background); }
.completion-checks label { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; cursor: pointer; }
.completion-checks input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--green); }
.completion-button { width: 100%; margin-top: 24px; }
.stepup-panel { margin-top: 24px; padding: 32px; border: 2px solid #bdd1c9; background: #f3f8f6; }
.stepup-panel .stepup-label { background: var(--green); }
.stepup-panel h2 { margin: 10px 0 14px; }
.stepup-panel .button { margin-top: 24px; }
.next-panel { margin-top: 24px; padding: 28px; text-align: center; background: var(--navy-dark); color: var(--white); }
.next-panel p { margin: 0 0 16px; }
.final-panel h2 { margin-bottom: 12px; color: var(--white); }
.example-links { display: grid; gap: 14px; margin-top: 22px; }
.example-link { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--background); text-decoration: none; }
.example-link:hover { border-color: var(--green); }
.example-link strong { color: var(--navy); }
.example-link span { color: var(--muted); }
.mini-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.mini-tool-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--background); }
.mini-tool-grid strong, .mini-tool-grid span { display: block; }
.mini-tool-grid strong { color: var(--navy); }
.mini-tool-grid span { color: var(--muted); }
.lesson-warning-grid { grid-template-columns: 1fr; margin-bottom: 30px; }
.choice-checks { grid-template-columns: repeat(2,minmax(0,1fr)); }

.centered-page { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 56px 20px; background: var(--background); }
.access-card { width: min(620px,100%); padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.access-card h1 { margin: 0 0 12px; color: var(--navy); font-size: clamp(2rem,5vw,3rem); }
.access-form { display: grid; gap: 12px; margin-top: 28px; }
.access-form label { font-weight: 800; }
.access-form input { min-height: 54px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--white); }
.form-message { min-height: 1.5em; margin: 0; color: var(--warning); font-weight: 700; }
.site-footer { padding-block: 34px; background: var(--navy-dark); color: var(--white); }
.site-footer p { margin: 0; }
.site-footer .small { margin-top: 4px; color: rgba(255,255,255,.7); font-size: .84rem; }
.mobile-only { display: none; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  html { font-size: 17px; }
  .container { width: min(100% - 28px,1120px); }
  .header-inner { min-height: 68px; }
  .header-nav { gap: 10px; font-size: .76rem; }
  .hero-inner, .training-hero .container, .lesson-hero .container { padding-block: 54px; }
  .section { padding-block: 52px; }
  .info-grid, .warning-grid, .plain-grid, .check-grid, .tool-grid, .mini-tool-grid, .choice-checks { grid-template-columns: 1fr; }
  .lesson-card { grid-template-columns: 1fr; padding: 22px; }
  .prompt-box { padding: 18px; }
  .copy-button { position: static; margin-top: 14px; }
  .status-card { grid-template-columns: 1fr; }
  .workshop-head, .workshop-body { padding: 24px; }
  .access-card { padding: 28px 22px; }
  .task-card, .stepup-panel { padding: 24px 20px; }
  .large-steps li { padding: 62px 16px 16px; }
  .large-steps li::before { top: 16px; left: 16px; }
  .mobile-only { display: initial; }
}
