/* 販売ページ。下の部品(購入の確認、特商法、教材のカード)は 2026-10-05 の最低限の版から。2026-10-09 に問題集のページ(.lp)を後ろに足した。管理画面は store.css のまま */
:root{--bg:#ffffff;--ink:#1b1d22;--muted:#6b717c;--line:#e3e6eb;--soft:#f5f6f8;--danger:#c0392b;
  --sans:"BIZ UDPGothic","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.85 var(--sans)}
[hidden]{display:none!important}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
h1,h2,h3,p{margin:0}
.page{max-width:680px;margin:0 auto;padding:28px 20px 48px;display:flex;flex-direction:column;gap:44px}
.top{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.site-name{text-decoration:none;color:var(--muted)}
.head h1{font-size:28px;line-height:1.4;margin-bottom:10px}
.note{font-size:13px;color:var(--muted);margin-top:10px}
section>h2{font-size:14px;color:var(--muted);font-weight:700;border-bottom:1px solid var(--ink);padding-bottom:6px;margin-bottom:4px}
.offer-note{font-size:13px;color:var(--muted);padding-top:10px}
.offer-note:empty{display:none}
.legal-mode .head,.legal-mode #items,.legal-mode .faq{display:none}

/* 教材(管理画面で足した商品が並ぶ) */
.item-card{display:grid;grid-template-columns:1fr auto;gap:4px 16px;align-items:start;padding:18px 0;border-bottom:1px solid var(--line)}
.item-card>*{grid-column:1}
.item-card h3{font-size:18px;line-height:1.5}
.item-card>p{font-size:14px;color:var(--muted)}
.item-card .tag{justify-self:start;font-size:11px;border:1px solid var(--line);border-radius:999px;padding:0 8px;color:var(--muted)}
.item-card .contents{padding-left:1.2rem;margin:0;font-size:13px;color:var(--muted)}
.item-card .price{grid-column:2;grid-row:1;justify-content:flex-end}
.item-card .button{grid-column:2;grid-row:2 / span 4;align-self:start;min-height:40px;padding:8px 18px;font-size:13px}
.price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.price strong{font-size:20px;font-variant-numeric:tabular-nums}
.price span{font-size:11px;color:var(--muted)}
.was{text-decoration:line-through}
.fine-print{font-size:12px;color:var(--muted);margin-top:10px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 24px;border:0;border-radius:999px;background:var(--ink);color:#fff;font-size:14px;font-weight:700;text-decoration:none}
.button:disabled{background:var(--soft);color:var(--muted);cursor:default}
.text-link{font-size:13px;color:var(--muted)}

/* 質問 */
.faq details{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;position:relative;padding:12px 30px 12px 0;font-size:15px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:4px;top:10px;color:var(--muted)}
.faq details[open] summary::after{content:"−"}
.faq details p{font-size:14px;color:var(--muted);padding-bottom:14px}

/* 特商法など */
.legal h2{font-size:22px;color:var(--ink);border:0}
.legal-table,.review-details{display:grid;grid-template-columns:140px 1fr;margin:16px 0}
.legal-table dt,.legal-table dd,.review-details dt,.review-details dd{margin:0;padding:10px 6px;border-bottom:1px solid var(--line);font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.legal-table dt,.review-details dt{color:var(--muted)}
.legal-text{white-space:pre-wrap;font-size:14px}

/* 下 */
.foot{border-top:1px solid var(--line);padding-top:20px;font-size:12px;color:var(--muted)}
.links{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px}
.links a{color:var(--muted)}
.source{font-size:11px;margin-top:14px;line-height:1.8}

/* 購入の確認 */
dialog{border:0;border-radius:16px;padding:36px 30px;max-width:560px;width:calc(100% - 32px);max-height:90dvh;overflow:auto;color:var(--ink);background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.25)}
dialog::backdrop{background:rgba(0,0,0,.45)}
dialog h2{font-size:20px;margin-bottom:6px}
dialog .button{width:100%}
dialog .label{font-size:12px;color:var(--muted)}
.dialog-close{position:absolute;right:12px;top:8px;width:40px;height:40px;border:0;background:transparent;font-size:24px;color:var(--muted)}
.dialog-status{font-size:13px;color:var(--danger);white-space:pre-wrap}
.review-description{white-space:pre-wrap;margin:8px 0;color:var(--muted)}
.review-contents{padding-left:1.2rem;margin:.4rem 0 1rem}
.review-details{grid-template-columns:96px 1fr}
.review-details dt,.review-details dd{padding:8px 4px;font-size:13px}
.check{display:flex;gap:10px;align-items:flex-start;font-size:13px;margin:18px 0}
.check input{width:20px;height:20px;margin-top:3px;flex:none}
.account-actions{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}
.inline-button{border:1px solid var(--line);background:#fff;border-radius:999px;font-size:12px;padding:7px 14px;margin:6px 8px 0 0}

@media(max-width:560px){
  .item-card{grid-template-columns:1fr}
  .item-card .price,.item-card .button{grid-column:1;grid-row:auto}
  .item-card .price{justify-content:flex-start}
  .item-card .button{width:100%;margin-top:6px}
  .legal-table{grid-template-columns:1fr}
  dialog{padding:34px 18px}
}

/* 問題集の販売ページ(2026-10-09。40_marketing\site\kigyouhou\v3 から) */
.lp{--ink2:#14213d;--sub:#5a6478;--line2:#dfe3ea;--soft2:#f4f6fa;--navy:#1d3461;--navy2:#2b4a85;--pale:#e8eef8;--ok:#1d7a5a;--ng:#b0413e;color:var(--ink2)}
.lp img{max-width:100%;display:block}
.lp a{color:var(--navy2)}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
.lp-head{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line2)}
.lp-head .wrap{display:flex;align-items:center;justify-content:space-between;height:58px}
.logo{font-weight:700;font-size:15px;color:var(--ink2)!important;text-decoration:none;letter-spacing:.02em;line-height:1.3}
.logo small{display:block;font-weight:400;font-size:11px;color:var(--sub)}
.lp-head nav a{font-size:14px;color:var(--sub);text-decoration:none;margin-left:18px}
.lp-head nav a.buy{color:#fff;background:var(--navy);padding:8px 16px;border-radius:999px}
@media(max-width:640px){.lp-head nav a.wide{display:none}}
.lp section{padding:88px 0}
.lp section.soft{background:var(--soft2)}
.eyebrow{font-size:13px;font-weight:700;color:var(--navy2);letter-spacing:.08em;margin:0 0 10px}
.lp h1,.lp h2,.lp h3{line-height:1.45;font-weight:700;letter-spacing:.01em}
.lp section h2{font-size:clamp(24px,4vw,34px);margin-bottom:18px;color:var(--ink2);border:0;padding:0}
.lp p{margin:0 0 12px}
.lead{color:var(--sub);max-width:680px;margin:0 0 40px!important}
.center{text-align:center}
.hero{padding:72px 0 80px!important;background:linear-gradient(180deg,#fff 0%,var(--soft2) 100%)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.hero h1{font-size:clamp(30px,5.2vw,50px);margin:6px 0 20px}
.hero .sub{color:var(--sub);font-size:17px;margin:0 0 32px}
.btns{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;text-decoration:none;font-weight:700;font-size:15px;padding:14px 26px;border-radius:999px;border:2px solid var(--navy)}
.btn.main{background:var(--navy);color:#fff!important}
.btn.ghost{color:var(--navy)!important;background:#fff}
.shot{border-radius:8px;border:1px solid var(--line2);box-shadow:0 18px 40px rgba(20,33,61,.15);overflow:hidden;background:#fff}
@media(max-width:820px){.hero .wrap{grid-template-columns:1fr}}
.nums{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line2);border-radius:14px;background:#fff;margin-top:-40px;position:relative}
.nums div{padding:24px 18px;text-align:center;border-left:1px solid var(--line2)}
.nums div:first-child{border-left:0}
.nums b{display:block;font-size:clamp(26px,4vw,36px);color:var(--navy);font-variant-numeric:tabular-nums;line-height:1.3}
.nums span{font-size:13px;color:var(--sub)}
@media(max-width:700px){.nums{grid-template-columns:1fr 1fr}.nums div:nth-child(3){border-left:0}.nums div:nth-child(n+3){border-top:1px solid var(--line2)}}
.two{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
@media(max-width:820px){.two{grid-template-columns:1fr;gap:24px}}
.bar{display:flex;height:56px;border-radius:10px;overflow:hidden;margin:18px 0 12px}
.bar i{display:flex;align-items:center;justify-content:center;color:#fff;font-style:normal;font-size:13px;font-weight:700}
.legend{list-style:none;padding:0;margin:0;font-size:14px}
.legend li{display:flex;gap:10px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line2)}
.legend li:last-child{border-bottom:0}
.legend .dot{width:12px;height:12px;border-radius:3px;flex:none;transform:translateY(1px)}
.legend b{margin-left:auto;font-variant-numeric:tabular-nums}
.small{font-size:12px;color:var(--sub);line-height:1.7}
.item h3{font-size:24px;margin:6px 0 4px}
.size{color:var(--navy2);font-weight:700;font-size:14px;margin:0 0 14px!important}
.app{display:grid;grid-template-columns:auto 1fr;gap:56px;align-items:center}
.phone{width:280px;border-radius:36px;background:#0f1a30;padding:12px;box-shadow:0 24px 50px rgba(20,33,61,.25)}
.screen{background:#f7f8fa;border-radius:26px;padding:18px 16px 20px;min-height:460px;display:flex;flex-direction:column}
.screen .top{display:flex;justify-content:space-between;font-size:11px;color:var(--sub);margin-bottom:10px}
.screen .prog{height:4px;background:var(--line2);border-radius:4px;margin-bottom:22px}
.screen .prog i{display:block;height:100%;width:38%;background:var(--navy);border-radius:4px}
.screen .crumb{font-size:11px;color:var(--navy2);font-weight:700}
.screen .q{font-size:15px;line-height:1.8;margin:8px 0 auto;padding-bottom:14px}
.screen .ox{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.screen .ox span{display:grid;place-items:center;height:64px;border-radius:16px;background:#fff;border:1px solid var(--line2);font-size:30px;color:var(--navy)}
.points{list-style:none;padding:0;margin:20px 0 0}
.points li{padding:12px 0;border-bottom:1px solid var(--line2)}
.points b{display:block;font-size:16px}
.points span{font-size:14px;color:var(--sub)}
@media(max-width:820px){.app{grid-template-columns:1fr;justify-items:center}.app>div:last-child{justify-self:stretch}}
.offer{max-width:600px;margin:0 auto;background:#fff;border:2px solid var(--navy);border-radius:18px;padding:16px 28px 24px}
.offer .item-card{border-bottom:0}
.offer .offer-note{text-align:center}
.later{max-width:600px;margin:20px auto 0;padding:18px 22px;background:var(--pale);border-radius:12px;font-size:14px}
.howto{max-width:680px;margin:0;padding:0;list-style:none;counter-reset:s}
.howto li{counter-increment:s;padding:12px 0 12px 46px;position:relative;font-size:15px;border-bottom:1px solid var(--line2)}
.howto li:last-child{border-bottom:0}
.howto li::before{content:counter(s);position:absolute;left:0;top:11px;width:30px;height:30px;border-radius:50%;background:var(--navy);color:#fff;font-weight:700;font-size:14px;display:grid;place-items:center}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.steps div{border-top:3px solid var(--navy);padding-top:16px}
.steps b{display:block;font-size:13px;color:var(--navy2)}
.steps h3{font-size:17px;margin:4px 0 8px}
.steps p{font-size:14px;color:var(--sub)}
@media(max-width:820px){.steps{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.steps{grid-template-columns:1fr}}
.lp .faq summary{font-weight:700;padding:20px 36px 20px 0;font-size:16px}
.lp .faq summary::after{top:18px;font-size:22px;color:var(--navy2)}
.lp .faq details p{font-size:15px;color:var(--sub);padding-bottom:6px}
.lp-foot{background:var(--ink2);color:#c9d0de;padding:48px 0 40px;font-size:13px}
.lp-foot a{color:#c9d0de!important;margin-right:18px}
.lp-foot .by{margin-top:24px;font-size:12px;color:#8e98ad}
.legal-wrap{max-width:760px;margin:0 auto;padding:56px 20px 72px}
.legal-mode .lp-only{display:none}
.bar .b1{width:49%;background:var(--navy)}.bar .b2{width:50%;background:var(--navy2);opacity:.55}.bar .b3{width:1%;background:var(--ng)}
.legend .d1{background:var(--navy)}.legend .d2{background:var(--navy2);opacity:.55}.legend .d3{background:var(--ng)}
.lead.center{margin:0 auto 32px!important}
