@import url("fxpro-broker.css");

/* =====================================================================
   HFM page — additions on top of the shared broker stylesheet
   ===================================================================== */

/* account comparison table */
.fx-table-wrap{
  margin-top:40px;
  overflow-x:auto;
  border:1px solid var(--line-strong);
  background:rgba(8,11,22,.5);
  -webkit-overflow-scrolling:touch;
}
.fx-table{
  width:100%;
  min-width:880px;
  border-collapse:collapse;
  font-family:"Noto Sans JP",sans-serif;
}
.fx-table thead th{
  padding:16px 18px;
  text-align:left;
  white-space:nowrap;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--gold);
  background:rgba(212,181,120,.07);
  border-bottom:1px solid var(--line-strong);
}
.fx-table tbody td{
  padding:17px 18px;
  font-size:13.5px;
  line-height:1.75;
  color:var(--off-2);
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}
.fx-table tbody tr:last-child td{border-bottom:0}
.fx-table tbody tr:hover td{background:rgba(212,181,120,.045)}
.fx-table tbody td b{color:#fff;font-weight:700}
.fx-table tbody td:first-child{white-space:nowrap}
.fx-row-rec td{background:rgba(212,181,120,.085)}
.fx-row-rec td:first-child{box-shadow:inset 3px 0 0 var(--gold)}
.fx-tag{
  display:inline-block;
  margin-left:8px;
  padding:2px 7px;
  font-family:"JetBrains Mono",monospace;
  font-size:9px;
  letter-spacing:.16em;
  color:#0a0a0c;
  background:linear-gradient(135deg,#e3c68f,#b89855);
  vertical-align:1px;
}
.fx-src{
  margin-top:18px;
  font-family:"Noto Sans JP",sans-serif;
  font-size:12.5px;
  line-height:1.95;
  color:var(--muted);
  max-width:900px;
}
.fx-src b{color:var(--gold-2)}

/* hero: HFM accent (slightly cooler gold + deeper navy) */
.fx-hero-title .en{color:var(--gold-2)}

/* CTA note under buttons (reused on the open band) */
.btn-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  font-family:"Noto Sans JP",sans-serif;
  font-size:12.5px;
  letter-spacing:.04em;
  color:var(--muted);
}
.btn-meta .sep{color:var(--line-strong)}

@media (max-width:900px){
  .fx-table{min-width:0}
  .fx-table thead{display:none}
  .fx-table tbody tr{display:grid;grid-template-columns:1fr;gap:0;
    padding:18px 16px;border-bottom:1px solid var(--line)}
  .fx-table tbody td{border-bottom:0;padding:5px 0;font-size:13.5px}
  .fx-table tbody td:first-child{font-size:16px;color:#fff;margin-bottom:6px}
  .fx-table tbody td::before{
    content:attr(data-lbl);
    display:inline-block;
    min-width:104px;
    margin-right:10px;
    font-family:"JetBrains Mono",monospace;
    font-size:9.5px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--gold);
  }
  .fx-table tbody td:first-child::before{content:none}
  .fx-row-rec td:first-child{box-shadow:none}
}

/* HFM: black-dominant surfaces (official black #000000 + red #CD0511) */
body.brand-hfm .fx-hero-stats{background:rgba(0,0,0,.62)!important}
body.brand-hfm .fx-table-wrap,body.brand-hfm .fx-why-item,
body.brand-hfm .fx-strength-item,body.brand-hfm .fx-step{background:rgba(0,0,0,.55)!important}
body.brand-hfm .up-live,body.brand-hfm .up-item{background:rgba(0,0,0,.5)!important}
body.brand-hfm .fx-hero-bg{opacity:.42;filter:saturate(.95) contrast(1.05)}

/* ==== 今だけ価格（通常価格の取り消し線つき） ==== */
.price-was{text-decoration:line-through;text-decoration-thickness:1.5px;text-decoration-color:currentColor;opacity:.68;font-weight:500;white-space:nowrap}
.price-now{font-weight:700;white-space:nowrap}
.price-now-tag{display:inline-block;font-weight:800;letter-spacing:.08em;padding:.34em .8em;border-radius:999px;background:var(--red);color:#fff;line-height:1.2;white-space:nowrap}
/* 大きな金額欄：元値とバッジを1行、今の価格を次の行にして桁落ちを防ぐ */
.price .price-was,.price-amt .price-was,.rt-price .price-was,.price-wrap .price-was{font-size:.46em}
.price .price-now-tag,.price-amt .price-now-tag,.rt-price .price-now-tag,.price-wrap .price-now-tag{font-size:.34em}
.price-amt--deal{display:flex;flex-direction:column;align-items:flex-start;gap:.14em;font-size:clamp(34px,3.2vw,52px);line-height:1.05}
.price-amt--deal .price-old{display:flex;align-items:center;flex-wrap:wrap;gap:.5em}
.price-amt--deal .price-new{display:flex;align-items:baseline;gap:.02em}
.price-amt--deal .price-now-tag{font-size:.28em}
