:root,:root[data-theme=light]{color-scheme:light;--bg: #fdf3e7;--surface: #ffffff;--surface-alt: #fbe8d3;--text: #2b1a0e;--dim: #7a5c40;--border: #ecc9a3;--accent: #d95d0e;--accent-strong: #9a3d0c;--guide-border: #f0b27a;--guide-bg: #fff4e5;--alert-border: #d97706;--alert-bg: #fffbeb;--ring: rgba(217, 93, 14, .22);--navy: #9a3d0c}:root[data-theme=dark]{color-scheme:dark;--bg: #1d130b;--surface: #2a1a0f;--surface-alt: #3a2412;--text: #fdf0e2;--dim: #d9b48f;--border: #5a3a1e;--accent: #ffa25e;--accent-strong: #ffc08a;--guide-border: #7a4d24;--guide-bg: #331d0a;--alert-border: #b45309;--alert-bg: #451a03;--ring: rgba(255, 162, 94, .3);--navy: #ffc08a}:root[data-theme=contrast]{color-scheme:light;--bg: #ffffff;--surface: #ffffff;--surface-alt: #e6e6e6;--text: #000000;--dim: #1c1c1c;--border: #4d4d4d;--accent: #b34a00;--accent-strong: #7a2d00;--guide-border: #8a4a00;--guide-bg: #fff1de;--alert-border: #b45309;--alert-bg: #fffbeb;--ring: rgba(179, 74, 0, .35);--navy: #7a2d00}:root[data-theme=contrast] :is(.settings-choice,.settings-note,.settings-preview,.chip,input,select,textarea){border-width:2px}:root[data-theme=contrast] main a:not(.pill-btn){text-decoration:underline}html[data-font-size=small]{font-size:14px}html[data-font-size=large]{font-size:18px}html[data-font-size=large] :is(input,button,select,textarea){font-size:1rem}html[data-font-size=large] :is(input,select,textarea){min-height:48px}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Hiragino Kaku Gothic ProN,Hiragino Sans,Noto Sans JP,Yu Gothic UI,sans-serif;background:var(--bg);color:var(--text);line-height:1.7;font-size:16px}a{color:var(--accent)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}h1,h2,h3{color:var(--accent-strong);line-height:1.4}:root[data-theme=dark] h1,:root[data-theme=dark] h2,:root[data-theme=dark] h3{color:var(--text)}.wrap{max-width:48rem;margin:0 auto;padding:0 14px 48px}.site-header{background:var(--surface);border-bottom:1px solid var(--border);margin-bottom:18px}.site-header-in{max-width:48rem;margin:0 auto;padding:10px 14px 12px}.site-header-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.site-name{font-weight:800;font-size:1.12rem;color:var(--accent-strong);text-decoration:none}.settings-open-btn{border:1px solid var(--accent);border-radius:999px;background:var(--surface);color:var(--accent);font-weight:600;box-shadow:0 1px 2px #9a3d0c1a;cursor:pointer}.settings-open-btn--small{font-size:.75rem;padding:.2rem .65rem;min-height:36px;width:max-content;flex:none}.settings-gear{color:#6b7280}:root[data-theme=dark] .settings-gear{color:#9ca3af}.settings-modal{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}.settings-modal[hidden]{display:none}.settings-backdrop{position:absolute;inset:0;background:#00000073}.settings-sheet{position:relative;background:var(--surface);color:var(--text);width:100%;max-width:42rem;max-height:88vh;overflow:auto;border-radius:24px 24px 0 0;padding:1.2rem 1rem 1.4rem}@media(min-width:640px){.settings-modal{align-items:center}.settings-sheet{border-radius:24px}}.settings-sheet h2{margin-top:0}.settings-choices{display:flex;flex-wrap:wrap;gap:.5rem}.settings-choice{flex:1;min-width:6rem;padding:.7rem 1rem;font-size:.95rem;font-weight:700;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);cursor:pointer}.settings-choice.is-selected{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff}.settings-choice.is-selected:after{content:"（選択中）"}.settings-choice[data-font-choice=small]{font-size:13px}.settings-choice[data-font-choice=standard]{font-size:15px}.settings-choice[data-font-choice=large]{font-size:17px}.settings-note{border:1px solid var(--border);background:var(--surface-alt);border-radius:12px;padding:.6rem .8rem;font-size:.88rem;margin-top:1rem}.settings-choice-desc{display:block;font-size:.78rem;font-weight:400;margin-top:.2rem}.settings-preview{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:12px;padding:.8rem 1rem}.settings-preview-title{font-weight:700;font-size:1.05rem;margin-bottom:.3rem}.settings-preview p{margin:.3rem 0}.settings-preview-dim{color:var(--dim);font-size:.85rem}.settings-close-btn{width:100%;background:var(--accent-strong);border:0;border-radius:999px;color:#fff;font-weight:700;padding:.8rem 1rem;margin-top:1rem;min-height:48px;cursor:pointer}.site-nav{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.chip{display:inline-flex;align-items:center;border:1.5px solid var(--border);border-radius:999px;background:var(--surface-alt);color:var(--text);padding:3px 12px;font-size:.85rem;font-weight:600;text-decoration:none}a.chip,.chip--link{color:var(--accent);border-color:var(--accent);background:var(--surface)}.chip--static{font-weight:500;font-size:.78rem;padding:1px 9px}.chip--nav{font-size:.85rem}.pill-btn{display:inline-block;border-radius:999px;padding:8px 20px;font-weight:700;text-decoration:none;cursor:pointer;font-size:1rem;border:1px solid var(--accent);background:var(--accent);color:#fff}.pill-btn--outline{background:var(--surface);color:var(--accent)}.form-guide{border:1px solid var(--border);background:var(--surface-alt);border-radius:10px;padding:.55rem .8rem;margin:0 0 .6rem;font-size:.92rem;line-height:1.6}.badge{display:inline-flex;align-items:center;font-weight:600;font-size:.8rem;line-height:1.4;padding:.15em .6em;border-radius:999px;border:1px solid var(--border);color:var(--text);background:var(--surface-alt);vertical-align:middle;white-space:nowrap}.badge:before{content:"";width:.5em;height:.5em;border-radius:50%;background:var(--dot, currentColor);margin-right:.35em;flex:none}.badge--kind{background:var(--guide-bg);border-color:var(--accent);color:var(--accent-strong);--dot: var(--accent)}:root[data-theme=dark] .badge--kind{color:var(--accent-strong)}.badge--mini{font-size:.7rem;padding:.1em .5em}.guide-box{border:1px solid var(--guide-border);background:var(--guide-bg);border-radius:10px;padding:12px 14px;margin:14px 0}.guide-box p{margin:.4em 0}.alert-box{border:1.5px solid var(--alert-border);background:var(--alert-bg);border-radius:10px;padding:12px 14px;margin:14px 0}.alert-box .alert-title{font-weight:800;margin:0 0 6px}.alert-box p{margin:.4em 0}.note-box{border:1px solid var(--border);background:var(--surface-alt);border-radius:12px;padding:12px 14px;margin:14px 0}.link-chip{display:flex;align-items:center;gap:.6rem;min-height:44px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:.7rem .9rem;color:var(--text);font-weight:700;text-decoration:none}.link-chip-arrow{margin-left:auto;color:var(--dim);font-weight:400}.item-card{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin:10px 0}.item-card .item-name:after{content:"";position:absolute;inset:0}.item-card a.chip--link{position:relative;z-index:1}.item-card:hover,.item-card:active{background:var(--surface-alt)}.item-card:focus-within{outline:2px solid var(--accent);outline-offset:2px}.item-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.item-name{font-weight:800;font-size:1.05rem;text-decoration:none}.item-aliases{margin:4px 0 0;font-size:.85rem;color:var(--dim)}.item-indication{margin:4px 0 0;font-size:.9rem}.item-consult{margin:8px 0 0}.consult-tag{display:inline-block;font-size:.72rem;font-weight:700;line-height:1.5;color:var(--accent-strong);border:1px solid var(--accent);border-radius:6px;padding:1px 7px;background:var(--surface)}:root[data-theme=dark] .consult-tag{color:var(--accent)}.long-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.95rem}.breadcrumbs{font-size:.86rem;color:var(--dim);margin:0 0 10px}.breadcrumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:nowrap;align-items:center;gap:.4rem}.breadcrumbs li{display:flex;align-items:center;min-width:0}.breadcrumbs li:first-child{flex:none}.breadcrumbs li:last-child{flex:1 1 auto}.breadcrumbs li+li:before{content:"›";margin-right:.4rem;color:var(--dim)}.breadcrumbs a,.breadcrumbs li>span{display:block;height:44px;line-height:42px;padding:0 .8rem;border:1px solid var(--border);border-radius:999px;background:var(--surface);font-weight:600;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.breadcrumbs a{color:var(--accent)}.breadcrumbs a:hover{background:var(--surface-alt)}.breadcrumbs li>span{color:var(--text);background:var(--surface-alt)}.breadcrumbs li:first-child a:before{content:"‹";margin-right:.35em;font-weight:700}.meta-line{font-size:.85rem;color:var(--dim)}section.block{margin:26px 0}section.block>h2{font-size:1.15rem;border-bottom:2px solid var(--border);padding-bottom:4px}.search-box{display:flex;gap:8px;margin:14px 0}.search-box input{flex:1;min-width:0;font-size:1rem;padding:10px 12px;border:2px solid var(--accent-strong);border-radius:10px;background:var(--surface);color:var(--text)}:root[data-theme=dark] .search-box input{border-color:var(--accent)}.input-frame{display:flex;align-items:stretch;gap:6px;border:2px solid var(--accent-strong);border-radius:12px;padding:4px;background:var(--surface)}:root[data-theme=dark] .input-frame{border-color:var(--accent)}.input-frame:focus-within{box-shadow:0 0 0 3px var(--ring)}.input-frame .suggest-wrap{flex:1}.input-frame input{border:0;background:transparent}.input-frame input:focus{outline:none}.search-submit{background:var(--surface);color:var(--accent);border:1.5px solid var(--accent)}.input-frame .search-submit{flex:none;width:auto;min-height:44px;margin:0;padding:0 16px;border-radius:9px;font-size:1rem}.search-submit.is-done{background:var(--accent);border-color:var(--accent);color:#fff}.suggest-wrap{position:relative;flex:1;min-width:0;display:flex}.suggest-wrap input{width:100%}.suggest-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:50;list-style:none;margin:0;padding:.3rem;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 10px 32px #9a3d0c2e;max-height:16rem;overflow:auto;touch-action:pan-y}.suggest-list[hidden]{display:none}.suggest-list li{margin:0}.suggest-item{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text);padding:.55rem .6rem;font-size:1rem;cursor:pointer;border-radius:8px}.suggest-item:active{background:var(--surface-alt)}.group-head{margin:30px 0 4px}.group-head h2{font-size:1.25rem;margin:0}.group-situation{color:var(--dim);font-size:.92rem;margin:4px 0 0}.group-nav{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.site-footer{border-top:1px solid var(--border);margin-top:40px;padding:18px 0 8px;font-size:.85rem;color:var(--dim)}.site-footer a{color:var(--accent)}.site-footer nav ul{list-style:none;margin:0 0 .8rem;padding:0;display:flex;flex-wrap:wrap;gap:.2rem 1rem}.site-footer nav a{display:inline-flex;align-items:center;min-height:44px}.footer-group{margin-bottom:.9rem}.footer-group-title{font-size:.78rem;font-weight:700;color:var(--dim);margin:0 0 .1rem;letter-spacing:.04em}.footer-group ul{margin-bottom:0}.sheet{background:#fff;color:#22252a;border:1.5px solid var(--border);border-radius:10px;padding:26px 28px 22px;font-size:14.5px;line-height:1.7;margin:14px 0}@media(max-width:640px){.sheet{padding:18px 16px 16px}}.sheet-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;border-bottom:3px solid var(--accent-strong);padding-bottom:10px}:root[data-theme=dark] .sheet-head{border-bottom-color:#9a3d0c}.sheet-title{margin:2px 0 0;font-size:23px;line-height:1.35;font-weight:800;color:#17211e}@media(max-width:640px){.sheet-title{font-size:20px}}.sheet-kind{font-size:12px;font-weight:700;color:#5b6b66;text-align:right;line-height:1.6}.sheet-lead{margin:12px 0 0;font-size:14.5px}.sheet h4{margin:18px 0 8px;font-size:15.5px;font-weight:800;color:#9a3d0c;display:flex;align-items:center;gap:8px}.sheet h4:after{content:"";flex:1;height:1px;background:#e3d5c8}.sheet ul{margin:0;padding-left:1.25em}.sheet li{margin:3px 0}.sheet p{margin:6px 0}.sheet .key{background:#fdf0e2;border-radius:9px;padding:12px 14px;margin-top:14px}.sheet .key h4{margin-top:0}.sheet .key h4:after{display:none}.sheet .alert{background:#fdeeec;border:1.5px solid #e0a49e;border-radius:9px;padding:12px 14px;margin-top:14px}.sheet .alert h4{color:#a52a21;margin-top:0}.sheet .alert h4:after{display:none}.sheet .steps{list-style:none;margin:0;padding:0;counter-reset:step}.sheet .steps li{counter-increment:step;display:flex;gap:10px;margin:8px 0;align-items:flex-start}.sheet .steps li:before{content:counter(step);flex:none;width:24px;height:24px;border-radius:50%;background:#9a3d0c;color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center;margin-top:3px;line-height:1}.sheet table{border-collapse:collapse;width:100%;margin:8px 0;font-size:13.5px}.sheet th,.sheet td{border:1px solid #d8cfc4;padding:6px 9px;text-align:left;vertical-align:top}.sheet th{background:#f7efe6;font-weight:700}.sheet .memo{margin-top:16px;border:1px solid #d8cfc4;border-radius:9px;padding:10px 14px 14px}.sheet .memo .memo-label{font-size:12.5px;font-weight:700;color:#5b6b66;margin:0 0 6px}.sheet .memo .line{border-bottom:1px dotted #b3a08c;height:30px}.sheet .memo .cols{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}@media(max-width:640px){.sheet .memo .cols{grid-template-columns:1fr}}.sheet-foot{margin-top:16px;padding-top:10px;border-top:1px solid #d8cfc4;font-size:11.5px;color:#5b6b66;display:flex;flex-wrap:wrap;gap:4px 18px;justify-content:space-between}.scenes-label{font-weight:700;margin:10px 0 6px}.scene-grid{list-style:none;margin:0;padding:0;display:grid;gap:8px}.scene-grid li{display:flex;gap:10px;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px}.scene-grid .n{flex:none;width:24px;height:24px;border-radius:50%;background:var(--accent-strong);color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center;margin-top:2px;line-height:1}:root[data-theme=dark] .scene-grid .n{color:#2b1a0e}.scene-grid .note{display:block;font-size:.85rem;color:var(--dim)}.contains{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:12px;font-size:.9rem}.contains span{display:inline-flex;align-items:center;gap:4px}.contains svg{color:var(--accent);flex:none}@media print{:root,:root[data-theme=dark]{--bg: #ffffff;--surface: #ffffff;--surface-alt: #ffffff;--text: #000000;--dim: #333333;--border: #666666;--accent: #b34a00;--accent-strong: #7a2d00}.site-header,.settings-modal{display:none}@page{margin:14mm}body.sheet-print .site-footer,body.sheet-print .breadcrumbs,body.sheet-print .sheet-actions,body.sheet-print .sheet-page-head{display:none!important}body.sheet-print .wrap{padding:0;max-width:none}body.sheet-print .sheet{border:0;border-radius:0;padding:0;margin:0}}
