@font-face{font-family:'Nayo JP';src:url('/assets/web/nayo-jp-dd4ac080726e.woff2') format('woff2');font-weight:100 900;font-display:swap}
*{box-sizing:border-box} :root{color-scheme:light;--ink:#3f3546;--muted:#82798b;--pink:#c06b93;--line:#eae3eb;--paper:#fffdfa}body{margin:0;background:#f7f3f8;color:var(--ink);font:15px/1.7 'Nayo JP','Yu Gothic UI','Meiryo',sans-serif}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;font-weight:700;cursor:pointer;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);padding:10px 16px;transition:transform .15s,background .15s}button:hover{background:#f5edf4;transform:translateY(-1px)}button:focus-visible,canvas:focus-visible,a:focus-visible{outline:3px solid #ac7eaf;outline-offset:3px}button:disabled{opacity:.5;cursor:default;transform:none}.primary{background:var(--ink);color:white;border-color:var(--ink)}.primary:hover{background:#62465f}header{max-width:1200px;margin:auto;padding:24px 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{font-size:19px;font-weight:800;color:inherit;text-decoration:none}.brand span{font-size:10px;letter-spacing:2px;color:var(--muted);margin-left:18px}.pill{font-size:11px;letter-spacing:1px;border:1px solid #dfd2e0;border-radius:30px;padding:4px 12px;background:#fff9}.eyebrow{font-size:12px;letter-spacing:2px;color:#8d718c;margin-bottom:20px}main{max-width:1120px;margin:34px auto;display:grid;grid-template-columns:340px minmax(0,1fr);gap:65px;align-items:center;padding:0 25px}.intro{padding:20px 0}h1{font-size:64px;line-height:1.25;letter-spacing:-3px;margin:0 0 23px}.pink{color:var(--pink)}.lead{font-size:19px;line-height:1.9}.steps{margin:28px 0}.steps p{margin:10px 0}.steps b{font-size:11px;color:var(--pink);padding-right:12px}.small,.modehint{font-size:12px;color:var(--muted)}.mode{display:flex;gap:20px;margin-top:25px;font-size:14px}input{accent-color:var(--pink)}#start{width:100%;margin-top:8px;padding:14px}#error{color:#af3056}.game{background:var(--paper);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 18px 65px #5636510b}.gamehead{display:flex;justify-content:space-between;padding:16px 22px;align-items:center;font-size:12px;color:var(--muted)}.board{position:relative;background:#fff;margin:0 16px;border-radius:16px;overflow:hidden}#board{width:100%;height:auto;display:block;touch-action:pan-y pinch-zoom}#count{position:absolute;top:14px;right:18px;background:var(--ink);color:white;width:55px;height:55px;border-radius:50%;text-align:center;line-height:55px;font-size:28px;font-weight:bold}.controls{padding:16px 24px 22px;border-top:1px solid #f4edf3}.status h2{font-size:21px;margin:0}.status p{font-size:13px;color:var(--muted);margin:4px 0 0}.partrow{display:flex;gap:12px;align-items:center;margin-top:14px}.partrow #piece{width:85px;height:51px;border:1px dashed #d7c8d6;border-radius:9px;background:#f7f1f6}.partrow p{font-size:10px;color:var(--muted);margin:0}.partrow .primary{margin-left:auto;font-size:13px}.adjust{display:flex;gap:6px;margin-top:14px}.adjust button{padding:5px 13px}#undo{margin-left:auto;font-size:12px}.resultbuttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.resultbuttons button{font-size:12px}#notice{font-size:12px;color:var(--muted);margin-bottom:0}footer{max-width:1120px;margin:30px auto;padding:15px 25px;border-top:1px solid var(--line);font-size:11px;letter-spacing:1px;color:var(--muted);display:flex;justify-content:space-between}[hidden]{display:none!important}@media(max-width:760px){header{padding:16px 20px}.brand span{display:none}main{grid-template-columns:1fr;gap:18px;margin:18px auto;padding:0 16px;max-width:580px}.intro{padding:0}.eyebrow{margin-bottom:6px}h1{font-size:42px;letter-spacing:-2px;margin-bottom:8px}.desktop{display:none}.lead,.steps,.intro>.small{display:none}.mode{margin:10px 0 0}.modehint{margin:3px 0}#start{padding:10px}.gamehead{padding:10px 15px}.controls{padding:12px 16px}.status h2{font-size:19px}.board{margin:0 8px}.partrow{gap:7px}.partrow #piece{width:65px;height:39px}.partrow .primary{padding:9px}.partrow b{font-size:13px}footer{display:block;margin:18px 16px;padding:10px 0}footer span{display:block}}@media(prefers-reduced-motion:reduce){button{transition:none}}
@media(min-width:761px){main{max-width:970px;grid-template-columns:300px minmax(0,530px);gap:60px;margin-top:20px}.intro{padding:0}h1{font-size:58px}.steps{margin:18px 0}.gamehead{padding:10px 20px}.controls{padding:12px 18px}.game{align-self:start}}
.difficulty{margin-top:20px;display:flex;align-items:center;gap:12px;font-size:13px}.difficulty select{min-width:0;flex:1;border:1px solid #d9ccda;background:white;border-radius:10px;padding:10px;color:#443548;font:inherit}.difficulty+.mode{margin-top:8px;font-size:12px}

input,select,textarea{font:inherit}a.button{text-align:center}button,.button{min-height:44px}
.result-main{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.result-main>*{font-size:14px}
#share-x{background:#fff;color:var(--ink);border:1.5px solid #bda6bc}
.result-more{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.result-more summary{cursor:pointer;font-size:13px;color:var(--muted);min-height:44px;display:flex;align-items:center}.result-more summary::before{content:'＋';margin-right:8px}.result-more[open] summary::before{content:'−'}
body[data-phase=result] .status h2{font-size:24px;line-height:1.5}body[data-phase=result] .status p{font-size:12px}
.adjust button{min-width:44px;min-height:44px;padding:6px 10px}.adjust #undo{min-width:0}
@media(max-width:760px){
 body[data-phase=memorize] header,body[data-phase=place] header,body[data-phase=memorize] .intro,body[data-phase=place] .intro,body[data-phase=memorize] footer,body[data-phase=place] footer{display:none}
 body[data-phase=memorize] main,body[data-phase=place] main{margin:8px auto;padding:0 8px;display:block}
 body[data-phase=memorize] .board,body[data-phase=place] .board{width:min(calc(100% - 16px),max(210px,calc(100svh - 265px)));margin-inline:auto}
 .game{border-radius:18px}.status h2{font-size:18px}.status p{font-size:12px;line-height:1.6}.partrow{margin-top:10px}.adjust{margin-top:10px}.partrow .primary{min-width:94px}.partrow #piece{flex-shrink:0}
 body[data-phase=result] .intro{display:none}body[data-phase=result] main{margin-top:12px}
 body[data-phase=result] .status h2{font-size:21px}.resultbuttons{gap:8px}.resultbuttons>*{flex:1 1 auto}.result-main>*{padding:12px 8px;font-size:13px}
}
@media(max-width:360px){body[data-phase=memorize] .board,body[data-phase=place] .board{width:min(calc(100% - 16px),max(180px,calc(100svh - 330px)))}.partrow>div{min-width:0;flex:1}.partrow p{display:none}.partrow b{font-size:12px}.status h2{font-size:16px}.status p{font-size:11px}.controls{padding:10px 12px}.adjust{gap:4px}.adjust #undo{font-size:11px;padding-inline:6px}}


body[data-phase=place] #board{touch-action:none}
