:root{--orange:#e2652a;--orange-d:#c9531c;--yellow:#ffd36b;--cream:#fff8ec;--ink:#4a3a2e;--sub:#7b6a5c;--line:#f0dcc3;--white:#fff}
*{box-sizing:border-box}
body{margin:0;background:var(--cream);color:var(--ink);font-family:"Hiragino Maru Gothic ProN","BIZ UDPGothic","Meiryo",system-ui,sans-serif;line-height:1.7;font-size:17px}
html[lang=en] body{font-family:"Nunito","Segoe UI",system-ui,sans-serif}
a{color:var(--orange-d)}
[hidden]{display:none!important}
header{background:var(--white);border-bottom:3px solid var(--yellow)}
.wrap{max-width:760px;margin:0 auto;padding:0 16px}
.head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;flex-wrap:wrap}
.head img{height:40px;display:block}
.tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pill{border:2px solid var(--orange);background:var(--white);color:var(--orange-d);border-radius:999px;padding:3px 12px;font:inherit;font-size:14px;cursor:pointer;text-decoration:none}
.country{position:relative}
.cbox{position:absolute;right:0;top:110%;z-index:5;background:var(--white);border:2px solid var(--line);border-radius:14px;padding:10px;width:230px;box-shadow:0 6px 20px rgba(0,0,0,.08)}
.cbox p{margin:0 0 6px;font-size:14px;color:var(--sub)}
.cbox button{display:block;width:100%;text-align:left;border:0;background:none;font:inherit;font-size:15px;padding:6px 8px;border-radius:8px;cursor:pointer}
.cbox button[aria-pressed=true]{background:#ffe9d6;font-weight:bold}
.hero{padding:28px 0 8px}
h1{font-size:28px;margin:0 0 4px;line-height:1.35}
.lead{color:var(--sub);margin:0}
.talk{display:flex;gap:12px;align-items:flex-start;margin:22px 0 10px}
.talk img{width:64px;height:64px;object-fit:cover;object-position:left center;flex:none}
.bubble{position:relative;background:var(--white);border:2px solid var(--line);border-radius:18px;padding:12px 16px;font-size:18px}
.bubble:before{content:"";position:absolute;left:-10px;top:20px;border:8px solid transparent;border-right-color:var(--line);border-left:0}
.card{background:var(--white);border-radius:18px;padding:18px;margin:14px 0;box-shadow:0 2px 0 var(--line)}
.q{font-weight:bold;margin:0 0 10px}
.q .n{display:inline-block;background:var(--yellow);border-radius:999px;min-width:28px;height:28px;text-align:center;line-height:28px;margin-right:6px;padding:0 4px}
.hint{font-size:14px;color:var(--sub);margin:-4px 0 8px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opts button{border:2px solid var(--line);background:var(--cream);color:var(--ink);border-radius:14px;padding:10px 14px;font:inherit;cursor:pointer;min-height:48px}
.opts button[aria-pressed=true]{border-color:var(--orange);background:#ffe9d6;font-weight:bold}
.other{margin-top:10px;width:100%;border:2px solid var(--line);border-radius:12px;padding:10px;font:inherit;display:none}
.other.show{display:block}
.names{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nm span{display:block;font-size:14px;color:var(--sub)}
.nm input{width:100%;border:2px solid var(--line);border-radius:12px;padding:10px;font:inherit}
textarea.free{width:100%;border:2px solid var(--line);border-radius:12px;padding:10px;font:inherit;min-height:70px}
.out{background:#fffdf6;border:2px dashed var(--orange);border-radius:16px;padding:14px;white-space:pre-wrap;font-size:15px;line-height:1.75}
.btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.btns button,.btns a{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 20px;border-radius:999px;font:inherit;font-weight:bold;text-decoration:none;cursor:pointer;border:0}
.btns button:disabled{opacity:.5;cursor:default}
.copy{background:var(--orange);color:var(--white)}
.gpt{background:var(--ink);color:var(--white)}
.minor{background:var(--white);color:var(--ink)!important;border:2px solid var(--line)!important;font-weight:normal!important;min-height:44px!important}
.small{font-size:14px;color:var(--sub);margin:10px 0 0}
.warn{font-size:14px;margin:8px 0 0;background:#fff3cf;border-radius:10px;padding:6px 10px}
h2{font-size:21px;margin:30px 0 8px}
ol.steps{padding-left:1.3em;margin:0}
ol.steps li{margin:6px 0}
.tried{font-size:15px;margin:10px 0 6px;border:2px solid var(--line);box-shadow:none}
.tried .ttl{font-weight:bold;margin:0;color:var(--orange-d)}
.tried .date{font-size:12px;color:var(--sub);margin:8px 0 0}
.tried pre{white-space:pre-wrap;font:inherit;background:var(--cream);border-radius:12px;padding:12px;margin:10px 0 0;max-height:320px;overflow:auto}
.tip{background:#fff3cf;border-radius:12px;padding:8px 12px;margin:8px 0 0;font-size:15px}
.toast{margin:10px 0 0;font-weight:bold;color:var(--orange-d)}
.toast:empty{display:none}
details{background:var(--white);border-radius:14px;padding:12px 16px;margin:8px 0}
summary{cursor:pointer;font-weight:bold}
.near{display:flex;flex-wrap:wrap;gap:8px}
.near a{background:var(--white);border:2px solid var(--line);border-radius:999px;padding:6px 14px;text-decoration:none;color:var(--ink)}
.cats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cat{background:var(--white);border-radius:18px;padding:14px 16px;box-shadow:0 2px 0 var(--line)}
.cat h3{margin:0 0 6px;font-size:18px}
.cat ul{margin:0;padding-left:1.1em}
.cat li{margin:3px 0}
.search{width:100%;border:2px solid var(--line);border-radius:999px;padding:12px 18px;font:inherit;margin:12px 0}
.langs{display:flex;gap:14px;flex-wrap:wrap;margin:24px 0}
.langs a{flex:1;min-width:200px;background:var(--white);border:3px solid var(--orange);border-radius:18px;padding:18px;text-align:center;font-size:20px;font-weight:bold;text-decoration:none}
footer{margin-top:40px;padding:24px 0 40px;color:var(--sub);font-size:14px;text-align:center;border-top:2px solid var(--line)}
footer a{color:var(--sub)}
.sample-note{background:var(--yellow);text-align:center;font-size:13px;padding:4px}
@media (max-width:560px){.cats{grid-template-columns:1fr}}
@media (max-width:480px){h1{font-size:24px}.btns button,.btns a{width:100%}.names{grid-template-columns:1fr}}
.sel{display:inline-flex;align-items:center;gap:4px;font-size:14px;color:var(--sub)}
.sel select{border:2px solid var(--orange);background:var(--white);color:var(--ink);border-radius:999px;padding:3px 8px;font:inherit;font-size:14px;cursor:pointer}
.bm{margin-top:12px}
.bm[aria-pressed=true]{background:#ffe9d6;font-weight:bold}
/* クッキーのお知らせ（本番だけ。2026-12-01） */
#cookie-note{position:fixed;left:8px;right:8px;bottom:8px;z-index:50;max-width:640px;margin:0 auto;background:var(--white);border:2px solid var(--line);border-radius:14px;padding:10px 14px;box-shadow:0 4px 16px rgba(0,0,0,.12);font-size:13px;color:var(--ink)}
#cookie-note p{margin:4px 0}
#cookie-note .cookie-btns{display:flex;gap:8px;justify-content:flex-end}
#cookie-note button{width:auto;padding:6px 16px}
/* トップへ戻る道（2026-12-01 須藤さん「小さくてわかりにくい」） */
.back{margin:14px 0 0}
.back a{display:inline-block;background:var(--white);border:2px solid var(--orange);border-radius:999px;padding:6px 16px;color:var(--orange-d);font-weight:bold;text-decoration:none}
.totop{margin:28px 0 0}
.totop a{display:block;background:var(--orange);color:var(--white);border-radius:18px;padding:16px;text-align:center;font-size:18px;font-weight:bold;text-decoration:none}
.totop a:hover{background:var(--orange-d)}
