@charset "UTF-8";
:root{color-scheme:dark;--ink:#ecf4f7;--muted:#a9c0cc;--blue:#96dcf3;--deep:#0b202e;--line:#49697966;--text-size:20px;font-family:"Yu Gothic UI","Meiryo",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--deep);color:var(--ink)}button,input,select{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a6e8ff;outline-offset:4px}a{color:var(--blue);text-underline-offset:5px}button{border:0}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h2{font-weight:500;font-size:1.6rem}p{line-height:1.9}.eyebrow{font-size:.88rem;letter-spacing:.16em;color:#b5d9e8}.primary,.secondary,.glass-button{padding:15px 24px;border-radius:5px;font-size:1rem;line-height:1.4;min-height:52px}.primary{background:#b6e7f5;color:#102d3e;font-weight:700}.primary:hover{background:#d5f4ff}.secondary{background:#284858;border:1px solid #76909c66}.glass-button{border:1px solid #d8f3ff66;background:#112e3e88;backdrop-filter:blur(12px)}.quiet{background:none;color:#d1e1e8;font-size:.87rem;padding:8px 10px}.button-row{display:flex;gap:12px;flex-wrap:wrap}.small-info{font-size:.8rem;color:#b7cbd6}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.title-screen{position:relative;min-height:700px;height:100svh;isolation:isolate;overflow:hidden;background:#102e40}.title-photo{position:absolute;inset:0 0 0 26%;z-index:-3}.title-photo img{width:100%;height:100%;object-fit:cover;object-position:42% center}.title-wash{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#102e40 0%,#102e40f2 23%,#102e40b3 39%,#102e4020 69%,#102e4000 100%),linear-gradient(0deg,#0a2539cc,transparent 35%)}.title-top{position:absolute;inset:28px 4.5% auto;display:flex;justify-content:space-between;align-items:center}.small-brand{font-size:.76rem;letter-spacing:.22em;color:#c6e4ec;display:flex;align-items:center;gap:12px}.small-brand span{font-size:1.8rem;color:#94d6ed}.title-copy{position:absolute;left:6%;top:48%;transform:translateY(-50%);max-width:620px}.title-copy h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-weight:500;font-size:clamp(2rem,4vw,3.8rem);letter-spacing:.045em;line-height:1.5;margin:22px 0}.title-copy h1 span{display:block;white-space:nowrap}.title-note{font-size:1rem;line-height:2.1;letter-spacing:.08em;color:#c3d6df}.title-actions{display:flex;gap:12px;margin-top:32px}.title-actions button{min-width:168px}.title-links{display:flex;flex-wrap:wrap;gap:20px;margin-top:24px}.title-links button{padding:5px 0;background:none;font-size:.88rem;color:#c7dbe4;border-bottom:1px solid #b9d9e333}.title-links span{font-size:.77rem;color:#9ec9db;margin-left:5px}.title-bottom{position:absolute;bottom:30px;left:6%;right:4.5%;display:flex;gap:22px;justify-content:space-between;font-size:.76rem;color:#c6dce7;letter-spacing:.12em}
.game-screen{height:100svh;min-height:600px;position:relative;overflow:hidden;background:#102b3c}.scene-media,.scene-shade{position:absolute;inset:0}.scene-image,.scene-blur{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.scene-blur{filter:blur(35px) brightness(.5);object-fit:cover;transform:scale(1.1)}.scene-image{object-position:center 40%;transition:opacity .3s}.scene-shade{background:linear-gradient(180deg,#07172588 0,transparent 20%,transparent 48%,#07172599 75%,#071725ee);pointer-events:none}.game-header{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:16px 28px;background:linear-gradient(#0b2436a6,transparent);gap:12px}.game-brand{display:flex;align-items:center;gap:10px;background:none;text-align:left;font-family:"Yu Mincho",serif;font-size:1.05rem;padding:0;white-space:nowrap}.game-brand>span:first-child{font-size:2.15rem;color:#a1dff2}.game-brand small{display:block;font-family:"Meiryo",sans-serif;font-size:.63rem;letter-spacing:.1em;color:#c9dce6}.game-header nav{display:flex;gap:7px}.game-header nav button{border:1px solid #b1d6e340;border-radius:4px;padding:10px 15px;background:#102d3e99;backdrop-filter:blur(12px);font-size:.85rem}.game-header nav button:hover{background:#315567}.scene-caption{position:absolute;top:92px;left:30px;display:flex;flex-wrap:wrap;gap:0;align-items:center;font-size:.85rem;text-shadow:0 2px 8px #000}.scene-caption span,.scene-caption time{padding:4px 12px;border-left:1px solid #d2e5ed66}.scene-caption span:first-child{border:0;padding-left:0;color:#aee2f7}.read-area{position:absolute;left:max(24px,calc((100% - 1180px)/2));right:max(24px,calc((100% - 1180px)/2));bottom:25px;max-height:calc(100% - 165px);overflow:auto;scrollbar-width:thin}.scene-heading{display:flex;justify-content:space-between;align-items:center;padding:0 9px 8px;font-size:.86rem;color:#d5e5ed;text-shadow:0 1px 7px #000;gap:12px}.scene-heading>span{letter-spacing:.08em}.line-panel,.action-panel{background:linear-gradient(110deg,#0b2539f5,#102e41e8);border:1px solid #bedfed50;border-radius:7px;box-shadow:0 12px 40px #0003;backdrop-filter:blur(16px)}.reading{width:100%;display:block;position:relative;text-align:left;background:none;padding:22px 35px 28px;min-height:155px;color:#f1f7fa}.speaker{display:block;font-size:1.02rem;color:#a7ddf1;letter-spacing:.12em;font-weight:700;min-height:25px;margin-bottom:9px}.speaker.narration{color:#b9cbd4;font-weight:400;font-size:.82rem;letter-spacing:.1em}.line-text{display:block;font-size:var(--text-size);line-height:1.9;white-space:pre-wrap;letter-spacing:.035em;min-height:2em}.next-mark{display:block;text-align:right;margin-top:12px;font-size:.77rem;color:#b0d4e4;letter-spacing:.08em}.reading-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 22px;border-top:1px solid #d3ebf11c}.reading-tools>div{display:flex;gap:3px;flex-wrap:wrap;justify-content:flex-end}.reading-tools button{font-size:.81rem;padding:7px 9px;background:none;color:#c2d8e2;border-radius:3px}.reading-tools button:hover,.reading-tools button[aria-pressed=true]{background:#54879d55;color:#fff}.reading-tools button:disabled{opacity:.3}.action-panel{padding:24px 30px}.action-kicker{color:#9bd6ee;font-size:.8rem;letter-spacing:.12em;margin-bottom:8px}.action-title{font-size:1.15rem;line-height:1.7;font-weight:500;margin-bottom:18px}.option-list{display:grid;gap:10px}.option{display:flex;align-items:center;gap:14px;width:100%;background:#26495d9c;border:1px solid #86b6ce55;border-radius:5px;padding:15px 19px;text-align:left;line-height:1.7;font-size:1rem}.option::before{content:"";width:6px;height:6px;flex:none;border:1px solid #b8ddeb;transform:rotate(45deg)}.option:hover:not(:disabled){background:#3d7189;box-shadow:inset 3px 0 #9de3ff}.option small{display:block;color:#b5d0dc;font-size:.8rem;line-height:1.7;margin-top:4px}.option>span{flex:1}.option.visited{background:#1a3a4c;color:#c3d8e2}.option.visited::after{content:"確認済み";font-size:.75rem;color:#a1c7d8;white-space:nowrap}.feedback{border-left:3px solid #d7ae88;background:#342e2a99;margin:14px 0;padding:12px 16px;font-size:.94rem;line-height:1.9}.feedback.correct{border-color:#a2dcca;background:#123e3c}.action-tail{margin-top:18px}.end-title{font-family:"Yu Mincho",serif;font-size:clamp(1.4rem,3vw,2.2rem);letter-spacing:.04em;line-height:1.7;margin:10px 0}.end-description{color:#c8dbe6;font-size:.94rem}.ending-actions{margin-top:22px;display:flex;gap:12px;flex-wrap:wrap}.tabio-card{margin-top:25px;padding-top:22px;border-top:1px solid var(--line);display:grid;grid-template-columns:100px 1fr;gap:20px;align-items:start}.tabio-card img{width:100px;aspect-ratio:1;object-fit:cover;border-radius:4px}.tabio-card h3{font-family:Georgia,serif;letter-spacing:.08em;font-size:1.15rem;margin-bottom:6px}.tabio-card p{font-size:.85rem;color:#bdd1de;line-height:1.9}.tabio-card a{display:inline-block;margin-top:12px;font-size:.88rem}.channel-link{display:inline-block;margin-top:17px;font-size:.94rem}.hide-ui .game-header,.hide-ui .scene-caption,.hide-ui .read-area{display:none}.restore-ui{position:absolute;right:22px;bottom:22px;background:#102d3edd;border:1px solid #b4dce570;border-radius:4px;padding:12px 18px}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:100;background:#e5f5fa;color:#102d3e;padding:13px 22px;border-radius:6px;box-shadow:0 5px 25px #0004;font-size:.88rem;max-width:90vw;text-align:center}.storage-warning{position:fixed;top:8px;left:50%;transform:translateX(-50%);max-width:90vw;z-index:150;background:#713c2f;color:#fff;padding:10px 17px;border-radius:4px;font-size:.85rem}
dialog{color:var(--ink);background:#102b3c;border:1px solid #608ba177;box-shadow:0 22px 100px #0008;border-radius:12px;padding:0}dialog::backdrop{background:#03121bce;backdrop-filter:blur(8px)}.panel{width:min(1080px,calc(100vw - 36px));max-height:88svh}.panel-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px 28px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#102b3cf7;z-index:1}.panel-head .eyebrow{font-size:.7rem;margin-bottom:5px}.close-button{border:1px solid #b3d6e455;background:#23475a;padding:9px 14px;border-radius:4px;font-size:.88rem;white-space:nowrap}.panel-body{padding:24px 28px 30px;overflow-wrap:anywhere}.panel-note{font-size:.9rem;color:#bdd1de;margin-bottom:20px;line-height:1.9}.tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:22px}.tabs button{background:#183b50;border:1px solid #618aa144;border-radius:5px;padding:11px 19px;font-size:.92rem}.tabs button.active{background:#b6e7f5;color:#15364b}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery-card{background:#19394c;border:1px solid #426c8055;padding:0;text-align:left;border-radius:6px;overflow:hidden}.gallery-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.gallery-card .card-name{display:block;padding:12px 13px;font-size:.86rem;line-height:1.7}.gallery-card .card-meta{display:block;color:#a9c6d6;font-size:.73rem}.locked-picture{display:grid;place-items:center;background:linear-gradient(135deg,#1b3b4e,#102a3c);aspect-ratio:16/9;color:#7498ac;font-family:Georgia,serif;font-size:2.8rem;font-weight:400}.gallery-card:disabled{opacity:1;color:#91aebe}.gallery-card:not(:disabled):hover{border-color:#a1d4e7;box-shadow:0 5px 20px #0003}.save-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.save-card{border:1px solid #61869a55;border-radius:6px;background:#19384a;overflow:hidden}.save-card img{width:120px;aspect-ratio:16/9;object-fit:cover;border-radius:4px}.save-top{display:flex;gap:15px;padding:15px}.save-details{flex:1;min-width:0}.slot-label{font-size:.8rem;color:#a0d8ed;letter-spacing:.08em}.save-name{font-size:.95rem;margin:4px 0;line-height:1.7}.save-details time{font-size:.75rem;color:#a8c4d5}.save-bottom{padding:0 15px 15px;display:flex;gap:8px}.save-bottom button{font-size:.84rem;padding:9px 14px;min-height:0}.empty-slot{padding:22px 15px;font-size:.95rem;line-height:1.8;color:#b8ccda}.data-actions{padding-top:23px;margin-top:23px;border-top:1px solid var(--line)}.data-actions p{font-size:.82rem;color:#afc6d5;margin-bottom:14px}.setting-row{display:grid;grid-template-columns:minmax(130px,.65fr) 1fr;align-items:center;gap:25px;padding:22px 0;border-bottom:1px solid var(--line)}.setting-row label{font-size:.96rem}.setting-row input[type=range]{width:100%;accent-color:#a6dff2}.setting-row input[type=checkbox]{width:22px;height:22px;accent-color:#a6dff2}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.help-grid h3{font-size:1.05rem;color:#b1dff0;margin-bottom:10px}.help-grid p{font-size:.92rem;color:#c9dbe5}.menu-grid{display:grid;gap:12px}.menu-grid button{padding:16px 20px;text-align:left;background:#21475d;border:1px solid #6a99ae55;border-radius:5px}.log-entry{padding:16px 0;border-bottom:1px solid var(--line)}.log-entry small{display:block;color:#89b7cf;margin-bottom:7px;font-size:.76rem}.log-entry strong{font-size:.9rem;color:#afe0f1}.log-entry p{font-size:1rem;line-height:1.9;margin-top:5px}.log-entry button{font-size:.78rem;background:#23485c;padding:6px 12px;margin-top:9px;border-radius:4px}.notebook-card{padding:18px 0;border-bottom:1px solid var(--line)}.notebook-card h3{font-size:1rem;margin-bottom:8px;color:#b2deee}.notebook-card p{font-size:.93rem;line-height:1.9;color:#c4d8e2}.viewer{width:min(1280px,calc(100vw - 28px));max-height:94svh;background:#071c2b}.viewer-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 20px}.viewer-head h2{font-size:1rem;font-weight:500}.viewer-body{display:flex;align-items:center;justify-content:center;min-height:200px;background:#06131c}.viewer-body img{display:block;max-width:100%;max-height:calc(94svh - 80px);object-fit:contain}.viewer-body video{display:block;width:100%;max-height:calc(94svh - 80px)}.confirm-dialog{width:min(460px,calc(100vw - 32px));padding:28px}.confirm-dialog h2{font-size:1.3rem;margin-bottom:15px}.confirm-dialog p{font-size:.95rem;color:#bfd5e3;line-height:1.9;margin-bottom:24px}.confirm-dialog .button-row{justify-content:flex-end}
@media(min-width:1600px){.read-area{bottom:36px}.reading{padding-top:26px;padding-bottom:30px}.title-copy{left:8%}.title-bottom{left:8%}}
@media(max-width:800px){.title-screen{min-height:640px}.title-photo{inset:0 0 30% 0}.title-photo img{object-position:44% 32%;opacity:.9}.title-wash{background:linear-gradient(0deg,#102e40 0%,#102e40 24%,#102e40e8 38%,#102e4066 62%,#102e4010 100%)}.title-top{inset:16px 20px auto}.title-copy{left:24px;right:20px;top:auto;bottom:88px;transform:none;max-width:none}.title-copy h1{font-size:clamp(1.75rem,5.9vw,2.7rem);line-height:1.5;margin:12px 0}.title-note{font-size:.9rem;line-height:1.9}.title-actions{margin-top:22px}.title-actions button{min-width:0;flex:1;padding:13px 17px;max-width:210px}.title-links{gap:18px;margin-top:19px}.title-bottom{left:24px;right:20px;bottom:25px;flex-direction:column;gap:6px;font-size:.69rem}.title-copy .eyebrow{font-size:.74rem}.game-screen{min-height:650px}.game-header{padding:10px 13px;align-items:center;gap:8px}.game-brand{gap:5px;font-size:.8rem}.game-brand small{display:none}.game-brand>span:first-child{font-size:1.65rem}.game-header nav{gap:5px}.game-header nav button{padding:9px 10px;font-size:.72rem}.scene-caption{top:64px;left:15px;font-size:.73rem}.scene-caption span,.scene-caption time{padding:3px 8px}.scene-media{top:95px;bottom:auto;aspect-ratio:16/9}.scene-image{object-fit:cover;object-position:center}.scene-blur{display:none}.scene-shade{background:linear-gradient(180deg,transparent 37%,#102b3c 66%);pointer-events:none}.read-area{left:12px;right:12px;bottom:16px;max-height:calc(100% - 280px)}.scene-heading{font-size:.74rem;padding:0 5px 6px}.scene-heading button{font-size:.72rem;padding:7px 2px}.reading{padding:17px 19px 15px;min-height:170px}.line-text{font-size:calc(var(--text-size) - 1px);line-height:1.9}.speaker{font-size:.9rem;margin-bottom:8px}.next-mark{font-size:.7rem;margin-top:12px}.reading-tools{padding:6px 9px;gap:4px;align-items:flex-start}.reading-tools .small-info{font-size:.66rem;white-space:nowrap;padding-top:8px}.reading-tools button{font-size:.71rem;padding:7px}.action-panel{padding:18px 18px}.action-title{font-size:1rem;margin-bottom:12px}.option{padding:11px 13px;font-size:.89rem;gap:9px}.option small{font-size:.72rem}.option.visited::after{font-size:.65rem}.action-tail{margin-top:13px}.primary,.secondary{padding:12px 18px;min-height:46px;font-size:.9rem}.end-title{font-size:1.45rem}.end-description{font-size:.86rem}.tabio-card{grid-template-columns:68px 1fr;gap:13px;margin-top:20px;padding-top:18px}.tabio-card img{width:68px}.tabio-card p{font-size:.8rem}.panel{width:calc(100vw - 20px);max-height:92svh}.panel-head{padding:18px;gap:12px}.panel-head h2{font-size:1.3rem}.panel-body{padding:19px 17px 25px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-card .card-name{padding:9px 11px;font-size:.78rem}.gallery-card .card-meta{font-size:.65rem}.save-grid{grid-template-columns:1fr}.save-top{padding:13px}.save-card img{width:108px}.tabs{gap:7px}.tabs button{font-size:.83rem;padding:10px 15px}.help-grid{grid-template-columns:1fr}.setting-row{gap:15px;grid-template-columns:1fr 1.2fr}.viewer-head{padding:12px}.viewer-head h2{font-size:.83rem}.viewer-head button{font-size:.77rem}.toast{font-size:.8rem;bottom:15px}.quiet{font-size:.78rem}}
@media(max-height:670px) and (min-width:801px){.title-screen{min-height:550px}.title-copy h1{font-size:2.5rem;margin:12px 0}.title-note{font-size:.9rem}.title-actions{margin-top:20px}.title-links{margin-top:17px}.game-screen{min-height:500px}.read-area{bottom:15px}.reading{min-height:120px;padding:15px 25px}.line-text{font-size:18px}.speaker{margin-bottom:3px}.next-mark{margin-top:6px}.reading-tools{padding:5px 15px}.scene-caption{top:76px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.reduce-motion *{animation:none!important;transition:none!important}
.speaker.narration{min-height:0;height:0;margin:0;overflow:hidden}
.end-title{line-height:1.5;margin:8px 0 12px}
.end-summary{font-size:.86rem;color:#bcd2df}.end-summary summary{cursor:pointer;padding:5px 0}.end-summary p{margin-top:9px}
@media(max-width:800px){
 .game-screen{display:flex;flex-direction:column;min-height:100svh}
 .scene-media{position:relative;inset:auto;margin-top:95px;flex:1;aspect-ratio:auto;min-height:130px}
 .scene-image{object-fit:contain;object-position:center}
 .scene-blur{display:block;filter:blur(30px) brightness(.4)}
 .read-area{position:relative;inset:auto;flex:none;margin:0 12px 16px;max-height:calc(100svh - 290px)}
 .game-header nav button,.reading-tools button,.close-button,.tabs button,.gallery-card .card-name,.scene-heading button{font-size:.875rem}
 .game-header nav button{padding:9px 11px}.reading-tools button{padding:9px 6px}
 .scene-heading>span{font-size:.875rem}.viewer-head button{font-size:.875rem}
}
@media(max-width:500px){
 .game-header{flex-wrap:wrap;justify-content:space-between;padding:10px 13px;row-gap:8px}
 .game-brand{font-size:.88rem}.game-brand small{display:inline;margin-left:5px;font-size:.7rem}
 .game-header nav{width:100%;justify-content:space-between;gap:6px}
 .game-header nav button{flex:1;padding:9px 4px;white-space:nowrap}
 .scene-caption{top:101px}.scene-media{margin-top:128px}
 .read-area{max-height:calc(100svh - 310px)}
}
@media(max-height:500px) and (orientation:landscape){
 .game-screen{min-height:100svh}.read-area{bottom:8px;max-height:calc(100svh - 88px)}
 .game-header{padding:8px 18px}.scene-caption{top:61px}.reading{min-height:100px;padding:10px 20px}
 .line-text{font-size:18px}.option{padding:8px 13px}.action-panel{padding:13px 20px}
}
.game-screen.ending-screen .scene-media{position:absolute;inset:0;margin:0;min-height:0;opacity:.3}
.game-screen.ending-screen .scene-shade{background:#0b243799}
.game-screen.ending-screen .read-area{position:absolute;top:128px;bottom:18px;left:max(12px,calc((100% - 1120px)/2));right:max(12px,calc((100% - 1120px)/2));margin:0;max-height:none}
.ending-screen .scene-heading{display:none}.ending-screen .action-panel{min-height:100%}
.title-top .quiet{font-size:.875rem}
@media(max-width:500px){.game-screen.ending-screen .read-area{top:137px}.ending-screen .tabio-card{grid-template-columns:1fr}.ending-screen .tabio-card>img{display:none}}
