/* Sweet Cream — Gummin（言語学習アプリ）のデザインを土台にしたサイト
   色は theme.css（Gummin と同じテーマ）の変数を使っています。外部のフォント・スクリプトは読み込みません。 */

:root{--fs:1}
html[data-fs="s"]{--fs:.9}
html[data-fs="l"]{--fs:1.2}

*{box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent}
html{height:100%}
body{
  min-height:100dvh; color:var(--text);
  font-family:"Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Yu Gothic UI","Meiryo","Noto Sans JP",system-ui,sans-serif;
  line-height:1.7; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
/* 背景の上に、色の膜（四隅の光・空のグラデーション）は重ねない */
/* 背景の色は、画面に固定した1枚に描く（Safari で、下の端だけ背景が切れるのを防ぐ）*/
html{background-color:#eaf1ff; background-color:color-mix(in srgb, var(--sheet-solid,#f4f8ff) 90%, var(--accent,#3a7ce0))}
body::before{content:''; position:fixed; left:0; right:0; top:0; bottom:0; height:100vh; height:100lvh; z-index:0; pointer-events:none; background:var(--bg-grad)}
main,.promo{position:relative; z-index:2}
a{color:inherit}
button{font:inherit; color:inherit}
img{max-width:100%; height:auto; display:block}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
:focus-visible{outline:3px solid var(--accent); outline-offset:3px; border-radius:12px}

/* ── 背景の流れ（ロゴ・アイコン・文字・雲）── */
#fallBg{position:fixed; inset:0; z-index:1; overflow:hidden; pointer-events:none; contain:strict}
/* 設定やカードを開いている間は、背景を止めて軽くする */
html.sheet-open #fallBg *,html.sheet-open #fallBg::before{animation-play-state:paused}
#fallBg img,#fallBg .w{
  position:absolute; top:0; left:0; opacity:0; user-select:none; -webkit-user-drag:none; will-change:transform,opacity;
  animation:fall var(--dur) var(--delay) linear infinite;
}
#fallBg img{height:auto}
#fallBg .w{white-space:nowrap; font-weight:800; letter-spacing:.06em; color:var(--text)}
#fallBg img.cloud{top:var(--top); animation-name:cloud; filter:drop-shadow(0 6px 14px rgba(60,100,170,.18))}
@keyframes fall{
  0%  {transform:translate3d(var(--x),-28vh,0) rotate(var(--r0)); opacity:0}
  8%  {opacity:var(--o)}
  50% {transform:translate3d(calc(var(--x) + var(--sway) * -.6),48vh,0) rotate(calc((var(--r0) + var(--r1)) / 2))}
  92% {opacity:var(--o)}
  100%{transform:translate3d(calc(var(--x) + var(--sway)),128vh,0) rotate(var(--r1)); opacity:0}
}
@keyframes cloud{
  0%  {transform:translate3d(-45vw,0,0); opacity:0}
  8%  {opacity:var(--o)} 92%{opacity:var(--o)}
  100%{transform:translate3d(145vw,0,0); opacity:0}
}

/* ── 右上の「アプリ」カード（Gummin の「その他のアプリ」と同じ形）── */
.promo{
  position:absolute; top:max(env(safe-area-inset-top),14px); right:14px; z-index:5;
  display:flex; align-items:center; gap:10px; padding:8px 14px 8px 8px; text-decoration:none;
  background:var(--panel-bg); border:2px solid var(--accent-border); border-radius:20px;
  box-shadow:0 4px 0 var(--shadow-strong), 0 10px 24px var(--shadow);
  transition:transform .12s;
}
.promo:active{transform:translateY(3px)}
.promo img{width:48px; height:48px; border-radius:14px; object-fit:cover; background:#fff}
.promo-copy{display:flex; flex-direction:column; line-height:1.25}
.promo-label{font-size:calc(11px * var(--fs)); font-weight:700; color:var(--text-sub)}
.promo strong{font-size:calc(16px * var(--fs)); color:var(--title)}

/* ── HOME（1画面）── */
.hero{
  min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:clamp(76px,11vh,104px) 20px clamp(40px,7vh,70px);
}
/* Gummin の「タップで言語変更 ↓」と同じ形のヒント */
.bg-hint{
  display:flex; flex-direction:column; align-items:center; gap:0; padding:4px 12px 0; margin-bottom:6px; border:0; background:transparent;
  cursor:pointer; color:var(--text-sub); font-weight:800; font-size:calc(clamp(15px,4vw,22px) * var(--fs)); line-height:1.2; letter-spacing:.04em;
}
.bg-hint .arrow{font-size:1.6em; line-height:1}
.bg-hint:active{color:var(--accent); transform:scale(.97)}
/* ロゴは半透明の立体文字なので、色つきのプレートに載せて、どのテーマでも読めるようにしています */
.logo-wrap{
  position:relative; width:min(640px,92vw,48vh); cursor:pointer; display:block;
  padding:clamp(14px,4vw,30px); border-radius:clamp(28px,6vw,48px);
  background:linear-gradient(145deg,#6f86ee,#d6a4e6);
  background:linear-gradient(145deg, var(--logo-a, color-mix(in srgb,var(--accent) 70%,#9d8cff)), var(--logo-b, color-mix(in srgb,var(--accent) 35%,#ff9ccd)));
  border:3px solid var(--panel-shine);
  box-shadow:0 6px 0 var(--shadow-strong), 0 26px 50px var(--accent-shadow);
  animation:bob 6s ease-in-out infinite; transition:filter .12s;
}
.logo-wrap:active{filter:brightness(.97)}
.logo-wrap::after{content:''; position:absolute; inset:0; z-index:0; border-radius:inherit; pointer-events:none; background:radial-gradient(120% 80% at 18% 0%, rgba(255,255,255,.38), transparent 55%)}
.logo{position:relative; z-index:1; width:100%; filter:drop-shadow(0 6px 12px rgba(40,20,90,.35))}
@keyframes bob{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-8px,0)}}
.tagline{margin-top:clamp(12px,2.4vh,22px); font-size:calc(clamp(17px,3.2vw,22px) * var(--fs)); font-weight:700; color:var(--text-sub); letter-spacing:.04em}
.tagline small{display:block; margin-top:2px; font-size:.78em; font-weight:500; opacity:.85}
html[data-bg="faveweather"] .tagline,html[data-bg="faveweather"] .bg-hint{color:#16335c}

.start{display:inline-flex; margin-top:clamp(12px,3vh,34px); transition:transform .12s; -webkit-user-drag:none; text-decoration:none}
.start img{width:min(clamp(190px,34vw,300px),24vh); filter:drop-shadow(0 6px 14px rgba(0,0,0,.2))}
.start:hover{transform:translateY(-3px)}
.start:active{transform:translateY(6px)}

.pills{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:clamp(10px,2.4vh,24px); width:100%}
.pills a{
  min-width:136px; padding:12px 24px; text-decoration:none; text-align:center;
  font-weight:900; font-size:calc(17px * var(--fs)); color:var(--accent-dark); letter-spacing:.04em;
  background:var(--panel-bg); border:2px solid var(--accent-border); border-radius:999px;
  box-shadow:0 4px 0 var(--shadow-strong); transition:transform .12s, box-shadow .12s;
}
.pills a:hover{transform:translateY(-2px)}
.pills a:active{transform:translateY(3px); box-shadow:0 1px 0 var(--shadow-strong)}

/* 「ぷくっとした」立体風のボタン（Gummin の画像ボタンに合わせた形）*/
.gbtn{
  display:inline-flex; align-items:center; justify-content:center; text-decoration:none; cursor:pointer; border:2px solid rgba(255,255,255,.75);
  width:clamp(130px,34vw,190px); height:clamp(54px,14vw,76px); border-radius:20px; transition:transform .12s;
  box-shadow:0 8px 16px rgba(0,0,0,.18), inset 0 3px 8px rgba(255,255,255,.85), inset 0 -8px 14px rgba(0,0,0,.08);
}
.gbtn span,.gbtn{font-weight:900; font-size:calc(clamp(22px,6vw,30px) * var(--fs)); letter-spacing:.04em; color:#1f2128}
.gbtn span{text-shadow:1px 1px 0 #3a3d48, 2px 2px 0 #30333d, 3px 3px 0 #262831, 4px 5px 6px rgba(0,0,0,.35)}
.gbtn:active{transform:translateY(4px)}
.gbtn-set{background:linear-gradient(160deg,#ffeaf0,#f3b6c8)}
.gbtn-start{background:linear-gradient(160deg,#dff6fb,#a9dbe6); text-shadow:1px 1px 0 #3a3d48,2px 2px 0 #30333d,3px 3px 0 #262831,4px 5px 6px rgba(0,0,0,.35)}
.gbtn-back{background:linear-gradient(160deg,#eaf4ff,#bcd6f4); text-shadow:1px 1px 0 #3a3d48,2px 2px 0 #30333d,3px 3px 0 #262831,4px 5px 6px rgba(0,0,0,.35)}
/* 画像（日本語の文字入り）は、英語のときだけ、文字のボタンに置き換え */
.start-en,.back-en{display:none}

/* ── 中央のカード（背景の選択・設定）：Gummin の言語選択と同じ形 ── */
.overlay{
  position:fixed; inset:0; z-index:500; display:flex; align-items:center; justify-content:center; padding:24px;
  background:rgba(0,0,0,.5); animation:fadeIn .16s ease-out;
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes popIn{from{opacity:0; transform:translateY(10px) scale(.97)}to{opacity:1; transform:none}}
.sheet{
  width:min(400px,92vw); max-height:min(780px,90vh); max-height:min(780px,90svh); display:flex; flex-direction:column; gap:12px; overflow:hidden;
  padding:24px 20px; border-radius:24px; border:1.5px solid var(--accent-border);
  background:var(--sheet-solid, #fff); background:color-mix(in srgb, var(--sheet-solid, #fff) 96%, transparent);
  box-shadow:0 16px 48px rgba(0,0,0,.25); animation:popIn .2s ease-out;
}
.sheet-title{font-size:calc(17px * var(--fs)); font-weight:900; color:var(--title); text-align:center; letter-spacing:.04em}
.sheet-list{display:flex; flex-direction:column; gap:8px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding-right:2px}
.item{
  display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:14px; text-align:left; cursor:pointer; width:100%;
  border:1.5px solid var(--border); background:var(--panel-bg); color:var(--text); font-size:calc(15px * var(--fs)); font-weight:700;
  transition:transform .12s, border-color .12s;
}
.item:hover{border-color:var(--accent); transform:translateY(-1px)}
.item.current{border-color:var(--accent); background:var(--accent); color:#fff}
.item .thumb{width:44px; height:44px; flex:0 0 44px; display:grid; place-items:center; border-radius:10px; background:var(--glow3); overflow:hidden}
.item .thumb img{width:100%; height:100%; object-fit:contain; padding:3px}
.sky-thumb{width:100%; height:100%; display:grid; place-items:center; background:var(--sky,none) center/cover, linear-gradient(#4f94e6,#cfe5f8)}
.item.sky-pick{margin-top:6px; border-style:dashed}
/* FaveWeather：入れた画像を、ゆっくり横に流す（横長の画像のときだけ動く）*/
html[data-bg="faveweather"] #fallBg::before{content:''; position:absolute; top:0; bottom:0; left:0; width:140%; background:var(--sky,none) center/cover no-repeat; will-change:transform; animation:skyPan 120s ease-in-out infinite alternate}
@keyframes skyPan{to{transform:translate3d(-28.5%,0,0)}}
.sky-thumb img{padding:5px}
.txt-thumb{font-weight:900; font-size:18px}
.item .name{display:flex; flex-direction:column; line-height:1.35}
.item .state{margin-left:auto; font-size:calc(13px * var(--fs)); font-weight:900}
.sheet-close{padding:11px; border-radius:12px; border:none; cursor:pointer; background:var(--border); color:var(--text-sub); font-size:calc(14px * var(--fs)); font-weight:900}
.sheet-close:active{transform:translateY(1px)}

/* ── 設定 ── */
.set-sec{padding:10px 4px 12px; border-bottom:1.5px solid var(--border)}
.set-sec:last-child{border-bottom:0}
.set-label{font-size:calc(14px * var(--fs)); font-weight:900; color:var(--title); margin-bottom:8px}
.set-row{display:flex; align-items:center; justify-content:space-between; gap:12px}
.set-row .set-label{margin-bottom:0}
.set-desc{margin-top:6px; font-size:calc(12px * var(--fs)); color:var(--text-sub); line-height:1.6}
.swatches{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.swatch{display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 4px; cursor:pointer; border:1.5px solid var(--border); border-radius:14px; background:var(--panel-bg)}
.swatch .dot{width:40px; height:40px; border-radius:50%; background:var(--sw); display:grid; place-items:center; box-shadow:inset 0 0 0 3px rgba(255,255,255,.8), 0 3px 8px var(--shadow-strong)}
.swatch .lk{font-size:16px}
.swatch .sw-name{font-size:calc(12px * var(--fs)); font-weight:800; color:var(--text)}
.swatch[aria-pressed="true"]{border-color:var(--accent); box-shadow:0 0 0 2px var(--accent)}
.swatch.locked .dot{filter:grayscale(.65); opacity:.75}
.swatch:active{transform:scale(.96)}
.seg{display:flex; gap:4px; padding:4px; border-radius:999px; background:var(--panel-bg); border:1.5px solid var(--border)}
.seg button{flex:1; padding:9px 10px; border:0; border-radius:999px; background:none; cursor:pointer; font-weight:800; font-size:calc(14px * var(--fs)); color:var(--text-sub)}
.seg button[aria-pressed="true"]{background:var(--accent); color:#fff; box-shadow:0 2px 8px var(--accent-shadow)}
.switch{position:relative; width:54px; height:32px; border:0; border-radius:999px; cursor:pointer; background:var(--border); transition:background .15s; flex:0 0 54px}
.switch span{position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.25); transition:transform .15s}
.switch[aria-checked="true"]{background:var(--accent)}
.switch[aria-checked="true"] span{transform:translateX(22px)}

/* 小さなお知らせ */
.toast{
  position:fixed; left:50%; bottom:max(env(safe-area-inset-bottom),24px); transform:translate(-50%,20px); z-index:900; max-width:min(92vw,420px);
  padding:12px 18px; border-radius:16px; text-align:center; font-weight:800; font-size:calc(14px * var(--fs)); color:#fff; background:rgba(25,25,45,.92);
  box-shadow:0 10px 30px rgba(0,0,0,.3); opacity:0; pointer-events:none; transition:opacity .2s, transform .2s;
}
.toast.show{opacity:1; transform:translate(-50%,0)}

/* テーマを「染める」動き（ボタンを押した場所から広がる）*/
::view-transition-old(root),::view-transition-new(root){animation:none; mix-blend-mode:normal}
::view-transition-old(root){z-index:1}
::view-transition-new(root){z-index:2}

/* ── 低い画面・小さい画面 ── */
@media (max-height:640px){ .hero{padding-top:70px; padding-bottom:36px} .logo-wrap{width:min(520px,86vw,44vh)} }
@media (max-width:520px){ .promo{padding:6px 12px 6px 6px} .promo img{width:40px; height:40px} }

/* ── タブレット・パソコン：ボタンを大きく（スマホは今のまま）── */
@media (min-width:768px){
  .promo{top:20px; right:24px; padding:10px 18px 10px 10px} .promo img{width:60px; height:60px} .promo strong{font-size:calc(20px * var(--fs))}
  .bg-hint{font-size:calc(22px * var(--fs))}
  .hero{padding-top:clamp(64px,8vh,96px); padding-bottom:clamp(28px,5vh,56px)}
  .logo-wrap{width:min(720px,92vw,44vh)}
  .tagline{font-size:calc(26px * var(--fs))}
  .start img{width:min(380px,24vh)}
  .pills{gap:18px} .pills a{min-width:210px; padding:clamp(12px,2vh,18px) 34px; font-size:calc(22px * var(--fs)); box-shadow:0 5px 0 var(--shadow-strong)}
  .gbtn{width:min(240px,26vw); height:min(92px,11vh); border-radius:26px} .gbtn span,.gbtn{font-size:calc(34px * var(--fs))}
  .sheet{width:min(520px,92vw); padding:30px 28px} .sheet-title{font-size:calc(21px * var(--fs))}
  .item{padding:14px 18px; font-size:calc(18px * var(--fs))} .item .thumb{width:54px; height:54px; flex-basis:54px}
  .sheet-close{padding:15px; font-size:calc(17px * var(--fs))}
  .swatch .dot{width:48px; height:48px} .swatch .sw-name{font-size:calc(14px * var(--fs))}
  .seg button{padding:12px 10px; font-size:calc(17px * var(--fs))}
}

/* ── 色覚サポート：色だけに頼らず、記号と枠線でも見分けられるようにする ── */
html[data-cvd="1"] .pills a,html[data-cvd="1"] .promo,html[data-cvd="1"] .item,html[data-cvd="1"] .swatch{border-width:3px; border-color:var(--title)}
html[data-cvd="1"] .swatch[aria-pressed="true"]::after{content:'✓'; font-weight:900; color:var(--accent-dark)}
html[data-cvd="1"] .seg button[aria-pressed="true"]::before,html[data-cvd="1"] .item.current .name::before{content:'✓ '}
html[data-cvd="1"] :focus-visible{outline-width:5px}

/* ── 動きを減らす設定 ── */
@media (prefers-reduced-motion: reduce){
  .logo-wrap{animation:none} .overlay,.sheet{animation:none}
  /* 背景は、ゆっくり・うすい動きなので、止めない（スマホで止まって見えたため）*/
}

/* ── 設定ページ（Gummin JP の設定と同じ形）── */
.overlay.page{padding:0; align-items:stretch; justify-content:stretch; background:var(--bg-grad); backdrop-filter:none; -webkit-backdrop-filter:none}
.set-page{width:100%; height:100%; display:flex; flex-direction:column; gap:8px; padding:calc(env(safe-area-inset-top) + 16px) 10px 8px; animation:fadeIn .16s ease-out}
.set-page .top-bar{flex-shrink:0; height:clamp(64px,9dvh,88px); display:flex; align-items:center}
.set-page .set-back img{height:clamp(64px,14dvh,88px); width:auto}
.set-scroll{flex:1; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:10px; padding:0 2px 12px; max-width:760px; width:100%; margin:0 auto; scrollbar-width:thin; scrollbar-color:var(--accent-shadow) transparent}
.set-card{display:flex; flex-direction:column; gap:10px; padding:14px 16px; border-radius:22px; border:2px solid var(--accent-border); background:rgba(255,255,255,.68);
  box-shadow:0 6px 0 var(--shadow-strong), 0 10px 24px var(--shadow), inset 0 1px 0 rgba(255,255,255,.8)}
html[data-theme="black"] .set-card{background:rgba(38,38,42,.95); border-color:rgba(255,255,255,.15)}
.set-title{font-size:calc(17px * var(--fs)); font-weight:900; color:var(--title)}
.set-subtitle{font-size:calc(15px * var(--fs)); font-weight:900; color:var(--title)}
.set-sub{font-size:calc(12px * var(--fs)); color:var(--text-sub); line-height:1.5}
.set-hr{border:0; height:1px; background:var(--border); opacity:.5; margin:4px 0}
.theme-slider{display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; border-radius:14px}
.theme-slider::-webkit-scrollbar{display:none}
.theme-slide{flex:0 0 100%; scroll-snap-align:center; display:flex; flex-direction:column; align-items:center; gap:8px; padding:10px 0; cursor:pointer}
.theme-preview{position:relative; width:80px; height:80px; border-radius:18px; border:3px solid transparent; background:var(--sw); display:grid; place-items:center; box-shadow:0 4px 16px rgba(0,0,0,.15); transition:transform .2s}
.theme-slide[aria-pressed="true"] .theme-preview{transform:scale(1.1); border-color:var(--accent); box-shadow:0 6px 20px rgba(0,0,0,.25)}
.theme-slide.locked .theme-preview{filter:grayscale(.5); opacity:.85}
.theme-preview .lk{font-size:26px}
.theme-slide-label{font-size:calc(14px * var(--fs)); font-weight:900; color:var(--title)}
.lock-note{display:none; min-height:18px; font-size:calc(12px * var(--fs)); font-weight:800; color:var(--accent)}
.theme-slide.locked .lock-note{display:block}
.theme-dots{display:flex; justify-content:center; gap:6px}
.logo-colors{display:grid; grid-template-columns:repeat(5,1fr); gap:12px 8px; justify-items:center; margin-top:4px}
.logo-sw{position:relative; width:46px; height:46px; padding:0; border-radius:50%; border:3px solid #fff; cursor:pointer; background:var(--c, var(--panel-bg));
  display:inline-flex; align-items:center; justify-content:center; font-weight:900; font-size:calc(13px * var(--fs)); color:var(--text); box-shadow:0 0 0 1px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.15)}
.logo-sw.auto{background:linear-gradient(135deg,#fff 50%,var(--accent-border) 50%)}
.logo-sw.pick{background:conic-gradient(#ff6b6b,#ffb347,#f2e45e,#4fc79a,#5ec8f2,#9b7bff,#ff7eb6,#ff6b6b); color:#fff; font-size:22px; text-shadow:0 1px 3px rgba(0,0,0,.45)}
.logo-sw[aria-pressed="true"]{box-shadow:0 0 0 3px var(--accent), 0 3px 8px rgba(0,0,0,.2)}
.logo-sw.pick input{position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer}
.theme-dot{width:8px; height:8px; border-radius:50%; background:var(--accent-shadow); cursor:pointer; transition:all .2s}
.theme-dot.active{background:var(--accent); transform:scale(1.3)}
.toggle-row{display:flex; align-items:center; gap:14px}
.toggle-label{font-size:calc(15px * var(--fs)); font-weight:900; color:var(--title); min-width:32px}
.toggle-switch{width:56px; height:30px; border-radius:999px; border:none; cursor:pointer; position:relative; transition:background .2s; background:#ccc; flex-shrink:0}
.toggle-switch.on{background:var(--accent)}
.toggle-switch::after{content:''; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.2); transition:transform .2s}
.toggle-switch.on::after{transform:translateX(26px)}
.cb-options{display:flex; flex-wrap:wrap; gap:8px}
.cb-options[hidden]{display:none}
.cb-btn,.layout-chip{padding:8px 16px; border-radius:999px; border:2px solid var(--border); background:var(--panel-bg); color:var(--text); font-size:calc(13px * var(--fs)); font-weight:900; font-family:inherit; cursor:pointer; transition:all .12s}
.cb-btn:active,.layout-chip:active{transform:scale(.95)}
.cb-btn[aria-pressed="true"],.layout-chip[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:#fff}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.stepper-row{display:flex; align-items:center; justify-content:center; gap:20px}
.stepper-btn{width:48px; height:48px; border-radius:50%; border:2px solid var(--accent-border); background:var(--panel-bg); color:var(--title); font-size:22px; font-family:inherit; cursor:pointer; box-shadow:0 4px 0 var(--accent-shadow); transition:all .1s}
.stepper-btn:active{transform:translateY(4px); box-shadow:none}
.stepper-btn:disabled{opacity:.3; pointer-events:none}
.stepper-val{font-size:clamp(28px,5dvh,42px); font-weight:900; color:var(--accent); min-width:80px; text-align:center; line-height:1}
.stepper-note{font-size:calc(12px * var(--fs)); color:var(--text-sub); text-align:center; opacity:.8; min-height:16px}
html[data-cb="protanopia"]{filter:url(#cb-protanopia)}
html[data-cb="deuteranopia"]{filter:url(#cb-deuteranopia)}
html[data-cb="tritanopia"]{filter:url(#cb-tritanopia)}
html[data-cb="achromatopsia"]{filter:url(#cb-achromatopsia)}

/* ── 設定ページ：タブレット・パソコンでは、大きく ── */
@media (min-width:768px){
  .set-page{padding:calc(env(safe-area-inset-top) + 20px) 40px 12px; gap:12px}
  .set-scroll{max-width:820px; gap:14px}
  .set-card{padding:20px 26px; gap:14px}
  .set-title{font-size:calc(20px * var(--fs))} .set-subtitle{font-size:calc(18px * var(--fs))} .set-sub{font-size:calc(15px * var(--fs))}
  .theme-preview{width:104px; height:104px; border-radius:26px} .theme-slide-label{font-size:calc(17px * var(--fs))}
  .toggle-label{font-size:calc(18px * var(--fs))} .toggle-switch{width:64px; height:34px} .toggle-switch::after{width:28px; height:28px} .toggle-switch.on::after{transform:translateX(30px)}
  .cb-btn,.layout-chip{font-size:calc(16px * var(--fs)); padding:10px 22px}
  .stepper-btn{width:56px; height:56px; font-size:26px}
}
@media (max-width:360px){ .set-card{padding:12px} .cb-btn,.layout-chip{padding:7px 12px} }
