/* v=20261031d */

:root,[data-theme="green"]{--ink:#1f3d33;--fill:#cfe3d3;--bg:#f5f7f2;--acc:#4f8a6b;--line:#d9e2d8}
[data-theme="navy"]{--ink:#1b1f5e;--fill:#bfe3f0;--bg:#f4f8fb;--acc:#6c7bd6;--line:#d8e2ec}
[data-theme="ember"]{--ink:#3a2a20;--fill:#f6cfaa;--bg:#fbf6ef;--acc:#d9733a;--line:#ecdfd0}
[data-theme="ink"]{--ink:#1d1d1f;--fill:#ffe27a;--bg:#fffdf5;--acc:#d9a400;--line:#ebe6d3}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Zen Kaku Gothic New",sans-serif;line-height:1.85;font-size:16px}
img{display:block;max-width:100%}
a{color:inherit}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px}
.en{font-family:"Bitter",serif}
.dot{color:var(--acc)}

/* ヘッダー */
header{position:sticky;top:0;z-index:5;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(8px)}
.bar{display:flex;align-items:center;justify-content:space-between;height:72px}
.logo{font-weight:700;font-size:18px;text-decoration:none;display:flex;align-items:center;gap:10px}
.logo i{display:inline-block;width:1px;height:20px;background:var(--line)}
.right{display:flex;align-items:center;gap:18px}
.themes{display:flex;gap:8px}
.themes button{width:20px;height:20px;border-radius:50%;border:2px solid var(--ink);padding:0;cursor:pointer}
.themes button[aria-pressed="true"]{outline:2px solid var(--acc);outline-offset:2px}
.burger{width:44px;height:44px;border:0;background:none;cursor:pointer;display:grid;place-items:center;padding:0;color:var(--ink)}
.burger svg{width:26px;height:26px}

/* メニュー（開いた状態） */
.menu{position:fixed;inset:0;z-index:10;background:var(--bg);display:none;flex-direction:column}
.menu.open{display:flex}
.menu nav{flex:1;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:0 32px;max-width:1120px;margin:0 auto;width:100%}
.menu nav a{font-family:"Bitter",serif;font-weight:800;font-size:clamp(36px,6vw,64px);text-decoration:none;line-height:1.25}
.menu nav a small{font-family:"Zen Kaku Gothic New";font-weight:500;font-size:14px;margin-left:14px;opacity:.7;vertical-align:middle}
.menu .foot{padding:24px 32px;max-width:1120px;margin:0 auto;width:100%;display:flex;justify-content:space-between;align-items:center;font-size:14px}

/* ヒーロー */
.hero{display:grid;grid-template-columns:4fr 8fr;align-items:center;gap:24px;min-height:calc(100vh - 72px);max-height:760px;padding-bottom:40px}
h1{font-family:"Bitter",serif;font-weight:400;font-size:clamp(48px,6.4vw,84px);line-height:1.1;margin:0;letter-spacing:-.01em}
h1 b{font-family:"Zen Kaku Gothic New",sans-serif;font-weight:900;letter-spacing:.02em}
.facts{display:flex;gap:40px;margin-top:36px}
.facts div{border-left:2px solid var(--acc);padding-left:14px}
.facts dt{font-family:"Bitter",serif;font-size:12px;letter-spacing:.3em;opacity:.7}
.facts dd{margin:2px 0 0;font-family:"Bitter",serif;font-weight:700;font-size:22px;line-height:1.3}
.facts dd small{display:block;font-weight:400;font-style:italic;font-size:14px;opacity:.75}
.scroll{margin-top:40px;font-size:12px;letter-spacing:.3em;display:flex;align-items:center;gap:12px;opacity:.7}
.scroll i{width:1px;height:56px;background:var(--ink);display:block;position:relative;overflow:visible}
.scroll i::after{content:"";position:absolute;left:-3px;top:0;width:7px;height:7px;border-radius:50%;background:var(--acc);animation:scroll-dot 2.2s cubic-bezier(.6,0,.4,1) infinite}
@keyframes scroll-dot{0%{top:0;opacity:0}15%{opacity:1}75%{opacity:1}100%{top:52px;opacity:0}}
@media(prefers-reduced-motion:reduce){.scroll i::after{animation:none;top:48px;opacity:1}}

/* セクション共通 */
section{padding:72px 0 24px}
h2{font-family:"Bitter",serif;font-weight:800;font-size:clamp(36px,4.6vw,56px);margin:0;line-height:1.1}
.rule{width:56px;height:3px;background:var(--acc);margin:18px 0 22px}
.intro{max-width:560px;margin:0}

/* Interests */
.items{margin-top:40px}
.item{display:grid;grid-template-columns:280px 1fr;gap:48px;align-items:center;padding:36px 0;border-top:1px solid var(--line)}
.item:first-child{border-top:0}
.item img{width:220px;height:150px;object-fit:contain;margin:0 auto}
.item h3{font-family:"Bitter",serif;font-weight:800;font-size:30px;margin:0}
.item .sub{font-family:"Bitter",serif;font-style:italic;opacity:.75;margin:2px 0 10px}
.item p{margin:0;max-width:520px}
.item p .sent{display:inline-block;word-break:auto-phrase}

/* Garage */
.current{display:grid;grid-template-columns:7fr 5fr;gap:40px;align-items:center;margin-top:32px;padding:32px;border:2px solid var(--ink);border-radius:14px;background:color-mix(in srgb,var(--fill) 35%,var(--bg))}
.tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.12em;border:1.5px solid var(--ink);border-radius:99px;padding:1px 12px;background:var(--fill)}
.current h3{font-family:"Bitter",serif;font-weight:800;font-size:40px;margin:10px 0 0;line-height:1.1}
.maker{font-family:"Bitter",serif;font-size:14px;letter-spacing:.2em;opacity:.7}
.years{font-family:"Bitter",serif;font-size:18px;margin-top:6px}
.past{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:20px}
.car{border-top:1px solid var(--line);padding-top:16px}
.car img{height:110px;width:100%;object-fit:contain}
.car h4{font-family:"Bitter",serif;font-weight:700;font-size:20px;margin:10px 0 0;line-height:1.2}

/* Dashboard */
.board{display:grid;grid-template-columns:5fr 7fr;gap:40px;align-items:center;margin-top:32px}
.screen{aspect-ratio:16/10;border:2px solid var(--ink);border-radius:14px;overflow:hidden;background:var(--fill);position:relative}
.screen .blur{position:absolute;inset:14px;border-radius:8px;background:
 linear-gradient(90deg,color-mix(in srgb,var(--ink) 18%,transparent) 0 30%,transparent 30%) 0 0/100% 100%,
 repeating-linear-gradient(180deg,color-mix(in srgb,var(--ink) 12%,transparent) 0 14px,transparent 14px 30px);filter:blur(6px);opacity:.9}
.screen span{position:absolute;inset:0;display:grid;place-items:center;font-weight:700;font-size:14px}


.solar{margin-top:32px;border:2px solid var(--ink);border-radius:14px;padding:24px 28px;background:color-mix(in srgb,var(--fill) 25%,var(--bg))}
.solar-head{display:flex;align-items:flex-end;gap:48px;flex-wrap:wrap}
.solar .k{font-family:"Bitter",serif;font-size:12px;letter-spacing:.3em;opacity:.7}
.solar .big{font-family:"Bitter",serif;font-weight:800;font-size:56px;line-height:1}
.solar .mid{font-family:"Bitter",serif;font-weight:700;font-size:30px;line-height:1.1}
.solar small{font-size:.45em;font-weight:500}
.solar .upd{margin-left:auto;font-size:13px;opacity:.8;display:flex;align-items:center;gap:8px}
.live{width:8px;height:8px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 4px color-mix(in srgb,var(--acc) 25%,transparent)}
.chartbox{position:relative;margin-top:20px}
.chart{width:100%;display:block;overflow:visible}
.chart .g{stroke:var(--line);stroke-width:1}
.chart .t{fill:var(--ink);opacity:.6;font-size:12px;text-anchor:middle;font-family:"Bitter",serif}
.chart .a{fill:var(--fill);opacity:.9}
.chart .l{fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round}
.chart .cur{stroke:var(--ink);stroke-dasharray:3 4}
.chart .p{fill:var(--bg);stroke:var(--ink);stroke-width:2.5}
.tip{position:absolute;top:-4px;width:100px;background:var(--ink);color:var(--bg);border-radius:8px;padding:6px 10px;font-size:12px;display:flex;flex-direction:column;line-height:1.4}
.tip b{font-family:"Bitter",serif}
.solar .note{font-size:14px;opacity:.8;margin:14px 0 0}
@media(max-width:760px){.solar{padding:18px}.solar-head{gap:24px}.solar .big{font-size:42px}.solar .upd{margin-left:0;width:100%}}

/* Online */
.links{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:32px}
.links a{display:flex;justify-content:space-between;align-items:center;gap:8px;border:2px solid var(--ink);border-radius:10px;padding:14px 18px;text-decoration:none;font-weight:700;background:var(--bg);transition:background .15s}
.links a:hover{background:var(--fill)}
.links a small{font-weight:400;font-size:13px;opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

footer{padding:80px 0 40px;text-align:center;font-size:13px;opacity:.7}

@media(max-width:760px){
 .wrap{padding:0 16px}
 .bar{height:60px}
 .themes{gap:6px}.themes button{width:16px;height:16px}
 .hero{grid-template-columns:1fr;min-height:0;padding:28px 0 8px;gap:16px}
 .scroll{display:none}
 .facts{margin-top:22px;gap:28px}
 section{padding:56px 0 8px}
 .item{grid-template-columns:96px 1fr;gap:18px;padding:22px 0}
 .item img{width:96px;height:80px}
 .item h3{font-size:24px}
 .current{grid-template-columns:1fr;padding:20px;gap:12px}
 .current h3{font-size:32px}
 .past{grid-template-columns:repeat(2,1fr);gap:16px}
 .car img{height:80px}
 .car h4{font-size:17px}
 .board{grid-template-columns:1fr;gap:16px}
 .links{grid-template-columns:1fr 1fr;gap:10px}
 .links a{padding:12px 14px;flex-direction:column;align-items:flex-start;gap:0}
 .menu nav{padding:0 16px}.menu .foot{padding:20px 16px}
}

.art{height:auto}
.hero-art{position:relative;min-width:0}.hero-art>.art{display:block;width:100%}.flame{position:absolute;left:15.3125%;top:34.39%;width:12.5%;aspect-ratio:200/180;background:url(img/hero_flame_green.webp?v=20261031d) 0 0/100% 1200% no-repeat;pointer-events:none}[data-theme=navy] .flame{background-image:url(img/hero_flame_navy.webp?v=20261031d)}[data-theme=ember] .flame{background-image:url(img/hero_flame_ember.webp?v=20261031d)}[data-theme=ink] .flame{background-image:url(img/hero_flame_ink.webp?v=20261031d)}
.item img,.car img{height:150px}
.car img{height:110px}
@media(max-width:760px){.item img,.car img{height:80px}}

:root{--accent:var(--acc);--chart-tooltip-dot:var(--bg)}
:focus-visible{outline:2px solid var(--acc);outline-offset:5px}
.menu nav a small,.solar-status,.solar .upd{white-space:nowrap}
body.menu-open{overflow:hidden}
.solar-status{margin:0}
.solar .k,.solar .big,.solar .mid{white-space:nowrap}
.lumi-chart-tooltip{background:var(--ink);color:var(--bg);border-color:var(--line);font-family:inherit;box-shadow:0 8px 24px color-mix(in srgb,var(--ink) 18%,transparent)}
.chart .axis-y{font-size:11px;text-anchor:start}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.sub .nw{white-space:nowrap}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s ease var(--reveal-delay,0ms),transform .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms)}
.reveal.in{opacity:1;transform:none}
.links a.reveal{transition:opacity .8s ease var(--reveal-delay,0ms),transform .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms),background .15s}
/* 最初の画面の登場（2026-10-25）：あいさつ→名前→点→情報の順に浮き上がり、線画は左から描かれるように出る */
@media(prefers-reduced-motion:no-preference){
  .hero h1{animation:hero-up .9s cubic-bezier(.2,.7,.2,1) both}
  .hero h1 b{display:inline-block;animation:hero-up .9s cubic-bezier(.2,.7,.2,1) .18s both}
  .hero h1 .dot{display:inline-block;animation:hero-pop .5s cubic-bezier(.3,1.6,.5,1) .75s both}
  .hero .facts{animation:hero-up .9s cubic-bezier(.2,.7,.2,1) .45s both}
  .hero .scroll{animation:hero-fade .8s ease 1.1s both}
  .hero-art{animation:hero-draw 1.8s cubic-bezier(.45,.05,.25,1) .3s both}
  .flame{animation:flame 1.08s steps(12) infinite}
  @keyframes flame{to{background-position-y:109.0909%}}
}
@keyframes hero-up{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes hero-pop{from{opacity:0;transform:scale(0)}to{opacity:1;transform:none}}
@keyframes hero-fade{from{opacity:0}to{opacity:1}}
@keyframes hero-draw{from{opacity:.2;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0 0 0 0)}}

/* 承認済みのGarageドライブと発電換算 */
.play-panel{margin:28px 0 36px;padding:28px;border:1px solid var(--ink);border-radius:14px;background:var(--bg)}
.play-panel h3{font-size:28px;margin:0 0 8px;line-height:1.4}.play-panel p{margin:8px 0}.play-meta{font-size:13px;opacity:.75}
.play-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}.play-button{font:inherit;font-size:14px;min-height:44px;padding:8px 18px;color:var(--ink);border:1px solid var(--ink);border-radius:99px;background:var(--bg);cursor:pointer;white-space:nowrap}
.play-button:hover,.play-button[aria-pressed=true]{background:var(--fill)}.play-panel output{font-variant-numeric:tabular-nums}
@media(max-width:760px){.play-panel{padding:18px;margin:20px 0}.play-panel h3{font-size:23px}.play-button{padding:8px 14px}.play-tools{gap:8px}}


.energy-top{display:flex;gap:20px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}.energy-total{font:700 46px Georgia,serif;white-space:nowrap}.energy-total small{font:400 16px sans-serif}.energy-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:28px 0}.energy-item{border-top:1px solid var(--line);padding-top:22px;min-width:0}.energy-item>img{width:160px;height:112px;object-fit:contain;margin-bottom:16px}.energy-item h4{font-size:18px;margin:0}.energy-number{font:700 clamp(36px,4vw,54px) Georgia,serif;white-space:nowrap;line-height:1.5}.energy-number small{font:400 14px sans-serif}.energy-icons{display:flex;gap:10px;height:46px;overflow:hidden}.energy-icons img{width:36px;height:40px;object-fit:contain}.energy-note{max-width:66ch;font-size:13px;opacity:.8}.energy-hidden{display:none}
@media(max-width:760px){.energy-items{grid-template-columns:1fr;gap:22px;margin-top:20px}.energy-item{display:grid;grid-template-columns:85px minmax(0,1fr);gap:0 14px;align-items:center}.energy-item>img{width:85px;height:95px;margin:0;grid-row:1/4}.energy-number{font-size:43px}.energy-icons{grid-column:2}.energy-total{font-size:38px}}

@media(max-width:760px){.energy-item>.play-meta{grid-column:1/-1;margin:8px 0 0}.energy-item{row-gap:2px}}

.energy-item h4{font-size:clamp(14px,1.6vw,18px);white-space:nowrap}.energy-top h3{font-size:clamp(17px,2.5vw,28px);white-space:nowrap}

#garage .art{cursor:pointer}#garage .art:focus-visible{outline:2px solid var(--ink)}.drive-panel[hidden]{display:none}.drive-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.drive-distance{font-size:23px;white-space:nowrap}.drive-scene{position:relative;overflow:hidden;height:290px;margin-top:22px;background:var(--bg)}.drive-scene canvas{width:100%;height:100%;display:block}.drive-car{position:absolute;width:300px;max-width:60%;height:145px;object-fit:contain;bottom:40px;left:30%;transform-origin:50% 50%;pointer-events:none}.drive-pad{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.drive-pad button{border-radius:10px;min-height:56px;touch-action:none;user-select:none}.drive-pad button:active{background:var(--fill)}
@media(max-width:760px){.drive-scene{height:215px}.drive-car{height:100px;bottom:40px;left:20%;width:220px;max-width:65%}.drive-distance{font-size:20px}}

.drive-scene{height:300px}.drive-scene canvas{width:100%;height:100%}.drive-head h3{font-size:clamp(16px,2vw,28px);white-space:nowrap}.drive-panel:focus-within{scroll-margin-top:80px}@media(max-width:760px){.drive-scene{height:220px}.drive-panel{padding:14px}.drive-head{gap:4px}.drive-distance{font-size:18px}}

.energy-panel details{font-size:13px;overflow-wrap:anywhere}.energy-panel summary{cursor:pointer;width:max-content}.energy-panel details h4{margin:16px 0 4px}.energy-panel details p{max-width:78ch}.energy-number small{display:inline-block}.energy-panel .energy-icons:empty{height:0}
@media(max-width:760px){.energy-number{white-space:normal}.energy-number small{white-space:nowrap;font-size:12px}.energy-item h4{font-size:14px}}
.energy-icons img{flex:0 1 36px;min-width:0}

/* スマホは「Hi, I'm りおつ.」を1行に（2026-10-25 和樹さん）。PCは2行のまま */
@media(max-width:760px){.hero h1{white-space:nowrap;font-size:clamp(30px,13vw,56px)}.hero h1 br{display:none}}
/* 走るボタンの長押しで文字が選択されないように（2026-10-25 和樹さん） */
.drive-panel{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.drive-panel [data-dir]{touch-action:none}
