/* 壁紙・壁紙の選択欄（ui-plus.css は色・背景・url に触れない決まりなので、別ファイル。index.html が theme-dark.css の次に読む） */
/* ---- 壁紙（2026-10-03。Hero Patterns・Steve Schoger・CC BY 4.0。形は wallpapers/*.svg の透明度だけを使い、色はテーマの色（--green）で塗る＝ダークでも同じ柄が暗い色で出る） ----
   既定は「なし」（<html data-wp> を付けない）＝今までの見た目のまま。選ばれた柄の SVG だけを読む（var() に入れた url は使われた時に初めて取得）。カードの中は今の白（ダークは暗色）のまま、壁紙はカードの外にだけ見える */
html[data-wp] body::before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:-1;pointer-events:none;background:var(--green);opacity:var(--wp-op,.07);-webkit-mask-image:var(--wp-img);mask-image:var(--wp-img);-webkit-mask-size:var(--wp-sz) auto;mask-size:var(--wp-sz) auto;-webkit-mask-repeat:repeat;mask-repeat:repeat}
html[data-mode="dark"][data-wp] body::before{opacity:calc(var(--wp-op,.07)*.8)}
html[data-wp="anchors-away"]{--wp-img:url(wallpapers/anchors-away.svg);--wp-op:0.07;--wp-sz:80px}
html[data-wp="circuit-board"]{--wp-img:url(wallpapers/circuit-board.svg);--wp-op:0.06;--wp-sz:240px}
html[data-wp="cutout"]{--wp-img:url(wallpapers/cutout.svg);--wp-op:0.07;--wp-sz:64px}
html[data-wp="diagonal-lines"]{--wp-img:url(wallpapers/diagonal-lines.svg);--wp-op:0.09;--wp-sz:8px}
html[data-wp="endless-clouds"]{--wp-img:url(wallpapers/endless-clouds.svg);--wp-op:0.08;--wp-sz:112px}
html[data-wp="formal-invitation"]{--wp-img:url(wallpapers/formal-invitation.svg);--wp-op:0.07;--wp-sz:100px}
html[data-wp="graph-paper"]{--wp-img:url(wallpapers/graph-paper.svg);--wp-op:0.1;--wp-sz:100px}
html[data-wp="hexagons"]{--wp-img:url(wallpapers/hexagons.svg);--wp-op:0.07;--wp-sz:28px}
html[data-wp="jigsaw"]{--wp-img:url(wallpapers/jigsaw.svg);--wp-op:0.07;--wp-sz:150px}
html[data-wp="jupiter"]{--wp-img:url(wallpapers/jupiter.svg);--wp-op:0.07;--wp-sz:78px}
html[data-wp="leaf"]{--wp-img:url(wallpapers/leaf.svg);--wp-op:0.08;--wp-sz:80px}
html[data-wp="overcast"]{--wp-img:url(wallpapers/overcast.svg);--wp-op:0.06;--wp-sz:120px}
html[data-wp="polka-dots"]{--wp-img:url(wallpapers/polka-dots.svg);--wp-op:0.09;--wp-sz:20px}
html[data-wp="texture"]{--wp-img:url(wallpapers/texture.svg);--wp-op:0.1;--wp-sz:8px}
html[data-wp="topography"]{--wp-img:url(wallpapers/topography.svg);--wp-op:0.07;--wp-sz:500px}
html[data-wp="wiggle"]{--wp-img:url(wallpapers/wiggle.svg);--wp-op:0.07;--wp-sz:52px}
.wp-thumb[data-wp="anchors-away"]{--wp-img:url(wallpapers/anchors-away.svg);--wp-tsz:40px}
.wp-thumb[data-wp="circuit-board"]{--wp-img:url(wallpapers/circuit-board.svg);--wp-tsz:120px}
.wp-thumb[data-wp="cutout"]{--wp-img:url(wallpapers/cutout.svg);--wp-tsz:32px}
.wp-thumb[data-wp="diagonal-lines"]{--wp-img:url(wallpapers/diagonal-lines.svg);--wp-tsz:8px}
.wp-thumb[data-wp="endless-clouds"]{--wp-img:url(wallpapers/endless-clouds.svg);--wp-tsz:56px}
.wp-thumb[data-wp="formal-invitation"]{--wp-img:url(wallpapers/formal-invitation.svg);--wp-tsz:70px}
.wp-thumb[data-wp="graph-paper"]{--wp-img:url(wallpapers/graph-paper.svg);--wp-tsz:40px}
.wp-thumb[data-wp="hexagons"]{--wp-img:url(wallpapers/hexagons.svg);--wp-tsz:14px}
.wp-thumb[data-wp="jigsaw"]{--wp-img:url(wallpapers/jigsaw.svg);--wp-tsz:90px}
.wp-thumb[data-wp="jupiter"]{--wp-img:url(wallpapers/jupiter.svg);--wp-tsz:40px}
.wp-thumb[data-wp="leaf"]{--wp-img:url(wallpapers/leaf.svg);--wp-tsz:50px}
.wp-thumb[data-wp="overcast"]{--wp-img:url(wallpapers/overcast.svg);--wp-tsz:60px}
.wp-thumb[data-wp="polka-dots"]{--wp-img:url(wallpapers/polka-dots.svg);--wp-tsz:14px}
.wp-thumb[data-wp="texture"]{--wp-img:url(wallpapers/texture.svg);--wp-tsz:6px}
.wp-thumb[data-wp="topography"]{--wp-img:url(wallpapers/topography.svg);--wp-tsz:200px}
.wp-thumb[data-wp="wiggle"]{--wp-img:url(wallpapers/wiggle.svg);--wp-tsz:36px}
.wallpaper-chooser{margin-top:6px}
.wp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;margin:6px 0 4px}
.wp-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px 4px 6px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;font-size:12px;line-height:1.3;text-align:center;min-height:44px}
.wp-option input{position:absolute;opacity:0;width:100%;height:100%;top:0;left:0;margin:0;cursor:pointer}
.wp-thumb{position:relative;display:block;width:100%;height:44px;border-radius:6px;background:var(--bg);border:1px solid var(--line);overflow:hidden}
.wp-thumb[data-wp]::before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:var(--green);opacity:.45;-webkit-mask-image:var(--wp-img);mask-image:var(--wp-img);-webkit-mask-size:var(--wp-tsz) auto;mask-size:var(--wp-tsz) auto;-webkit-mask-repeat:repeat;mask-repeat:repeat}
.wp-option:has(input:checked){border-color:var(--green);box-shadow:0 0 0 2px var(--green);font-weight:700}
.wp-option:has(input:focus-visible){outline:3px solid var(--green);outline-offset:2px}
.wp-credit{margin:6px 0 12px;font-size:11px;line-height:1.6}
.wp-credit a{color:var(--green)}
@media print{html[data-wp] body::before{display:none}}
html[data-mode="dark"] .wp-option{background:var(--surface);border-color:var(--line)}

/* ---- 壁紙「奥の園」（2026-10-13 稲木さん指示。榊花園の奥の園と同じ昼・夜の色。柄ではなく空気の壁紙）。昼＝生成りと若葉、夜＝夜の藍と行灯の灯り＋ホタル ---- */
html[data-wp="okunosono"] body::before{-webkit-mask-image:none;mask-image:none;opacity:1;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,.26),transparent 62%),linear-gradient(180deg,#f7f6ee 0%,#eef2e4 55%,#dfe9d6 100%)}
html[data-wp="okunosono"][data-mode="dark"] body::before{opacity:1;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%)}
html[data-wp="okunosono"][data-mode="dark"]{--bg:#0b1220;--surface:#131f33;--surface2:#1b2840;--line:#2a3850;--ink:#f4ecdb;--muted:#b9b3a3;--green:#f0b866;--green-strong:#8a5a14;--gold:#f7d29a}
html[data-wp="okunosono"]:not([data-mode="dark"]){--bg:#f7f6ee;--ink:#233127;--green:#254a33;--gold:#a8893f}
.wp-thumb[data-wp="okunosono"]{background:linear-gradient(180deg,#f7f6ee,#dfe9d6)}
.wp-thumb[data-wp="okunosono"]::before{display:none}
html[data-mode="dark"] .wp-thumb[data-wp="okunosono"]{background:linear-gradient(180deg,#050810,#0f1a2e);box-shadow:inset 0 -14px 18px -10px rgba(240,184,102,.35)}
#wp-hotaru{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;pointer-events:none;overflow:hidden}
#wp-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:wp-hotaru-glow var(--d,6s) var(--w,0s) ease-in-out infinite,wp-hotaru-drift calc(var(--d,6s)*3) var(--w,0s) ease-in-out infinite alternate}
@keyframes wp-hotaru-glow{0%,100%{opacity:0}35%{opacity:.95}60%{opacity:.35}80%{opacity:.8}}
@keyframes wp-hotaru-drift{from{transform:translate(0,0)}to{transform:translate(var(--x,40px),var(--y,-60px))}}
#wp-hotaru i:nth-child(1){left:8%;top:70%;--d:5.2s;--w:0s;--x:50px;--y:-80px}
#wp-hotaru i:nth-child(2){left:18%;top:85%;--d:6.4s;--w:1.3s;--x:-40px;--y:-120px}
#wp-hotaru i:nth-child(3){left:27%;top:60%;--d:7.1s;--w:2.2s;--x:70px;--y:-50px}
#wp-hotaru i:nth-child(4){left:36%;top:78%;--d:5.8s;--w:0.7s;--x:-60px;--y:-90px}
#wp-hotaru i:nth-child(5){left:45%;top:90%;--d:6.9s;--w:3.1s;--x:30px;--y:-140px}
#wp-hotaru i:nth-child(6){left:54%;top:66%;--d:5.5s;--w:1.9s;--x:-50px;--y:-70px}
#wp-hotaru i:nth-child(7){left:63%;top:82%;--d:7.6s;--w:0.4s;--x:60px;--y:-110px}
#wp-hotaru i:nth-child(8){left:72%;top:58%;--d:6.1s;--w:2.8s;--x:-30px;--y:-60px}
#wp-hotaru i:nth-child(9){left:81%;top:74%;--d:5.9s;--w:1.1s;--x:40px;--y:-100px}
#wp-hotaru i:nth-child(10){left:90%;top:88%;--d:6.6s;--w:3.6s;--x:-70px;--y:-80px}
#wp-hotaru i:nth-child(11){left:13%;top:40%;--d:7.3s;--w:2.5s;--x:50px;--y:-40px}
#wp-hotaru i:nth-child(12){left:40%;top:35%;--d:6.2s;--w:0.9s;--x:-40px;--y:-50px}
#wp-hotaru i:nth-child(13){left:67%;top:42%;--d:5.7s;--w:3.3s;--x:60px;--y:-30px}
#wp-hotaru i:nth-child(14){left:86%;top:30%;--d:6.8s;--w:1.6s;--x:-50px;--y:-60px}
html[data-motion="reduce"] #wp-hotaru i{animation:none;opacity:.5}
@media (prefers-reduced-motion:reduce){#wp-hotaru i{animation:none;opacity:.5}}
@media print{#wp-hotaru{display:none}}
/* examplat と同じ背景（2026-10-14 稲木さん「背景をイグザムプラットと同じものに」）。scratchpad の gen_walls.py で作成。
   奥の園（昼・夜）・奥の園・桜色・桜・紅葉・雪。昼と夜は表示の明暗（data-mode）に合わせる。背景だけを替え、画面の部品の色はアプリのまま。
   舞うもの: 夜の奥の園はホタル、桜色は光（#wp-hikari）、桜・紅葉・雪は花びら・もみじ・雪（#wp-season）。動きを減らす設定では止める */
html[data-wp="sakurairo"]:not([data-mode="dark"]) body::before{-webkit-mask-image:none;mask-image:none;opacity:1;background:radial-gradient(900px 560px at 14% -8%,rgba(255,246,240,.95),transparent 60%),radial-gradient(1000px 540px at 55% 110%,rgba(232,160,186,.30),transparent 62%),radial-gradient(640px 420px at 92% 26%,rgba(247,205,220,.45),transparent 62%),linear-gradient(180deg,#fdf7f5 0%,#f9ebee 48%,#f3dbe3 100%)}
html[data-wp="sakurairo"][data-mode="dark"] body::before{-webkit-mask-image:none;mask-image:none;opacity:1;background:radial-gradient(900px 520px at 82% -6%,rgba(255,214,230,.10),transparent 62%),radial-gradient(760px 440px at 50% 108%,rgba(242,169,196,.18),transparent 62%),radial-gradient(700px 420px at 4% 96%,rgba(120,70,120,.25),transparent 62%),linear-gradient(180deg,#0c070d 0%,#150c16 40%,#1d1220 72%,#160d17 100%)}
html[data-wp="sakura"]:not([data-mode="dark"]) body::before{-webkit-mask-image:none;mask-image:none;opacity:1;background:url(/img/wall/sakura-day.webp) center/cover no-repeat,#f7f6ee}
html[data-wp="sakura"][data-mode="dark"] body::before{-webkit-mask-image:none;mask-image:none;opacity:1;background:url(/img/wall/sakura-night.webp) center/cover no-repeat,#0b1220}
html[data-wp="momiji"]:not([data-mode="dark"]) body::before{-webkit-mask-image:none;mask-image:none;opacity:1;background:url(/img/wall/momiji-day.webp) center/cover no-repeat,#f7f6ee}
html[data-wp="momiji"][data-mode="dark"] body::before{-webkit-mask-image:none;mask-image:none;opacity:1;background:url(/img/wall/momiji-night.webp) center/cover no-repeat,#0b1220}
html[data-wp="yuki"]:not([data-mode="dark"]) body::before{-webkit-mask-image:none;mask-image:none;opacity:1;background:url(/img/wall/yuki-day.webp) center/cover no-repeat,#f7f6ee}
html[data-wp="yuki"][data-mode="dark"] body::before{-webkit-mask-image:none;mask-image:none;opacity:1;background:url(/img/wall/yuki-night.webp) center/cover no-repeat,#0b1220}
.wp-thumb[data-wp="sakurairo"]{background:radial-gradient(900px 560px at 14% -8%,rgba(255,246,240,.95),transparent 60%),radial-gradient(1000px 540px at 55% 110%,rgba(232,160,186,.30),transparent 62%),radial-gradient(640px 420px at 92% 26%,rgba(247,205,220,.45),transparent 62%),linear-gradient(180deg,#fdf7f5 0%,#f9ebee 48%,#f3dbe3 100%)}
.wp-thumb[data-wp="sakurairo"]::before{display:none}
.wp-thumb[data-wp="sakura"]{background:url(/img/wall/sakura-day.webp) center/cover no-repeat}
.wp-thumb[data-wp="sakura"]::before{display:none}
.wp-thumb[data-wp="momiji"]{background:url(/img/wall/momiji-day.webp) center/cover no-repeat}
.wp-thumb[data-wp="momiji"]::before{display:none}
.wp-thumb[data-wp="yuki"]{background:url(/img/wall/yuki-day.webp) center/cover no-repeat}
.wp-thumb[data-wp="yuki"]::before{display:none}
#wp-season{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
#wp-season i{position:absolute;top:-5%;left:var(--l);width:var(--s);height:var(--s);opacity:0;will-change:transform;animation:wp-fall var(--d) linear var(--w) infinite,wp-sway calc(var(--d) / 3) ease-in-out var(--w) infinite alternate}
@keyframes wp-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 wp-sway{from{margin-left:calc(var(--x) * -1)}to{margin-left:var(--x)}}
html[data-season="sakura"] #wp-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"] #wp-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"] #wp-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"] #wp-season i:nth-child(3n){background:linear-gradient(135deg,#f0b24a,#c9832a)}
html[data-season="yuki"] #wp-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}
#wp-season i:nth-child(1){--l:12.0%;--s:12px;--d:16.9s;--w:-13.2s;--x:26px;--r:360deg}
#wp-season i:nth-child(2){--l:29.4%;--s:8px;--d:15.0s;--w:-6.5s;--x:45px;--r:-220deg}
#wp-season i:nth-child(3){--l:39.0%;--s:13px;--d:13.4s;--w:-12.2s;--x:28px;--r:360deg}
#wp-season i:nth-child(4){--l:77.9%;--s:10px;--d:16.7s;--w:-7.2s;--x:23px;--r:-320deg}
#wp-season i:nth-child(5){--l:64.6%;--s:10px;--d:11.1s;--w:-1.0s;--x:37px;--r:360deg}
#wp-season i:nth-child(6){--l:4.6%;--s:10px;--d:18.7s;--w:-5.3s;--x:36px;--r:-220deg}
#wp-season i:nth-child(7){--l:86.3%;--s:9px;--d:16.8s;--w:-12.4s;--x:36px;--r:-320deg}
#wp-season i:nth-child(8){--l:61.9%;--s:10px;--d:18.8s;--w:-10.5s;--x:33px;--r:-320deg}
#wp-season i:nth-child(9){--l:65.2%;--s:10px;--d:16.6s;--w:-6.8s;--x:27px;--r:-320deg}
#wp-season i:nth-child(10){--l:25.9%;--s:9px;--d:20.0s;--w:-3.9s;--x:21px;--r:200deg}
#wp-season i:nth-child(11){--l:17.2%;--s:10px;--d:17.2s;--w:-8.2s;--x:31px;--r:-220deg}
#wp-season i:nth-child(12){--l:93.5%;--s:9px;--d:14.5s;--w:-4.3s;--x:32px;--r:-220deg}
#wp-season i:nth-child(13){--l:41.3%;--s:13px;--d:13.3s;--w:-5.5s;--x:32px;--r:-320deg}
#wp-season i:nth-child(14){--l:90.3%;--s:8px;--d:12.3s;--w:-9.8s;--x:36px;--r:-220deg}
#wp-season i:nth-child(15){--l:3.8%;--s:12px;--d:19.5s;--w:-5.9s;--x:29px;--r:-320deg}
#wp-season i:nth-child(16){--l:36.6%;--s:11px;--d:14.2s;--w:-7.4s;--x:19px;--r:-320deg}
html[data-season="yuki"] #wp-season i:nth-child(odd){--s:4px}html[data-season="yuki"] #wp-season i:nth-child(even){--s:6px}
#wp-hikari{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
#wp-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:wp-hk-glow var(--d) ease-in-out var(--w) infinite,wp-hk-drift calc(var(--d) * 2) ease-in-out var(--w) infinite alternate}
html[data-mode="dark"] #wp-hikari i{background:radial-gradient(circle,rgba(255,236,244,.55) 0%,rgba(242,169,196,.28) 38%,rgba(242,169,196,0) 70%)}
#wp-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:wp-hk-sweep 30s ease-in-out 4s infinite}
html[data-mode="dark"] #wp-hikari b{background:linear-gradient(90deg,rgba(255,255,255,0),rgba(248,201,218,.12),rgba(255,255,255,0))}
@keyframes wp-hk-glow{0%,100%{opacity:0}40%{opacity:var(--o,.7)}70%{opacity:calc(var(--o,.7) * .5)}}
@keyframes wp-hk-drift{from{transform:translate(0,0) scale(.9)}to{transform:translate(var(--x),var(--y)) scale(1.1)}}
@keyframes wp-hk-sweep{0%,70%{left:-60%}100%{left:130%}}
#wp-hikari i:nth-child(2){--l:6%;--t:18%;--s:160px;--d:9s;--w:0s;--x:60px;--y:30px;--o:0.55}
#wp-hikari i:nth-child(3){--l:22%;--t:62%;--s:110px;--d:11s;--w:-3s;--x:-40px;--y:-50px;--o:0.6}
#wp-hikari i:nth-child(4){--l:38%;--t:12%;--s:90px;--d:8s;--w:-6s;--x:50px;--y:40px;--o:0.5}
#wp-hikari i:nth-child(5){--l:52%;--t:74%;--s:180px;--d:12s;--w:-2s;--x:-60px;--y:-30px;--o:0.45}
#wp-hikari i:nth-child(6){--l:66%;--t:30%;--s:120px;--d:10s;--w:-8s;--x:40px;--y:60px;--o:0.55}
#wp-hikari i:nth-child(7){--l:80%;--t:8%;--s:140px;--d:13s;--w:-5s;--x:-50px;--y:40px;--o:0.5}
#wp-hikari i:nth-child(8){--l:88%;--t:58%;--s:100px;--d:9.5s;--w:-1s;--x:-30px;--y:-60px;--o:0.6}
#wp-hikari i:nth-child(9){--l:12%;--t:86%;--s:130px;--d:11.5s;--w:-7s;--x:50px;--y:-40px;--o:0.45}
#wp-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"] #wp-hikari i,html[data-motion="reduce"] #wp-hikari b,html[data-motion="reduce"] #wp-season i{animation:none}html[data-motion="reduce"] #wp-hikari i{opacity:.3}html[data-motion="reduce"] #wp-hikari b{display:none}html[data-motion="reduce"] #wp-season i{opacity:0}
@media (prefers-reduced-motion:reduce){#wp-hikari i,#wp-hikari b,#wp-season i{animation:none}#wp-hikari i{opacity:.3}#wp-hikari b{display:none}#wp-season i{opacity:0}}
@media print{#wp-season,#wp-hikari{display:none}}

