/* 記事6501 専用 */
.h65-bar{--hn:#0E2438;--hn2:#173E66;--cu:#B87333;position:sticky;top:0;z-index:30;margin:18px 0 22px;border-radius:14px;background:linear-gradient(135deg,var(--hn),var(--hn2));color:#fff;box-shadow:0 8px 22px rgba(14,36,56,.22);font-feature-settings:"palt"}
body.admin-bar .h65-bar{top:32px}
.h65-bar__in{padding:10px 14px 9px;display:flex;flex-direction:column;gap:7px}
.h65-g{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap}
.h65-l{flex:0 0 auto;font-size:12px;font-weight:800;letter-spacing:.06em;color:#cfd9e6;min-width:3.4em}
.h65-chips{display:flex;flex-wrap:wrap;gap:5px}
.h65-bar button{appearance:none;cursor:pointer;border:1.5px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);color:#fff;font-size:13px;font-weight:700;line-height:1;padding:7px 11px;border-radius:999px;transition:background .12s,border-color .12s}
.h65-bar button:hover{background:rgba(255,255,255,.18)}
.h65-bar button.is-on{background:#fff;color:var(--hn);border-color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.h65-chips button[class^="pk-"]:before{content:"";display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px;vertical-align:-1px;background:var(--pc)}
.h65-seg{display:inline-flex;gap:4px}
.h65-g2{gap:8px 14px}
.h65-jump{display:inline-flex;align-items:center;gap:8px;margin:0}
.h65-jump select{font-size:13.5px;max-width:15em;padding:6px 8px;border-radius:8px;border:0;color:var(--hn);background:#fff;font-weight:700}
.h65-sum{font-size:11.5px;color:#aebcd0}

/* 管種の色 */
.pk-CPPE{--pc:#0E7A63}.pk-ECP{--pc:#B85C00}.pk-HIVE{--pc:#9C27B0}.pk-VE{--pc:#6B45BE}.pk-CD{--pc:#C06E00}.pk-PF{--pc:#00874F}.pk-FEP{--pc:#1E80D8}.pk-SGP{--pc:#4A5A6B}
table.h65-t [data-p="0"]{--pc:#0E7A63;--pt:#E4F3EF}
table.h65-t [data-p="1"]{--pc:#B85C00;--pt:#FBEFE3}
table.h65-t [data-p="2"]{--pc:#9C27B0;--pt:#F6E9F8}
table.h65-t [data-p="3"]{--pc:#6B45BE;--pt:#EFEAFA}
table.h65-t [data-p="4"]{--pc:#C06E00;--pt:#FCF1E2}
table.h65-t [data-p="5"]{--pc:#00874F;--pt:#E3F4EC}
table.h65-t [data-p="6"]{--pc:#1E80D8;--pt:#E7F1FC}
table.h65-t [data-p="7"]{--pc:#4A5A6B;--pt:#ECEFF3}

body.postid-6501 table.h65-t{border-collapse:separate!important;border-spacing:0!important;font-size:14px!important;font-variant-numeric:tabular-nums;border:1px solid #d7dfe9!important;border-radius:10px;overflow:hidden;background:#fff!important;box-shadow:0 4px 14px rgba(14,36,56,.07)}
body.postid-6501 table.h65-t caption{caption-side:top;text-align:left;font-size:14.5px;font-weight:800;color:#0E2438;padding:2px 2px 8px}
body.postid-6501 table.h65-t th,body.postid-6501 table.h65-t td{border:0!important;border-bottom:1px solid #edf1f6!important;padding:7px 6px!important;text-align:center;line-height:1.25;white-space:nowrap}
body.postid-6501 table.h65-t thead th,body.postid-6501 table.h65-t tr:nth-child(-n+2) th{background:#0E2438!important;color:#fff!important;font-size:12.5px;font-weight:800}
body.postid-6501 table.h65-t tr th[data-cs][data-p]{background:var(--pc)!important;color:#fff!important;font-size:13px;letter-spacing:.02em;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
body.postid-6501 table.h65-t tr th[data-r][data-p]{background:var(--pt)!important;color:var(--pc)!important;font-size:11.5px}
body.postid-6501 table.h65-t td[data-p]{font-weight:700;color:#1f2a37}
body.postid-6501 table.h65-t td[data-r="32"]{border-left:1px solid #e3e9f1!important}
body.postid-6501 table.h65-t tbody tr:nth-child(even) td{background:#f7f9fc}
body.postid-6501 table.h65-t td.h65-na{color:#c0c8d2!important;font-weight:400}
body.postid-6501 table.h65-t td:first-child,body.postid-6501 table.h65-t td.k{font-weight:800;color:#0E2438;text-align:left;background:#f3f6fa!important}
body.postid-6501 table.h65-t tbody tr:hover td{background:#FFF6DA!important}
body.postid-6501 table.h65-t .h65-x{display:none!important}

/* 1管種にしぼったとき：数字を大きく、表を詰める */
.h65-one table.h65-t td[data-p]{font-size:16px;font-weight:800;color:var(--pc)}
.h65-one table.h65-t{min-width:0!important;width:auto!important}

body.postid-6501 .h65-one .hk-tw,body.postid-6501 .h65-one .hkt-wrap{width:fit-content;max-width:100%}
/* 表ごとの「管種でしぼる」は上のバーにまとめる */
body.postid-6501 .hk-tbar .hk-fil{display:none!important}

/* 元の画像は折りたたみ */
.h65-img{margin:4px 0 22px;border:1px dashed #cdd7e4;border-radius:10px;background:#fafbfd}
.h65-img>summary{cursor:pointer;list-style:none;padding:8px 12px 8px 32px;font-size:13px;font-weight:700;color:#173E66;position:relative}
.h65-img>summary::-webkit-details-marker{display:none}
.h65-img>summary:before{content:"";position:absolute;left:13px;top:50%;width:7px;height:7px;margin-top:-5px;border-right:2px solid #B87333;border-bottom:2px solid #B87333;transform:rotate(-45deg);transition:transform .15s}
.h65-img[open]>summary:before{transform:rotate(45deg)}
.h65-img>a{display:block;padding:0 10px 10px}
.h65-img img{max-width:100%;height:auto}

@media (max-width:640px){
	body.admin-bar .h65-bar{top:46px}
	.h65-bar{border-radius:12px;margin:14px -4px 18px}
	.h65-bar__in{padding:8px 10px 7px;gap:6px}
	.h65-l{min-width:0;font-size:11px}
	.h65-chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px;max-width:100%}
	.h65-g{flex-wrap:nowrap;min-width:0}
	.h65-g2{flex-wrap:wrap}
	.h65-bar button{font-size:12.5px;padding:7px 10px;flex:0 0 auto}
	.h65-jump select{max-width:11em;font-size:13px}
	.h65-sum{display:none}
	body.postid-6501 table.h65-t{font-size:13px!important}
	.h65-one table.h65-t td[data-p]{font-size:15px}
}
