.tsg-page { margin:0; background:#f4f7f8; color:#173248; font:1rem/1.7 "Yu Gothic UI","Meiryo",system-ui,sans-serif; }
.tsg-page *, .tsg-cards *, .tsg-download * { box-sizing:border-box; }
.tsg-main { max-width:66rem; padding:1.1rem clamp(1rem,4vw,3.25rem) 3rem; margin:auto; }
.tsg-page [hidden] { display:none !important; }
.tsg-skip,.tsg-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.tsg-skip:focus { position:fixed; width:auto; height:auto; clip-path:none; background:white; padding:.5em; z-index:9; }
.tsg-crumb,.tsg-foot,.tsg-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem 1rem; }
.tsg-crumb { font-size:.88rem; padding:.5rem 0; color:#4c6171; }
.tsg-main a,.tsg-foot a { color:#075f70; text-underline-offset:.18em; }
.tsg-page :focus-visible,.tsg-cards a:focus-visible { outline:3px solid #b95708; outline-offset:3px; }
.tsg-title { padding:clamp(1rem,3vw,2.15rem) 0 1.35rem; }
.tsg-title h1 { font-size:clamp(1.65rem,4.6vw,2.8rem); line-height:1.28; letter-spacing:-.035em; max-width:23em; margin:0 0 .6rem; color:#102f45; }
.tsg-title p { margin:.4rem 0; }
.tsg-title .tsg-topic { font-weight:700; color:#176661; font-size:.94rem; margin-bottom:.5rem; }
.tsg-actions { margin-top:1rem; }
.tsg-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.55rem 1rem; font-weight:700; border-radius:.42rem; }
.tsg-actions .tsg-primary { color:white; background:#096769; border:1px solid #096769; text-decoration:none; }
.tsg-actions .tsg-primary span { margin-left:.7rem; }
.tsg-actions .tsg-secondary { background:white; color:#18485a; border:1px solid #97afb9; text-decoration:none; }
.tsg-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:.8rem; margin:1.1rem 0; }
.tsg-cards a { display:grid; align-content:start; gap:.55rem; padding:1.12rem; border:1px solid #b5cbd0; border-top:4px solid #1a7573; border-radius:.5rem; background:white; text-decoration:none; color:#193748; line-height:1.55; }
.tsg-cards a:hover,.tsg-actions a:hover { box-shadow:0 2px 8px #294c5e22; }
.tsg-cards small { font-size:.85rem; font-weight:650; color:#346560; }
.tsg-cards strong { font-size:1.12rem; text-wrap:pretty; }
.tsg-cards a:hover strong { text-decoration:underline; }
.tsg-cards span { font-size:.94rem; color:#42586a; }
.tsg-download { padding:.25rem 0 .65rem; }
.tsg-compact { grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
.tsg-compact a { gap:.25rem; padding:.65rem .9rem; }
.tsg-compact strong { font-size:1rem; }
.tsg-related { margin:.5em 0 1em; font-weight:700; }
.tsg-figure,.tsg-trial,.tsg-how,.tsg-windows { border:1px solid #bed0d5; border-radius:.7rem; background:white; margin:0 0 1.2rem; padding:clamp(1rem,3vw,1.65rem); scroll-margin-top:5rem; }
.tsg-figure { background:#eef6f5; border-color:#accbc6; }
.tsg-figure figcaption { font-weight:750; margin-bottom:.8rem; }
.tsg-figure ol { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr)); gap:1.4rem; list-style:none; padding:0; margin:0; }
.tsg-figure li { position:relative; border-left:.28rem solid #187b75; background:white; border-radius:.3rem; padding:.65rem .8rem; }
.tsg-figure li strong,.tsg-figure li span { display:block; }
.tsg-figure li span { color:#395967; font-size:.9rem; }
.tsg-order li:not(:last-child)::after { content:'→'; position:absolute; top:25%; right:-1.15rem; color:#23636b; }
.tsg-pair li:last-child { background:#d9e9fa; border-color:#4868a0; }
.tsg-ratio i { display:block; height:.45rem; width:calc(var(--units) * 28%); margin-top:.5rem; background:#287b85; border-radius:1rem; }
.tsg-blocks li::after { content:''; display:block; margin-top:.6rem; height:.5rem; background:repeating-linear-gradient(90deg,#426b95 0 1.55rem,transparent 1.55rem 1.9rem); }
.tsg-blocks li:last-child::after { background:#247c6c; }
.tsg-places li:first-child { background:#fff4ce; border-color:#a47716; }
.tsg-week li { text-align:center; border-left:0; border-top:.26rem solid #498a85; }
.tsg-page h2 { font-size:clamp(1.25rem,3vw,1.65rem); line-height:1.4; margin:0 0 .55rem; }
.tsg-page h3 { font-size:1.12rem; margin:1.1rem 0 .35rem; }
.tsg-page h4 { margin:1rem 0 .3rem; }
.tsg-look { margin:.25rem 0; font-weight:650; }
.tsg-method { color:#405765; margin:.25rem 0 1rem; font-size:.93rem; }
.tsg-controls { display:flex; align-items:flex-end; flex-wrap:wrap; gap:.8rem 1.8rem; }
.tsg-controls fieldset { min-width:0; margin:0; padding:0; border:0; }
.tsg-controls legend { font-size:.9rem; font-weight:700; margin:0 0 .35rem; }
.tsg-trial button,.tsg-trial select { font:inherit; min-height:44px; padding:.45em .75em; border-radius:.35rem; border:1px solid #99b1ba; background:white; color:#183a4b; cursor:pointer; }
.tsg-controls button { margin:0 .15rem .25rem 0; }
.tsg-controls button[aria-pressed=true] { color:white; background:#173e50; border-color:#173e50; box-shadow:inset 0 -3px #82c5ba; }
.tsg-trial button:disabled { cursor:default; opacity:.45; }
.tsg-note { padding:.7rem .85rem; border-left:4px solid #248479; background:#e9f5ef; }
.tsg-compare { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }
.tsg-comparison { display:grid; align-content:start; gap:.25rem; background:#f4f6f7; border:1px solid #c3d1d7; border-radius:.4rem; padding:.65rem .8rem; }
.tsg-comparison.is-active { background:#eaf5f1; border:2px solid #4c8c82; padding:calc(.65rem - 1px) calc(.8rem - 1px); }
.tsg-comparison span,.tsg-schedule time { font-variant-numeric:tabular-nums; }
.tsg-daynav { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.tsg-daynav label { font-weight:600; }
.tsg-schedule { list-style:none; padding:0; margin:.7rem 0; }
.tsg-schedule li { display:grid; grid-template-columns:minmax(7.8rem,auto) minmax(8rem,1fr) minmax(6rem,.85fr); gap:.15rem .75rem; align-items:baseline; padding:.48rem .7rem; border-left:5px solid #397b83; border-bottom:1px solid #d2e0e5; background:#f1f7fa; overflow-wrap:anywhere; }
.tsg-schedule .tsg-p1,.tsg-schedule .tsg-p4 { border-left-color:#64629f; background:#f4f2fa; }
.tsg-schedule .tsg-p2,.tsg-schedule .tsg-p5 { border-left-color:#9e7124; background:#fbf5e9; }
.tsg-schedule span { color:#365064; font-size:.95rem; }
.tsg-inputs { margin-top:.7rem; }
.tsg-inputs summary { font-weight:650; color:#17626b; padding:.6em 0; cursor:pointer; }
.tsg-how ol,.tsg-windows ol { padding-left:1.55em; }
.tsg-how li,.tsg-windows li { margin:.5rem 0; }
.tsg-windows code { overflow-wrap:anywhere; }
.tsg-foot { justify-content:center; padding:1.5rem; background:white; }
.tsg-timeline { margin:0 0 .75rem; border:1px solid #bdced2; border-radius:.4rem; padding:.75rem; background:#f8fbfc; }
.tsg-timeline figcaption { font-size:.9rem; color:#3b5363; margin-bottom:.45rem; }
.tsg-lane { display:grid; grid-template-columns:4.3em minmax(0,1fr); align-items:center; margin:.25rem 0; gap:.4rem; }
.tsg-lane span { font-weight:650; font-size:.9rem; }
.tsg-track { position:relative; height:1.05em; border-radius:3px; overflow:hidden; background:repeating-linear-gradient(90deg,#dce7eb 0 calc(25% - 1px),#b4c7ce calc(25% - 1px) 25%); }
.tsg-track i { display:block; position:absolute; top:0; bottom:0; min-width:2px; background:#526fa0; border-radius:2px; }
.tsg-lane:nth-child(2) .tsg-track i { background:#167c70; }
.tsg-axis { display:flex; justify-content:space-between; gap:.6rem; margin-left:4.6em; font-size:.82rem; color:#425d69; }
.tsg-axis span:last-child { text-align:right; }
@media (max-width:38rem) {
  .tsg-compare { grid-template-columns:1fr; }
  .tsg-figure ol { gap:.45rem; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tsg-order li:not(:last-child)::after { display:none; }
  .tsg-order li { counter-increment:step; }
  .tsg-order li strong::before { content:counter(step) '　'; color:#27786e; }
  .tsg-schedule li { grid-template-columns:minmax(0,1fr) minmax(0,1.45fr); }
  .tsg-schedule li span { grid-column:2; }
  .tsg-daynav label { flex:1 1 auto; }
  .tsg-daynav select { max-width:100%; }
}
