/* PTSマーケット表示（pts.php 専用）2026-10-17 / クラスは pmk- で統一 */
.pmk-mono{font-family:"Roboto Mono",Menlo,Consolas,monospace}
@keyframes pmk-pulse{0%{opacity:1}50%{opacity:.35}100%{opacity:1}}

/* ---- 左カード ---- */
.pmk-card{width:380px;margin:10px 0 15px 0;box-sizing:border-box;background:#141a2e;border-radius:10px;padding:14px 16px 16px;color:#fff;display:flex;flex-direction:column;gap:12px;line-height:1.4}
.pmk-hd{display:flex;align-items:center;gap:8px}
.pmk-dot{width:9px;height:9px;border-radius:50%;background:#3ddc84;animation:pmk-pulse 1.6s infinite;flex:none}
.pmk-dot.is-off{background:#8a90a0;animation:none}
.pmk-ttl{font-size:14px;font-weight:700}
.pmk-mkt{font-size:11px;font-weight:700;background:#4f6fd8;border-radius:4px;padding:2px 7px;white-space:nowrap}
.pmk-mkt.is-off{background:#5b6170}
.pmk-clock{margin-left:auto;font-size:18px;font-weight:700;color:#ff6b62}
.pmk-bar{position:relative;height:12px;background:#262e4a;border-radius:3px}
.pmk-seg{position:absolute;top:0;height:12px;border-radius:3px;background:#7f9bff}
.pmk-seg.x{top:3px;height:6px;background:#c9d4ff}
.pmk-now{position:absolute;top:-4px;width:2px;height:20px;margin-left:-1px;background:#ff6b62}
.pmk-hrs{position:relative;height:12px;font-size:10px;color:#8a93b0;margin-top:4px}
.pmk-hrs span{position:absolute;width:30px;margin-left:-15px;text-align:center}
.pmk-hrs span:first-child{margin-left:0;text-align:left}
.pmk-hrs span:last-child{margin-left:-30px;text-align:right}
.pmk-go{height:56px;box-sizing:border-box;border-radius:8px;background:#fff;color:#141a2e!important;text-decoration:none!important;display:flex;align-items:center;gap:10px;padding:0 14px}
.pmk-go:hover{background:#eef1fa}
.pmk-go:focus-visible{outline:3px solid #9fb1e3;outline-offset:2px}
.pmk-red{width:11px;height:11px;border-radius:50%;background:#d6332b;animation:pmk-pulse 1.2s infinite;flex:none}
.pmk-go-t{display:flex;flex-direction:column;flex-grow:1;line-height:1.3}
.pmk-go-t b{font-size:18px}
.pmk-go-t span{font-size:11px;color:#4b5263}
.pmk-brk{display:flex;align-items:center;gap:6px;font-size:11px;color:#8a93b0;flex-wrap:wrap}
.pmk-b{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:12px;background:#2c3553;color:#aab3cc!important;text-decoration:none!important;font-size:11px}
.pmk-b b{color:#fff;font-weight:700}
.pmk-b.is-on{background:#1f7a3a;color:#d9f5e1!important}
.pmk-ord{font-size:11px;color:#8a93b0;margin-top:-4px}
.pmk-ord b{font-weight:700;color:#c4cbe0}
.pmk-ord .on{color:#5fd68a;font-weight:700}

/* ---- 下段セクション ---- */
.pmk-sec{display:flex;flex-direction:column;gap:20px;margin:24px 0 28px}
.pmk-h2{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:18px!important;font-weight:700;color:#1f2330;line-height:1.4}
.pmk-h2::before,.pmk-h2::after{display:none!important}
.pmk-box{border:1px solid #d5dbeb;border-radius:12px;padding:18px 24px 22px;display:flex;flex-direction:column;gap:12px}
.pmk-box-hd{display:flex;align-items:center;gap:14px}
.pmk-now-mkt{font-size:15px;font-weight:700;color:#fff;background:#34458a;border-radius:6px;padding:4px 12px}
.pmk-now-mkt.is-off{background:#5b6170}
.pmk-now-clock{margin-left:auto;font-size:15px;font-weight:700;color:#d6332b}
.pmk-note{margin:0;font-size:13px;line-height:1.6;color:#343a48}
.pmk-small{font-size:12px;color:#6b7280}
.pmk-lanes{display:flex;flex-direction:column;gap:6px}
.pmk-lane{display:flex;align-items:center;gap:12px;height:40px}
.pmk-lane-name{width:130px;display:flex;flex-direction:column;line-height:1.3}
.pmk-lane-name b{font-size:14px;color:#1f2330}
.pmk-lane-name span{font-size:11px;color:#4b5263}
.pmk-lane-bar{position:relative;flex-grow:1;height:18px;background:#eceef4;border-radius:4px}
.pmk-lseg{position:absolute;top:0;height:18px;border-radius:4px}
.pmk-lnow{position:absolute;top:-5px;width:2px;height:28px;margin-left:-1px;background:#d6332b}
.pmk-st{width:88px;flex:none;text-align:center;font-size:12px;font-weight:700;border-radius:4px;padding:4px 0;color:#4b5263;background:#e3e6ee}
.pmk-st.is-on{color:#fff;background:#1f7a3a}
.pmk-hours{position:relative;margin-left:142px;margin-right:100px;height:16px;font-size:11px;color:#6b7280}
.pmk-hours span{position:absolute;width:40px;margin-left:-20px;text-align:center}

.pmk-ir{border:1px solid #d5dbeb;border-radius:12px;overflow:hidden}
.pmk-ir-hd{padding:14px 20px;display:flex;align-items:baseline;gap:12px;background:#fbf3e6}
.pmk-ir-hd .pmk-h2{font-size:17px!important}
.pmk-ir-hd span{font-size:13px;color:#4b5263}
.pmk-ir table{width:100%;border-collapse:collapse;font-size:14px;margin:0}
.pmk-ir td{padding:11px 8px;border:0;border-top:1px solid #e6e8ef;vertical-align:top;background:#fff}
.pmk-ir td:first-child{padding-left:20px;width:56px;color:#4b5263}
.pmk-ir td:nth-child(2){width:170px}
.pmk-ir td:last-child{padding-right:20px;width:80px;text-align:right;font-size:13px;white-space:nowrap}
.pmk-tag{display:inline-block;font-size:11px;font-weight:700;color:#8a5a00;background:#fbe9c6;border-radius:4px;padding:1px 6px;margin-right:6px}

/* ---- スマホ ---- */
@media only screen and (max-width:480px){
  .pmk-card{width:96%;margin:12px auto 5px auto}
  .pmk-go{height:60px}
  .pmk-sec{margin:20px 2% 24px}
  .pmk-box{padding:14px 14px 16px}
  .pmk-box-hd{flex-wrap:wrap;gap:8px}
  .pmk-h2{font-size:16px!important}
  .pmk-lane{height:auto;flex-wrap:wrap;gap:4px 8px;padding:6px 0;border-top:1px solid #eceef4}
  .pmk-lane-name{width:auto;flex:1;flex-direction:row;align-items:baseline;gap:6px}
  .pmk-lane-bar{order:3;flex-basis:100%;height:10px}
  .pmk-lseg{height:10px}
  .pmk-lnow{height:18px;top:-4px}
  .pmk-st{width:84px}
  .pmk-hours{margin:0;font-size:10px}
  .pmk-ir-hd{flex-direction:column;gap:2px;padding:12px 14px}
  .pmk-ir table,.pmk-ir tbody,.pmk-ir tr,.pmk-ir td{display:block;width:auto!important}
  .pmk-ir tr{display:grid;grid-template-columns:auto 1fr auto;gap:2px 10px;padding:10px 14px;border-top:1px solid #e6e8ef;background:#fff}
  .pmk-ir td{padding:0!important;border:0!important;text-align:left!important}
  .pmk-ir td:nth-child(1){grid-row:1;grid-column:1;font-size:12px}
  .pmk-ir td:nth-child(2){grid-row:1;grid-column:2;font-weight:700}
  .pmk-ir td:nth-child(4){grid-row:1;grid-column:3}
  .pmk-ir td:nth-child(3){grid-row:2;grid-column:1/4;font-size:13px;color:#343a48}
}

/* ---- 共通CSSのリンク指定に負けないよう強める（2026-10-17） ---- */
.pmk-card a.pmk-go,.pmk-card a.pmk-go:link,.pmk-card a.pmk-go:visited{display:flex!important;align-items:center!important;height:56px!important;background:#fff!important;background-image:none!important;color:#141a2e!important;text-decoration:none!important;border:0!important;opacity:1!important;box-shadow:0 2px 0 rgba(0,0,0,.25)!important}
.pmk-card a.pmk-go:hover{background:#eef1fa!important}
.pmk-card a.pmk-go .pmk-go-t b{color:#141a2e!important;font-size:18px!important;font-weight:700!important;background:none!important}
.pmk-card a.pmk-go .pmk-go-t span{color:#4b5263!important;font-size:11px!important;background:none!important}
.pmk-card a.pmk-go .pmk-red{background:#d6332b!important}
@media only screen and (max-width:480px){.pmk-card a.pmk-go,.pmk-card a.pmk-go:link,.pmk-card a.pmk-go:visited{height:60px!important}}

/* ---- 注目開示：銘柄・タイトルは左寄せ／見出し右の説明はPCで改行しない（2026-10-17） ---- */
.pmk-ir td:nth-child(2),.pmk-ir td:nth-child(3){text-align:left!important}
@media only screen and (min-width:481px){
  .pmk-ir-hd{justify-content:space-between}
  .pmk-ir-hd span{white-space:nowrap;flex:none}
}

/* ---- 見出し：共通h2の横幅指定を打ち消し、バッジを見出しの右横に（2026-10-17） ---- */
.pmk-box-hd .pmk-h2,.pmk-ir-hd .pmk-h2{width:auto!important;flex:0 1 auto!important;display:block!important;float:none!important}
.pmk-now-mkt{white-space:nowrap!important;flex:none!important;line-height:1.4!important}
.pmk-now-clock{white-space:nowrap;flex:none}
