:root{--navy:#1f2d6b;--deep:#16204d;--ink:#1c2233;--sub:#4f586b;--muted:#5f677a;--line:#dfe3ec;--line2:#eef0f5;--field:#c9d0e0;--pale:#f4f6fb;--head:#fafbfd;--red:#c83a23;--redbg:#fdf3f1;--redline:#f0c9c1}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--ink);font-family:'Noto Sans JP',system-ui,sans-serif;font-size:15px;line-height:1.7;overflow-x:clip}
a{color:var(--navy)}a:hover{color:var(--deep)}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid rgba(31,45,107,.35);outline-offset:2px}
.wrap{max-width:1120px;margin:0 auto;padding-left:24px;padding-right:24px}
.gothic{font-family:'Zen Kaku Gothic New','Noto Sans JP',sans-serif}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* 上の帯とヘッダー */
.util{background:var(--deep);color:#e6e9f2;font-size:12px}
.util .wrap{padding-top:6px;padding-bottom:6px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px}
.util nav{display:flex;flex-wrap:wrap;gap:16px}
.util a{color:#e6e9f2;text-decoration:none}.util a:hover{text-decoration:underline;color:#fff}
.site-head{background:#fff;border-bottom:1px solid var(--line)}
.site-head .wrap{padding-top:14px;padding-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.mark{width:44px;height:44px;flex:none;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font-family:'Zen Old Mincho',serif;font-size:26px;font-weight:700;border-radius:4px;line-height:1}
.brand-name{display:flex;flex-direction:column;line-height:1.3}
.brand-name b{font-family:'Zen Kaku Gothic New',sans-serif;font-weight:700;font-size:22px;color:var(--navy)}
.brand-name small{font-size:11px;color:var(--muted)}

/* ヒーロー */
.hero{background:var(--pale);border-bottom:1px solid var(--line)}
.hero .wrap{padding-top:40px;padding-bottom:40px;display:flex;flex-wrap:wrap;align-items:center;gap:32px}
.hero-text{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:14px}
.eyebrow{margin:0;font-size:13px;font-weight:700;color:var(--navy);letter-spacing:.08em}
.hero h1{margin:0;font-family:'Zen Kaku Gothic New',sans-serif;font-size:38px;line-height:1.35;color:var(--deep)}
.lead{margin:0;font-size:15px;line-height:1.9;color:var(--sub)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#fff;border:1px solid var(--field);border-radius:999px;font-size:13px;font-weight:500;color:var(--navy)}
.src-line{margin:0;font-size:12px;color:var(--muted)}
.sheet{flex:1 1 300px;max-width:380px;background:#fff;border:1px solid var(--field);border-radius:4px;box-shadow:0 10px 28px rgba(22,32,77,.08);padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.sheet-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid var(--navy);padding-bottom:8px}
.sheet-head b{font-family:'Zen Old Mincho',serif;font-weight:700;color:var(--deep);font-size:16px}
.sheet-head small{font-size:11px;color:var(--muted)}
.sheet-row{display:flex;justify-content:space-between;font-size:14px;border-bottom:1px solid var(--line2);padding-bottom:6px}
.sheet-row b{font-weight:700}
.sheet-total{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:4px}
.sheet-total span{display:flex;flex-direction:column;line-height:1.3}
.sheet-total small{font-size:12px;color:var(--sub)}
.sheet-total strong{font-family:'Zen Kaku Gothic New',sans-serif;font-size:34px;font-weight:700;color:var(--deep)}
.sheet-note{margin:0;font-size:12px;color:var(--muted);line-height:1.6}
.stamp{border:3px solid var(--red);border-radius:50%;color:var(--red);display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-8deg);font-family:'Zen Old Mincho',serif;line-height:1.05;flex:none}
.stamp small{font-weight:700}
.stamp b{font-weight:700}
.stamp.s64{width:64px;height:64px}.stamp.s64 small{font-size:10px}.stamp.s64 b{font-size:28px}
.stamp.s88{width:88px;height:88px}.stamp.s88 small{font-size:12px}.stamp.s88 b{font-size:38px}
.stamp.off{border-color:var(--line);color:var(--muted)}

/* ツール */
.tool{padding-top:32px;padding-bottom:48px;display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.tool-main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:20px}
.tool-side{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:16px}
@media(min-width:900px){.tool-side{position:sticky;top:16px}}
.card{border:1px solid var(--line);border-radius:10px;background:#fff}
.card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:14px 20px;border-bottom:1px solid var(--line);background:var(--head);border-radius:10px 10px 0 0}
.card-head h2{margin:0;font-size:17px;font-family:'Zen Kaku Gothic New',sans-serif;color:var(--deep)}
.card-head .t{display:flex;align-items:center;gap:10px}
.step{background:var(--navy);color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:4px;letter-spacing:.06em}
.card-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:14px}
.saved{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--sub)}
.q-row{display:flex;flex-wrap:wrap;gap:16px 32px}
.q{display:flex;flex-direction:column;gap:8px}
.q-label{font-size:14px;font-weight:700}
.seg{display:flex;border:1px solid var(--navy);border-radius:8px;overflow:hidden;width:max-content;max-width:100%}
.seg button{min-height:44px;padding:0 20px;border:0;border-left:1px solid var(--navy);background:#fff;color:var(--navy);font-size:15px;cursor:pointer}
.seg button:first-child{border-left:0}
.seg button[aria-pressed=true]{background:var(--navy);color:#fff;font-weight:700}
.tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);margin:0 -20px 6px;padding:0 20px}
.tabs button{min-height:48px;padding:0 14px;border:0;border-bottom:3px solid transparent;background:none;font-size:15px;color:var(--sub);cursor:pointer}
.tabs button[aria-selected=true]{border-bottom-color:var(--navy);font-weight:700;color:var(--navy)}
.tabs small{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px}
.tabs .later{font-size:11px;font-weight:700;color:var(--red);border:1px solid var(--red);border-radius:4px;padding:0 5px;margin-left:6px}
.rows-head{display:flex;gap:12px;font-size:12px;color:var(--muted);padding:6px 0;border-bottom:1px solid var(--line)}
.rows-head .c1{width:108px}.rows-head .c2{flex:1 1 150px}.rows-head .c3{width:236px}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:6px 0;border-bottom:1px solid var(--line2)}
.row select{width:108px;min-height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px;color:var(--muted);padding:0 6px}
.row input{flex:1 1 150px;min-width:0;min-height:40px;border:1px solid transparent;border-radius:6px;background:transparent;font-size:15px;font-weight:500;padding:0 8px}
.row input:hover{border-color:var(--line)}
.row input:focus{border-color:var(--field);background:#fff}
.picks{display:flex;gap:4px;align-items:center}
.pk{width:44px;height:44px;border:1px solid var(--field);background:#fff;color:var(--ink);border-radius:6px;font-size:16px;cursor:pointer}
.pk[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:700}
.del{width:36px;height:44px;border:0;background:none;color:var(--muted);font-size:18px;cursor:pointer;border-radius:6px}
.del:hover{color:var(--red)}
.tool-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}
.btn-add{min-height:44px;padding:0 18px;border:1px dashed #8c96ad;border-radius:8px;background:#fff;color:var(--navy);font-size:14px;font-weight:700;cursor:pointer}
.btn-link{min-height:44px;padding:0 12px;border:0;background:none;color:var(--sub);font-size:13px;text-decoration:underline;cursor:pointer}
.btn-link.warn{color:var(--red);font-weight:700}
.small{margin:0;font-size:12px;color:var(--muted);line-height:1.7}

/* 結果 */
.result{border:1px solid var(--navy);border-radius:10px;overflow:hidden;background:#fff}
.result-head{background:var(--navy);color:#fff;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.result-head b{font-size:15px}
.result-head small{font-size:12px;color:#d5daea}
.result-body{padding:20px;display:flex;flex-direction:column;gap:16px}
.score{display:flex;align-items:center;justify-content:space-between;gap:16px}
.score-num{display:flex;align-items:baseline;gap:6px}
.score-num strong{font-family:'Zen Kaku Gothic New',sans-serif;font-size:68px;font-weight:700;color:var(--deep);line-height:1}
.score-num span{font-size:14px;color:var(--muted)}
.how{margin:0;font-size:13px;color:var(--sub);background:var(--pale);border-radius:6px;padding:10px 12px;line-height:1.7}
.how strong{color:var(--deep)}
.scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;font-size:11px;text-align:center;line-height:1.4}
.scale span{padding:6px 0;border:1px solid var(--line);border-radius:4px;color:var(--sub)}
.scale span strong{font-size:13px}
.scale span.on{border-color:var(--red);background:var(--red);color:#fff}
.bars{display:flex;flex-direction:column;gap:8px}
.bars p{margin:0;font-size:13px;font-weight:700}
.bar{display:grid;grid-template-columns:64px minmax(0,1fr) 30px;align-items:center;gap:8px;font-size:12px}
.bar>span:first-child{color:var(--sub)}
.bar i{height:8px;background:var(--line2);border-radius:4px;overflow:hidden;display:block}
.bar i b{display:block;height:100%;background:var(--navy)}
.bar>span:last-child{text-align:right;font-weight:700}
.reverse{border:1px solid var(--line);border-radius:10px;background:#fff;padding:20px;display:flex;flex-direction:column;gap:14px}
.reverse h2{margin:0;font-size:17px;font-family:'Zen Kaku Gothic New',sans-serif;color:var(--deep);display:flex;align-items:center;gap:8px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fields label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500}
.fields select,.fields input{min-height:44px;border:1px solid var(--field);border-radius:6px;padding:0 10px;font-size:16px;background:#fff;width:100%}
.answer{background:var(--redbg);border:1px solid var(--redline);border-radius:8px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.answer p{margin:0;font-size:15px;line-height:1.6}
.answer .k{font-size:13px;color:var(--sub)}
.answer strong.big{color:var(--red);font-size:24px}
.answer .ex{font-size:12px;color:var(--sub)}

/* 計算ルール・約束 */
.band{background:var(--pale);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.band .wrap{padding-top:44px;padding-bottom:44px;display:flex;flex-direction:column;gap:20px}
.sec-title{margin:0;font-size:26px;font-family:'Zen Kaku Gothic New',sans-serif;color:var(--deep)}
.sec-lead{margin:6px 0 0;font-size:14px;color:var(--sub)}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.box{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:8px}
.box h3{margin:0;font-size:17px;color:var(--deep)}
.box p{margin:0;font-size:14px;color:var(--sub)}
.num{width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.src{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px 16px;font-size:13px}
.src .tag{font-size:11px;font-weight:700;color:#fff;background:var(--navy);border-radius:4px;padding:1px 8px}
.src .d{color:var(--muted)}
.nowraps{display:flex;flex-wrap:wrap;gap:0 14px}.nowraps span{white-space:nowrap}
.nw{white-space:nowrap}
.promise .box h3{font-size:16px}
.promise .box p{font-size:13px}

/* 下層ページ */
.page{max-width:820px;margin:0 auto;padding:40px 24px 64px}
.page h1{margin:0 0 8px;font-family:'Zen Kaku Gothic New',sans-serif;font-size:30px;color:var(--deep);line-height:1.4}
.page h2{margin:36px 0 10px;font-family:'Zen Kaku Gothic New',sans-serif;font-size:20px;color:var(--deep);padding-bottom:6px;border-bottom:2px solid var(--navy)}
.page h3{margin:20px 0 6px;font-size:16px;color:var(--deep)}
.page p,.page li{font-size:15px;line-height:1.9}
.page ul,.page ol{padding-left:1.4em}
.page .meta{font-size:13px;color:var(--muted);margin:0}
.info{width:100%;border-collapse:collapse;font-size:15px}
.info th,.info td{border-bottom:1px solid var(--line);padding:12px 10px;text-align:left;vertical-align:top}
.info th{width:9em;background:var(--pale);font-weight:700;color:var(--deep);white-space:nowrap}
.crumb{font-size:12px;color:var(--muted);margin:0 0 18px}
.crumb a{color:var(--muted)}

/* フッター */
.site-foot{background:var(--deep);color:#d5daea;font-size:13px}
.site-foot .wrap{padding-top:40px;padding-bottom:24px;display:flex;flex-direction:column;gap:24px}
.foot-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px 40px}
.foot-brand{display:flex;flex-direction:column;gap:8px;max-width:340px}
.foot-brand .row1{display:flex;align-items:center;gap:10px}
.foot-brand .mark{width:36px;height:36px;font-size:21px;background:#fff;color:var(--navy)}
.foot-brand b{font-family:'Zen Kaku Gothic New',sans-serif;font-size:19px;font-weight:700;color:#fff}
.foot-brand p{margin:0;line-height:1.7}
.foot-links{display:flex;flex-direction:column;gap:6px}
.foot-links span{color:#fff;font-weight:700}
.foot-links a{color:#d5daea;text-decoration:none}.foot-links a:hover{color:#fff;text-decoration:underline}
.foot-bottom{border-top:1px solid #2c3a75;padding-top:16px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;font-size:12px}

@media(max-width:640px){
  .wrap{padding-left:16px;padding-right:16px}
  .hero .wrap{padding-top:28px;padding-bottom:28px;gap:24px}
  .hero .wrap{padding-top:22px;padding-bottom:24px}
  .hero-text{gap:10px}
  .hero h1{font-size:26px}
  .lead{font-size:14px;line-height:1.8}
  .chip{font-size:12px;padding:4px 10px}
  .rule-src{display:none}
  .sheet{display:none}
  .tool{padding-top:20px;gap:16px}
  .card-head,.card-body{padding-left:16px;padding-right:16px}
  .tabs{margin:0 -16px 6px;padding:0 16px}
  .tabs button{padding:0 10px;font-size:14px}
  .rows-head{display:none}
  .row select{width:96px}
  .picks{width:100%;justify-content:space-between}
  .pk{flex:1 1 0;width:auto;max-width:56px}
  .score-num strong{font-size:56px}
  .sec-title{font-size:22px}
  .page{padding:28px 16px 48px}
  .page h1{font-size:24px}
  .info th{width:7em}
}

/* サイト全体のPR表記（A8のルール：ファーストビューに表示） */
.util-l{display:flex;flex-wrap:wrap;gap:2px 12px}
.pr-site{color:#c9cfde}
