:root { --bg:#0b0f14; --card:#121821; --muted:#9bb0c3; --accent:#4bb3fd; --text:#e8f0ff; }
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial; color:var(--text); background:radial-gradient(1200px 800px at 80% -10%, #1a2330, #0b0f14);}
a{color:var(--accent)}
header{position:sticky; top:0; backdrop-filter:saturate(180%) blur(8px); background:rgba(11,15,20,.6); border-bottom:1px solid rgba(255,255,255,.06); z-index:10}
.container{max-width:980px; margin:0 auto; padding:20px}
.row{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.3px; color:var(--text); text-decoration:none}
.brand i{width:28px; height:28px; background:linear-gradient(135deg,#4bb3fd,#6de39f); border-radius:8px; display:inline-block}
.nav{display:flex; gap:16px; flex-wrap:wrap; font-size:14px}
.nav a{color:var(--muted); text-decoration:none}
.nav a:hover,.nav a[aria-current]{color:var(--text)}
.lang{display:flex; align-items:center; gap:8px}
select{appearance:none; background:var(--card); color:var(--text); border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:10px 14px; font-size:14px}
main{padding:40px 20px}
.hero{max-width:980px; margin:0 auto 24px; display:grid; gap:10px}
.hero h1{font-size:32px; margin:0}
.hero p{color:var(--muted); margin:0}
.apps{max-width:980px; margin:24px auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px}
.card{background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04)); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:18px; box-shadow:0 10px 30px rgba(0,0,0,.25)}
.card h3{margin:0 0 8px}
.card p{margin:0 0 12px; color:var(--muted)}
.actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.12); text-decoration:none; color:var(--text)}
.btn.primary{background:linear-gradient(135deg,#4bb3fd,#6de39f); color:#001018; font-weight:600; border:none}
footer{border-top:1px solid rgba(255,255,255,.08); margin-top:40px}
footer .container{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px}
.small{color:var(--muted); font-size:13px}
.small a{color:var(--muted)}
.grid-2{display:grid; grid-template-columns:1fr; gap:16px}
@media(min-width:720px){ .grid-2{grid-template-columns:1.2fr .8fr} .hero h1{font-size:40px} }

.wide{max-width:980px; margin:24px auto}
.topics{list-style:none; margin:14px 0 18px; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px}
.topics li{padding:12px 14px; border:1px solid rgba(255,255,255,.08); border-radius:12px; background:rgba(255,255,255,.03)}
.topics a{font-weight:600; text-decoration:none}
.topics a:hover{text-decoration:underline}
.topics span{display:block; margin-top:4px; color:var(--muted); font-size:14px; line-height:1.6}
.note{color:var(--muted); font-size:14px; line-height:1.7}

.doc{max-width:760px; margin:0 auto; line-height:1.8}
.doc h1{font-size:30px; margin:0 0 6px}
.doc h2{font-size:20px; margin:34px 0 8px}
.doc p,.doc li{color:var(--text)}
.doc ul{padding-left:1.3em}
.doc .meta{color:var(--muted); font-size:13px; margin:0 0 22px}
html[lang="ja"] .en{display:none}
html:not([lang="ja"]) .ja{display:none}

/* 章立て（Android アプリ／Web アプリ／About） */
html{scroll-padding-top:84px}
.sec{max-width:980px; margin:60px auto 0}
.sec:first-of-type{margin-top:28px}
.sec-head{display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 14px; padding-bottom:12px; border-bottom:2px solid rgba(255,255,255,.08); position:relative}
.sec-head::after{content:""; position:absolute; left:0; bottom:-2px; width:110px; height:2px; background:linear-gradient(90deg,#4bb3fd,#6de39f)}
.sec-head h2{margin:0; font-size:30px; line-height:1.2}
.sec-sub{margin:0; color:var(--muted); font-size:14px}
.chip{align-self:center; padding:3px 12px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:#001018; background:linear-gradient(135deg,#6de39f,#4bb3fd)}
.chip.web{background:linear-gradient(135deg,#4bb3fd,#b69bff)}
.chip.about{background:linear-gradient(135deg,#ffd27a,#ff9b7a)}
.sub-h{font-size:22px; margin:34px 0 6px}
.sec .apps{margin:22px 0 0}

/* Android アプリのカード（アイコン＋画面） */
.appvis{display:flex; align-items:center; justify-content:center; gap:18px; height:220px; margin-bottom:16px; border-radius:12px; background:radial-gradient(circle at 30% 30%, rgba(52,190,190,.35), rgba(18,24,33,.2) 70%)}
.appicon{width:124px; height:124px; border-radius:28px; box-shadow:0 10px 26px rgba(0,0,0,.45)}
.appshot{height:190px; width:auto; border-radius:14px; border:3px solid rgba(255,255,255,.16); box-shadow:0 10px 26px rgba(0,0,0,.45)}

/* Web アプリ: 図のギャラリー（画像＋題名だけ） */
.gallery{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:16px; margin-top:16px}
.fig{display:block; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:var(--card); color:var(--text); text-decoration:none; box-shadow:0 10px 30px rgba(0,0,0,.25); transition:transform .15s ease, border-color .15s ease}
.fig:hover,.fig:focus-visible{transform:translateY(-3px); border-color:rgba(75,179,253,.65)}
.fig img{display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; background:#0b0f14}
.fig .cap{display:block; padding:11px 14px 13px; font-weight:600; font-size:15px; line-height:1.4}
.webcard{display:grid; grid-template-columns:1fr; gap:18px; align-items:center; margin-top:14px}
.webimg{display:block; overflow:hidden; border-radius:12px; border:1px solid rgba(255,255,255,.1)}
.webimg img{display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover}
@media(min-width:720px){ .webcard{grid-template-columns:1fr 1fr} }
@media(prefers-reduced-motion:reduce){ .fig{transition:none} .fig:hover{transform:none} }
@media(max-width:560px){ .gallery{grid-template-columns:repeat(2,1fr); gap:10px} .fig .cap{padding:8px 10px 10px; font-size:13px} .sec-head h2{font-size:26px} }
