:root{--red:#c8352a;--ink:#302621;--paper:#fffdfa}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;font-size:16px;line-height:1.95}.page{max-width:880px;margin:auto;padding:24px 34px 70px}.header{display:flex;align-items:center;gap:14px}.noren{color:var(--red);width:54px;height:54px;flex:none}.brand{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:23px;letter-spacing:.12em;white-space:nowrap}.header-line{height:1px;background:var(--red);flex:1}.screen[hidden]{display:none}.screen{max-width:650px;margin:66px auto 0}h1,.fortune-card{font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,serif;font-weight:500}.dictionary{border-left:2px solid var(--red);padding-left:23px}.dictionary h1{color:var(--red);font-size:clamp(32px,5vw,48px);letter-spacing:.07em;margin:0 0 14px;line-height:1.4}.dictionary h1 span{font-size:.7em}.dictionary p,.story p{margin:0;line-height:2.05}.story{margin-top:34px}.story p+p{margin-top:22px}.actions{text-align:center;margin:40px 0 0}.main-button{font:inherit;font-weight:700;letter-spacing:.08em;background:var(--red);color:white;border:0;border-radius:3px;padding:15px 30px;min-height:52px;min-width:230px;cursor:pointer}.main-button:active{transform:translateY(2px)}button:focus-visible,h1:focus-visible{outline:3px solid #492e1c;outline-offset:4px}.select,.result{text-align:center;margin-top:36px}.select h1{font-size:clamp(20px,3vw,26px);color:var(--red);letter-spacing:.05em;margin:0}.art-container{width:min(100%,390px);margin:0 auto}.illustration{position:relative;width:100%;aspect-ratio:360/390}.illustration svg{width:100%;height:100%;display:block;overflow:visible}.strand,.selected-noodle{fill:none;stroke:#f8dd9d;stroke-width:12;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(1px 2px 0 #d19e55)}.selected-noodle{stroke:#ffe7ae}.sticks path{stroke:#96603e;stroke-width:8;stroke-linecap:round}.sticks path+path{stroke:#bb885e;stroke-width:6}.choices{position:absolute;inset:0}.choice{position:absolute;top:49%;height:18%;width:17%;background:transparent;border:0;border-radius:30px;cursor:pointer;touch-action:manipulation}.choice:nth-child(1){left:23.5%}.choice:nth-child(2){left:41.5%}.choice:nth-child(3){left:59.5%}.choice span{display:block;width:15px;height:15px;border:2px solid var(--red);background:#fff8e9;border-radius:50%;margin:auto}.choice:active span{background:var(--red)}.choice:disabled span{opacity:0}.hint{color:#a29488;font-size:13px;margin:-8px 0 0}.result{margin-top:8px}.result-art{width:min(70%,260px)}.result-art .choices{display:none}.fortune-card{position:relative;border:1px solid var(--red);max-width:360px;margin:0 auto;padding:20px 32px 25px;clip-path:polygon(0 14px,14px 14px,14px 0,calc(100% - 14px) 0,calc(100% - 14px) 14px,100% 14px,100% calc(100% - 14px),calc(100% - 14px) calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,14px calc(100% - 14px),0 calc(100% - 14px))}.fortune-card p{font-size:19px;letter-spacing:.14em;margin:0}.fortune-card h1{font-size:64px;color:var(--red);letter-spacing:.16em;margin:0;line-height:1.5}.steam{position:absolute;right:24px;bottom:10px;color:var(--red);font-size:25px}.result .actions{margin-top:26px}@media(max-width:600px){.page{padding:15px 20px 50px}.header{gap:10px}.noren{width:45px;height:45px}.brand{font-size:19px}.screen{margin-top:38px}.select{margin-top:32px}.select h1{font-size:clamp(16px,4.7vw,19px);letter-spacing:0}.art-container{width:min(100%,340px)}.result{margin-top:4px}.result-art{width:min(65%,230px)}.fortune-card h1{font-size:56px}.dictionary{padding-left:16px}.story{margin-top:26px}.story p+p{margin-top:18px}.actions{margin-top:30px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.fortune-card{border:0;background:var(--red);isolation:isolate}.fortune-card:before{content:"";position:absolute;inset:1px;background:var(--paper);clip-path:inherit;z-index:-1}
.fortune-card .fortune-message{font-family:"Hiragino Mincho ProN","Yu Mincho",YuMincho,serif;font-size:16px;line-height:1.8;letter-spacing:.02em;margin:8px auto 12px;max-width:28em;overflow-wrap:anywhere}.fortune-card{padding:20px 30px 34px}.result-art{width:min(72%,280px)}

/* 赤丸と麺を同じボタンに収め、タッチ領域を重ねない。 */
.choice{top:39%;height:27%;width:16%;min-height:44px;padding:0;transform:translateX(-50%)}
.choice:nth-child(1){left:31.67%}.choice:nth-child(2){left:50%}.choice:nth-child(3){left:68.33%}
.choice span{position:absolute;top:0;left:50%;transform:translateX(-50%);width:14px;height:14px;margin:0}
.choice:focus{outline:none}.choice:focus-visible{outline:none}.choice:focus-visible span{outline:2px solid #633b2f;outline-offset:3px}
/* 麺はつゆの位置に合わせた独立した表示窓で切り取る。 */
.illustration svg.noodle-window{width:360px;height:255px;overflow:hidden;mask-image:linear-gradient(to bottom,#000 93%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 93%,transparent 100%)}
.choice{top:49%;height:18%;border-radius:10px}.choice:focus-visible{outline:2px solid var(--red);outline-offset:-2px}
@media(hover:hover) and (pointer:fine){.strand.is-hovered{transform:translateY(-4px);transition:transform .18s ease}.kamaboko-cursor.visible{opacity:1}}
.kamaboko-cursor{position:fixed;top:0;left:0;width:32px;height:22px;z-index:10;pointer-events:none;opacity:0;transition:opacity .15s ease}.kamaboko-cursor svg{width:100%;height:100%}
@media(hover:none),(pointer:coarse){.kamaboko-cursor{display:none}}
.kamaboko-cursor img{display:block;width:100%;height:100%;object-fit:contain}
/* 結果用の画像はSVG座標で実寸を指定する。 */
.illustration svg.result-noodle{overflow:hidden}
/* 箸の左側に寄せた３本を、重ならない３つの領域で選ぶ。 */
.choice{width:10%;top:48%;height:18%}.choice:nth-child(1){left:42.22%}.choice:nth-child(2){left:53.33%}.choice:nth-child(3){left:63.33%}
.illustration svg.noodle-window{mask-image:linear-gradient(to bottom,#000 90%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 90%,transparent 100%)}
.kamaboko-cursor{width:38.4px;height:26.4px}

/* 見えるかまぼこ本体の幅は、画像の透明部分を除いて約70px。 */
.kamaboko-cursor{width:110px;height:auto;aspect-ratio:3/2}
.illustration svg.noodle-window{mask-image:linear-gradient(to bottom,#000 94%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 94%,transparent 100%)}
.choice{width:8%;min-width:0}.choice:nth-child(1){left:41.94%}.choice:nth-child(2){left:50%}.choice:nth-child(3){left:58.06%}

/* グラデーションは画像ではなく、つゆに固定されたSVGマスクで管理する。 */
.illustration svg.noodle-window{mask-image:none;-webkit-mask-image:none}
/* 丼画像の影はSVGの下端から少しはみ出すため、その分も余白に含める。 */
.result-art{margin-bottom:43px}
@media(max-width:600px){.result-art{margin-bottom:32px}}
