/* GPT清書v2（v2.css）をアプリで使うための調整。2026-11-24 本部長
   ・v2.css は GPT の base.css をそのまま。ここでは、古い base.css の同名クラスが清書の見た目を崩さないよう打ち消す
   ・画面幅：390px で清書と同じ。実機では幅いっぱい（最大480px）、下部タブは画面の下に固定 */
/* 古い base.css の「タグに付けた決まり」を、清書の画面では元（ブラウザの標準）に戻す。:where で弱くし、清書のクラスが勝つようにする */
:where(body.v2) :is(h1,h2,h3,p,small,label,fieldset,legend){margin:revert;font-size:revert;line-height:revert;letter-spacing:revert;color:revert;font-weight:revert;padding:revert;border:revert}
:where(body.v2) table{width:revert;border-collapse:revert;border-spacing:revert;background:revert;font-variant-numeric:revert}
:where(body.v2) :is(th,td){padding:revert;border-bottom:revert;text-align:revert;white-space:revert;font-size:revert;font-weight:revert;color:revert;background:revert}
:where(body.v2) button{all:revert;font:inherit;cursor:pointer}
:where(body.v2) a{text-underline-offset:revert}
body.v2{background:#DEEAF4;font:400 20px/1.38 'Noto Sans JP',sans-serif;color:var(--ink);font-variant-numeric:normal;-webkit-font-smoothing:auto}
body.v2 .app{width:100%;max-width:480px;min-height:100vh;padding-bottom:93px}
body.v2 .app.public{padding-bottom:0}
body.v2 h1,body.v2 h2,body.v2 h3{letter-spacing:normal}
body.v2 .top{position:sticky;top:0;z-index:30;flex-wrap:nowrap;gap:0;min-height:0;border:0;box-shadow:none;padding:8px 11px}
body.v2 .top a{color:#fff;text-decoration:none;font-weight:inherit}
body.v2 .top strong a,body.v2 .top strong{font-size:31px;font-weight:900;letter-spacing:-1px}
body.v2 .navicon{margin:0;min-height:0;min-width:0;border-radius:0}
body.v2 details.navmenu{position:relative}body.v2 details.navmenu summary{list-style:none;cursor:pointer}body.v2 details.navmenu summary::-webkit-details-marker{display:none}
body.v2 .navpop{position:absolute;left:0;top:52px;z-index:50;min-width:230px;background:#fff;border-radius:12px;box-shadow:0 6px 20px rgba(0,0,0,.25);padding:8px;display:grid}
body.v2 .navpop a,body.v2 .navpop p{color:#0B1B31;font-size:17px;font-weight:700;padding:11px 12px;margin:0;border-radius:8px}body.v2 .navpop p{font-size:14px;color:#45586C;font-weight:400}body.v2 .navpop a:hover{background:#EEF3F8}
body.v2 main.body{max-width:none;margin:0;padding:13px 16px 22px;min-width:0}
body.v2 main.body>h1.heading:first-child{margin-top:6px}
body.v2 .heading{display:block;font-size:25px;letter-spacing:normal}
body.v2 .card{display:block;margin:0 0 15px}body.v2 .card h2:first-child{margin-top:0}
body.v2 .scroll{border:0;border-radius:0;max-width:100%}
body.v2 table{background:transparent;font-variant-numeric:normal}
body.v2 .stat-board th,body.v2 .stat-board td,body.v2 .ranking-table th,body.v2 .ranking-table td,body.v2 .info-table td{white-space:nowrap;color:inherit}
body.v2 .stat-board th{background:transparent;font-size:inherit;color:inherit}
body.v2 .ranking-table th{background:#E2E8EF;font-size:16px;color:inherit}
body.v2 .white-button,body.v2 .blue-button{max-width:none;line-height:1.38;touch-action:manipulation}
body.v2 .white-button{display:flex;align-items:center;justify-content:center;gap:6px}
body.v2 a.white-button,body.v2 a.blue-button{text-decoration:none}
body.v2 .white-button:hover{background:linear-gradient(#fff,#EEF3F8);color:#102747;border-color:#889EB2}
body.v2 .blue-button:hover{background:linear-gradient(#2378B7,#0D4982);color:#fff}
body.v2 .homequick .white-button,body.v2 .quick3 .white-button{flex-direction:column}
body.v2 .tabs{position:fixed;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:480px;min-height:0;padding:0;justify-content:normal;z-index:40}
body.v2 .tabs a,body.v2 .tabs span{min-height:0;padding:0;font-size:17px;font-weight:700;color:inherit;text-decoration:none;border-radius:0;cursor:pointer}
body.v2 .tabs .disabled{cursor:not-allowed}
body.v2 .notice,body.v2 .flash,body.v2 .errors{margin:0 0 12px}body.v2 .notice a{color:inherit}
body.v2 .live-tag::before{display:none}
body.v2 .diamond{position:static;transform:none;width:auto;height:auto;margin:0}
body.v2 .metric{padding:9px 5px}body.v2 .metric strong{color:inherit}
body.v2 .result-toggle a{flex:1;text-align:center;font-size:18px;padding:11px 5px;font-weight:700;color:inherit}
body.v2 .result-toggle a.selected{background:linear-gradient(#1F76B8,#0D548F);color:#fff;border-radius:8px}
body.v2 .rankitem a{color:inherit}
body.v2 label{font-size:17px}body.v2 input,body.v2 select,body.v2 textarea{font-size:18px}
body.v2 .clickrow{color:inherit}
@media(min-width:960px){body.v2 .app{margin:28px auto 0;box-shadow:0 14px 35px #0C284344}body.v2 .tabs{bottom:0}}
body.v2 details.share summary{list-style:none;cursor:pointer}body.v2 details.share summary::-webkit-details-marker{display:none}body.v2 details.share input{margin:6px 0}
body.v2 main.body>h1.heading:has(+ .photo){display:none}
body.v2 main.body section>ul{list-style:none;padding:0;margin:0 0 15px;background:#fff;border:1.5px solid #C4CFDA;border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
body.v2 main.body section>ul>li{padding:10px 14px;border-bottom:1px solid #DCE1E7;font-size:17px}body.v2 main.body section>ul>li:last-child{border-bottom:0}
body.v2 main.body section>ul>li a{color:inherit;font-weight:700}
body.v2 .stats-tabs a{font-size:16px;padding:10px 2px}body.v2 .rankitem .crown{flex:0 0 30px}body.v2 .filter{margin:0 0 10px}
body.v2 .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0}body.v2 .pbp-inning{font-size:23px}body.v2 .inning-board{margin-bottom:0}body.v2 .actions .white-button{font-size:15px;min-height:50px;padding:4px}
body.v2 .pb-state .count{display:none}
body.v2 .pb-state .bases{font-size:15px;color:var(--muted,#667)}
body.v2 h1.heading:has(+ .inning-board){display:none}
body.v2 .clickrow.hflex{display:flex;align-items:center;gap:10px}body.v2 .clickrow.hflex strong:last-child{margin-left:auto}
body.v2 details.filter form{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;align-items:end;margin-top:10px}body.v2 details.filter label{display:flex;flex-direction:column;font-size:14px;font-weight:700;color:#425466}body.v2 details.filter select,body.v2 details.filter input{font:inherit;font-size:15px;padding:8px;border:1.5px solid #CDD3DB;border-radius:9px;background:#fff;min-width:0;width:100%;box-sizing:border-box}body.v2 details.filter button{grid-column:1/-1;background:linear-gradient(#2378B7,#0D4982);color:#fff;border:0;border-radius:11px;font-weight:900;font-size:16px;padding:11px}
body.v2 details.filter label:nth-of-type(2){grid-column:1/-1;display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:center;gap:6px}
body.v2 .stats-tabs a,body.v2 .stats-tabs span{font-size:14px;white-space:nowrap;padding-left:2px;padding-right:2px}body.v2 details.filter>summary{font-size:16px;font-weight:700}
body.v2 .stat-board th:first-child,body.v2 .stat-board td:first-child{text-align:left;white-space:nowrap}body.v2 table.stats th{font-weight:900}
body.v2 .quick3 a{font-size:16px;white-space:nowrap}
@media(min-width:960px){body.v2 .tabs{top:auto;bottom:0;flex-direction:row;align-items:stretch;gap:0;padding:0;border-right:0;background:#fff;border-top:1px solid #CDD3DB;height:auto}body.v2 .app{padding-bottom:20px}}
/* 押せる所は48px以上（GPT QA P2） */
body.v2 .navpop a,body.v2 .top strong a{min-height:48px;display:flex;align-items:center}
body.v2 .result-toggle a,body.v2 .result-toggle span{min-height:48px;display:flex;align-items:center;justify-content:center}
body.v2 details>summary{min-height:48px;display:flex;align-items:center;cursor:pointer}
body.v2 main button,body.v2 main input[type=submit]{min-height:48px}
body.v2 main input[type=checkbox],body.v2 main input[type=radio]{width:24px;height:24px}
body.v2 main label:has(>input[type=checkbox]),body.v2 main label:has(>input[type=radio]){display:inline-flex;align-items:center;gap:6px;min-height:48px}
body.v2 .flashline{white-space:normal;overflow:visible;height:auto;min-height:48px;line-height:1.4}body.v2 .pbp-inning{overflow-wrap:anywhere}
body.v2 h1.heading:has(~ .photo){display:none}
body.v2 .playerbox b{white-space:nowrap}body.v2 .playerbox .small{text-align:right}
