/* =============================================================================
   1日で人生を立て直す — アクセント1色・シンプル／リッチ切替
   ============================================================================= */
:root{
  --bg:#0b0b0d;
  --chip-bg:#151518;
  --surface:rgba(255,255,255,.045);
  --surface-2:rgba(255,255,255,.08);
  --surface-3:rgba(255,255,255,.12);
  --line:rgba(255,255,255,.09);
  --line-2:rgba(255,255,255,.17);
  --ink:#f1efec;
  --ink-2:rgba(241,239,236,.70);
  --ink-3:rgba(241,239,236,.44);
  --ac:#ff7a3d;
  --ac-ink:#ff9d70;
  --ac-btn:#ff7a3d;
  --on-ac:#1a0b03;
  --ac-soft:color-mix(in srgb, var(--ac) 15%, transparent);
  --ac-line:color-mix(in srgb, var(--ac) 48%, transparent);
  --shadow:0 18px 40px -24px rgba(0,0,0,.85);
  --r:18px; --r-sm:12px; --r-lg:24px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --spring:cubic-bezier(.34,1.4,.64,1);
  --maxw:760px;
  --glass:saturate(150%) blur(20px);
  --top-bg:color-mix(in srgb, var(--bg) 72%, transparent);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#f6f4f1;
  --chip-bg:#ffffff;
  --surface:rgba(255,255,255,.72);
  --surface-2:rgba(255,255,255,.92);
  --surface-3:#efebe6;
  --line:rgba(30,22,14,.10);
  --line-2:rgba(30,22,14,.18);
  --ink:#1b1712;
  --ink-2:rgba(27,23,18,.72);
  --ink-3:rgba(27,23,18,.48);
  --ac:#e05a1c;
  --ac-ink:#b2440f;
  --ac-btn:#c94d14;
  --on-ac:#ffffff;
  --ac-soft:color-mix(in srgb, var(--ac) 11%, transparent);
  --ac-line:color-mix(in srgb, var(--ac) 40%, transparent);
  --shadow:0 16px 36px -26px rgba(60,30,10,.40);
  color-scheme:light;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:72px; }
body{
  margin:0; min-height:100dvh; background:var(--bg); color:var(--ink);
  font-family:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN",-apple-system,
              BlinkMacSystemFont,"Yu Gothic UI",system-ui,sans-serif;
  line-height:1.7; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
button,input,textarea{ font:inherit; color:inherit; }
button{ border:0; background:none; cursor:pointer; -webkit-tap-highlight-color:transparent; padding:0; }
a{ color:inherit; }
h1,h2,h3,p,ol,ul{ margin:0; }
ol,ul{ padding:0; list-style:none; }
h1,h2,h3{ word-break:auto-phrase; text-wrap:balance; }
::selection{ background:var(--ac-soft); }
:focus-visible{ outline:2px solid var(--ac); outline-offset:3px; border-radius:6px; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* 背景：アクセント1色のごく薄いグロー（リッチのみ・動かさない） */
.bgwash{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(70% 55% at 85% -10%, color-mix(in srgb, var(--ac) 20%, transparent), transparent 70%);
}

/* ---------------------------------------------------------------- トップバー */
.top{
  position:sticky; top:0; z-index:50; height:56px;
  display:flex; align-items:center; gap:10px;
  padding:0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background:var(--top-bg);
  -webkit-backdrop-filter:saturate(150%) blur(18px); backdrop-filter:saturate(150%) blur(18px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; font-weight:700; font-size:15px; min-width:0; }
.brand svg{ width:26px; height:26px; flex:none; }
.brand b{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav{ display:flex; gap:2px; margin-left:auto; }
.nav a{ padding:6px 12px; border-radius:999px; color:var(--ink-2); text-decoration:none; font-size:14px; font-weight:500; transition:background .2s, color .2s; }
.nav a:hover{ background:var(--surface-2); color:var(--ink); }
.tools{ display:flex; align-items:center; gap:4px; flex:none; }
.count{
  display:inline-flex; align-items:baseline; gap:1px; text-decoration:none;
  font-size:13px; color:var(--ink-3); padding:4px 11px; margin-right:4px;
  border:1px solid var(--line); border-radius:999px; font-variant-numeric:tabular-nums; white-space:nowrap;
  transition:border-color .2s;
}
.count:hover{ border-color:var(--ac-line); }
.count b{ color:var(--ac-ink); font-weight:800; font-size:14px; display:inline-block; }
.count b.bump{ animation:bump .45s var(--spring); }
@keyframes bump{ 40%{ transform:scale(1.35); } }
.iconbtn{
  width:36px; height:36px; border-radius:999px; display:grid; place-items:center; color:var(--ink-2);
  transition:background .2s, color .2s, transform .25s var(--spring);
}
.iconbtn:hover{ background:var(--surface-2); color:var(--ink); }
.iconbtn:active{ transform:scale(.9); }
.iconbtn svg{ width:19px; height:19px; }
.progress{ position:absolute; left:0; right:0; bottom:-1px; height:2px; pointer-events:none; }
.progress i{ display:block; height:100%; background:var(--ac); transform-origin:0 50%; transform:scaleX(0); }
@media (max-width:600px){
  .nav{ display:none; }
  .tools{ margin-left:auto; }
  .brand b{ font-size:14px; }
}

/* ---------------------------------------------------------------- 共通 */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 16px; }
.eyebrow{ display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:700; letter-spacing:.08em; color:var(--ac-ink); }
.eyebrow::before{ content:""; width:18px; height:2px; background:currentColor; border-radius:2px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; height:46px; padding:0 20px;
  border-radius:999px; font-weight:700; font-size:15px; text-decoration:none; white-space:nowrap;
  color:var(--ink); border:1px solid var(--line-2); background:var(--surface);
  transition:transform .25s var(--spring), background .2s, border-color .2s, color .2s;
}
.btn:hover{ transform:translateY(-2px); border-color:var(--ac-line); }
.btn:active{ transform:scale(.97); }
.btn.primary{ background:var(--ac-btn); color:var(--on-ac); border-color:transparent; }
.btn.danger{ color:#ff6b6b; }
:root[data-theme="light"] .btn.danger{ color:#c62828; }
.btn svg{ width:17px; height:17px; }

/* スクロールで現れる */
.rv{ opacity:0; transform:translateY(18px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in{ opacity:1; transform:none; }

/* ---------------------------------------------------------------- ヒーロー */
.hero{ padding-top:clamp(56px, 12vw, 120px); padding-bottom:40px; }
.h1{
  font-size:clamp(42px, 11vw, 80px); line-height:1.16; font-weight:900; letter-spacing:-.01em;
  margin-top:18px; font-feature-settings:"palt";
}
.h1 .ac{ color:var(--ac); }
.h1 .ch{ display:inline-block; opacity:0; transform:translateY(.42em); filter:blur(6px);
  animation:chIn .75s var(--ease) forwards; animation-delay:calc(var(--d) * 45ms + 120ms); }
@keyframes chIn{ to{ opacity:1; transform:none; filter:none; } }
.lead{ margin-top:24px; font-size:clamp(16px, 2.2vw, 18px); line-height:2; color:var(--ink-2); max-width:34em; }
.stats{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-top:34px; }
.stat{ padding:16px 16px 14px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface);
  -webkit-backdrop-filter:var(--glass); backdrop-filter:var(--glass); }
.stat b{ display:block; font-size:clamp(30px, 6vw, 40px); font-weight:900; line-height:1.05; font-variant-numeric:tabular-nums; }
.stat span{ display:block; margin-top:4px; font-size:13px; color:var(--ink-2); line-height:1.5; }
.cta{ display:flex; gap:10px; margin-top:28px; flex-wrap:wrap; }
.src{ margin-top:28px; font-size:13px; line-height:1.9; color:var(--ink-3); }
.src a{ color:var(--ink-2); text-underline-offset:3px; }

/* ---------------------------------------------------------------- 目次 */
.toc{ display:flex; gap:8px; flex-wrap:wrap; padding-top:8px; }
.toc a{
  display:inline-flex; gap:8px; align-items:baseline; padding:7px 14px; border-radius:999px;
  border:1px solid var(--line); text-decoration:none; color:var(--ink-2); font-size:14px;
  transition:border-color .2s, color .2s, transform .25s var(--spring);
}
.toc a:hover{ border-color:var(--ac-line); color:var(--ink); transform:translateY(-2px); }
.toc a i{ font-style:normal; font-weight:700; color:var(--ac-ink); font-size:12px; font-family:Georgia,"Times New Roman",serif; }

/* ---------------------------------------------------------------- セクション */
.sec{ padding-top:clamp(72px, 11vw, 112px); }
.sec-head{ display:flex; gap:18px; align-items:flex-start; }
.sec-num{
  flex:none; min-width:1.25em; font-family:Georgia,"Times New Roman",serif; font-weight:700;
  font-size:clamp(46px, 8vw, 66px); line-height:.9; color:transparent; -webkit-text-stroke:1.3px var(--ac);
}
.sec-kicker{ display:block; font-size:13px; font-weight:700; letter-spacing:.06em; color:var(--ink-3); margin-bottom:6px; }
.sec h2{ font-size:clamp(22px, 4.4vw, 30px); line-height:1.5; font-weight:900; font-feature-settings:"palt"; }
.prose{ margin-top:26px; }
.prose p{ margin:0 0 1.1em; font-size:16.5px; line-height:2.05; color:color-mix(in srgb, var(--ink) 88%, transparent); }
.prose p:last-child{ margin-bottom:0; }
.prose strong{
  font-weight:700; color:var(--ink);
  background:linear-gradient(var(--ac-soft), var(--ac-soft)) 0 90% / 0% 42% no-repeat;
  transition:background-size 1.1s var(--ease) .35s;
}
.prose.in strong{ background-size:100% 42%; }
.prose .cite{ padding:2px 0 2px 16px; border-left:2px solid var(--ac); color:var(--ink-2); font-size:15.5px; line-height:1.9; }

/* 図のカード */
.fig{
  position:relative; isolation:isolate; margin:30px 0;
  padding:clamp(18px, 3.4vw, 28px);
  border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface);
  -webkit-backdrop-filter:var(--glass); backdrop-filter:var(--glass); box-shadow:var(--shadow);
}
.fig::before{
  content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none;
  background:linear-gradient(160deg, rgba(255,255,255,.07), transparent 42%);
}
.fig-title{ font-size:13px; font-weight:700; color:var(--ink-3); letter-spacing:.06em; margin-bottom:18px; }
.fig-title span{ font-weight:500; letter-spacing:0; margin-left:8px; }
.cap{ font-size:13.5px; color:var(--ink-3); margin-top:18px; line-height:1.85; }

/* I：2本のバー */
.bar + .bar{ margin-top:20px; }
.bar-label{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:15.5px; margin-bottom:9px; }
.bar-label span{ font-size:12.5px; color:var(--ac-ink); font-weight:700; white-space:nowrap; }
.bar.dim .bar-label{ color:var(--ink-2); }
.bar.dim .bar-label span{ color:var(--ink-3); }
.track{ height:12px; border-radius:99px; background:var(--surface-2); overflow:hidden; }
.track i{ display:block; height:100%; width:0; border-radius:inherit; background:var(--ac); transition:width 1.3s var(--ease) .25s; }
.bar.dim .track i{ background:var(--ink-3); transition-delay:.55s; }
.in .track i{ width:calc(var(--w) * 100%); }

/* II：表向きの理由 → 本当の目的 */
.rs + .rs{ margin-top:20px; padding-top:20px; border-top:1px dashed var(--line-2); }
.rs-act{ font-weight:700; font-size:16px; margin-bottom:12px; }
.rs-row{ display:grid; grid-template-columns:1fr auto 1.5fr; gap:14px; align-items:center; }
.rs-row small{ display:block; font-size:11.5px; color:var(--ink-3); font-weight:700; letter-spacing:.06em; margin-bottom:3px; }
.rs-say{ color:var(--ink-2); font-size:15px; }
.rs-say em{ font-style:normal; position:relative; }
.rs-say em::after{
  content:""; position:absolute; left:-2px; right:-2px; top:56%; height:1.5px; background:currentColor;
  transform:scaleX(0); transform-origin:0 50%; transition:transform .6s var(--ease) .6s;
}
.in .rs-say em::after{ transform:scaleX(1); }
.rs-arrow{ width:26px; height:26px; color:var(--ac); opacity:0; transition:opacity .4s .9s; }
.in .rs-arrow{ opacity:1; }
.rs-real{
  padding:11px 14px; border-radius:var(--r-sm); background:var(--ac-soft); font-weight:700; font-size:15px; line-height:1.65;
  opacity:0; transform:translateX(-10px); transition:opacity .6s var(--ease) 1.05s, transform .6s var(--ease) 1.05s;
}
.rs-real small{ color:var(--ac-ink); }
.in .rs-real{ opacity:1; transform:none; }
@media (max-width:600px){
  .rs-row{ grid-template-columns:1fr; gap:6px; }
  .rs-arrow{ transform:rotate(90deg); margin-left:8px; width:22px; height:22px; }
}

/* III：アイデンティティの循環 */
.ring, .orbit-center{ display:none; }
.cycle{ display:grid; gap:10px; position:relative; }
.cycle::before{
  content:""; position:absolute; left:14px; top:14px; bottom:14px; width:2px; background:var(--line-2);
  transform-origin:50% 0; transform:scaleY(0); transition:transform 1.4s var(--ease) .1s;
}
.in .cycle::before{ transform:none; }
.cycle li{
  position:relative; display:flex; align-items:center; gap:12px;
  opacity:0; transform:translateY(8px);
  transition:opacity .5s var(--ease), transform .5s var(--ease); transition-delay:calc(var(--i) * 110ms + 200ms);
}
.in .cycle li{ opacity:1; transform:none; }
.cycle li b{
  position:relative; z-index:1; flex:none; width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center; font-size:13px; font-weight:800;
  background:var(--chip-bg); border:1px solid var(--line-2);
}
.cycle li span{ font-size:15px; line-height:1.55; }
.cycle li.hot b{ background:var(--ac); color:var(--on-ac); border-color:transparent; }
.cycle li.cutmark{ color:var(--ac-ink); font-size:13px; font-weight:700; }
.cycle li.cutmark span{ font-size:13.5px; }
.cycle li.cutmark b{ border:1.5px dashed var(--ac-line); color:var(--ac-ink); }
.cycle li.cutmark b svg{ width:15px; height:15px; }
.cyc-back{ margin-top:14px; }
@media (min-width:720px){
  .orbit{ position:relative; width:440px; height:440px; margin:6px auto 2px; }
  .ring{ display:block; position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
  .ring circle{
    fill:none; stroke:var(--line-2); stroke-width:1.5; stroke-dasharray:1; stroke-dashoffset:1;
    transform:rotate(-90deg); transform-origin:center; transform-box:fill-box;
    transition:stroke-dashoffset 1.8s var(--ease) .1s;
  }
  .in .ring circle{ stroke-dashoffset:0; }
  .orbit-center{
    display:grid; justify-items:center; gap:6px; position:absolute; left:50%; top:50%; translate:-50% -50%;
    width:190px; text-align:center; opacity:0; transition:opacity .8s var(--ease) 1.4s;
  }
  .in .orbit-center{ opacity:1; }
  .orbit-center svg{ width:30px; height:30px; color:var(--ac); }
  .orbit-center p{ font-size:14px; line-height:1.8; color:var(--ink-2); }
  .orbit-center b{ color:var(--ink); }
  .cycle{ position:absolute; inset:0; display:block; }
  .cycle::before{ display:none; }
  .cycle li{
    --a:calc(var(--i) * 45deg - 90deg);
    position:absolute; left:calc(50% + cos(var(--a)) * 190px); top:calc(50% + sin(var(--a)) * 190px);
    translate:-50% -50%; width:152px;
    flex-direction:column; gap:6px; text-align:center;
    padding:10px 10px 12px; border-radius:var(--r-sm);
    background:var(--chip-bg); border:1px solid var(--line);
  }
  .cycle li b{ width:26px; height:26px; font-size:12px; }
  .cycle li span{ font-size:13.5px; line-height:1.5; }
  .cycle li.hot{ border-color:var(--ac-line); }
  .cycle li.cutmark{ width:auto; padding:0; background:none; border:0; }
  .cycle li.cutmark span{ display:none; }
  .cycle li.cutmark b{ width:34px; height:34px; background:var(--ac); color:var(--on-ac); border:3px solid var(--chip-bg); }
  .cyc-back{ display:none; }
}

/* IV：9つの段階 */
.ladder{ display:grid; gap:3px; }
.ladder li{
  display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:start;
  padding:11px 14px; border-radius:var(--r-sm);
  opacity:0; transform:translateX(-12px);
  transition:opacity .55s var(--ease), transform .55s var(--ease), background .6s; transition-delay:calc(var(--i) * 70ms + 100ms);
}
.in .ladder li{ opacity:1; transform:none; }
.ladder b{ font-size:20px; font-weight:900; color:var(--ink-3); font-variant-numeric:tabular-nums; line-height:1.35; font-family:Georgia,"Times New Roman",serif; }
.ladder h3{ font-size:16px; font-weight:700; line-height:1.5; }
.ladder p{ font-size:14px; color:var(--ink-2); line-height:1.75; margin-top:1px; }
.ladder li.band{ background:var(--ac-soft); }
.ladder li.band b{ color:var(--ac-ink); }

/* V：3つの材料・ループ・チップ */
.ingr{ display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; margin:28px 0; }
.ingr span{
  padding:10px 20px; border-radius:999px; border:1px solid var(--line-2); font-weight:700; font-size:16px;
  opacity:0; transform:scale(.85); transition:opacity .5s var(--ease), transform .5s var(--spring);
}
.ingr span:nth-of-type(2){ transition-delay:.15s; }
.ingr span:nth-of-type(3){ transition-delay:.3s; }
.ingr span.on{ background:var(--ac-btn); color:var(--on-ac); border-color:transparent; }
.ingr i{ font-style:normal; color:var(--ink-3); }
.ingr.in span{ opacity:1; transform:none; }

.loop-row{ display:grid; grid-template-columns:repeat(5, 1fr); gap:16px; }
.st{
  position:relative; padding:14px 10px; border-radius:var(--r-sm); background:var(--surface-2); border:1px solid var(--line);
  text-align:center; font-size:14px; font-weight:700; line-height:1.55;
  opacity:0; transform:translateY(8px);
  transition:opacity .5s var(--ease), transform .5s var(--ease); transition-delay:calc(var(--i) * 120ms + 150ms);
}
.st small{ display:block; font-size:11px; color:var(--ac-ink); letter-spacing:.08em; margin-bottom:4px; font-family:Georgia,serif; }
.in .st{ opacity:1; transform:none; }
.st:not(:last-child)::after{
  content:""; position:absolute; right:-12px; top:50%; width:7px; height:7px;
  border-top:2px solid var(--ac); border-right:2px solid var(--ac); transform:translateY(-50%) rotate(45deg);
}
.ret{
  position:relative; height:26px; margin:0 10% 30px; border:2px solid var(--ac-line); border-top:0; border-radius:0 0 16px 16px;
  clip-path:inset(-14px -12px -40px 100%); transition:clip-path 1.1s var(--ease) .9s;
}
.in .ret{ clip-path:inset(-14px -12px -40px -12px); }
.ret::before{
  content:""; position:absolute; left:-8px; top:-12px;
  border:6px solid transparent; border-bottom:9px solid var(--ac-line); border-top:0;
}
.ret span{ position:absolute; left:50%; bottom:-26px; translate:-50% 0; font-size:12px; font-weight:700; color:var(--ac-ink); white-space:nowrap; }
.loop-back{ display:none; }
@media (max-width:640px){
  .loop-row{ grid-template-columns:1fr; gap:14px; }
  .st:not(:last-child)::after{ right:auto; left:50%; top:auto; bottom:-11px; transform:translateX(-50%) rotate(135deg); }
  .ret{ display:none; }
  .loop-back{ display:block; text-align:center; font-weight:700; color:var(--ac-ink); font-size:13px; margin-top:14px; }
}
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chips li{
  padding:8px 14px; border-radius:999px; background:var(--surface-2); border:1px solid var(--line); font-size:14.5px;
  opacity:0; transform:translateY(6px);
  transition:opacity .45s var(--ease), transform .45s var(--ease); transition-delay:calc(var(--i) * 80ms + 100ms);
}
.in .chips li{ opacity:1; transform:none; }

/* VI：3つの段階・3つの時間帯 */
.phases{ display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin:28px 0; }
.phase{
  padding:18px; border-radius:var(--r); border:1px solid var(--line); background:var(--surface);
  -webkit-backdrop-filter:var(--glass); backdrop-filter:var(--glass);
  opacity:0; transform:translateY(10px);
  transition:opacity .6s var(--ease), transform .6s var(--ease); transition-delay:calc(var(--i) * 170ms);
}
.in .phase{ opacity:1; transform:none; }
.phase > b{ font-size:12px; color:var(--ink-3); letter-spacing:.08em; }
.phase h3{ font-size:19px; font-weight:900; margin:4px 0 6px; }
.phase p{ font-size:14px; color:var(--ink-2); line-height:1.8; }
.phase.last{ border-color:var(--ac-line); background:var(--ac-soft); }
.phase .big{ display:block; margin:6px 0 2px; font-size:24px; font-weight:900; color:var(--ac-ink); line-height:1.3; font-variant-numeric:tabular-nums; }
.proto{ display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-top:22px; }
.pcard{
  display:flex; flex-direction:column; gap:6px; text-align:left; padding:18px;
  border-radius:var(--r); border:1px solid var(--line); background:var(--surface);
  -webkit-backdrop-filter:var(--glass); backdrop-filter:var(--glass);
  transition:transform .3s var(--spring), border-color .2s;
}
.pcard:hover{ transform:translateY(-3px); border-color:var(--ac-line); }
.pcard small{ font-size:12px; font-weight:700; color:var(--ac-ink); letter-spacing:.08em; }
.pcard b{ font-size:17px; font-weight:900; }
.pcard p{ font-size:13.5px; color:var(--ink-2); line-height:1.75; flex:1; }
.pcard span{ font-size:13px; font-weight:700; color:var(--ink-2); margin-top:4px; }
.pcard:hover span{ color:var(--ac-ink); }
@media (max-width:640px){
  .phases, .proto{ grid-template-columns:1fr; }
}

/* VII：ゲーム */
.game-fig{ display:grid; grid-template-columns:200px 1fr; gap:26px; align-items:center; }
.game-fig .fig-title{ grid-column:1 / -1; margin-bottom:-6px; }
.rings{ display:block; width:100%; max-width:200px; margin:0 auto; overflow:visible; }
.rings circle{
  fill:none; stroke:var(--ac); stroke-width:1.5; stroke-opacity:calc(.22 + var(--i) * .13);
  stroke-dasharray:1; stroke-dashoffset:1;
  transform:rotate(-90deg); transform-origin:center; transform-box:fill-box;
  transition:stroke-dashoffset 1.2s var(--ease); transition-delay:calc(var(--i) * 150ms + 150ms);
}
.in .rings circle{ stroke-dashoffset:0; }
.rings text{ fill:var(--ink); font-size:17px; font-weight:900; font-family:inherit; }
.game{ display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.gcard{
  padding:13px 15px; border-radius:var(--r-sm); background:var(--surface-2); border:1px solid var(--line);
  opacity:0; transform:translateY(8px);
  transition:opacity .5s var(--ease), transform .5s var(--ease); transition-delay:calc(var(--i) * 90ms + 350ms);
}
.in .gcard{ opacity:1; transform:none; }
.gcard small{ display:block; font-size:12px; color:var(--ink-3); font-weight:700; }
.gcard b{ display:block; font-size:18px; font-weight:900; margin-top:1px; }
.gcard em{ display:block; font-style:normal; font-size:12px; color:var(--ac-ink); font-weight:700; margin-top:1px; }
@media (max-width:640px){
  .game-fig{ grid-template-columns:1fr; gap:20px; }
  .rings{ max-width:170px; }
}

/* ---------------------------------------------------------------- ワーク */
.work{
  margin-top:clamp(88px, 13vw, 150px); padding:clamp(56px, 9vw, 96px) 0 72px;
  border-top:1px solid var(--line);
  background:linear-gradient(to bottom, var(--ac-soft), transparent 260px);
}
.work .wrap{ max-width:820px; }
.work h2{ font-size:clamp(26px, 5.4vw, 40px); font-weight:900; line-height:1.4; margin-top:14px; font-feature-settings:"palt"; }
.work .lead{ margin-top:14px; font-size:15.5px; }
.nostore{ margin-top:10px; font-size:13.5px; color:#ff6b6b; }
.tabs{
  position:sticky; top:56px; z-index:20; display:grid; grid-template-columns:repeat(4, 1fr); gap:6px;
  margin-top:30px; padding:10px 0; background:var(--bg);
}
.tab{
  position:relative; padding:9px 4px 14px; border-radius:var(--r-sm); text-align:center; color:var(--ink-2);
  border:1px solid var(--line); background:var(--surface); transition:border-color .2s, background .2s, color .2s;
}
.tab b{ display:block; font-size:15px; line-height:1.4; }
.tab small{ display:block; font-size:11.5px; color:var(--ink-3); line-height:1.4; }
.tab .tp{ position:absolute; left:12px; right:12px; bottom:6px; height:3px; border-radius:3px; background:var(--surface-3); overflow:hidden; }
.tab .tp i{ display:block; height:100%; width:calc(var(--p, 0) * 100%); background:var(--ac); border-radius:inherit; transition:width .7s var(--ease); }
.tab:hover{ color:var(--ink); }
.tab[aria-selected="true"]{ color:var(--ink); border-color:var(--ac-line); background:var(--ac-soft); }
.panel{ display:none; padding-top:12px; }
.panel.on{ display:block; animation:panelIn .5s var(--ease); }
@keyframes panelIn{ from{ opacity:0; transform:translateY(10px); } }
.panel-intro{ font-size:15px; color:var(--ink-2); line-height:1.95; margin:10px 0 4px; }
.group-title{
  display:flex; align-items:center; gap:12px; margin:30px 0 12px;
  font-size:13px; font-weight:700; color:var(--ac-ink); letter-spacing:.06em;
}
.group-title::after{ content:""; flex:1; height:1px; background:var(--line); }
.q{
  position:relative; padding:18px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface);
  -webkit-backdrop-filter:var(--glass); backdrop-filter:var(--glass); transition:border-color .3s;
}
.q + .q{ margin-top:12px; }
.q:focus-within{ border-color:var(--ac-line); }
.q label{ display:flex; gap:12px; align-items:flex-start; font-weight:700; font-size:16px; line-height:1.75; padding-right:28px; cursor:text; }
.qn{
  flex:none; width:30px; height:30px; margin-top:-1px; border-radius:50%; display:grid; place-items:center;
  font-size:12px; font-weight:800; background:var(--surface-3); color:var(--ink-2);
  transition:background .3s, color .3s;
}
.q.done .qn{ background:var(--ac); color:var(--on-ac); }
.qh{ margin:6px 0 0 42px; font-size:13.5px; color:var(--ink-3); line-height:1.75; }
.chk{
  position:absolute; top:18px; right:16px; width:22px; height:22px; border-radius:50%;
  display:grid; place-items:center; background:var(--ac-soft); color:var(--ac-ink);
  transform:scale(0); transition:transform .4s var(--spring);
}
.chk svg{ width:13px; height:13px; }
.q.done .chk{ transform:scale(1); }
.q textarea{
  display:block; width:100%; min-height:88px; margin-top:12px; padding:12px 14px;
  border-radius:var(--r-sm); border:1px solid var(--line-2); background:var(--surface-2);
  font-size:15px; line-height:1.85; resize:none; overflow:hidden; outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.q textarea::placeholder{ color:var(--ink-3); }
.q textarea:focus{ border-color:var(--ac-line); box-shadow:0 0 0 4px var(--ac-soft); }
@media (pointer:coarse){
  .q textarea, .remind input{ font-size:16px; }
}

.remind{ margin-top:22px; padding:18px; border-radius:var(--r); border:1px dashed var(--ac-line); background:var(--ac-soft); }
.remind b{ font-size:16px; }
.remind p{ margin-top:4px; font-size:13.5px; color:var(--ink-2); line-height:1.8; }
.remind-row{ display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.remind input[type="date"]{
  height:46px; padding:0 16px; border-radius:999px; border:1px solid var(--line-2);
  background:var(--surface-2); font-size:15px; min-width:0;
}
.rtimes{ display:grid; gap:6px; margin-top:14px; }
.rtimes li{ display:flex; gap:12px; font-size:14px; line-height:1.7; animation:panelIn .45s var(--ease) both; animation-delay:calc(var(--i) * 90ms); }
.rtimes time{ flex:none; font-weight:800; color:var(--ac-ink); font-variant-numeric:tabular-nums; }

.gwrap{ display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; margin-top:20px; }
.gwrap .q + .q{ margin-top:0; }
.gtile label{ flex-direction:column; gap:0; }
.gtile label small{ font-size:12px; color:var(--ink-3); font-weight:700; line-height:1.5; }
.gtile label b{ font-size:20px; font-weight:900; line-height:1.4; }
.gtile label em{ font-style:normal; font-size:12px; color:var(--ac-ink); font-weight:700; line-height:1.5; }
.gtile .qh{ margin-left:0; }
@media (max-width:640px){ .gwrap{ grid-template-columns:1fr; } }

.actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:32px; padding-top:24px; border-top:1px solid var(--line); }
@media (max-width:600px){ .actions .btn{ flex:1 1 calc(50% - 4px); } }

/* ---------------------------------------------------------------- フッター・トースト */
.foot{ border-top:1px solid var(--line); padding:32px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot p{ font-size:12.5px; color:var(--ink-3); line-height:1.9; }
.foot a{ color:var(--ink-2); text-underline-offset:3px; }
.foot .sig{ margin-top:10px; font-weight:700; letter-spacing:.04em; }
.toast{
  position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom)); z-index:80;
  padding:11px 18px; border-radius:999px; background:var(--ink); color:var(--bg); font-size:14px; font-weight:700;
  box-shadow:0 12px 30px -12px rgba(0,0,0,.6); white-space:nowrap;
  transform:translate(-50%, calc(100% + 28px)); opacity:0; visibility:hidden;
  transition:transform .45s var(--spring), opacity .3s, visibility .45s;
}
.toast.on{ transform:translate(-50%, 0); opacity:1; visibility:visible; }

/* テーマ切替：円形に広がる */
::view-transition-old(root), ::view-transition-new(root){ animation:none; mix-blend-mode:normal; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms !important; animation-delay:0s !important; transition-duration:.01ms !important; transition-delay:0s !important; }
}

/* ---------------------------------------------------------------- 印刷：ワークの答えだけ */
@media print{
  :root{ --bg:#fff; --ink:#000; --ink-2:#333; --ink-3:#666; --surface:#fff; --surface-2:#fff; --line:#ccc; --line-2:#bbb; }
  .top, .hero, #read, .tabs, .actions, .remind, .foot, .toast, .bgwash, .work .lead, .work .eyebrow{ display:none !important; }
  .work{ margin:0; padding:0; border:0; background:none; }
  .panel{ display:block !important; animation:none; }
  .q{ break-inside:avoid; backdrop-filter:none; }
  .q textarea{ border:0; padding:0; min-height:0; }
}


/* =============================================================================
   シンプル表示（既定）。上のトップバー右の「見た目」ボタンでリッチに切り替え。
   このブロックを丸ごと消せば、常にリッチ表示になります。
   ============================================================================= */
:root[data-skin="simple"]{
  --glass:none;
  --shadow:none;
  --surface:rgba(255,255,255,.032);
  --surface-2:rgba(255,255,255,.062);
  --surface-3:rgba(255,255,255,.10);
}
:root[data-skin="simple"][data-theme="light"]{
  --surface:#ffffff; --surface-2:#fbfaf8; --surface-3:#efebe6;
  --line:rgba(30,22,14,.11); --line-2:rgba(30,22,14,.19);
}
:root[data-skin="simple"] .bgwash,
:root[data-skin="simple"] .fig::before{ display:none; }
:root[data-skin="simple"] .work{ background:none; }
:root[data-skin="simple"] .toast{ box-shadow:none; }
