:root {
  --navy: #0F1F2E; --navy-2: #1A2D40; --paper: #F7FAFC; --lime: #B5F142;
  --ink: #0F1F2E; --sub: #4F5E6B; --line: #D5DBE1; --soft: #EEF1F4;
  --ok: #2F6B4F; --warn: #8A5A00; --warn-bg: #FFF4D9; --bad: #9B2C2C; --bad-bg: #FDE8E8;
  --t1: #E8F1FB; --t1b: #7FA7D6; --t2: #FCEFE6; --t2b: #E0A37A; --t3: #EAF6EE; --t3b: #7DBA92; --t4: #F3EDFA; --t4b: #A98BCF;
  --r: 16px; --ease: cubic-bezier(.2,.9,.25,1); --pop: cubic-bezier(.3,1.5,.5,1);
}
* { box-sizing:border-box; }
html { scroll-padding-top:72px; }
body { margin:0; color:var(--ink); background:var(--paper); font:400 18px/1.8 "Noto Sans JP","Yu Gothic",Meiryo,sans-serif; }
h1,h2,h3,h4,p,figure,ol,ul { margin:0; }
ol,ul { padding:0; list-style:none; }
h1,h2,h3,h4 { line-height:1.45; font-feature-settings:"palt"; overflow-wrap:anywhere; }
h2 { font-size:clamp(27px,3.8vw,43px); letter-spacing:-.045em; }
h3 { font-size:21px; }
a { color:inherit; text-underline-offset:.24em; }
button,input { font:inherit; }
button { cursor:pointer; }
:focus-visible { outline:3px solid #398ac0; outline-offset:3px; }
[hidden] { display:none !important; }
.wrap { width:calc(100% - 40px); max-width:1080px; margin-inline:auto; }
.bar,.hero,.footer { background:var(--navy); color:var(--paper); }
.bar { position:sticky; top:0; z-index:5; border-bottom:1px solid #3d4d5b; }
.bar-inner { min-height:54px; display:flex; justify-content:space-between; align-items:center; }
.brand,.jump { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }
.brand { gap:.5em; font:800 15px/1 Inter,Arial,sans-serif; letter-spacing:.055em; }
.brand span { color:var(--lime); }
.jump { font-size:14px; font-weight:700; gap:7px; }
.jump::after,.arrow::after { content:"↘"; margin-left:.35em; font-family:Arial,sans-serif; }
.hero-inner { display:grid; gap:24px; align-items:center; padding:34px 0 28px; }
.greeting { font-size:16px; letter-spacing:.07em; font-weight:700; }
.hero h1 { margin:9px 0 13px; font-size:clamp(39px,7.6vw,72px); letter-spacing:-.055em; line-height:1.14; }
.hero h1 span { display:block; }
.hero h1 span:last-child { width:fit-content; background:linear-gradient(transparent 79%,#99b970 79%,#99b970 90%,transparent 90%); }
.hero-lead { color:#e1e8ec; max-width:31em; }
.actions { display:flex; flex-wrap:wrap; gap:8px 12px; margin:18px 0 0; }
.btn,.print-btn,.mini-link { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:9px 15px; border:1px solid transparent; border-radius:6px; text-decoration:none; font-size:16px; font-weight:700; line-height:1.5; }
.btn:hover,.jump:hover,.print-btn:hover,.mini-link:hover { text-decoration:underline; }
.bright { color:var(--navy); background:var(--lime); }
.outline { border-color:#bdc8cf; color:white; }
.hero-photo { position:relative; overflow:hidden; border-radius:9px; background:#223647; }
.hero-photo img { display:block; width:100%; height:clamp(135px,40vw,310px); object-fit:cover; object-position:50% 42%; }
.hero-photo figcaption { position:absolute; bottom:8px; right:9px; padding:2px 7px; border-radius:3px; background:#10202ee3; font-size:12px; color:white; }
.section { padding:40px 0; border-bottom:1px solid var(--line); }
.section-head { margin-bottom:18px; }
.section-head > p { color:var(--sub); margin-top:7px; max-width:47em; }
.road-figure { border:1px solid #bfccd1; border-radius:12px; overflow:hidden; background-color:#f0f5f4; background-image:radial-gradient(#b6c9c6 .75px, transparent .75px); background-size:13px 13px; }
.road-track { display:grid; }
.stop { position:relative; }
.stop::before { content:""; position:absolute; left:41px; width:2px; top:0; bottom:0; background:#79958d; }
.stop:first-child::before { top:50%; }
.stop:last-child::before { bottom:50%; }
.stop:not(:last-child)::after { content:""; position:absolute; left:38px; bottom:-2px; width:7px; height:7px; border:solid #597a70; border-width:0 2px 2px 0; transform:rotate(45deg); pointer-events:none; }
.stop-link { position:relative; display:grid; min-height:112px; grid-template-columns:66px minmax(0,1fr); column-gap:10px; align-content:center; padding:11px 12px 11px 8px; text-decoration:none; }
.stop-art { grid-column:1; grid-row:1/5; align-self:center; background:#e8efec; border:1px solid #aec4bb; border-radius:50%; width:66px; height:66px; display:grid; place-items:center; z-index:1; }
.stop-art svg { width:100%; height:auto; fill:none; stroke:var(--navy); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.stop-art .sheet { fill:#f8fbf4; }.stop-art .accent { fill:#b5ccba; }.stop-1 .accent { fill:var(--lime); }.stop-2 .accent { fill:#ebce89; }.stop-art .wheel { fill:#758b88; }.stop-art .shadow { stroke:#acb9b3; }
.stop-time,.stop-note,.road-action { grid-column:2; }
.stop-time { color:#315548; font-size:13px; font-weight:700; }
.stop-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:currentColor; margin-right:6px; }
.stop-link strong { grid-column:2; font-size:19px; line-height:1.45; }
.stop-note { color:#46605b; font-size:14px; line-height:1.6; margin-top:4px; }
.road-action { color:var(--navy); font-size:13px; font-weight:700; text-decoration:underline; }
.save-map { display:inline-flex; align-items:center; min-height:44px; margin-top:6px; font-size:15px; font-weight:700; }
.history .btn { width:fit-content; margin-top:8px; }
.hp-note { color:var(--sub); font-size:16px; }
.counter-demo { padding:clamp(16px,3vw,26px); max-width:580px; background:white; border:1px solid var(--line); border-radius:var(--r); }
.counter-row { display:grid; grid-template-columns:minmax(0,1fr) 44px 3.2em 44px; align-items:center; gap:4px; border-bottom:1px solid var(--line); padding:12px 0; }
.counter-row strong { font-size:16px; }
.counter-value { font-variant-numeric:tabular-nums; text-align:center; }
.counter-button { width:44px; height:44px; border-radius:8px; color:var(--ink); background:var(--paper); border:1px solid #98a6ac; line-height:1; }
.counter-button:disabled { opacity:.5; cursor:default; }
.counter-total { display:block; color:var(--paper); background:var(--navy); margin-top:14px; padding:9px 15px; font-weight:700; border-radius:6px; }
.muse-after { max-width:41em; margin:15px 0; }
.stop-link:hover .road-action { text-decoration-thickness:2px; }
#samples { scroll-margin-top:4px; }
.choices { display:flex; flex-wrap:wrap; gap:6px; }
.choice { border:1px solid #a1b0b9; background:white; color:var(--ink); min-height:44px; border-radius:6px; padding:7px 12px; font-weight:700; font-size:15px; line-height:1.5; }
.choice[aria-pressed="true"] { background:var(--navy); color:var(--paper); border-color:var(--navy); }
.sample-choice[aria-pressed="true"] { box-shadow:inset 0 -3px var(--lime); }
.setting-label { display:block; color:var(--sub); font-size:15px; font-weight:700; margin:17px 0 6px; }
.stage-grid { display:grid; gap:20px; margin-top:15px; }
.stage { min-width:0; border-radius:9px; padding:14px; background:#e3e9e7; background-image:repeating-linear-gradient(135deg,transparent 0 8px,#bccac233 8px 9px); display:grid; align-content:center; }
.artifact { width:100%; max-width:560px; margin:auto; border-radius:4px; box-shadow:0 5px 16px #0f1f2e26; overflow:hidden; background:#fffdf4; color:#28372c; }
.art-image img { display:block; object-fit:cover; width:100%; height:clamp(118px,29vw,175px); object-position:center 44%; }
.art-copy { padding:16px 19px 12px; }
.art-kicker { color:#50654d; font-weight:700; font-size:14px; letter-spacing:.075em; }
.artifact h3 { font:700 clamp(23px,3.1vw,35px)/1.47 "Yu Mincho","Hiragino Mincho ProN",serif; letter-spacing:-.035em; margin:5px 0 9px; }
.art-body { line-height:1.8; }
.art-foot { border-top:1px solid #c3ccb5; padding-top:7px; margin-top:11px; font-size:15px; }
.proof-caption { padding:5px 19px; font-size:12px; color:#596459; background:#f0f0e7; }
.artifact.pop { border:3px solid #304b39; color:#294e37; background:#fff8e8; }
.pop h3 { font-family:"Noto Sans JP",sans-serif; font-weight:800; }
.pop .art-kicker { color:#80512b; }
.artifact.web { background:white; border:1px solid #b6c0b8; border-radius:9px; }
.web h3 { font-family:"Noto Sans JP",sans-serif; font-weight:700; }
.web .art-image img { height:clamp(120px,28vw,200px); }
.mini-link { background:#375740; color:white; margin-top:11px; }
.sample-notes { align-self:center; }
.status-tag { display:inline-flex; color:#604718; background:#fff1d0; border-radius:3px; padding:2px 8px; font-size:13px; font-weight:700; }
.sample-heading { font-size:25px; margin:5px 0 12px; }
.sample-notes h4 { font-size:16px; margin:14px 0 3px; }
.print-btn,.paper-btn { background:white; border:1px solid #8495a0; color:var(--ink); }
.sample-notes .print-btn { margin-top:14px; }
.history { display:grid; gap:8px; }
.history li { position:relative; border-left:2px solid #86a99b; padding:0 0 13px 16px; margin-left:4px; }
.history li::before { content:""; width:8px; height:8px; position:absolute; top:8px; left:-5px; border-radius:50%; background:#456b5e; }
.month { color:var(--ok); font-weight:700; font-size:14px; }
.history p { margin-top:3px; }
.next-note { padding:18px 20px; margin:14px 0; background:#eaf1ed; border-radius:7px; border-left:4px solid #628474; }
.next-note p { margin-top:8px; }
.next-result { font-weight:700; }
.follow-title { margin:18px 0 0; border-top:1px solid #b8cac0; padding-top:14px; font-size:1em; }
.line-hint,.count { color:var(--sub); font-size:14px; margin-top:8px; }
.search-row { display:flex; align-items:center; gap:8px; }
.search-input { flex:1; min-width:0; padding:9px 12px; border:1.5px solid #83969e; border-radius:6px; font:inherit; }
.count { margin-bottom:13px; }
.idea-group { border-top:1px solid #bdcad0; }
.idea-group summary { list-style:none; display:flex; align-items:center; gap:9px; padding:14px 0; cursor:pointer; }
.idea-group summary::-webkit-details-marker { display:none; }
.idea-group summary::after { content:"+"; font-size:22px; }.idea-group[open] summary::after { content:"−"; }
.group-count { font-size:14px; margin-left:auto; white-space:nowrap; color:var(--sub); }
.idea-list { margin:0 0 16px; display:grid; gap:14px; }
.idea-list li { padding:13px 16px; background:white; border:1px solid var(--line); border-radius:6px; }
.idea-list h3 { font-size:19px; }
.idea-list p { margin-top:4px; }
.footer .wrap { display:block; padding:24px 0; }
@media(min-width:700px) {
 .wrap { width:calc(100% - 64px); }
 .hero-inner { grid-template-columns:1fr 1fr; gap:clamp(25px,5vw,64px); padding:44px 0; }
 .hero h1 { font-size:clamp(34px,4.1vw,54px); }
 .hero-photo img { height:clamp(245px,28vw,330px); }
 .section { padding:50px 0; }
 .road-track { grid-template-columns:repeat(3,minmax(0,1fr)); padding:15px; }
 .stop::before { top:51px; left:0; width:100%; height:3px; bottom:auto; }
 .stop:first-child::before { top:51px; left:50%; width:50%; }
 .stop:last-child::before { left:0; width:50%; bottom:auto; }
 .stop:not(:last-child)::after { left:auto; right:1px; top:48px; bottom:auto; transform:rotate(-45deg); }
 .stop-link { text-align:center; display:flex; flex-direction:column; align-items:center; padding:10px 12px 14px; height:100%; }
 .stop-art { width:82px; height:82px; margin-bottom:8px; }
 .stop-time { margin-bottom:4px; }
 .road-action { margin-top:auto; padding-top:6px; }
 .stage-grid { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:32px; }
 .stage { padding:24px; }
 .history { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
 .idea-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:no-preference) {
 .entered .stop-art { animation:arrive .55s var(--ease) both; }
 .entered .stop-1 .stop-art { animation-delay:.12s; }
 .entered .stop-2 .stop-art { animation-delay:.24s; }
 @keyframes arrive { from { transform:translateY(6px); opacity:.55; } }
 .artifact .art-copy { animation:proof-in .22s ease-out; }
 @keyframes proof-in { from { opacity:.6; } }
}
@media print {
 @page { margin:15mm; }
 body { background:white; font-size:12pt; }
 .bar,main > :not(#samples),#samples > :not(.stage-grid),.sample-notes { display:none !important; }
 #samples,.stage-grid,.stage { display:block; width:100%; border:0; padding:0; margin:0; background:white; }
 .artifact { break-inside:avoid; box-shadow:none; border:1px solid #999; max-width:145mm; print-color-adjust:exact; }
 .art-image img { height:50mm; }
}
