*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Sans','Yu Gothic','Meiryo','Noto Sans JP',sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #1a1a1a;
  background: #fff;
}
a { text-decoration: none; color: inherit; }

/* ── Header ── */
header {
  background: #fff;
  padding: 15px 48px;
  border-bottom: 1px solid #ebebeb;
  position: relative;
  z-index: 200;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header img.logo { height: 34px; display: block; }
header nav {
  display: flex;
  align-items: center;
}
header nav > a,
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  transition: color 0.15s;
}
header nav > a:hover,
header nav > a.active,
.nav-dropdown > a:hover,
.nav-dropdown > a.active {
  color: #F47921;
}
.caret { font-size: 9px; opacity: 0.5; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 4px;
  z-index: 300;
}
.nav-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #fafafa; color: #F47921; }
.dropdown-section { padding: 8px 16px 4px; font-size: 11px; color: #bbb; letter-spacing: 0.04em; }
.dropdown-divider { height: 1px; background: #efefef; margin: 4px 0; }

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-left: 12px;
}
.lang-btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  background: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.lang-btn.active { background: #F47921; color: #fff; }

/* ── Hero ── */
.hero {
  background: #fff;
  padding: 72px 48px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  opacity: 0.06;
  pointer-events: none;
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hero h2 {
  font-size: 46px;
  font-weight: 800;
  color: #F47921;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Stats band ── */
.stats-band { background: #ede9e3; padding: 48px; }
.stats-band-inner { max-width: 1100px; margin: 0 auto; }
.stats-band-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.stats-grid  { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats-row2  { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat-item { text-align: center; padding: 20px 16px; }
.stat-val {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s;
}
.stat-val.tick { color: #F47921; }
.stat-desc { font-size: 12px; color: #6b7280; margin-top: 6px; }
.stats-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.stats-updated { font-size: 11px; color: #b0a898; }

/* ── Main ── */
main { max-width: 1100px; margin: 0 auto; padding: 40px 48px; }

/* ── Page header (policy/rulebook) ── */
.page-header { margin-bottom: 32px; padding-bottom: 14px; border-bottom: 2px solid #F47921; }
.page-header h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-header .updated { font-size: 12px; color: #aaa; }

/* ── Policy body ── */
.policy-body { max-width: 760px; }
.policy-body h2 { font-size: 14px; font-weight: 700; color: #F47921; margin: 32px 0 10px; }
.policy-body p { margin-bottom: 12px; color: #333; font-size: 14px; }
.policy-body ul, .policy-body ol { padding-left: 22px; margin-bottom: 12px; }
.policy-body li { margin-bottom: 5px; color: #333; font-size: 14px; }
.policy-body a { color: #F47921; }

/* ── Section meta ── */
.sec-meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-meta-t { font-size: 13px; font-weight: 700; }
.sec-meta-n { font-size: 11px; color: #9ca3af; }
.table-section { margin-bottom: 40px; }

/* ── Data table ── */
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { background: #f9fafb; padding: 8px 12px; text-align: right; font-weight: 600; color: #6b7280; border-bottom: 1px solid #e5e7eb; font-size: 11px; white-space: nowrap; }
th.l { text-align: left; }
td { padding: 8px 12px; text-align: right; border-bottom: 1px solid #f3f4f6; color: #374151; white-space: nowrap; }
td.l { text-align: left; }
td.rank { color: #d1d5db; font-size: 11px; }
td.code { font-family: monospace; color: #9ca3af; font-size: 12px; }
td.name { font-weight: 500; color: #111827; }
tr:hover td { background: #fafafa; }
.up { color: #ef4444; }
.dn { color: #3b82f6; }

/* ── News teaser (index) ── */
.news-teaser-section { border-top: 1px solid #e5e7eb; padding-top: 32px; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-hd-t { font-size: 13px; font-weight: 700; }
.sec-hd-m { font-size: 12px; color: #F47921; }
.news-row { display: flex; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 13.5px; }
.news-row:last-child { border-bottom: none; }
.ndate { font-size: 12px; color: #9ca3af; width: 80px; flex-shrink: 0; }
.ncat { font-size: 11px; padding: 2px 7px; border-radius: 2px; background: #fff7ed; color: #c2410c; flex-shrink: 0; }
.ntitle { color: #1a1a1a; }
.ntitle:hover { color: #F47921; }

/* ── News full list ── */
.news-loading { font-size: 13px; color: #aaa; }
.news-item { padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.news-item:last-child { border-bottom: none; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.news-date { font-size: 12px; color: #aaa; }
.news-cat { font-size: 11px; padding: 2px 8px; border-radius: 2px; font-weight: 500; }
.cat-info    { background: #eff6ff; color: #1d4ed8; }
.cat-service { background: #f0fdf4; color: #166534; }
.cat-system  { background: #fdf4ff; color: #7e22ce; }
.cat-reg     { background: #fff7ed; color: #c2410c; }
.news-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: #1a1a1a; }
.news-title--link { color: #1a1a1a; font-size: 15px; font-weight: 600; }
.news-title--link:hover { color: #F47921; }
.pdf-icon { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 5px; border: 1px solid #F47921; border-radius: 2px; color: #F47921; margin-left: 6px; vertical-align: middle; letter-spacing: 0.05em; }
.news-body { font-size: 13.5px; color: #555; line-height: 1.8; }

/* ── Policies landing ── */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.policy-card { display: block; padding: 18px 20px; border: 1px solid #e8e8e8; border-radius: 3px; transition: border-color 0.15s, box-shadow 0.15s; }
.policy-card:hover { border-color: #F47921; box-shadow: 0 2px 8px rgba(244,121,33,0.08); }
.card-title { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 5px; }
.card-desc { font-size: 12px; color: #888; line-height: 1.6; }
h2.section-heading { font-size: 13px; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; }

/* ── Rulebook list ── */
.rulebook-list { margin-top: 4px; }
.rulebook-item { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #f0f0f0; }
.rulebook-item:last-child { border-bottom: none; }
.rulebook-name { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.rulebook-meta { font-size: 12px; color: #aaa; }
.rulebook-link { font-size: 12px; color: #F47921; padding: 4px 14px; border: 1px solid #F47921; border-radius: 2px; white-space: nowrap; flex-shrink: 0; margin-left: 16px; }
.rulebook-link:hover { background: #F47921; color: #fff; }

/* ── About ── */
.about-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.about-table th { width: 200px; text-align: left; padding: 13px 0; color: #888; font-weight: 500; vertical-align: top; border-bottom: 1px solid #f0f0f0; }
.about-table td { padding: 13px 0; color: #1a1a1a; border-bottom: 1px solid #f0f0f0; }

/* ── 404 ── */
.not-found { text-align: center; padding: 80px 0; }
.not-found .code { font-size: 72px; font-weight: 700; color: #F47921; line-height: 1; margin-bottom: 16px; }
.not-found h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.not-found p { color: #888; font-size: 14px; }
.not-found .back { display: inline-block; margin-top: 28px; padding: 10px 28px; background: #F47921; color: #fff; border-radius: 3px; font-size: 14px; }
.not-found .back:hover { background: #d9660f; }

/* ── Footer ──
   Rules live in the v2 block below; this section intentionally left empty
   so the two do not cascade into each other. */

/* ── Responsive ── */
@media (max-width: 700px) {
  header, footer { padding-left: 20px; padding-right: 20px; }
  main { padding: 24px 20px; }
  .hero { padding: 40px 20px 36px; }
  .hero h1, .hero h2 { font-size: 28px; }
  .stats-band { padding: 32px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row2 { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  header nav > a { padding: 8px 6px; font-size: 12px; }
}

/* ════════════════════════════════════════════════════════════
   v2 — requirements Ver1.0
   ════════════════════════════════════════════════════════════ */

/* ── Footer with regulatory disclaimer ── */
footer {
  background: #1a1a1a;
  padding: 36px 48px 28px;
  margin-top: 60px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: block; }

.disclaimer {
  border-bottom: 1px solid #2d2d2d;
  padding-bottom: 24px;
  margin-bottom: 20px;
}
.disclaimer-title {
  font-size: 12px;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 10px;
}
.disclaimer p {
  font-size: 11.5px;
  color: #8b8b8b;
  line-height: 1.85;
  margin-bottom: 10px;
}
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer .registration {
  color: #a5a5a5;
  margin-top: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: #6b7280; }
.footer-links a:hover { color: #F47921; }
.footer-copy { font-size: 11px; color: #4b5563; }

/* ── Disclosure list (情報開示) ── */
.disclosure-list { margin-top: 4px; }
.disclosure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 16px;
}
.disclosure-item:last-child { border-bottom: none; }
.disclosure-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.disclosure-meta { font-size: 12px; color: #aaa; margin-top: 2px; }
.disclosure-link {
  font-size: 11px; font-weight: 600;
  color: #F47921;
  padding: 4px 12px;
  border: 1px solid #F47921;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.disclosure-link:hover { background: #F47921; color: #fff; }
.disclosure-pending {
  font-size: 11px;
  color: #c5c5c5;
  padding: 4px 12px;
  border: 1px solid #ebebeb;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* FINMAC block */
.finmac-block {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 3px;
  padding: 20px 24px;
  margin-top: 12px;
}
.finmac-block h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.finmac-block p { font-size: 13px; color: #555; line-height: 1.8; margin-bottom: 10px; }
.finmac-contact { font-size: 13px; color: #333; line-height: 1.9; }
.finmac-contact dt {
  display: inline-block;
  width: 72px;
  color: #999;
  font-size: 12px;
  vertical-align: top;
}
.finmac-contact dd { display: inline; }
.finmac-contact div { margin-bottom: 3px; }

/* ── Trading info (取引情報) tabs ── */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}
.tab {
  padding: 9px 18px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: #F47921; }
.tab.active { color: #F47921; border-bottom-color: #F47921; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.empty-state {
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}
.table-note { font-size: 11px; color: #bbb; margin-top: 10px; }

/* Halt reason badge */
.reason-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 2px;
}
.reason-tse { background: #eff6ff; color: #1d4ed8; }
.reason-ixj { background: #fff7ed; color: #c2410c; }

/* ── Statistics (統計情報) ── */
.month-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.month-selector label { font-size: 12px; color: #6b7280; }
.month-selector select {
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
}
.month-selector select:focus { outline: none; border-color: #F47921; }

.daily-pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.daily-pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid #ebebeb;
  border-radius: 3px;
  font-size: 13px;
  transition: border-color 0.15s;
}
.daily-pdf-item:hover { border-color: #F47921; }
.daily-pdf-date { color: #1a1a1a; }
.daily-pdf-badge {
  font-size: 10px; font-weight: 700;
  color: #F47921;
  border: 1px solid #F47921;
  border-radius: 2px;
  padding: 1px 5px;
  letter-spacing: 0.05em;
}

@media (max-width: 700px) {
  footer { padding: 28px 20px 24px; }
  .tabs { overflow-x: auto; }
}

/* ── Classes replacing former inline style attributes (CSP: no 'unsafe-inline') ── */
.accent { color: #F47921; }
.section-heading--spaced { margin-top: 36px; }
.empty-full { grid-column: 1 / -1; }
