@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root{
  --brand:#1F4E96;       /* 主色：信頼感のある青 */
  --brand-dark:#163A72;
  --brand-tint:#EAF0F9;  /* 主色の薄い面 */
  --accent:#138A7E;      /* 差し色：主な悩み・完了 */
  --accent-tint:#E4F3F1;
  --text:#1C2533;
  --sub:#5B6676;
  --line:#DCE2EA;
  --surface:#F5F7FA;
  --white:#FFFFFF;
  --heading:'BIZ UDPGothic','Noto Sans JP',sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--surface)}
body{
  font-family:'Noto Sans JP',sans-serif;
  color:var(--text);background:var(--surface);
  line-height:1.75;font-size:15px;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
:focus-visible{outline:3px solid #8DB0E6;outline-offset:2px;border-radius:6px}
.wrap{max-width:440px;margin:0 auto;min-height:100svh;display:flex;flex-direction:column;background:var(--white)}

/* ---------- ヘッダー・フッター ---------- */
.site-header{
  display:flex;align-items:center;gap:10px;
  padding:14px 20px;border-bottom:1px solid var(--line);background:var(--white);
}
.logo{width:28px;height:28px;flex:none}
.site-name{font-family:var(--heading);font-weight:700;font-size:15px;text-decoration:none}
.site-footer{
  margin-top:auto;padding:24px 20px 32px;border-top:1px solid var(--line);
  font-size:12px;color:var(--sub);background:var(--surface);
}
.site-footer nav{display:flex;flex-wrap:wrap;gap:6px 18px}
.site-footer a{text-decoration:none}
.site-footer p{margin-top:10px}

/* ---------- ボタン ---------- */
.btn{
  display:block;width:100%;border:none;cursor:pointer;text-align:center;text-decoration:none;
  font-family:var(--heading);font-weight:700;font-size:17px;
  padding:15px 18px;border-radius:10px;
  background:var(--brand);color:var(--white);
}
.btn:hover{background:var(--brand-dark)}
.btn.secondary{background:var(--white);color:var(--brand);border:1.5px solid var(--brand)}
.btn.secondary:hover{background:var(--brand-tint)}

/* ---------- トップ ---------- */
.hero{padding:32px 20px 28px;background:linear-gradient(180deg,var(--brand-tint) 0%,var(--white) 100%)}
.hero-kicker{font-size:13px;color:var(--brand);font-weight:700;margin-bottom:10px}
.hero h1{
  font-family:var(--heading);font-weight:700;
  font-size:clamp(22px,7.1vw,30px);line-height:1.45;letter-spacing:.01em;
  margin-bottom:14px;
}
.hero .lead{color:var(--text);margin-bottom:20px}
.facts{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:22px}
.facts li{
  background:var(--white);border:1px solid var(--line);border-radius:10px;
  padding:10px 6px;text-align:center;font-size:12px;color:var(--sub);line-height:1.4;
}
.facts strong{display:block;font-family:var(--heading);font-size:16px;color:var(--text)}
.hero .note{font-size:12px;color:var(--sub);margin-top:12px}

.block{padding:28px 20px;border-top:1px solid var(--line)}
.block h2{font-family:var(--heading);font-size:18px;margin-bottom:14px}
.check-list{list-style:none;display:flex;flex-direction:column;gap:12px}
.check-list li{display:grid;grid-template-columns:22px 1fr;gap:10px;align-items:start}
.check-list svg{margin-top:4px}
.block .small{font-size:13px;color:var(--sub);margin-top:16px}

/* ---------- 診断（チャット） ---------- */
.quiz-head{
  position:sticky;top:0;z-index:5;background:var(--white);
  border-bottom:1px solid var(--line);padding:10px 16px;
}
.quiz-bar{display:flex;align-items:center;gap:12px}
.back{
  background:none;border:none;cursor:pointer;font-family:inherit;font-size:14px;color:var(--brand);
  padding:6px 2px;white-space:nowrap;
}
.back[disabled]{color:#B3BCC8;cursor:default}
.progress{flex:1;height:6px;background:var(--line);border-radius:999px;overflow:hidden}
.progress span{display:block;height:100%;background:var(--brand);border-radius:999px;transition:width .2s ease}
.count{font-size:13px;font-weight:700;color:var(--sub);min-width:40px;text-align:right}

.chat-area{padding:20px 16px 28px;display:flex;flex-direction:column;gap:12px;background:var(--surface);flex:1}
.row{display:flex;gap:8px;align-items:flex-start}
.row.me{justify-content:flex-end}
.row .logo{width:32px;height:32px;margin-top:2px}
.bubble{max-width:82%;padding:11px 14px;border-radius:12px;font-size:15px;line-height:1.65}
.row.bot .bubble{background:var(--white);border:1px solid var(--line);border-top-left-radius:4px}
.row.bot.past .bubble{color:var(--sub)}
.row.me .bubble{background:var(--brand);color:var(--white);border-top-right-radius:4px}
.divider{
  align-self:center;text-align:center;
  font-size:12px;color:var(--brand);background:var(--brand-tint);
  border-radius:999px;padding:5px 14px;margin:4px 0;
}

.choices{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.choice{
  width:100%;text-align:left;cursor:pointer;
  font-family:inherit;font-size:15px;font-weight:500;color:var(--text);
  background:var(--white);border:1.5px solid var(--line);border-radius:10px;
  padding:13px 16px;
}
.choice:hover{border-color:var(--brand);background:var(--brand-tint)}
.select-wrap{display:flex;gap:8px;margin-top:4px}
.select{
  flex:1;min-width:0;font-family:inherit;font-size:16px;color:var(--text);
  padding:12px;border-radius:10px;border:1.5px solid var(--line);background:var(--white);
}
.go{
  border:none;cursor:pointer;border-radius:10px;padding:0 18px;flex:none;
  font-family:var(--heading);font-weight:700;font-size:15px;
  background:var(--brand);color:var(--white);
}
.go[disabled]{background:#B3BCC8;cursor:default}
.hint{font-size:12px;color:var(--sub);margin-top:4px}

/* ---------- 結果 ---------- */
.summary{margin:16px 16px 0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--white)}
.summary-head{background:var(--brand);color:var(--white);padding:18px 18px 16px}
.summary-head p{font-size:12px;opacity:.85}
.summary-head h1{font-family:var(--heading);font-size:clamp(21px,6.4vw,25px);line-height:1.4;margin-top:2px}
.summary-body{padding:16px 18px 18px}
.summary-body h2{font-size:13px;color:var(--sub);font-weight:700;margin-bottom:6px}
.summary-body ul{padding-left:1.1em;margin-bottom:14px}
.summary-body li{margin-bottom:4px}
.first-step{
  background:var(--accent-tint);border-radius:10px;padding:12px 14px;
}
.first-step h2{color:var(--accent);margin-bottom:2px}
.first-step strong{font-family:var(--heading);font-size:16px;display:block}
.first-step span{font-size:13px;color:var(--sub)}
.summary .disclaimer-inline{font-size:12px;color:var(--sub);margin-top:12px}

.r-section{padding:28px 16px 0}
.r-section h2{font-family:var(--heading);font-size:18px;margin-bottom:12px}
.meters{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.meter{display:grid;grid-template-columns:4.6em 1fr 4.2em;align-items:center;gap:10px;font-size:14px}
.meter-track{height:8px;background:var(--surface);border-radius:999px;overflow:hidden}
.meter-fill{height:100%;background:#8AA3C8;border-radius:999px}
.meter.main .meter-fill{background:var(--accent)}
.meter.main span:first-child{font-weight:700}
.meter-val{font-size:12px;color:var(--sub);text-align:right}
.meter-note{font-size:12px;color:var(--sub);margin-top:8px}

.acc{background:var(--white);border:1px solid var(--line);border-radius:12px;margin-bottom:10px}
.acc summary{
  list-style:none;cursor:pointer;padding:14px 44px 14px 16px;position:relative;
  font-family:var(--heading);font-weight:700;font-size:15px;
}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{
  content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;
  border-right:2px solid var(--brand);border-bottom:2px solid var(--brand);
  transform:translateY(-70%) rotate(45deg);transition:transform .15s ease;
}
.acc[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.acc summary small{display:block;font-family:'Noto Sans JP',sans-serif;font-weight:400;font-size:12px;color:var(--sub)}
.acc-body{padding:0 16px 16px;font-size:14px}
.acc-body ul{padding-left:1.1em}
.acc-body li{margin-bottom:8px}
.acc-body b{font-weight:700}
.tag{
  display:inline-block;font-size:11px;font-weight:700;border-radius:4px;padding:1px 6px;margin-right:6px;
  background:var(--accent-tint);color:var(--accent);vertical-align:2px;
}
.tag.sub{background:var(--brand-tint);color:var(--brand)}

.offer{
  border:1.5px dashed #B3BCC8;border-radius:12px;padding:22px 14px;text-align:center;
  color:var(--sub);font-size:14px;background:var(--white);
}
.offer small{display:block;font-size:12px;margin-top:2px}
.pr-note{font-size:12px;color:var(--sub);margin-top:8px}
.share{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.share .btn{font-size:15px;padding:13px 8px}
.disclaimer{font-size:12px;color:var(--sub);padding:20px 16px 28px}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- ぺん（Threadsアカウントと共通のキャラクター） ---------- */
.pen-mark{
  width:34px;height:34px;flex:none;border-radius:50%;
  background:var(--brand-tint);border:1px solid var(--line);
  display:grid;place-items:center;overflow:hidden;
}
.pen-mark img{width:30px;height:30px;object-fit:contain}
.site-brand{display:flex;flex-direction:column;line-height:1.3}
.site-brand small{font-size:11px;color:var(--sub)}
.hero-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:6px}
.hero-pen{width:72px;height:auto;flex:none;margin-bottom:-4px}
.row .pen-mark{width:32px;height:32px;margin-top:2px}
.row .pen-mark img{width:28px;height:28px}

/* ---------- 紹介枠（行動段階で位置が変わる） ---------- */
.offer-card{background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.offer-card .pr-badge{
  display:inline-block;font-size:11px;font-weight:700;color:var(--sub);
  border:1px solid var(--line);border-radius:4px;padding:0 6px;margin-bottom:6px;
}
.offer-main{padding:16px}
.offer-name{font-family:var(--heading);font-weight:700;font-size:17px;margin-bottom:6px}
.offer-reason{font-size:14px;margin-bottom:12px}
.offer-steps{background:var(--surface);border-radius:8px;padding:10px 12px;font-size:13px;margin-bottom:14px}
.offer-steps b{display:block;font-size:12px;color:var(--sub);margin-bottom:2px}
.offer-steps ol{padding-left:1.2em}
.offer-cta[aria-disabled="true"]{background:#B3BCC8;cursor:default;pointer-events:none}
.offer-foot{border-top:1px solid var(--line);padding:10px 16px;font-size:12px;color:var(--sub);background:var(--surface)}
.offer-card.pending .offer-name,
.offer-card.pending .offer-reason,
.offer-card.pending .offer-steps li{color:#8A94A3}

/* 試作の表示確認用ツールバー（本番では削除） */
.proto-bar{
  margin:12px 16px 0;padding:8px 10px;border:1px dashed #B3BCC8;border-radius:8px;
  font-size:12px;color:var(--sub);display:flex;flex-wrap:wrap;gap:6px;align-items:center;
}
.proto-bar a{padding:3px 8px;border-radius:6px;text-decoration:none;border:1px solid var(--line);background:var(--white)}
.proto-bar a.on{background:var(--brand);color:var(--white);border-color:var(--brand)}

.nobr{white-space:nowrap}
@media (max-width:340px){
  .hero-pen{width:56px}
  .hero-kicker{font-size:12px;white-space:nowrap}
}

/* ---------- 結果ページ（簡略版・2026-10-17(6)） ---------- */
.type-desc{font-size:15px;margin-bottom:14px}
.offer-why{font-size:12px;font-weight:700;color:var(--accent);margin-bottom:2px}
.offer-steps ul{padding-left:1.1em}
.offer-card + .offer-card,.next-card + .offer-card{margin-top:12px}
.offer-card.sub .offer-name{font-size:15px}
.offer-card.sub .offer-main{padding:14px 16px}
.next-card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:16px}
.next-title{font-family:var(--heading);font-weight:700;font-size:16px;margin-bottom:4px}
.next-text{font-size:14px;color:var(--text);margin-bottom:12px}
.next-card .btn{font-size:15px;padding:12px 14px}
.detail-body{display:flex;flex-direction:column;gap:22px}
.detail-sec h3{font-family:var(--heading);font-size:15px;margin-bottom:8px;scroll-margin-top:12px}
.detail-sec{scroll-margin-top:12px}
.tip-group + .tip-group{margin-top:10px}
.tip-head{font-weight:700;margin-bottom:6px}
.share-status{font-size:12px;color:var(--accent);text-align:center;min-height:0;margin-top:6px}
.share-status:empty{display:none}
.follow{text-align:center;margin-top:14px}
.follow a{color:var(--brand);font-weight:700}
.empty{padding:40px 20px;text-align:center}
.empty h1{font-family:var(--heading);font-size:20px;margin-bottom:8px}
.empty p{font-size:14px;color:var(--sub);margin-bottom:18px}
.resume{text-align:center;font-size:14px;margin-top:12px}
.resume a{color:var(--brand);font-weight:700}

/* 見出しの最後の1〜2文字だけが次の行に落ちないようにする */
.first-step strong,.next-title,.offer-name,.summary-head h1,.detail-sec h3{text-wrap:balance;word-break:auto-phrase}

/* ---------- トップ（2026-10-18 落ち着いたデザインに変更） ---------- */
.top{--navy:#14284B}
.top-hero{padding:28px 20px 22px;background:var(--white)}
.top-kicker{
  font-size:13px;font-weight:700;color:var(--brand);letter-spacing:.04em;
  padding-left:10px;border-left:3px solid var(--brand);line-height:1.4;margin-bottom:14px;
}
.top-title{
  font-family:var(--heading);font-weight:700;color:var(--navy);
  font-size:clamp(23px,7.2vw,29px);line-height:1.4;letter-spacing:.01em;margin-bottom:16px;
}
.top-lead{font-size:15px;line-height:1.85;color:#3A4556}
.top-points{margin:0 20px;padding:18px 0 4px;border-top:1px solid var(--line)}
.top-points h2{font-family:var(--heading);font-size:15px;color:var(--navy);margin-bottom:12px}
.top-points ol{list-style:none}
.top-points li{display:grid;grid-template-columns:34px 1fr;gap:8px;padding:10px 0;border-bottom:1px solid #EDF0F4}
.top-points li:last-child{border-bottom:none}
.top-points .num{font-family:var(--heading);font-weight:700;font-size:13px;color:var(--brand);line-height:1.9}
.top-points p{font-size:13px;color:var(--sub);line-height:1.7}
.top-points b{display:block;font-size:15px;color:var(--text);font-weight:700;margin-bottom:1px}
.top-start{padding:14px 20px 36px}
.top-meta{display:flex;justify-content:center;gap:0;font-size:12px;color:var(--sub);margin-bottom:10px}
.top-meta span + span::before{content:"";display:inline-block;width:1px;height:10px;background:#C5CDD8;margin:0 12px;vertical-align:-1px}
.top-cta{background:var(--navy);font-size:16px;padding:15px 18px;border-radius:8px;letter-spacing:.03em}
.top-cta:hover{background:#0E1D38}
.top-note{font-size:12px;line-height:1.7;color:var(--sub);margin-top:16px;padding-top:14px;border-top:1px solid #EDF0F4}
.top-lead,.top-points p,.top-note{text-wrap:pretty;word-break:auto-phrase}

/* ---------- 結果ページ（2026-10-18 さらに簡略化） ---------- */
.res{padding:0 16px 8px}
.res-card{margin-top:16px;border:1px solid var(--line);border-radius:14px;padding:18px 18px 16px;background:var(--white);border-top:4px solid var(--brand)}
.res-label{font-size:12px;color:var(--sub)}
.res-type{font-family:var(--heading);font-weight:700;color:#14284B;font-size:clamp(22px,6.6vw,26px);line-height:1.35;margin:2px 0 8px;text-wrap:balance;word-break:auto-phrase}
.res-desc{font-size:14px;line-height:1.75;color:#3A4556}
.res-step{margin-top:14px;padding-top:12px;border-top:1px solid #EDF0F4}
.res-step-label{font-size:12px;font-weight:700;color:var(--accent);margin-bottom:2px}
.res-step-title{font-family:var(--heading);font-weight:700;font-size:16px;line-height:1.5;text-wrap:balance;word-break:auto-phrase}
.res-step-body{font-size:13px;line-height:1.7;color:var(--sub);margin-top:2px}
.res-offer{margin-top:20px}
.res-offer h2{font-family:var(--heading);font-size:15px;color:#14284B;margin-bottom:8px}
.res .offer-card{padding:14px 16px}
.offer-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.res .offer-card .pr-badge{margin-bottom:0}
.res .offer-name{font-size:16px;margin-bottom:0}
.res .offer-why{margin-bottom:2px}
.res .offer-reason{font-size:13px;margin-bottom:8px}
.offer-flow{font-size:12px;line-height:1.65;color:var(--sub);margin-bottom:12px}
.offer-flow b{display:block;color:var(--text);font-size:12px}
.res .offer-cta{font-size:15px;padding:12px 14px}
.res .offer-foot{border-top:none;background:none;padding:8px 0 0;font-size:11px;line-height:1.6}
.res .offer-card.pending .offer-name{color:#8A94A3}
.res-detail{margin-top:20px}
.res-detail .acc-body h3{font-family:var(--heading);font-size:14px;margin:4px 0 8px}
.res-detail .meters{border:none;padding:0;gap:10px}
#tipsWrap{margin-top:16px}
.res-tips{list-style:none;padding:0!important}
.res-tips li{font-size:13px;color:var(--sub);margin-bottom:8px}
.res-tips b{display:block;color:var(--text);font-size:14px}
.res-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.res-actions .btn{font-size:14px;padding:12px 8px;border-radius:8px}
.res-follow{font-size:12px;color:var(--sub);text-align:center;margin-top:12px}
.res-follow a{color:var(--brand);font-weight:700}
.res-note{font-size:11px;line-height:1.6;color:var(--sub);margin-top:14px;padding:12px 0 20px;border-top:1px solid #EDF0F4}
.proto-bar{padding:6px 10px}

/* ---------- 広告カード（2026-10-18 PR表記を最小限に） ---------- */
.res .offer-card .pr-badge{
  font-size:11px;font-weight:700;letter-spacing:.06em;line-height:1;
  color:#fff;background:#5B6676;border:none;border-radius:3px;padding:4px 6px;flex:none;
}
.res .offer-head{margin-bottom:6px}
.res .offer-reason{font-size:13px;margin-bottom:6px;color:var(--text)}
.offer-note{font-size:12px;line-height:1.6;color:var(--sub);margin-bottom:12px}
.offer-notice{font-size:11px;line-height:1.6;color:var(--sub);margin:-6px 0 12px}

/* ---------- 運営者情報・プライバシーポリシー・広告について ---------- */
.doc{padding:28px 20px 36px}
.doc h1{font-family:var(--heading);font-size:22px;color:#14284B;margin-bottom:18px}
.doc h2{font-family:var(--heading);font-size:16px;color:#14284B;margin:26px 0 8px}
.doc p,.doc li{font-size:14px;line-height:1.85;color:#3A4556}
.doc p + p{margin-top:8px}
.doc ul{padding-left:1.2em;margin-top:6px}
.doc li{margin-bottom:4px}
.doc a{color:var(--brand)}
.doc-table{display:grid;grid-template-columns:7em 1fr;border-top:1px solid var(--line);font-size:14px}
.doc-table dt,.doc-table dd{padding:10px 0;border-bottom:1px solid var(--line)}
.doc-table dt{color:var(--sub);font-weight:700}
.doc-date{margin-top:26px;font-size:13px;color:var(--sub)}
.doc-back{margin-top:30px;font-size:14px}
