:root{
  --ink:#121614;--paper:#fff;--snow:#F3F5F3;--line:#D8DED9;--forest:#184B32;--field:#2F8F5B;--lift:#D64545;--mute:#5F6B64;--warn:#B23A1E;
  --jp:"Noto Sans JP","Hiragino Sans",sans-serif;--num:"Inter Tight","Noto Sans JP",sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--snow);color:var(--ink);font-family:var(--jp);font-size:15px;line-height:1.8;-webkit-font-smoothing:antialiased}
p,h3,ol,ul{margin:0;padding:0}
ul,ol{list-style:none}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
.num{font-family:var(--num);font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums}

/* 上の帯 */
.bar{background:var(--ink);color:#fff}
.bar-in{width:min(1240px,calc(100% - 32px));margin:0 auto;display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:14px 0;flex-wrap:wrap}
.bar-title{font-weight:900;font-size:17px;letter-spacing:-.01em}
.bar-note{font-size:12px;opacity:.75}

.stage{width:min(1240px,calc(100% - 32px));margin:24px auto 0;display:grid;grid-template-columns:400px 1fr;gap:28px;align-items:start}
.cap{font-size:12px;font-weight:700;color:var(--mute);margin-bottom:8px;letter-spacing:.02em}

/* トーク */
.talk{background:var(--paper);border:1px solid var(--line);border-radius:2px;display:flex;flex-direction:column;height:min(780px,calc(100vh - 120px));min-height:560px;position:sticky;top:16px}
.talk-head{display:flex;align-items:baseline;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line)}
.talk-who{font-weight:900;font-size:16px}
.talk-sub{font-size:12px;color:var(--mute)}
.log{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:14px;scroll-behavior:smooth}
.msg{max-width:88%;animation:rise .35s cubic-bezier(.16,1,.3,1) both}
.msg.bot{align-self:flex-start}
.msg.me{align-self:flex-end}
.msg .who{font-size:11px;color:var(--mute);margin-bottom:4px}
.bub{background:var(--snow);border:1px solid var(--line);border-radius:2px;padding:12px 14px;font-size:14px;line-height:1.75}
.msg.me .bub{background:var(--forest);border-color:var(--forest);color:#fff;padding:6px}
.msg.me img{display:block;width:220px;max-width:100%;border-radius:1px}
.msg.note .bub{background:#fff;border-style:dashed;color:var(--mute);font-size:12px}
.typing{display:flex;align-items:center;gap:10px;color:var(--mute)}
.dots{display:inline-flex;gap:4px}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--mute);animation:blink 1.2s infinite both}
.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}

.read dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:6px 0 0}
.read dt{color:var(--mute);font-size:12px;padding-top:2px}
.read dd{margin:0;font-weight:700}
.read .q{color:var(--warn);background:#FCEDE8;padding:0 4px}
.read h4,.draft h4{font-size:13px;font-weight:900;margin:0}
.chips{display:flex;flex-wrap:wrap;gap:4px 10px}
.chips span{white-space:nowrap}

.draft .tabs{margin:8px 0 6px}
.draft .txt{white-space:pre-wrap;font-size:14px}
.draft textarea{width:100%;min-height:200px;font:inherit;font-size:14px;line-height:1.75;border:1px solid var(--ink);border-radius:2px;padding:8px;resize:vertical;background:#fff}
.acts{display:flex;gap:8px;margin-top:10px}

/* 下の送信欄 */
.composer{border-top:1px solid var(--line);padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px}
.pass{display:flex;gap:8px;align-items:center}
.pass label{font-size:13px;font-weight:700;white-space:nowrap}
.pass input{flex:1;min-width:0;height:44px;border:1px solid var(--ink);border-radius:2px;padding:0 12px;font:inherit}
.send{display:flex;gap:8px}
.send .btn{flex:1}
.link{background:none;border:0;padding:4px 0;font-size:12px;color:var(--mute);text-decoration:underline;text-underline-offset:4px;align-self:center}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:2px;font-weight:700;font-size:14px;letter-spacing:.02em;border:1px solid var(--ink);transition:background .18s,color .18s}
.btn.pri{background:var(--ink);color:#fff}
.btn.pri:hover:not(:disabled){background:var(--forest);border-color:var(--forest)}
.btn.sec{background:#fff}
.btn.sec:hover{background:var(--snow)}
.btn:disabled{opacity:.35;cursor:not-allowed}
.btn.sm{height:38px;padding:0 16px;font-size:13px}

.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line)}
.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:6px 10px;font-size:12px;font-weight:700;color:var(--mute);margin-bottom:-1px}
.tabs button[aria-selected="true"]{color:var(--ink);border-color:var(--ink)}

/* 反映先 */
.out{display:flex;flex-direction:column;gap:28px;min-width:0}
.frame{background:var(--paper);border:1px solid var(--line);border-radius:2px;overflow:hidden}
.post{background:var(--paper);border:1px solid var(--line);border-radius:2px;max-width:420px}
.post-head{display:flex;align-items:center;gap:10px;padding:10px 14px;font-size:13px}
.ava{width:30px;height:30px;border-radius:50%;background:var(--forest);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:13px}
.post-img{aspect-ratio:4/3;background:var(--snow);display:flex;align-items:center;justify-content:center;color:var(--mute);font-size:13px;overflow:hidden}
.post-img img{width:100%;height:100%;object-fit:cover}
.post .tabs{padding:0 10px}
.post-text{padding:12px 14px 16px;white-space:pre-wrap;font-size:13.5px;line-height:1.8;color:var(--mute)}
.post-text.on{color:var(--ink)}

.foot{width:min(1240px,calc(100% - 32px));margin:28px auto 40px;font-size:12px;color:var(--mute)}

@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
@keyframes flash{0%{background:#E6F2EA}100%{background:transparent}}
@media (prefers-reduced-motion:reduce){.msg,.flash{animation:none}.dots i{animation:none;opacity:.6}.log{scroll-behavior:auto}}

@media (max-width:900px){
  .stage{grid-template-columns:1fr;gap:24px;margin-top:16px}
  .talk{position:static;height:auto;min-height:0}
  .log{max-height:none;overflow:visible}
  .post{max-width:none}
}
.q-note{margin-top:8px;font-size:12px;color:var(--warn)}

/* ホームページ欄。企画書のデザイン案（PC・幅1200で組み、枠の幅に合わせて縮小） */
.url{font-family:var(--num);font-size:12px;color:var(--mute);padding:8px 14px;border-bottom:1px solid var(--line);background:var(--snow)}
.hp-view{position:relative;overflow:hidden;overflow:clip}
.hp{width:1200px;transform-origin:0 0;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.9}
.hp h1,.hp h2,.hp h3{margin:0;font-weight:900;letter-spacing:-.03em;line-height:1.2}
.hp-hero{position:relative;height:760px;background:#0d1a13;color:#fff}
.hp-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.hp-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,20,14,.55) 0%,rgba(10,20,14,0) 28%),linear-gradient(180deg,rgba(10,20,14,0) 40%,rgba(10,20,14,.72) 100%)}
.hp-top{position:absolute;inset:0 0 auto 0;display:flex;align-items:center;justify-content:space-between;height:84px;padding:0 32px;gap:20px}
.hp-brand{font-weight:900;font-size:21px;letter-spacing:-.02em;white-space:nowrap}
.hp-brand small{font-family:var(--num);font-weight:500;font-size:12px;letter-spacing:.04em;opacity:.8;margin-left:8px}
.hp-nav{display:flex;gap:26px;font-size:14px;font-weight:500;white-space:nowrap}
.hp-util{display:flex;align-items:center;gap:20px;font-size:13px;font-weight:500;white-space:nowrap}
.hp-lang{display:flex;gap:14px;opacity:.85}
.hp-lang b{font-weight:700;text-decoration:underline;text-underline-offset:6px}
.hp-tel{font-family:var(--num);font-weight:700;font-size:15px;padding:10px 16px;border:1px solid rgba(255,255,255,.7);border-radius:2px}
.hp-copy{position:absolute;left:32px;right:32px;bottom:150px}
.hp-copy h1{font-size:70px;line-height:1.15}
.hp-copy h1 b{font-family:var(--num);font-weight:800;font-size:114px;letter-spacing:-.04em;line-height:1;vertical-align:-6px;padding:0 4px 0 6px}
.hp-copy h1 small{font-size:44px;font-weight:900;letter-spacing:-.02em;margin-left:-6px}
.hp-lead{margin-top:20px;font-size:19px;font-weight:500;letter-spacing:.02em;opacity:.95}
.hp-cta{display:flex;gap:14px;margin-top:30px}
.hp-btn{display:inline-flex;align-items:center;height:54px;padding:0 26px;border-radius:2px;font-weight:700;font-size:15px;letter-spacing:.02em}
.hp-btn.white{background:#fff;color:var(--ink)}
.hp-btn.ghost{border:1px solid rgba(255,255,255,.75)}
.hp-status{position:absolute;left:0;right:0;bottom:0;background:var(--paper);color:var(--ink);display:grid;grid-template-columns:auto 1fr auto;align-items:center;height:104px;gap:24px;padding:0 32px}
.hp-ok{display:flex;align-items:center;gap:14px;font-weight:900;font-size:24px;letter-spacing:-.02em;white-space:nowrap}
.hp-ok i{width:14px;height:14px;border-radius:50%;background:var(--line);display:inline-block}
.hp-ok.on i{background:var(--lift)}
.hp-stats{display:flex;border-left:1px solid var(--line)}
.hp-stat{padding:0 20px;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;line-height:1.2}
.hp-stat span{font-size:12px;font-weight:500;color:var(--mute);white-space:nowrap}
.hp-stat b{font-family:var(--num);font-weight:800;font-size:30px;letter-spacing:-.03em;font-variant-numeric:tabular-nums;white-space:nowrap}
.hp-stat b small{font-family:var(--jp);font-size:13px;font-weight:700;color:var(--forest);margin-left:3px;letter-spacing:0}
.hp-stat b.txt{font-family:var(--jp);font-weight:900;font-size:21px;letter-spacing:-.01em;white-space:normal;max-width:12em;line-height:1.25}
.hp-upd{text-align:right;font-size:13px;color:var(--mute);line-height:1.6;max-width:210px}
.hp-upd b{display:block;color:var(--forest);font-weight:700}
.hp-more{color:var(--ink);font-weight:700;border-bottom:1px solid var(--ink)}
.hp-today{padding:80px 32px 64px}
.hp-sh{margin-bottom:36px}
.hp-sh h2{font-size:38px}
.hp-sh p{margin-top:12px;color:var(--mute);font-size:15px}
.hp-grid{display:grid;grid-template-columns:1fr 440px;gap:60px;align-items:start}
.hp-courses{border-top:1px solid var(--ink)}
.crow{display:grid;grid-template-columns:40px 1fr 64px 128px;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}
.crow .n{font-size:22px;color:var(--mute)}
.crow h3{font-size:18px;letter-spacing:-.02em}
.crow p{font-size:13px;color:var(--mute);margin-top:2px;line-height:1.6}
.crow .lv{font-size:13px;font-weight:700;color:var(--mute)}
.crow .st{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;justify-content:flex-end;white-space:nowrap}
.crow .st i{width:9px;height:9px;border-radius:50%;background:var(--line);display:inline-block}
.crow.open .st i{background:var(--field)}
.crow.partial .st i{background:#D9A52B}
.crow.wait .st,.crow.closed .st,.crow.unknown .st{color:var(--mute)}
.hp-extra{display:flex;gap:32px;margin-top:20px;font-size:14px;color:var(--mute)}
.hp-extra b{color:var(--ink);font-weight:700;margin-right:6px}
.hp-voice img{width:100%;height:300px;object-fit:cover;background:var(--snow)}
.hp-who{display:flex;justify-content:space-between;align-items:baseline;margin:16px 0 8px;font-size:13px;color:var(--mute)}
.hp-who b{color:var(--forest);font-weight:700}
.hp-voice q{quotes:none;display:block;font-weight:700;font-size:19px;line-height:1.7;letter-spacing:-.01em}
.hp-voice q.wait{color:var(--mute);font-weight:500;font-size:16px}
.flash{animation:flash 1.6s ease-out}

/* 枠が狭いとき（スマホ）は縮小せず、同じ部品を縦に積む */
.hp-view.narrow .hp{width:auto;transform:none!important}
.hp-view.narrow .hp-hero{height:auto;padding:16px 16px 0}
.hp-view.narrow .hp-top{position:relative;height:auto;padding:0}
.hp-view.narrow .hp-brand{font-size:16px}
.hp-view.narrow .hp-nav,.hp-view.narrow .hp-util,.hp-view.narrow .hp-cta,.hp-view.narrow .hp-lead{display:none}
.hp-view.narrow .hp-copy{position:relative;left:auto;right:auto;bottom:auto;padding:90px 0 22px}
.hp-view.narrow .hp-copy h1{font-size:26px}
.hp-view.narrow .hp-copy h1 b{font-size:46px;vertical-align:-3px}
.hp-view.narrow .hp-copy h1 small{font-size:18px;margin-left:-2px}
.hp-view.narrow .hp-status{position:relative;height:auto;grid-template-columns:1fr;gap:12px;padding:16px;margin:0 -16px}
.hp-view.narrow .hp-ok{font-size:19px}
.hp-view.narrow .hp-stats{border-left:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 0}
.hp-view.narrow .hp-stat{padding:0 12px 0 0;border-right:0}
.hp-view.narrow .hp-stat b{font-size:24px}
.hp-view.narrow .hp-stat b.txt{font-size:16px;white-space:normal}
.hp-view.narrow .hp-upd{text-align:left;white-space:normal}
.hp-view.narrow .hp-today{padding:28px 16px 24px}
.hp-view.narrow .hp-sh h2{font-size:24px}
.hp-view.narrow .hp-sh p{font-size:13px}
.hp-view.narrow .hp-grid{grid-template-columns:1fr;gap:24px}
.hp-view.narrow .crow{grid-template-columns:24px 1fr auto;gap:10px;padding:12px 0}
.hp-view.narrow .crow .lv{display:none}
.hp-view.narrow .crow h3{font-size:16px}
.hp-view.narrow .hp-extra{flex-wrap:wrap;gap:6px 20px;font-size:13px}
.hp-view.narrow .hp-voice img{height:180px}
.hp-view.narrow .hp-voice q{font-size:16px}
.hp-view.narrow .hp-shade{background:linear-gradient(180deg,rgba(10,20,14,.5) 0%,rgba(10,20,14,.35) 45%,rgba(10,20,14,.7) 100%)}
.hp-stat{flex:none}
.hp-stat .nb{display:inline-block}
.hp-view.narrow .hp-stat{flex:initial}
.hp-stat b .nb{font-size:inherit;color:inherit;font-weight:inherit;white-space:nowrap}
