/* 背景の壁紙（examplat と同じ。2026-10-14）。奥の園・桜・紅葉・雪。奥の園・桜色は theme-sakurairo.css。既定は「桜」（theme.js） */
/* examplat と同じ背景（2026-10-14 稲木さん「背景をイグザムプラットと同じものに」）。scratchpad の gen_walls.py で作成。
   奥の園（昼・夜）・奥の園・桜色・桜・紅葉・雪。昼と夜は表示の明暗（data-mode）に合わせる。背景だけを替え、画面の部品の色はアプリのまま。
   舞うもの: 夜の奥の園はホタル、桜色は光（#study-hikari）、桜・紅葉・雪は花びら・もみじ・雪（#study-season）。動きを減らす設定では止める */
html[data-skin="okunosono"]:not([data-mode="dark"]){background:radial-gradient(900px 560px at 12% -8%,rgba(255,247,214,.95),transparent 60%),radial-gradient(1000px 520px at 50% 108%,rgba(79,138,92,.28),transparent 62%),radial-gradient(640px 420px at 92% 30%,rgba(169,211,168,.35),transparent 62%),linear-gradient(180deg,#f7f6ee 0%,#eef2e4 45%,#dfe9d6 100%);background-attachment:fixed;min-height:100%}
html[data-skin="okunosono"][data-mode="dark"]{background:radial-gradient(900px 520px at 82% -6%,rgba(210,224,255,.10),transparent 62%),radial-gradient(700px 420px at 50% 108%,rgba(240,184,102,.20),transparent 62%),radial-gradient(760px 420px at 4% 96%,rgba(63,107,79,.22),transparent 62%),linear-gradient(180deg,#050810 0%,#0a1121 38%,#0f1a2e 70%,#0c1320 100%);background-attachment:fixed;min-height:100%}
html[data-skin="okunosono"] body{background:transparent}
html[data-skin="sakura"]:not([data-mode="dark"]){background:url(/img/wall/sakura-day.webp) center/cover no-repeat fixed,#f7f6ee;background-attachment:fixed;min-height:100%}
html[data-skin="sakura"][data-mode="dark"]{background:url(/img/wall/sakura-night.webp) center/cover no-repeat fixed,#0b1220;background-attachment:fixed;min-height:100%}
html[data-skin="sakura"] body{background:transparent}
html[data-skin="momiji"]:not([data-mode="dark"]){background:url(/img/wall/momiji-day.webp) center/cover no-repeat fixed,#f7f6ee;background-attachment:fixed;min-height:100%}
html[data-skin="momiji"][data-mode="dark"]{background:url(/img/wall/momiji-night.webp) center/cover no-repeat fixed,#0b1220;background-attachment:fixed;min-height:100%}
html[data-skin="momiji"] body{background:transparent}
html[data-skin="yuki"]:not([data-mode="dark"]){background:url(/img/wall/yuki-day.webp) center/cover no-repeat fixed,#f7f6ee;background-attachment:fixed;min-height:100%}
html[data-skin="yuki"][data-mode="dark"]{background:url(/img/wall/yuki-night.webp) center/cover no-repeat fixed,#0b1220;background-attachment:fixed;min-height:100%}
html[data-skin="yuki"] body{background:transparent}
.skin-swatch.skin-okunosono{background:radial-gradient(900px 560px at 12% -8%,rgba(255,247,214,.95),transparent 60%),radial-gradient(1000px 520px at 50% 108%,rgba(79,138,92,.28),transparent 62%),radial-gradient(640px 420px at 92% 30%,rgba(169,211,168,.35),transparent 62%),linear-gradient(180deg,#f7f6ee 0%,#eef2e4 45%,#dfe9d6 100%)}
.skin-swatch.skin-sakura{background:url(/img/wall/sakura-day.webp) center/cover no-repeat}
.skin-swatch.skin-momiji{background:url(/img/wall/momiji-day.webp) center/cover no-repeat}
.skin-swatch.skin-yuki{background:url(/img/wall/yuki-day.webp) center/cover no-repeat}
#study-season{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
#study-season i{position:absolute;top:-5%;left:var(--l);width:var(--s);height:var(--s);opacity:0;will-change:transform;animation:study-fall var(--d) linear var(--w) infinite,study-sway calc(var(--d) / 3) ease-in-out var(--w) infinite alternate}
@keyframes study-fall{0%{transform:translateY(0) rotate(0deg);opacity:0}8%{opacity:var(--o,.8)}90%{opacity:var(--o,.8)}100%{transform:translateY(108vh) rotate(var(--r));opacity:0}}
@keyframes study-sway{from{margin-left:calc(var(--x) * -1)}to{margin-left:var(--x)}}
html[data-season="sakura"] #study-season i{background:radial-gradient(circle at 30% 30%,#fff7f9,#f7c9d8 55%,#e7a3bd);border-radius:80% 0 80% 0;--o:.75}
html[data-season="sakura"][data-mode="dark"] #study-season i{background:radial-gradient(circle at 30% 30%,#fff1f6,#e8b3d0 60%,#b886b8);box-shadow:0 0 8px rgba(255,214,232,.35);--o:.7}
html[data-season="momiji"] #study-season i{background:linear-gradient(135deg,#e2683c,#b8402a);clip-path:polygon(50% 0,61% 30%,95% 22%,72% 48%,98% 72%,62% 66%,50% 100%,38% 66%,2% 72%,28% 48%,5% 22%,39% 30%);--o:.8}
html[data-season="momiji"] #study-season i:nth-child(3n){background:linear-gradient(135deg,#f0b24a,#c9832a)}
html[data-season="yuki"] #study-season i{background:#fff;border-radius:50%;box-shadow:0 0 2px rgba(120,140,170,.45),0 0 6px rgba(255,255,255,.9);--o:.85}
#study-season i:nth-child(1){--l:12.0%;--s:12px;--d:16.9s;--w:-13.2s;--x:26px;--r:360deg}
#study-season i:nth-child(2){--l:29.4%;--s:8px;--d:15.0s;--w:-6.5s;--x:45px;--r:-220deg}
#study-season i:nth-child(3){--l:39.0%;--s:13px;--d:13.4s;--w:-12.2s;--x:28px;--r:360deg}
#study-season i:nth-child(4){--l:77.9%;--s:10px;--d:16.7s;--w:-7.2s;--x:23px;--r:-320deg}
#study-season i:nth-child(5){--l:64.6%;--s:10px;--d:11.1s;--w:-1.0s;--x:37px;--r:360deg}
#study-season i:nth-child(6){--l:4.6%;--s:10px;--d:18.7s;--w:-5.3s;--x:36px;--r:-220deg}
#study-season i:nth-child(7){--l:86.3%;--s:9px;--d:16.8s;--w:-12.4s;--x:36px;--r:-320deg}
#study-season i:nth-child(8){--l:61.9%;--s:10px;--d:18.8s;--w:-10.5s;--x:33px;--r:-320deg}
#study-season i:nth-child(9){--l:65.2%;--s:10px;--d:16.6s;--w:-6.8s;--x:27px;--r:-320deg}
#study-season i:nth-child(10){--l:25.9%;--s:9px;--d:20.0s;--w:-3.9s;--x:21px;--r:200deg}
#study-season i:nth-child(11){--l:17.2%;--s:10px;--d:17.2s;--w:-8.2s;--x:31px;--r:-220deg}
#study-season i:nth-child(12){--l:93.5%;--s:9px;--d:14.5s;--w:-4.3s;--x:32px;--r:-220deg}
#study-season i:nth-child(13){--l:41.3%;--s:13px;--d:13.3s;--w:-5.5s;--x:32px;--r:-320deg}
#study-season i:nth-child(14){--l:90.3%;--s:8px;--d:12.3s;--w:-9.8s;--x:36px;--r:-220deg}
#study-season i:nth-child(15){--l:3.8%;--s:12px;--d:19.5s;--w:-5.9s;--x:29px;--r:-320deg}
#study-season i:nth-child(16){--l:36.6%;--s:11px;--d:14.2s;--w:-7.4s;--x:19px;--r:-320deg}
html[data-season="yuki"] #study-season i:nth-child(odd){--s:4px}html[data-season="yuki"] #study-season i:nth-child(even){--s:6px}
#study-hikari{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
#study-hikari i{position:absolute;left:var(--l);top:var(--t);width:var(--s);height:var(--s);border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.85) 0%,rgba(255,220,232,.45) 35%,rgba(255,200,220,0) 70%);opacity:0;filter:blur(2px);animation:study-hk-glow var(--d) ease-in-out var(--w) infinite,study-hk-drift calc(var(--d) * 2) ease-in-out var(--w) infinite alternate}
html[data-mode="dark"] #study-hikari i{background:radial-gradient(circle,rgba(255,236,244,.55) 0%,rgba(242,169,196,.28) 38%,rgba(242,169,196,0) 70%)}
#study-hikari b{position:absolute;top:-30%;left:-60%;width:40%;height:160%;transform:rotate(18deg);background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,244,248,.38),rgba(255,255,255,0));animation:study-hk-sweep 30s ease-in-out 4s infinite}
html[data-mode="dark"] #study-hikari b{background:linear-gradient(90deg,rgba(255,255,255,0),rgba(248,201,218,.12),rgba(255,255,255,0))}
@keyframes study-hk-glow{0%,100%{opacity:0}40%{opacity:var(--o,.7)}70%{opacity:calc(var(--o,.7) * .5)}}
@keyframes study-hk-drift{from{transform:translate(0,0) scale(.9)}to{transform:translate(var(--x),var(--y)) scale(1.1)}}
@keyframes study-hk-sweep{0%,70%{left:-60%}100%{left:130%}}
#study-hikari i:nth-child(2){--l:6%;--t:18%;--s:160px;--d:9s;--w:0s;--x:60px;--y:30px;--o:0.55}
#study-hikari i:nth-child(3){--l:22%;--t:62%;--s:110px;--d:11s;--w:-3s;--x:-40px;--y:-50px;--o:0.6}
#study-hikari i:nth-child(4){--l:38%;--t:12%;--s:90px;--d:8s;--w:-6s;--x:50px;--y:40px;--o:0.5}
#study-hikari i:nth-child(5){--l:52%;--t:74%;--s:180px;--d:12s;--w:-2s;--x:-60px;--y:-30px;--o:0.45}
#study-hikari i:nth-child(6){--l:66%;--t:30%;--s:120px;--d:10s;--w:-8s;--x:40px;--y:60px;--o:0.55}
#study-hikari i:nth-child(7){--l:80%;--t:8%;--s:140px;--d:13s;--w:-5s;--x:-50px;--y:40px;--o:0.5}
#study-hikari i:nth-child(8){--l:88%;--t:58%;--s:100px;--d:9.5s;--w:-1s;--x:-30px;--y:-60px;--o:0.6}
#study-hikari i:nth-child(9){--l:12%;--t:86%;--s:130px;--d:11.5s;--w:-7s;--x:50px;--y:-40px;--o:0.45}
#study-hikari i:nth-child(10){--l:44%;--t:44%;--s:70px;--d:7.5s;--w:-4s;--x:-40px;--y:30px;--o:0.4}
html[data-motion="reduce"] #study-hikari i,html[data-motion="reduce"] #study-hikari b,html[data-motion="reduce"] #study-season i{animation:none}html[data-motion="reduce"] #study-hikari i{opacity:.3}html[data-motion="reduce"] #study-hikari b{display:none}html[data-motion="reduce"] #study-season i{opacity:0}
@media (prefers-reduced-motion:reduce){#study-hikari i,#study-hikari b,#study-season i{animation:none}#study-hikari i{opacity:.3}#study-hikari b{display:none}#study-season i{opacity:0}}
@media print{#study-season,#study-hikari{display:none}}

#study-hotaru{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none;overflow:hidden}
#study-hotaru i{position:absolute;width:5px;height:5px;border-radius:50%;background:#f7d29a;box-shadow:0 0 8px 3px rgba(240,184,102,.6),0 0 22px 8px rgba(240,184,102,.18);opacity:0;animation:study-hotaru-glow var(--d,6s) var(--w,0s) ease-in-out infinite,study-hotaru-drift calc(var(--d,6s)*3) var(--w,0s) ease-in-out infinite alternate}
@keyframes study-hotaru-glow{0%,100%{opacity:0}35%{opacity:.95}60%{opacity:.35}80%{opacity:.8}}
@keyframes study-hotaru-drift{from{transform:translate(0,0)}to{transform:translate(var(--x,40px),var(--y,-60px))}}
#study-hotaru i:nth-child(1){left:8%;top:70%;--d:5.2s;--w:0s;--x:50px;--y:-80px}
#study-hotaru i:nth-child(2){left:18%;top:85%;--d:6.4s;--w:1.3s;--x:-40px;--y:-120px}
#study-hotaru i:nth-child(3){left:27%;top:60%;--d:7.1s;--w:2.2s;--x:70px;--y:-50px}
#study-hotaru i:nth-child(4){left:36%;top:78%;--d:5.8s;--w:0.7s;--x:-60px;--y:-90px}
#study-hotaru i:nth-child(5){left:45%;top:90%;--d:6.9s;--w:3.1s;--x:30px;--y:-140px}
#study-hotaru i:nth-child(6){left:54%;top:66%;--d:5.5s;--w:1.9s;--x:-50px;--y:-70px}
#study-hotaru i:nth-child(7){left:63%;top:82%;--d:7.6s;--w:0.4s;--x:60px;--y:-110px}
#study-hotaru i:nth-child(8){left:72%;top:58%;--d:6.1s;--w:2.8s;--x:-30px;--y:-60px}
#study-hotaru i:nth-child(9){left:81%;top:74%;--d:5.9s;--w:1.1s;--x:40px;--y:-100px}
#study-hotaru i:nth-child(10){left:90%;top:88%;--d:6.6s;--w:3.6s;--x:-70px;--y:-80px}
#study-hotaru i:nth-child(11){left:13%;top:40%;--d:7.3s;--w:2.5s;--x:50px;--y:-40px}
#study-hotaru i:nth-child(12){left:40%;top:35%;--d:6.2s;--w:0.9s;--x:-40px;--y:-50px}
#study-hotaru i:nth-child(13){left:67%;top:42%;--d:5.7s;--w:3.3s;--x:60px;--y:-30px}
#study-hotaru i:nth-child(14){left:86%;top:30%;--d:6.8s;--w:1.6s;--x:-50px;--y:-60px}
html[data-motion="reduce"] #study-hotaru i{animation:none;opacity:.5}
@media (prefers-reduced-motion:reduce){#study-hotaru i{animation:none;opacity:.5}}
@media print{#study-hotaru{display:none}}
