/* ==========================================================================
   IXSTAS Corporate Site — Design System (C-2: Mono x Dodger Blue)
   ========================================================================== */

:root {
  --bg: #0c0c0c;
  --bg-panel: #141414;
  --bg-panel-2: #191919;
  --border: #262626;
  --border-strong: #3a3a3a;
  --text: #f2f2f0;
  --text-muted: #8f8d89;
  --text-faint: #5c5a56;

  --accent: #1e90ff;
  --accent-dim: rgba(30, 144, 255, 0.12);
  --glow: 0 0 26px rgba(30, 144, 255, 0.35);
  --danger: #ff4f6d;

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.45);
  --header-h: 76px;

  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-head: "Sora", "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-mono: "JetBrains Mono", "Sora", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; letter-spacing: 0.01em; }

/* Background ambience: kept minimal / near-flat for the mono aesthetic ------ */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(900px 500px at 50% -10%, rgba(30, 144, 255, 0.10), transparent 60%);
}

/* Header ----------------------------------------------------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(12, 12, 12, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease;
}
#site-header.is-scrolled { background: rgba(12, 12, 12, 0.92); }
#site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.brand img { width: 30px; height: 30px; border-radius: var(--radius-sm); }
.brand .en { color: var(--text-faint); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; display: block; font-family: var(--font-mono); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn-cta { margin-left: 4px; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  position: relative;
  cursor: pointer;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-btn::before { top: 14px; }
.menu-btn span { top: 19px; }
.menu-btn::after { top: 24px; }
.menu-btn.is-open::before { transform: translateY(5px) rotate(45deg); }
.menu-btn.is-open::after { transform: translateY(-5px) rotate(-45deg); }
.menu-btn.is-open span { opacity: 0; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--accent);
  border: none;
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(30, 144, 255, 0.55); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 11px 20px; font-size: 13px; }

/* Eyebrow / section heads --------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.section { padding: 108px 0; position: relative; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.4; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 15px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* Hero ------------------------------------------------------------------ */
#hero {
  padding: 84px 0 96px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
#hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: end; }
#hero .tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#hero .tag::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
#hero .tag i { display: none; }
#hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
#hero h1 .grad { color: var(--accent); }
#hero .lead {
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 46ch;
}
#hero .cta-row { display: flex; gap: 2px; margin-top: 38px; flex-wrap: wrap; }

#hero .visual {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 38%, rgba(30,144,255,0.16), transparent 55%),
    var(--bg-panel);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
#hero .visual::before { content: none; }
#hero .visual::after {
  content: "";
  position: absolute;
  top: 22px; left: 22px; right: 22px; bottom: 22px;
  border: 1px solid var(--border);
  pointer-events: none;
}
#hero .visual .core {
  position: relative;
  width: auto;
  border-radius: 0;
  background: none;
  border: none;
  backdrop-filter: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
#hero .visual .core img {
  width: 168px; height: 168px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 0 44px rgba(30,144,255,.5));
}
#hero .visual .core .rule { width: 40px; height: 1px; background: var(--border-strong); }
#hero .visual .core .num { font-family: var(--font-head); font-size: 44px; font-weight: 800; color: var(--accent); text-shadow: 0 0 30px rgba(30,144,255,.5); line-height: 1; }
#hero .visual .core .lbl { font-size: 12px; color: var(--text-muted); margin-top: 8px; font-family: var(--font-mono); letter-spacing: 0.08em; }

/* Trust / partners strip -------------------------------------------------- */
#trust { padding: 44px 0; border-bottom: 1px solid var(--border); }
#trust .trust-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
#trust .trust-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: 0.1em; white-space: nowrap; text-transform: uppercase; }
#trust .badges { display: flex; gap: 0; flex-wrap: wrap; }
#trust .badge {
  padding: 0 20px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
#trust .badge:last-child { border-right: none; }

/* Service cards ---------------------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.svc-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background .25s ease;
}
.svc-card:hover { background: var(--bg-panel); }
.svc-card .ico {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--glow);
}
.svc-card .ico svg { width: 20px; height: 20px; stroke: #0c0c0c; }
.svc-card h3 { font-size: 17px; margin-bottom: 12px; }
.svc-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.9; }
.svc-card .num { font-family: var(--font-mono); color: var(--text-faint); font-size: 12.5px; margin-bottom: 16px; display: block; }

/* Service detail (image + text) rows -------------------------------------- */
.svc-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; margin-top: 88px; }
.svc-detail.reverse { grid-template-columns: 1.1fr 0.9fr; }
.svc-detail.reverse .svc-detail-media { order: 2; }
.svc-detail-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.svc-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail-body .eyebrow { margin-bottom: 12px; }
.svc-detail-body h3 { font-size: 24px; line-height: 1.5; margin-bottom: 18px; }
.svc-detail-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }
.related-box {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.related-box .rb-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.08em; margin-bottom: 10px; text-transform: uppercase; }
.related-box a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-muted);
  padding: 6px 0;
  transition: color .2s ease;
}
.related-box a:hover { color: var(--accent); }
.related-box a::before { content: "→"; color: var(--accent); }

.svc-detail-media.abstract {
  aspect-ratio: 4 / 3.1;
  background:
    radial-gradient(circle at 50% 42%, rgba(30,144,255,0.16), transparent 55%),
    var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.svc-detail-media.abstract::before { content: none; }
.svc-detail-media.abstract::after {
  content: "";
  position: absolute;
  top: 20px; left: 20px; right: 20px; bottom: 20px;
  border: 1px solid var(--border);
  pointer-events: none;
}
.svc-detail-media.abstract .tag-index {
  position: absolute;
  top: 36px; left: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.svc-detail-media.abstract .tag-label {
  position: absolute;
  bottom: 36px; right: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.svc-detail-media.abstract .icon-wrap {
  position: relative;
  width: 116px; height: 116px;
  border-radius: var(--radius-md);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(30,144,255,.45);
}
.svc-detail-media.abstract .icon-wrap svg { width: 52px; height: 52px; stroke: #0c0c0c; }

/* Stats / company snapshot ------------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.stat-card {
  background: var(--bg);
  padding: 28px 24px;
  text-align: left;
}
.stat-card .v { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.stat-card .v .grad { color: var(--accent); text-shadow: 0 0 24px rgba(30,144,255,.4); }
.stat-card .l { color: var(--text-muted); font-size: 13px; margin-top: 8px; font-family: var(--font-mono); }

/* News list ---------------------------------------------------------------- */
.news-list { border-top: 1px solid var(--border); }
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  transition: opacity .2s ease;
}
.news-item:hover { opacity: 0.7; }
.news-item time { font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }
.news-item .tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(30,144,255,0.4);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  justify-self: start;
  margin-bottom: 6px;
  display: inline-block;
}
.news-item .title { font-size: 14.5px; color: var(--text); }
.news-item .arrow { color: var(--text-faint); font-size: 18px; }

/* CTA band ------------------------------------------------------------------ */
#cta-band {
  border-radius: var(--radius-lg);
  padding: 70px 56px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 50% 0%, rgba(30,144,255,0.14), transparent 70%);
  pointer-events: none;
}
#cta-band h2 { font-size: clamp(24px, 3vw, 32px); position: relative; }
#cta-band p { color: var(--text-muted); margin-top: 14px; position: relative; }
#cta-band .cta-row { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; position: relative; }

/* Footer ---------------------------------------------------------------------- */
#site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; }
#site-footer .foot-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
#site-footer .brand { margin-bottom: 10px; }
#site-footer .foot-desc { color: var(--text-faint); font-size: 13.5px; max-width: 34ch; }
#site-footer nav { display: flex; gap: 28px; }
#site-footer nav a { font-size: 14px; color: var(--text-muted); }
#site-footer nav a:hover { color: var(--text); }
#site-footer .foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-faint); font-family: var(--font-mono);
}

/* Page header (inner pages) ---------------------------------------------------- */
.page-hero { padding: 64px 0 20px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.page-hero p { color: var(--text-muted); margin-top: 16px; max-width: 60ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--text-muted); }

/* Company info table ------------------------------------------------------------ */
.info-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.info-table { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-panel); }
.info-table dl { display: grid; grid-template-columns: 168px 1fr; margin: 0; }
.info-table div.row { display: contents; }
.info-table dt, .info-table dd { padding: 18px 22px; font-size: 14.5px; border-top: 1px solid var(--border); margin: 0; }
.info-table div.row:first-child dt, .info-table div.row:first-child dd { border-top: none; }
.info-table dt { color: var(--text-faint); font-weight: 500; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em; }
.info-table dd { color: var(--text); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); height: 100%; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(1) invert(0.92) contrast(0.85); }

/* Contact page ------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1px; align-items: stretch; background: var(--border); border: 1px solid var(--border); }
.contact-side {
  background: var(--bg-panel);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.contact-side h3 { font-size: 16px; margin-bottom: 14px; }
.contact-side p { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.contact-side .addr { font-size: 13.5px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 18px; font-family: var(--font-mono); margin-top: auto; }
.contact-side .addr strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 6px; font-weight: 600; font-family: var(--font-body); }

.contact-panel {
  background: var(--bg);
  padding: 40px 40px 36px;
}

/* -- Restyle SIRIUS-generated contact form (structure/IDs unchanged, look updated) -- */
.contact-form h4.fm { font-family: var(--font-head); font-size: 18px; margin-bottom: 6px; }
.contact-form .desc { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; line-height: 1.9; }
.contact-form dl.item { margin: 0 0 22px; }
.contact-form dt.item_t {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.contact-form dt.item_t span.def {
  font-family: var(--font-mono);
  font-size: 10px; color: #0c0c0c; background: var(--accent);
  padding: 2px 8px; border-radius: var(--radius-sm); font-weight: 700;
}
.contact-form input.fm,
.contact-form textarea.fm {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input.fm:focus,
.contact-form textarea.fm:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.contact-form textarea.fm { min-height: 150px; resize: vertical; }
.contact-form .notes { font-size: 12.5px; color: var(--text-faint); margin: 4px 0 18px; }
.contact-form .agree { font-size: 13px; color: var(--text-muted); margin-bottom: 26px; }
.contact-form .agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-form .contact-btnbox { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-form .contact-btn { flex: 1; }
.contact-form input[type="submit"] {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(30,144,255,0.55); }
.contact-form #btn_correct { background: transparent; border: 1px solid var(--border-strong); color: var(--text); box-shadow: none; }
.contact-form span.hide.del { display: none; }
.contact-form .hide { display: none; }
.contact-form h4.hide { font-family: var(--font-head); font-size: 18px; }

/* jQuery validation engine prompt override */
.formError { font-family: var(--font-body) !important; }
.formError .formErrorContent {
  background: var(--danger) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 12.5px !important;
  padding: 8px 12px !important;
}
.formError .formErrorArrow div { background: var(--danger) !important; }

/* Modaal privacy policy modal */
.modaal-wrapper .modaal-inner-wrapper .modaal-container {
  background: var(--bg-panel-2) !important;
  color: var(--text) !important;
  border-radius: var(--radius-md) !important;
}
.modaal-wrapper .modaal-content-container { padding: 34px !important; font-size: 13.5px; color: var(--text-muted); }
#contact-policy h4 { color: var(--text); margin: 20px 0 8px; font-size: 15px; }
.modaal-close { background: var(--bg-panel) !important; }
.modaal-close span { background: var(--text) !important; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  #hero .wrap { grid-template-columns: 1fr; }
  #hero .visual { max-width: 320px; aspect-ratio: auto; margin: 0 auto; padding: 34px 26px; }
  #hero .visual .core { gap: 20px; }
  #hero .visual .core img { width: 92px; height: 92px; }
  #hero .visual .core .num { font-size: 34px; }
  .cards-3 { grid-template-columns: 1fr; }
  .svc-detail, .svc-detail.reverse { grid-template-columns: 1fr; }
  .svc-detail.reverse .svc-detail-media { order: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .info-panel { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .contact-panel { padding: 30px 22px; }
  .section { padding: 76px 0; }
  #cta-band { padding: 46px 24px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .news-item .arrow { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  #trust .trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  #trust .badge { padding: 0 16px 0 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .svc-detail-media.abstract .icon-wrap { width: 92px; height: 92px; }
  .svc-detail-media.abstract .icon-wrap svg { width: 40px; height: 40px; }
  .svc-detail-media.abstract .tag-index,
  .svc-detail-media.abstract .tag-label { font-size: 10.5px; }
  .svc-detail-media.abstract::after { top: 16px; left: 16px; right: 16px; bottom: 16px; }
  .svc-detail-media.abstract .tag-index { top: 28px; left: 28px; }
  .svc-detail-media.abstract .tag-label { bottom: 28px; right: 28px; }
}

/* Mobile nav drawer -------------------------------------------------------------- */
#mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(12,12,12,0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
#mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
#mobile-nav a {
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-family: var(--font-head);
}
#mobile-nav .btn { margin-top: 24px; justify-content: center; }

/* ==========================================================================
   Article / legacy content pages (/live/ ranking & guide articles)
   Restyles the existing SIRIUS-authored content markup to match the new
   design system. Content structure/text is untouched — only look & feel.
   ========================================================================== */

#contents .inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

#main-header { padding-top: 8px; }
.article-page-head { padding: 56px 0 8px; }
.article-page-head .breadcrumb { margin-bottom: 16px; }

#text1-section { padding: 48px 0 90px; }
#text1-section > h2:first-of-type,
#text1-section h2#i1,
.txt-body { }

#text1-section > h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.5;
  margin: 0 0 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.txt-body h2 {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.8vw, 26px);
  line-height: 1.55;
  margin: 64px 0 26px;
  padding: 16px 20px;
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.txt-body h3 {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.6;
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--border-strong);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.txt-body h4 {
  font-family: var(--font-head);
  font-size: 16px;
  margin: 30px 0 14px;
  color: var(--accent);
}
.txt-body p { color: var(--text-muted); font-size: 15px; margin: 0; }
.txt-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.txt-body strong { color: var(--text); }

/* Inline emphasis markers ------------------------------------------------- */
.txt-body .mky_yellow { background: linear-gradient(transparent 62%, rgba(255,196,0,0.35) 62%); color: var(--text); font-weight: 600; }
.txt-body .mky_red,
.txt-body .mky_red_a { background: linear-gradient(transparent 62%, rgba(255,79,109,0.28) 62%); color: var(--text); font-weight: 600; }
.txt-body .mky_blue { background: linear-gradient(transparent 62%, rgba(30,144,255,0.32) 62%); color: var(--text); font-weight: 600; }
.txt-body .lightblue { color: var(--accent); }
.txt-body .pale { color: var(--text-faint); }
.txt-body .black { color: var(--text); }

/* Images ------------------------------------------------------------------- */
.txt-body img { border-radius: var(--radius-md); }
.txt-body img.image-center { margin: 28px auto; display: block; }
.txt-body img.img-photo { margin: 20px auto; display: block; border: 1px solid var(--border); }

/* Tables --------------------------------------------------------------------- */
.txt-body .scroll_table { overflow-x: auto; margin: 28px 0; border-radius: var(--radius-md); border: 1px solid var(--border); }
.txt-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.txt-body table thead th {
  background: var(--bg-panel-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-strong);
  text-align: left;
}
.txt-body table th.table-thblank { background: var(--bg-panel-2); }
.txt-body table tbody th {
  background: var(--bg-panel);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.txt-body table td, .txt-body table tbody th {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.txt-body table tr:hover td, .txt-body table tr:hover th { background: rgba(30,144,255,0.05); }

/* Boxes: tip / bordered list / dotted download box --------------------------- */
.txt-body .thint {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--accent-dim);
  border: 1px solid rgba(30,144,255,0.35);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
}
.txt-body .thint a { font-weight: 600; }

.txt-body .rnd1.rbox1.shadow1 {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.txt-body .rnd1.rbox1.shadow1 ul.li-check,
.txt-body .rnd1.rbox1.shadow1 ol { margin: 0; padding: 0; list-style: none; }
.txt-body .rnd1.rbox1.shadow1 ul.li-check li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.txt-body .rnd1.rbox1.shadow1 ul.li-check li:last-child { border-bottom: none; }
.txt-body .rnd1.rbox1.shadow1 ul.li-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}
.txt-body .rnd1.rbox1.shadow1 ol {
  counter-reset: rnd-ol;
}
.txt-body .rnd1.rbox1.shadow1 ol li {
  position: relative;
  counter-increment: rnd-ol;
  padding: 8px 0 8px 32px;
  font-size: 14.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.txt-body .rnd1.rbox1.shadow1 ol li:last-child { border-bottom: none; }
.txt-body .rnd1.rbox1.shadow1 ol li::before {
  content: counter(rnd-ol);
  position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

.txt-body .point {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(30,144,255,0.4);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  margin-bottom: 10px;
}

.txt-body .dottbox {
  margin: 24px 0;
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--bg-panel);
}
.txt-body .dottbox img { display: inline-block; margin: 0 auto; }

/* TOC box ---------------------------------------------------------------------- */
#index_wrapper { margin: 32px 0 40px; }
#indexlist {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
#index_inner { position: relative; }
#indexlist .title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 90px 16px 22px;
  border-bottom: 1px solid var(--border);
}
#index_panel { display: none; }
#index_button {
  position: absolute;
  top: 12px; right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(30,144,255,0.4);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  cursor: pointer;
}
#index_inner ul.li {
  list-style: none;
  margin: 0;
  padding: 18px 22px;
  max-height: 420px;
  overflow-y: auto;
}
#index_panel:not(:checked) ~ ul.li,
#index_panel:not(:checked) + label + ul.li { display: none; }
#indexlist ul.li li { margin-bottom: 4px; }
#indexlist ul.li a {
  display: block;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  border-bottom: 1px dashed transparent;
}
#indexlist ul.li a:hover { color: var(--accent); }
#indexlist ul.li ol.ol { list-style: none; margin: 2px 0 6px 18px; padding: 0; }
#indexlist ul.li ol.ol a { font-size: 13px; color: var(--text-faint); }
#indexlist ul.li ol.ol a::before { content: "– "; }

/* Related article cards --------------------------------------------------------- */
#text1-section ul:has(> li > article.article),
.category_ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
article.article { display: block; height: 100%; }
.article-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s ease;
}
.article-inner:hover { border-color: var(--border-strong); }
.article-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin: 0; border-radius: 0; }
.article-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-title a { font-family: var(--font-head); font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.6; }
.article-desc { font-size: 12.5px; color: var(--text-faint); line-height: 1.7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.article-more { margin-top: auto; }
.article-more a { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }

/* Breadcrumb (#siteNavi) + back-to-top ------------------------------------------- */
#siteNavi { border-top: 1px solid var(--border); margin-top: 60px; }
#siteNavi .siteNavi_ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 18px 0; max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
#siteNavi .siteNavi_ul li { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
#siteNavi .siteNavi_ul li + li::before { content: "/"; margin-right: 8px; color: var(--text-faint); }
#siteNavi .siteNavi_ul a { color: var(--text-faint); }
#siteNavi .siteNavi_ul a:hover { color: var(--accent); }

#pagetop { position: fixed; right: 24px; bottom: 24px; z-index: 90; }
#pagetop a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
#pagetop a::before { content: "↑"; font-size: 16px; }

.categorylist { margin: 64px 0 0; padding-top: 48px; border-top: 1px solid var(--border); }
.categorylist .title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 24px;
}
.categorylist .title span { display: inline; }
#menu:empty { display: none; }

@media (max-width: 700px) {
  #text1-section ul:has(> li > article.article),
  .category_ul { grid-template-columns: minmax(0, 1fr); }

  /* Tables not already wrapped in .scroll_table would otherwise overflow the
     viewport on mobile (some legacy pages emit a bare <table> with no
     wrapper div) — make the table itself the horizontal-scroll container. */
  .txt-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .txt-body .scroll_table table { display: table; overflow-x: visible; }
}
