/* CIVIO page-specific styles
   Source: notes/j-credit-gx-regional-circulation.html
   Purpose: separated from HTML for maintainability and AI-assisted editing. */
/* J-Credit / GX article — aligned to CIVIO article template */
body.jgx-page .jgx-hero::after{content:"LOCAL GX CIRCULATION"!important;position:absolute!important;right:-24px!important;bottom:8px!important;width:auto!important;height:auto!important;border:0!important;transform:none!important;box-shadow:none!important;color:rgba(17,17,17,.035)!important;font:900 clamp(42px,7vw,105px)/1 var(--cv-display)!important;letter-spacing:-.055em!important;white-space:nowrap!important}
body.jgx-page .jgx-thesis{display:grid;grid-template-columns:170px 1fr;gap:28px;margin:34px 0 0;padding:28px 30px;border-left:6px solid var(--cv-red);background:#111;color:#fff;position:relative;z-index:2}
body.jgx-page .jgx-thesis span{font:900 10px/1.6 monospace;letter-spacing:.15em;color:#ff6570}
body.jgx-page .jgx-thesis strong{font-size:clamp(19px,2.6vw,29px);line-height:1.58}
body.jgx-page .jgx-hero-axis{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #d6d6d2;margin-top:26px;background:#fff;position:relative;z-index:2}
body.jgx-page .jgx-hero-axis div{padding:17px 18px;border-right:1px solid #d6d6d2}
body.jgx-page .jgx-hero-axis div:last-child{border-right:0}
body.jgx-page .jgx-hero-axis b{display:block;color:#111;font-size:15px;margin-bottom:3px}
body.jgx-page .jgx-hero-axis small{color:#666;font-size:11px}
body.jgx-page .jgx-summary,body.jgx-page .jgx-premise{width:min(var(--article-read),calc(100% - 72px));max-width:var(--article-read);margin:45px auto 0;background:#fff}
body.jgx-page .jgx-summary{border:1px solid #111;border-top:6px solid var(--cv-red);box-shadow:8px 8px 0 rgba(17,17,17,.1);padding:28px}
body.jgx-page .jgx-summary h2{margin:0 0 20px!important;padding:0!important;border:0!important;font-size:25px!important}
body.jgx-page .jgx-summary h2::before{display:none!important}
body.jgx-page .summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#d3d3cf;border:1px solid #d3d3cf}
body.jgx-page .summary-item{background:#fff;padding:20px}
body.jgx-page .summary-item span{display:block;color:var(--cv-red);font:900 10px/1.4 monospace;letter-spacing:.12em;margin-bottom:8px}
body.jgx-page .summary-item p{margin:0!important;font-size:13px!important;line-height:1.8!important}
body.jgx-page .key-line{margin:22px 0 0;padding:18px 20px;border-left:5px solid var(--cv-red);background:#f2f2f0;font-weight:900;color:#111}
body.jgx-page .jgx-premise{padding:22px 24px;border:1px solid #d7d7d3;border-left:6px solid #111;background:#f7f7f5}
body.jgx-page .jgx-premise h3{margin:0 0 8px!important;font-size:18px!important}
body.jgx-page .jgx-premise p:last-child{margin-bottom:0!important}
body.jgx-page .callout{margin:28px 0;padding:22px 24px;border:1px solid #111;background:#fff}
body.jgx-page .callout.warning{border-left:7px solid var(--cv-red)}
body.jgx-page .callout.note{border-left:7px solid #111}
body.jgx-page .callout h3{margin:0 0 9px!important;font-size:18px!important}
body.jgx-page .three-layers{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:30px 0;border:1px solid #111;background:#111}
body.jgx-page .layer{padding:22px;background:#fff}
body.jgx-page .layer .number{display:block;color:var(--cv-red);font-size:26px;font-weight:900}
body.jgx-page .layer b{display:block;margin:6px 0 9px;font-size:16px}
body.jgx-page .layer p{margin:0!important;font-size:13px!important;line-height:1.8!important}
body.jgx-page .table-scroll-hint{display:none;margin:0 0 6px;color:#666;text-align:right;font-size:11px}
body.jgx-page .table-scroll{max-width:100%;margin:28px 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.jgx-page .table-scroll table{min-width:720px;margin:0!important}
body.jgx-page .flow-panel{margin:34px 0;padding:26px;border:1px solid #111;border-top:6px solid var(--cv-red);background:#111;color:#fff}
body.jgx-page .flow-panel>h3{margin:0 0 20px!important;color:#fff!important}
body.jgx-page .flow-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}
body.jgx-page .flow-step{position:relative;min-height:145px;padding:15px;border:1px solid #555;background:#171717;color:#fff;text-align:left}
body.jgx-page .flow-step:hover,body.jgx-page .flow-step[aria-pressed="true"]{border-color:var(--cv-red);background:#2b090c}
body.jgx-page .flow-step small{color:#ff6570;font:900 10px monospace;letter-spacing:.09em}
body.jgx-page .flow-step strong{display:block;margin-top:10px;color:#fff;line-height:1.5}
body.jgx-page .flow-step::after{content:"→";position:absolute;right:-11px;top:50%;z-index:2;color:var(--cv-red);font-size:20px;transform:translateY(-50%)}
body.jgx-page .flow-step:last-child::after{display:none}
body.jgx-page .flow-detail{min-height:90px;margin-top:14px;padding:18px;border-left:6px solid var(--cv-red);background:#fff;color:#111}
body.jgx-page .flow-detail p{margin:0!important;color:#333!important}
body.jgx-page .tab-set{margin:34px 0;border:1px solid #111;background:#fff}
body.jgx-page .tab-buttons{display:flex;flex-wrap:wrap;gap:1px;background:#111}
body.jgx-page .tab-buttons button{flex:1;min-width:150px;min-height:48px;padding:12px;border:0!important;background:#202020!important;color:#fff!important;font-weight:900}
body.jgx-page .tab-buttons button[aria-selected="true"]{background:var(--cv-red)!important}
body.jgx-page .tab-panel{padding:26px}
body.jgx-page.js .tab-panel[hidden],html.js body.jgx-page .tab-panel[hidden]{display:none}
body.jgx-page .jgx-interactive{width:min(var(--article-read),calc(100% - 72px))!important;max-width:var(--article-read)!important;margin:50px auto!important;padding:30px!important;border:1px solid #111!important;border-top:8px solid var(--cv-red)!important;background:#fff!important;box-shadow:9px 9px 0 rgba(17,17,17,.1)!important}
body.jgx-page .jgx-interactive h2{padding-left:0!important}
body.jgx-page .jgx-interactive h2::before{display:none!important}
body.jgx-page .interactive-intro{color:#666!important;font-size:13px!important}
body.jgx-page .sample-notice{margin:18px 0;padding:14px 16px;border-left:5px solid #a56a00;background:#fff5e3;color:#4a3b20;font-size:12px}
body.jgx-page .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:24px 0}
body.jgx-page .field label{display:block;margin-bottom:6px;color:#111;font-size:13px;font-weight:900}
body.jgx-page .field input{width:100%;padding:12px 13px;border:1px solid #777;border-radius:0;background:#fff;color:#111}
body.jgx-page .field input[aria-invalid="true"]{border:2px solid var(--cv-red);background:#fff4f4}
body.jgx-page .field small{display:block;margin-top:5px;color:#666;font-size:11px;line-height:1.5}
body.jgx-page .actions,body.jgx-page .preset-row{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:9px!important;margin:18px 0!important;position:relative;z-index:2}
body.jgx-page .jgx-interactive .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:11px 16px!important;border:1px solid #111!important;border-radius:0!important;background:#111!important;color:#fff!important;font-family:var(--cv-body)!important;font-size:12px!important;font-weight:900!important;line-height:1.4!important;letter-spacing:.02em!important;text-align:center!important;cursor:pointer!important;opacity:1!important;visibility:visible!important;appearance:none!important;-webkit-appearance:none!important}
body.jgx-page .jgx-interactive .btn:hover,body.jgx-page .jgx-interactive .btn:focus-visible,body.jgx-page .jgx-interactive .btn[aria-pressed="true"]{border-color:var(--cv-red)!important;background:var(--cv-red)!important;color:#fff!important}
body.jgx-page .jgx-interactive .btn.secondary{border-color:#111!important;background:#fff!important;color:#111!important}
body.jgx-page .jgx-interactive .btn.secondary:hover,body.jgx-page .jgx-interactive .btn.secondary:focus-visible,body.jgx-page .jgx-interactive .btn.secondary[aria-pressed="true"]{border-color:var(--cv-red)!important;background:var(--cv-red)!important;color:#fff!important}
body.jgx-page .jgx-interactive .btn:focus-visible{outline:3px solid #f7a0a5!important;outline-offset:3px!important}

/* 記事固有の図版。共通CSSのヒーロー全幅・負の余白指定を解除する */
body.cv-article-page.jgx-page .civio-hero figure.jgx-article-visual{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  width:min(100%,960px)!important;
  max-width:960px!important;
  margin:34px auto 0!important;
  border:1px solid #2d2d2d!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#111!important;
  box-shadow:8px 8px 0 rgba(17,17,17,.10)!important;
}
body.cv-article-page.jgx-page .civio-hero figure.jgx-article-visual a{
  display:block!important;
  background:#111!important;
}
body.cv-article-page.jgx-page .civio-hero figure.jgx-article-visual img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:0!important;
  filter:none!important;
  background:#111!important;
}
body.cv-article-page.jgx-page .civio-hero figure.jgx-article-visual figcaption{
  display:block!important;
  margin:0!important;
  padding:11px 15px!important;
  border-top:1px solid #333!important;
  background:#111!important;
  color:#d7d7d7!important;
  font-size:11px!important;
  line-height:1.65!important;
}
body.cv-article-page.jgx-page .civio-hero .jgx-thesis{
  clear:both!important;
  margin-top:34px!important;
}
body.jgx-page .simulation-results{margin-top:28px}
body.jgx-page .result-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 14px;padding:0 0 12px;border-bottom:3px solid #111}
body.jgx-page .result-heading span{color:var(--cv-red);font:900 10px/1.4 monospace;letter-spacing:.14em}
body.jgx-page .result-heading h3{margin:0!important;color:#111!important;font-size:clamp(24px,3vw,34px)!important;line-height:1.2!important}
body.jgx-page .result-status{margin:14px 0;padding:14px 16px;border-left:6px solid #167547;background:#edf7f1;color:#173e2c;font-weight:900}
body.jgx-page .result-status.loss{border-left-color:var(--cv-red);background:#fff0f0;color:#641216}
body.jgx-page .result-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #111}
body.jgx-page .result-card{min-height:122px;padding:17px;border-right:1px solid #111;border-bottom:1px solid #111;background:#fff}
body.jgx-page .result-card:nth-child(3n){border-right:0}
body.jgx-page .result-card:nth-last-child(-n+3){border-bottom:0}
body.jgx-page .result-card span{display:block;color:#666;font-size:11px;font-weight:900}
body.jgx-page .result-card strong{display:block;margin:8px 0 4px;color:#111;font-size:21px;line-height:1.3}
body.jgx-page .result-card small{color:#666;font-size:10px}
body.jgx-page .checklist{display:grid;gap:9px;margin:22px 0}
body.jgx-page .check-item{display:flex;align-items:flex-start;gap:12px;padding:15px 16px;border:1px solid #d6d6d2;background:#fff}
body.jgx-page .check-item:has(input:checked){border-color:var(--cv-red);background:#fff5f5}
body.jgx-page .check-item input{margin-top:5px;transform:scale(1.18);accent-color:var(--cv-red)}
body.jgx-page .check-item strong{display:block;color:#111}
body.jgx-page .check-item small{display:block;color:#666}
body.jgx-page .check-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;margin:20px 0 8px}
body.jgx-page .check-progress progress{width:100%;min-width:0;height:12px;accent-color:var(--cv-red)}
body.jgx-page .check-progress strong{min-width:74px;white-space:nowrap;text-align:right;font-size:18px;line-height:1}
body.jgx-page .check-save-status{display:block;min-height:1.5em;margin:0 0 14px;color:#666;font-size:12px;font-weight:700;text-align:right}
body.jgx-page .related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin-top:24px;border:1px solid #111;background:#111}
body.jgx-page .related-card{display:block;padding:22px;background:#fff;color:#111;text-decoration:none}
body.jgx-page .related-card:hover{background:#fff6f6;color:#111}
body.jgx-page .related-card span,body.jgx-page .related-card small{display:block;margin-bottom:7px;color:var(--cv-red);font:900 10px monospace;letter-spacing:.12em}
body.jgx-page .related-card strong{font-size:16px;line-height:1.6}
body.jgx-page .jgx-sources li{margin-bottom:9px}
body.jgx-page .jgx-article-note{display:grid;grid-template-columns:210px minmax(0,1fr);gap:26px;width:min(var(--article-read),calc(100% - 72px));max-width:var(--article-read);margin:0 auto 50px;padding:24px 26px;border:1px solid #d8d8d3;border-left:6px solid #111;background:#f7f7f4;color:#333;font-size:13px;line-height:1.8}
body.jgx-page .jgx-article-note-head{padding-right:22px;border-right:1px solid #d2d2cc}
body.jgx-page .jgx-article-note-head span{display:block;margin-bottom:9px;color:var(--cv-red);font:900 10px monospace;letter-spacing:.14em}
body.jgx-page .jgx-article-note-head h2{margin:0 0 12px!important;padding:0!important;color:#111!important;font-size:19px!important;line-height:1.45!important}
body.jgx-page .jgx-article-note-head h2::before{display:none!important}
body.jgx-page .jgx-article-note-head p{margin:0!important;color:#555!important;font-size:12px!important;font-weight:800}
body.jgx-page .jgx-article-note-body p{margin:0 0 12px!important}
body.jgx-page .jgx-article-note-body ul{margin:0;padding-left:1.25em}
body.jgx-page .jgx-article-note-body li{margin:7px 0}
body.jgx-page .external::after{content:" ↗"}
@media(max-width:900px){
 body.jgx-page .jgx-thesis{grid-template-columns:1fr;gap:10px}
 body.jgx-page .flow-steps{grid-template-columns:repeat(3,1fr)}
 body.jgx-page .flow-step:nth-child(3)::after{display:none}
 body.jgx-page .summary-grid,body.jgx-page .three-layers{grid-template-columns:1fr}
 body.jgx-page .result-grid{grid-template-columns:repeat(2,1fr)}
 body.jgx-page .result-card:nth-child(3n){border-right:1px solid #111}
 body.jgx-page .result-card:nth-child(2n){border-right:0}
 body.jgx-page .result-card:nth-last-child(-n+3){border-bottom:1px solid #111}
 body.jgx-page .result-card:last-child{border-bottom:0}
}
@media(max-width:760px){
 body.jgx-page .jgx-summary,body.jgx-page .jgx-premise,body.jgx-page .jgx-interactive,body.jgx-page .jgx-article-note{width:calc(100% - 40px)!important}
 body.jgx-page .jgx-summary,body.jgx-page .jgx-interactive{padding:20px!important;box-shadow:6px 6px 0 rgba(17,17,17,.1)!important}
 body.jgx-page .jgx-hero-axis{grid-template-columns:1fr}
 body.jgx-page .jgx-hero-axis div{border-right:0;border-bottom:1px solid #d6d6d2}
 body.jgx-page .jgx-hero-axis div:last-child{border-bottom:0}
 body.jgx-page .flow-steps{grid-template-columns:1fr}
 body.jgx-page .flow-step{min-height:0}
 body.jgx-page .flow-step::after{content:"↓";right:50%;top:auto;bottom:-18px;transform:translateX(50%)}
 body.jgx-page .flow-step:nth-child(3)::after{display:block}
 body.jgx-page .flow-step:last-child::after{display:none}
 body.jgx-page .form-grid,body.jgx-page .related-grid{grid-template-columns:1fr}
 body.jgx-page .result-grid{grid-template-columns:1fr}
 body.jgx-page .result-card,body.jgx-page .result-card:nth-child(2n),body.jgx-page .result-card:nth-child(3n){border-right:0;border-bottom:1px solid #111}
 body.jgx-page .result-card:last-child{border-bottom:0}
 body.jgx-page .table-scroll-hint{display:block}
 body.jgx-page .tab-buttons{display:grid;grid-template-columns:1fr}
 body.jgx-page .jgx-article-note{grid-template-columns:1fr;gap:16px;padding:20px!important}
 body.jgx-page .jgx-article-note-head{padding-right:0;padding-bottom:15px;border-right:0;border-bottom:1px solid #d2d2cc}
 body.jgx-page .check-progress{gap:10px}
 body.jgx-page .check-progress strong{min-width:64px;font-size:16px}
 body.jgx-page .actions,body.jgx-page .preset-row{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
 body.jgx-page .jgx-interactive .btn{width:100%!important;min-height:48px!important}
}
/* The in-page print button uses an isolated iframe document. This avoids blank pages caused by hiding the original page. */

@media (max-width:760px){
  body.cv-article-page.jgx-page .civio-hero figure.jgx-article-visual{
    width:100%!important;
    max-width:100%!important;
    margin:24px auto 0!important;
    box-shadow:5px 5px 0 rgba(17,17,17,.10)!important;
  }
  body.cv-article-page.jgx-page .civio-hero figure.jgx-article-visual figcaption{
    padding:9px 11px!important;
    font-size:10px!important;
  }
  body.cv-article-page.jgx-page .civio-hero .jgx-thesis{
    margin-top:26px!important;
  }
}
