:root { --ink:#12323c; --ink-deep:#0b232b; --wine:#7a2340; --ivory:#f8f5f0; --line:#d9d2c6; --text:#1b2b30; --muted:#4b5c62; }
* { box-sizing: border-box; }
body { margin:0; background:var(--ivory); color:var(--text); font-family:"Shippori Mincho","Yu Mincho","Hiragino Mincho ProN",serif; font-weight:600; line-height:1.95; font-size:18px; -webkit-font-smoothing:antialiased; word-break:auto-phrase; line-break:strict; overflow-x:hidden; }
.ib { display:inline-block; }
a { color:inherit; }
header.site { background:var(--ink-deep); color:#fff; text-align:center; padding:12px 16px; font-family:"Cormorant Garamond",serif; letter-spacing:.2em; font-size:18px; }
.wrap { max-width:820px; margin:0 auto; padding:0 16px; }
.hero { background:linear-gradient(160deg,var(--ink-deep),var(--ink)); color:#fff; text-align:center; padding:44px 16px 48px; }
.hero .tag { display:inline-block; border:1px solid rgba(255,255,255,.5); padding:2px 16px; letter-spacing:.2em; font-size:14px; margin-bottom:16px; }
.hero h1 { font-size:clamp(25px,5.6vw,36px); line-height:1.55; margin:0 0 12px; font-weight:800; text-wrap:balance; }
.hero p { margin:0 auto; max-width:600px; font-size:17px; text-wrap:pretty; }
.back { display:block; text-align:center; margin:20px 0 0; font-size:15px; color:var(--muted); }
.toolbar { position:sticky; top:0; z-index:10; background:var(--ivory); border-bottom:1px solid var(--line); padding:10px 0; display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.tb { font:inherit; font-size:15px; font-weight:700; border:1.5px solid var(--ink); background:#fff; color:var(--ink); padding:6px 14px; cursor:pointer; text-decoration:none; line-height:1.6; }
.tb.main { background:var(--wine); border-color:var(--wine); color:#fff; }
.tb:focus-visible, .btn:focus-visible, textarea:focus, input:focus { outline:3px solid var(--wine); outline-offset:2px; }
.status { font-size:14px; color:var(--muted); text-align:center; min-height:1.6em; margin:6px 0 0; }
.step { background:#fff; border:1px solid var(--line); border-top:4px solid var(--ink); padding:20px 18px 12px; margin:22px 0; }
.step-head { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.step-no { font-family:"Cormorant Garamond",serif; color:var(--wine); font-size:22px; letter-spacing:.15em; font-weight:600; }
.step-title { font-size:21px; font-weight:800; color:var(--ink); line-height:1.6; }
.note { font-size:16px; color:var(--muted); margin:0 0 10px; text-wrap:pretty; }
.field { margin-bottom:16px; }
.field label, .lb { display:block; font-weight:800; font-size:16.5px; color:var(--ink); margin-bottom:4px; line-height:1.6; }
textarea, input[type=text], input[type=number] { width:100%; font:inherit; font-size:17px; font-weight:500; line-height:1.8; color:var(--text); background:#fffdf9; border:1.5px solid #9aa9ad; padding:9px 12px; border-radius:0; resize:vertical; }
textarea { min-height:5.5em; }
.checks { display:grid; gap:8px; }
.checks label { display:flex; gap:10px; align-items:flex-start; font-weight:600; font-size:16.5px; color:var(--text); margin:0; cursor:pointer; line-height:1.7; padding:8px 10px; border:1.5px solid var(--line); background:#fffdf9; }
.checks input { width:20px; height:20px; margin-top:4px; flex:none; accent-color:var(--wine); }
.checks.row { grid-template-columns:repeat(3,1fr); }
.flow { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:8px; align-items:stretch; margin:10px 0 16px; }
.flow .cell { background:#f6f1ec; border-top:3px solid var(--wine); padding:10px 12px; font-size:15.5px; line-height:1.7; }
.flow .cell b { display:block; color:var(--ink); font-size:17px; }
.flow .arr { align-self:center; color:var(--wine); font-size:22px; }
table.ex { width:100%; border-collapse:collapse; font-size:16px; margin:6px 0 16px; }
table.ex th, table.ex td { border:1px solid var(--ink); padding:7px 10px; text-align:left; }
table.ex th { background:var(--ink); color:#fff; }
table.ex td.hl { background:#fbf3f4; color:var(--wine); font-weight:800; }
.calc { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:8px; align-items:end; margin-bottom:10px; }
.calc .op { font-size:24px; text-align:center; padding-bottom:6px; color:var(--wine); }
.calc .out { border:2px solid var(--wine); background:#fbf5f6; padding:9px 12px; font-size:22px; font-weight:800; color:var(--wine); min-height:3.1em; line-height:1.5; }
.calc .unit { font-size:14px; font-weight:600; color:var(--muted); }
.cta { background:var(--ink-deep); color:#fff; text-align:center; padding:28px 18px; margin:26px 0 0; }
.cta p { margin:0 0 14px; text-wrap:pretty; }
.cta b { font-size:20px; display:block; margin-bottom:6px; text-wrap:balance; }
.btn { display:inline-block; background:var(--wine); color:#fff; font-weight:800; font-size:19px; padding:14px 34px; letter-spacing:.06em; text-decoration:none; }
.foot-note { font-size:14px; color:var(--muted); text-align:center; margin:24px 0 40px; text-wrap:pretty; }
.sub-links { text-align:center; font-size:15px; margin:16px 0 0; }
.sub-links a { margin:0 8px; color:var(--ink); }

/* monitor */
.nav { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; margin:0; padding:0; list-style:none; }
.nav a { display:block; font-size:14px; font-weight:700; border:1px solid var(--ink); padding:3px 11px; text-decoration:none; background:#fff; line-height:1.7; }
section.sec { margin:36px 0; scroll-margin-top:110px; }
section.sec > h2 { font-size:24px; font-weight:800; color:var(--ink); border-bottom:2px solid var(--ink); padding-bottom:4px; margin:0 0 12px; line-height:1.6; }
section.sec > h2 .no { font-family:"Cormorant Garamond",serif; color:var(--wine); font-size:20px; letter-spacing:.15em; margin-right:12px; }
section.sec h3 { font-size:19px; font-weight:800; color:var(--wine); margin:22px 0 6px; line-height:1.6; }
section.sec p { margin:0 0 10px; text-wrap:pretty; }
section.sec ul { margin:0 0 12px; padding-left:1.3em; }
section.sec li { margin-bottom:6px; text-wrap:pretty; }
.tpl { background:#fff; border:1px solid var(--ink); margin:10px 0 18px; }
.tpl .hd { display:flex; justify-content:space-between; align-items:center; gap:8px; background:#f6f1ec; border-bottom:1px solid var(--ink); padding:6px 12px; font-size:15px; font-weight:800; color:var(--wine); flex-wrap:wrap; line-height:1.6; }
.tpl textarea { border:0; background:#fff; font-size:16.5px; line-height:1.85; min-height:6em; resize:none; overflow:hidden; display:block; }
.cp { font:inherit; font-size:14px; font-weight:800; border:1.5px solid var(--wine); background:#fff; color:var(--wine); padding:2px 14px; cursor:pointer; }
.cp.done { background:var(--wine); color:#fff; }
.warn { border:1px solid var(--wine); background:#fbf5f6; padding:12px 16px; margin:10px 0 18px; font-size:16px; text-wrap:pretty; }
.quick { background:#fff; border:1px solid var(--ink); border-top:4px solid var(--wine); padding:16px 16px 6px; margin:24px 0; }
.quick .g { display:grid; grid-template-columns:repeat(2,1fr); gap:10px 14px; }
.quick h2 { font-size:19px; margin:0 0 4px; color:var(--ink); }
.quick p { font-size:15.5px; color:var(--muted); margin:0 0 10px; text-wrap:pretty; }
ul.ckl { list-style:none; padding-left:0 !important; }
ul.ckl li label { display:flex; gap:10px; align-items:flex-start; cursor:pointer; font-weight:600; }
ul.ckl input { width:20px; height:20px; margin-top:5px; flex:none; accent-color:var(--wine); }

@media (max-width:620px) {
  .toolbar:has(.nav) { position:static; }
  body { font-size:17px; }
  .checks.row { grid-template-columns:1fr; }
  .flow { grid-template-columns:1fr; } .flow .arr { transform:rotate(90deg); justify-self:center; }
  .calc { grid-template-columns:1fr; } .calc .op { padding:0; }
  .quick .g { grid-template-columns:1fr; }
}
@media print {
  .toolbar, .status, .back, .sub-links, .cta .btn, .foot-note .noprint { display:none !important; }
  body { background:#fff; font-size:12pt; }
  .step { break-inside:avoid; }
  textarea { border:1px solid #888; overflow:visible; }
  .hero { padding:16px; }
}
