/* Inplay Extractor トップページ（design-system-20260927 v2 から） */
:root{
  --bg:#F4F1EA; --surface:#FBFAF6; --rule:#D9D4C7; --rule-strong:#B9B3A4;
  --ink:#14201A; --muted:#4F564F; --accent:#D7F23A; --court:#0F5B3A;
  --r-sm:4px; --r-md:8px; --r-lg:14px;
  --f-head:"Noto Sans JP",sans-serif; --f-body:"Noto Sans JP",sans-serif;
  --f-num:"Noto Sans JP",sans-serif; --f-mono:"Noto Sans JP",sans-serif;
  --section:168px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:17px;line-height:1.8}
a{color:inherit;text-decoration:none}
img,video{display:block;width:100%}
.wrap{max-width:1240px;margin:0 auto;padding:0 40px}
.num{font-family:var(--f-num);font-weight:700;line-height:1;font-feature-settings:"tnum"}
.ic{width:28px;height:28px;flex:0 0 auto}
.mono{font-family:var(--f-mono);font-feature-settings:"tnum"}
.nw{display:inline-block}

/* nav */
nav{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(8px)}
nav .wrap{display:flex;align-items:center;height:72px;gap:32px}
.wordmark{white-space:nowrap;font-family:var(--f-head);font-weight:700;font-size:21px;display:flex;align-items:center;gap:10px}
.mark{display:flex;gap:3px;align-items:flex-end;height:20px}.mark i{width:4px;background:var(--ink)}
.mark i:nth-child(1){height:20px}.mark i:nth-child(2){height:12px;background:var(--accent)}.mark i:nth-child(3){height:16px}
nav .links{margin-left:auto;display:flex;gap:28px;font-size:15px;color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:56px;padding:0 30px;border-radius:var(--r-md);font:700 17px var(--f-body);border:1.5px solid transparent;transition:transform .12s,background .15s}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--accent);color:var(--ink)}.btn-primary:hover{background:#C9E52C}
.btn-line{border-color:var(--ink)}
.btn-sm{min-height:42px;padding:0 18px;font-size:15px}

/* hero */
.hero{padding:56px 0 0}
.hero-grid{display:grid;grid-template-columns:1.05fr 1.2fr;gap:64px;align-items:center}
h1{font-family:var(--f-head);font-weight:700;font-size:clamp(30px,3.6vw,50px);line-height:1.35;letter-spacing:0}
.kicker{display:inline-block;font-weight:700;font-size:15px;color:var(--court);margin-bottom:14px}
h1 .hl{background:linear-gradient(transparent 62%,var(--accent) 62% 94%,transparent 94%)}
.hero .sub{font-size:19px;margin:24px 0 36px;color:var(--muted)}
.player{position:relative;border-radius:var(--r-lg);overflow:hidden;background:#000;aspect-ratio:16/9}
.player video{height:100%;object-fit:cover}
.chip{position:absolute;display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:var(--r-sm);font:500 13px var(--f-mono)}
.chip.live{left:16px;top:16px;background:var(--accent);color:var(--ink)}
.chip.dark{left:16px;top:16px;background:rgba(20,32,26,.78);color:#fff}
.chip.tc{right:16px;bottom:16px;background:rgba(0,0,0,.5);color:#fff}
.hero .strip{margin-top:14px}

/* USP row — the selling points, right under the fold line */
.usps{display:grid;grid-template-columns:repeat(4,1fr);margin-top:88px;border-top:2px solid var(--ink)}
.usp{padding:28px 28px 0 0}
.usp + .usp{padding-left:28px;border-left:1px solid var(--rule)}
.usp .ic{width:34px;height:34px;color:var(--court);margin-bottom:14px}
.usp .big{font-family:var(--f-head);font-weight:700;font-size:24px;line-height:1.3}
.usp .big .num{font-size:24px}
.usp p{font-size:15px;color:var(--muted);margin-top:10px;line-height:1.6}

/* barcode */
.barcode{display:flex;height:20px;width:100%;overflow:hidden}
.barcode .r{background:var(--ink);transition:flex-basis 1s cubic-bezier(.6,0,.2,1)}
.barcode .d{background:repeating-linear-gradient(135deg,var(--rule-strong) 0 1px,transparent 1px 6px);transition:flex-basis 1s cubic-bezier(.6,0,.2,1),opacity .6s}
.barcode.cut .d{flex-basis:2px!important;flex-shrink:0;background:transparent}
.barcode .r.on{background:var(--accent)}

/* sections */
section.block{padding-top:var(--section)}
.head{max-width:760px;margin-bottom:56px}
h2{font-family:var(--f-head);font-weight:700;font-size:clamp(28px,3.2vw,42px);line-height:1.35;letter-spacing:0}
.head p{font-size:18px;color:var(--muted);margin-top:18px}

/* before / after */
.ba{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.ba figcaption{display:flex;align-items:baseline;justify-content:space-between;margin-top:18px}
.ba figcaption b{font-family:var(--f-head);font-size:18px}
.ba figcaption .num{font-size:30px}
.ba .muted .num{color:var(--muted)}
.ba .barcode{margin-top:12px;height:14px}
.saving{display:flex;align-items:baseline;gap:18px;margin-top:48px}
.saving .num{font-size:64px;color:var(--court)}
.saving span{font-size:20px;color:var(--muted)}


/* result */
.result{background:var(--surface);border:1px solid var(--rule);border-radius:var(--r-lg);padding:32px}
.result-top{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:18px}
.result-top b{font-family:var(--f-head);font-size:20px}
.result-top span{color:var(--muted);font-size:15px}
.result .barcode{height:28px;margin-bottom:32px;cursor:pointer}
.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.thumb{cursor:pointer}
.thumb .im{position:relative;border-radius:var(--r-md);overflow:hidden;outline:3px solid transparent;outline-offset:2px;transition:outline-color .15s}
.thumb.on .im{outline-color:var(--accent)}
.thumb .im .n{position:absolute;left:10px;top:8px;font-family:var(--f-num);font-weight:700;font-size:20px;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.thumb .im .len{position:absolute;right:8px;bottom:8px;font:500 12px var(--f-mono);color:#fff;background:rgba(0,0,0,.55);padding:1px 7px;border-radius:var(--r-sm)}
.thumb .t{font:500 13px var(--f-mono);color:var(--muted);margin-top:8px}
.result .actions{display:flex;gap:12px;margin-top:36px;flex-wrap:wrap}

/* steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:40px}
.step{display:flex;gap:18px;align-items:flex-start}
.step .badge{flex:0 0 auto;width:64px;height:64px;border-radius:50%;background:var(--surface);border:1px solid var(--rule);display:grid;place-items:center;color:var(--court)}
.step .badge .ic{width:30px;height:30px}
.step .no{font-size:14px;font-weight:700;color:var(--court)}
.step b{display:block;font-family:var(--f-head);font-size:22px;margin-top:2px}
.step p{color:var(--muted);margin-top:6px}

/* cta */
.final{padding:var(--section) 0;text-align:left}
.final-box{background:var(--ink);color:#F4F1EA;border-radius:var(--r-lg);padding:88px 72px;display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:end}
.final-box h2{color:#F4F1EA}
.final-box .price{font-size:72px;color:var(--accent)}
.final-box .price small{font-size:26px}
.final-box p{color:#B9BDB6;margin:10px 0 32px}
footer{border-top:1px solid var(--rule);padding:32px 0 56px;color:var(--muted);font-size:14px}
footer .wrap{display:flex;gap:28px;flex-wrap:wrap}


/* how-to walkthrough */
.how{display:grid;grid-template-columns:360px 1fr;gap:48px;align-items:start}
.how-steps{list-style:none;display:flex;flex-direction:column;gap:6px}
.how-steps li{position:relative;display:flex;gap:16px;padding:18px 18px 20px;border-radius:var(--r-md);cursor:pointer;transition:background .2s}
.how-steps li:hover{background:var(--surface)}
.how-steps li.on{background:var(--surface);box-shadow:inset 0 0 0 1px var(--rule)}
.how-steps .sn{flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700;border:1.5px solid var(--rule-strong);color:var(--muted)}
.how-steps li.on .sn{background:var(--ink);border-color:var(--ink);color:#fff}
.how-steps b{display:block;font-size:18px;line-height:1.5;padding-top:3px}
.how-steps p{font-size:15px;color:var(--muted);line-height:1.7;margin-top:4px;display:none}
.how-steps li.on p{display:block}
.how-steps .bar{position:absolute;left:18px;right:18px;bottom:8px;height:3px;border-radius:2px;background:transparent;overflow:hidden}
.how-steps li.on .bar{background:var(--rule)}
.how-steps li.on .bar::after{content:"";position:absolute;inset:0;background:var(--court);transform-origin:left;transform:scaleX(0)}
.how.auto .how-steps li.on .bar::after{animation:fill var(--step-ms,6000ms) linear forwards}
@keyframes fill{to{transform:scaleX(1)}}

.screen{border:1px solid var(--rule-strong);border-radius:var(--r-lg);background:var(--surface);overflow:hidden;box-shadow:0 24px 60px -30px rgba(20,32,26,.35)}
.scr-top{display:flex;align-items:center;gap:16px;height:48px;padding:0 20px;border-bottom:1px solid var(--rule)}
.wordmark.sm{font-size:15px}.wordmark.sm .mark{height:14px}.wordmark.sm .mark i{width:3px}
.scr-url{margin-left:auto;font-size:12px;color:var(--muted)}
.scr-body{position:relative;height:470px}
.pane{position:absolute;inset:0;padding:28px;opacity:0;visibility:hidden;transition:opacity .35s}
.pane.on{opacity:1;visibility:visible}
.fake{pointer-events:none}
.tag{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:var(--r-sm);font-size:12px;font-weight:700;background:var(--accent)}

/* 1 */
.drop{border:2px dashed var(--rule-strong);border-radius:var(--r-lg);height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:14px}
.drop .ic{width:30px;height:30px;color:var(--court);margin-bottom:4px}
.drop b{color:var(--ink);font-size:16px}
.file{display:flex;gap:16px;align-items:center;margin-top:20px;padding:14px;border:1px solid var(--rule);border-radius:var(--r-md);background:var(--bg)}
.file img{width:128px;border-radius:6px}
.file-info{flex:1;display:flex;flex-direction:column;gap:2px}
.file-info b{font-size:16px}.file-info>span{font-size:13px;color:var(--muted)}
.prog{height:8px;border-radius:4px;background:var(--rule);overflow:hidden;margin-top:8px}
.prog i{display:block;height:100%;width:0;background:var(--court);border-radius:4px}
.prog-t{font-size:13px!important;margin-top:4px}
.form-row{display:flex;gap:16px;align-items:flex-end;margin-top:22px}
.form-row label{flex:1;display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700}
.form-row input{height:44px;border:1.5px solid var(--rule-strong);border-radius:var(--r-md);background:#fff;padding:0 12px;font:400 15px var(--f-body);color:var(--ink)}
#upBtn{opacity:.4;transition:opacity .3s}#upBtn.ready{opacity:1}

/* 2 */
.job{border:1px solid var(--rule);border-radius:var(--r-lg);background:var(--bg);padding:20px}
.job-top{display:flex;gap:12px;align-items:center;margin-bottom:16px}
.job-top b{font-size:17px}.job-top .meta{color:var(--muted);font-size:13px}
.job-bc{height:36px}
.job-bc .p{flex:1 1 auto;background:repeating-linear-gradient(90deg,var(--rule) 0 2px,transparent 2px 5px)}
.job-note{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:12px}
.mail{display:flex;gap:16px;align-items:center;margin-top:28px;padding:18px 20px;border-radius:var(--r-lg);background:#fff;border:1px solid var(--rule);box-shadow:0 14px 40px -18px rgba(20,32,26,.4);opacity:0;transform:translateY(16px);transition:opacity .4s,transform .4s}
.mail.show{opacity:1;transform:none}
.mail .ic{width:30px;height:30px;color:var(--court)}
.mail div{flex:1;display:flex;flex-direction:column;font-size:14px;color:var(--muted);line-height:1.6}
.mail .from{font-size:12px}.mail b{color:var(--ink);font-size:16px}

/* 3 */
.watch{display:grid;grid-template-columns:1fr 200px;gap:20px;height:100%}
.player.sm{border-radius:var(--r-md)}
.watch-ctl{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:14px;font-weight:700}
.switch{width:38px;height:22px;border-radius:11px;background:var(--court);position:relative}
.switch i{position:absolute;right:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff}
.watch-len{margin-left:auto;font-weight:400;color:var(--muted)}.watch-len b{color:var(--ink)}
.watch-bc{height:22px;margin-top:12px}
.watch-list{list-style:none;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.watch-list li{display:flex;gap:10px;align-items:center;padding:6px;border-radius:var(--r-md);font-size:13px;transition:background .2s}
.watch-list li img{width:84px;border-radius:4px}
.watch-list li b{display:block;font-size:14px}
.watch-list li span{color:var(--muted)}
.watch-list li.on{background:var(--accent)}
.watch-list li.on span{color:var(--ink)}

/* 4 */
.share-bg{position:absolute;inset:0}
.share-bg img{width:100%;height:100%;object-fit:cover;filter:blur(3px) brightness(.55)}
.dialog{position:relative;max-width:460px;margin:8px auto 0;background:var(--surface);border-radius:var(--r-lg);padding:24px;box-shadow:0 30px 70px -20px rgba(0,0,0,.6)}
.dlg-t{display:block;font-size:18px;margin-bottom:10px}
.dlg-row{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--rule)}
.dlg-row .ic{width:26px;height:26px;color:var(--court)}
.dlg-row div{flex:1;display:flex;flex-direction:column;line-height:1.5}
.dlg-row div b{font-size:15px}.dlg-row div span{font-size:13px;color:var(--muted)}
.dlg-share{padding-top:16px;display:flex;flex-direction:column;gap:8px}
.dlg-share .lbl{font-weight:700;font-size:15px}
.link{display:flex;align-items:center;gap:10px;border:1.5px solid var(--rule-strong);border-radius:var(--r-md);padding:4px 4px 4px 12px;background:#fff;font-size:14px}
.link span:first-child{flex:1;color:var(--muted)}
.dlg-share .note{font-size:12px;color:var(--muted)}
#copyBtn.done{background:var(--accent);border-color:var(--accent)}


/* about / maker */
.about{display:grid;grid-template-columns:380px 1fr;gap:72px;align-items:center}
.about-photo img{border-radius:var(--r-lg);aspect-ratio:674/928;object-fit:cover}
.about-photo figcaption{font-size:14px;color:var(--muted);margin-top:12px}
.about-text h2{margin-top:2px}
.about .lead{font-size:18px;color:var(--muted);margin-top:20px;max-width:34em}
.facts{list-style:none;margin-top:36px;border-top:1px solid var(--rule)}
.facts li{display:flex;gap:16px;align-items:flex-start;padding:18px 0;border-bottom:1px solid var(--rule)}
.facts .ic{width:28px;height:28px;color:var(--court);margin-top:2px}
.facts b{display:block;font-size:17px;line-height:1.5}
.facts span{font-size:15px;color:var(--muted)}
.facts a{color:var(--court);text-decoration:underline;text-underline-offset:3px}
.org{font-size:14px;color:var(--muted);margin-top:20px}.org a{text-decoration:underline;text-underline-offset:3px}

@media (max-width:900px){
  .how{grid-template-columns:1fr;gap:20px}
  .how-steps{flex-direction:row;overflow-x:auto;gap:8px}
  .how-steps li{flex:1 0 auto;padding:10px 12px 14px;gap:8px;align-items:center}
  .how-steps li div{display:none}
  .how-steps li.on div{display:block}
  .how-steps li.on p{display:none}
  .how-steps b{font-size:14px;padding:0}
  .how-steps .sn{width:28px;height:28px;font-size:14px}
  .how-steps .bar{left:10px;right:10px;bottom:5px}
  .how-cap{display:block!important}
  .scr-body{height:430px}
  .pane{padding:16px}
  .watch{grid-template-columns:1fr;gap:12px;height:auto}.watch-list{flex-direction:row;overflow-x:auto;gap:8px}.watch-list li{flex:0 0 auto;flex-direction:column;align-items:flex-start;gap:4px}.watch-list li img{width:96px}.watch-list li span{display:none}
  .file img{width:84px}
  .form-row{flex-direction:column;align-items:stretch}
  .mail{flex-wrap:wrap}
  .dialog{padding:18px}
}
.how-cap{display:none;font-size:15px;color:var(--muted);margin:-4px 0 4px}

@media (max-width:900px){
  :root{--section:112px}
  .wrap{padding:0 20px}
  nav .links{display:none}
  .hero-grid,.ba,.final-box{grid-template-columns:1fr}
  .hero .wrap{display:flex;flex-direction:column}
  .hero-grid{display:contents}
  .hero-grid>div:first-child{order:1}
  .usps{order:2;margin-top:36px!important;margin-bottom:36px}
  .hero-grid>div:last-child{order:3}
  .wordmark{font-size:18px}
  .usps{grid-template-columns:1fr;margin-top:56px}
  .usp{display:grid;grid-template-columns:34px 1fr;column-gap:16px;padding:18px 0!important;border-left:0!important}
  .usp + .usp{border-top:1px solid var(--rule)}
  .usp .ic{grid-row:span 2;margin:2px 0 0}
  .usp p{margin-top:2px}
  .usp .big{font-size:20px}
  .thumbs{grid-template-columns:1fr 1fr;gap:14px}
  .steps{grid-template-columns:1fr;gap:28px}
  .saving .num,.final-box .price{font-size:80px}
  .final-box{padding:48px 28px}
  .result{padding:20px}
  .about{grid-template-columns:1fr;gap:28px}
  .about-photo{max-width:260px}
}
@media (prefers-reduced-motion:reduce){.barcode .r,.barcode .d{transition:none}}

/* ---- ヘッダーの入口: 「ログイン」はスマホでも常に表示。ログイン中（html.signed-in）は「試合一覧を開く」だけ ---- */
.nav-login{font-size:15px;color:var(--ink);white-space:nowrap;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;transition:text-decoration-color .15s}
.nav-login:hover{text-decoration-color:currentColor}
.nav-badge{display:inline-flex;align-items:center;height:20px;margin-left:8px;padding:0 7px;border-radius:999px;background:var(--ink);color:var(--accent);font-size:11px;font-weight:700;line-height:1}
.when-in{display:none!important}
.signed-in .when-out{display:none!important}
.signed-in .when-in{display:inline-flex!important}
.signed-in nav .when-in{margin-left:0}
nav .links + .when-in{margin-left:0}
a:focus-visible,.btn:focus-visible{outline:3px solid var(--court);outline-offset:2px}
@media (max-width:900px){
  nav .wrap{gap:16px}
  .nav-login{margin-left:auto}
  .signed-in nav .when-in{margin-left:auto}
}
@media (max-width:480px){
  .nav-badge{display:none}            /* 狭い画面はバッジを出さない（折り返さない） */
  nav .wrap{gap:14px;height:64px}
  .wordmark{font-size:16px;gap:8px}
  nav .btn-sm{padding:0 14px;min-height:40px}
}
@media (max-width:359px){
  .wrap{padding:0 14px}
  nav .wrap{gap:10px}
  .wordmark{font-size:14px;gap:7px}
  .nav-login{font-size:14px}
  nav .btn-sm{padding:0 10px;font-size:14px}
}
