*{box-sizing:border-box;margin:0;padding:0}
:root{--navy:#0f2a3d;--teal:#0e7c86;--teal-l:#eef6f6;--orange:#e8590c;--orange-d:#b8420a;--orange-l:#fff1e3;--river:#2b8cc4;--bg:#f4f7f6;--ink:#1d2b33;--sub:#55707a}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Noto Sans CJK JP",Meiryo,sans-serif;background:var(--bg);color:var(--ink);line-height:1.8;font-size:16px}
a{color:var(--teal)}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:760px;margin:0 auto;padding:0 16px}

/* hero */
.hero{background:linear-gradient(135deg,#0f2a3d,#124e63);color:#fff;padding:40px 0 32px}
.hero .loc{color:#9fe0e6;font-weight:700;font-size:14px;letter-spacing:.05em}
.hero h1{font-size:clamp(26px,6.4vw,40px);line-height:1.35;font-weight:900;margin:10px 0 14px}
.hero h1 em{font-style:normal;color:#ffb347}
.hero p{color:#d6e6ea;font-size:15px}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.fact{background:rgba(255,255,255,.1);border-radius:12px;padding:10px 14px}
.fact .k{font-size:12px;color:#9fe0e6;font-weight:700}
.fact .v{font-size:24px;font-weight:900;line-height:1.3}
.fact .v small{font-size:14px;margin-left:2px}

/* nav */
.toc{background:#fff;border-bottom:1px solid #dde6e8;position:sticky;top:0;z-index:10}
.toc ul{list-style:none;display:flex;gap:8px;overflow-x:auto;padding:10px 16px;max-width:760px;margin:0 auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.toc ul::-webkit-scrollbar{display:none}
.toc a{display:block;white-space:nowrap;background:var(--teal-l);color:var(--navy);text-decoration:none;font-size:13px;font-weight:700;padding:6px 12px;border-radius:20px}

/* sections */
section{padding:28px 0 4px}
.card{background:#fff;border-radius:18px;padding:22px 20px;box-shadow:0 2px 10px rgba(0,0,0,.06);margin-bottom:16px}
h2{font-size:22px;font-weight:900;color:var(--navy);display:flex;align-items:center;gap:10px;line-height:1.4;margin-bottom:14px}
h2 .n{flex:none;background:var(--teal);color:#fff;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px}
h3{font-size:17px;font-weight:900;color:var(--navy);margin:18px 0 6px}
p+p{margin-top:10px}
.lead{font-weight:700}
.note{font-size:13px;color:var(--sub);margin-top:10px;line-height:1.6}
.hl{background:linear-gradient(transparent 60%,#ffe2b8 60%);font-weight:700}

.flow{display:flex;align-items:stretch;gap:6px;margin:12px 0}
.flow .fb{flex:1;background:var(--teal-l);border-radius:12px;padding:10px 6px;text-align:center;font-size:13px;font-weight:700;line-height:1.5;display:flex;align-items:center;justify-content:center}
.flow .fb.on{background:var(--orange-l);border:2px solid var(--orange);color:var(--orange-d)}
.flow .ar{display:flex;align-items:center;color:var(--teal);font-weight:900}

.types{display:grid;gap:10px;margin-top:12px}
.type{border-radius:12px;padding:12px 14px;background:#f3f6f7}
.type b{display:block;color:var(--navy)}
.type.on{background:var(--orange-l);border:2px solid var(--orange)}
.type.on b{color:var(--orange-d)}
.type span{font-size:14px}

table{width:100%;border-collapse:collapse;font-size:15px;margin-top:6px}
th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #e5ecee;vertical-align:top}
th{width:34%;color:var(--sub);font-weight:700;font-size:14px}
td b{font-size:17px}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip{background:#eef1f3;border-radius:20px;padding:4px 12px;font-size:14px;font-weight:700}
.chip.w{background:#fde3e1;color:#b3261e}

.svgbox{background:#fafcfc;border-radius:14px;padding:8px;margin:12px 0}
.svgbox svg{width:100%;height:auto;display:block}

.grid2{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:560px){.grid2{grid-template-columns:1fr 1fr}}
.box{border-radius:14px;padding:14px 16px;background:var(--teal-l)}
.box .h{font-weight:900;font-size:16px;color:var(--navy);margin-bottom:4px}
.box.warn{background:var(--orange-l);border-left:6px solid var(--orange)}
.box.warn .h{color:var(--orange-d)}
.box p{font-size:14px;line-height:1.7}

.quote{border-left:6px solid var(--teal);background:var(--teal-l);border-radius:0 12px 12px 0;padding:12px 16px;margin:10px 0;font-size:15px}
.quote .who{display:block;font-size:12px;font-weight:700;color:var(--teal);margin-bottom:2px}

.cases{list-style:none;margin-top:8px}
.cases li{display:flex;gap:12px;padding:10px 0;border-bottom:1px dashed #dde6e8;font-size:15px}
.cases .tag{flex:none;background:var(--navy);color:#fff;font-size:12px;font-weight:900;border-radius:8px;padding:3px 8px;height:fit-content;min-width:68px;text-align:center}

.tl{list-style:none;position:relative;margin-top:8px;padding-left:20px}
.tl:before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:3px;background:#cfe3e5;border-radius:2px}
.tl li{position:relative;padding:6px 0 10px;font-size:15px}
.tl li:before{content:"";position:absolute;left:-20px;top:13px;width:13px;height:13px;border-radius:50%;background:#fff;border:3px solid var(--teal)}
.tl .d{display:block;font-size:13px;font-weight:900;color:var(--teal)}

.ask{background:var(--navy);color:#fff}
.ask h2{color:#fff}
.ask h2 .n{background:#ffb347;color:var(--navy)}
.ask ul{list-style:none}
.ask li{position:relative;padding:8px 0 8px 40px;font-size:17px;font-weight:700;line-height:1.6}
.ask li:before{content:"Q";position:absolute;left:0;top:9px;width:28px;height:28px;border-radius:7px;background:#ffb347;color:var(--navy);font-weight:900;display:flex;align-items:center;justify-content:center;font-size:15px}
.ask p{color:#c9dde2;font-size:15px;margin-top:10px}

.gallery{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.gallery a{display:block;border-radius:10px;overflow:hidden;box-shadow:0 1px 6px rgba(0,0,0,.12)}
.gallery figcaption{font-size:12px;color:var(--sub);margin-top:4px;text-align:center}

.share{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.btn{display:inline-block;text-decoration:none;font-weight:900;font-size:15px;border-radius:30px;padding:10px 20px;border:none;cursor:pointer;font-family:inherit}
.btn.x{background:#000;color:#fff}
.btn.line{background:#06c755;color:#fff}
.btn.copy{background:var(--teal-l);color:var(--navy)}

.src ol{padding-left:22px;font-size:14px;line-height:1.7}
.src li{margin-bottom:6px;word-break:break-all}

footer{background:var(--navy);color:#c9dde2;font-size:13px;padding:24px 0 36px;margin-top:24px;line-height:1.8}
footer b{color:#fff}
.totop{position:fixed;right:14px;bottom:14px;background:var(--teal);color:#fff;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.25);z-index:20}
section{scroll-margin-top:56px}
