/* ========================================================
 * EXDREAM — shared subpage stylesheet
 * Maintains the top page's monotone × cyber aesthetic
 * ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=JetBrains+Mono:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;500;700&family=Noto+Sans+JP:wght@100;300;500;700;900&display=swap');

:root {
  --ink: #0a0a0a;
  --paper: #c9c6bf;
  --paper-bright: #d9d6cf;
  --cy: #00e5ff;
  --display: "Audiowide", "Noto Sans JP", cursive;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --mincho: "Noto Serif JP", serif;
  --gothic: "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  -webkit-font-smoothing: antialiased;
}
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ========= ATMOSPHERIC LAYERS (matches top page) ========= */
.bg {
  position: fixed; inset: 0;
  background: url("/bg-morewh.png") center center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.noise {
  position: fixed; inset: -20%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.scan {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.05) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply;
}
.vignette {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.28) 100%);
}

/* ========= HEADER ========= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em;
  background: linear-gradient(to bottom, rgba(201,198,191,0.85), rgba(201,198,191,0));
  backdrop-filter: blur(2px);
}
.sh-brand {
  display: inline-flex; align-items: center; gap: 12px;
}
.sh-brand .mark {
  font-family: var(--display);
  font-size: 18px; letter-spacing: 0.04em;
  color: var(--ink);
}
.sh-brand .sub {
  opacity: 0.55;
  font-size: 9px; letter-spacing: 0.32em;
}
.sh-meta { text-align: right; opacity: 0.65; }
.sh-meta .crumbs::before { content: "← "; opacity: 0.6; }
.sh-meta .crumbs a:hover { color: var(--cy); }
.sh-meta .id { font-size: 8px; opacity: 0.55; margin-top: 4px; }

/* ========= MAIN CONTENT WRAPPER ========= */
.main {
  position: relative; z-index: 10;
  padding: 110px 32px 140px;
  max-width: 1240px;
  margin: 0 auto;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.4em;
  display: inline-flex; align-items: center; gap: 12px;
  opacity: 0.7;
  margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--ink);
}

h1.page-title {
  font-family: var(--gothic);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
h2.page-en {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 26px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 28px;
}
.page-lead {
  font-family: var(--mincho);
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2;
  letter-spacing: 0.06em;
  max-width: 720px;
  margin-bottom: 56px;
}
.page-lead .lead-catch {
  display: inline-block;
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.12em;
}

.hr-rule {
  height: 1px;
  background: rgba(0,0,0,0.18);
  border: none;
  margin: 56px 0;
}

/* ========= SECTION & CARDS ========= */
.section + .section { margin-top: 72px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: 10px;
}
.section-head .title {
  font-family: var(--gothic);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.04em;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.35em;
  opacity: 0.6;
}

/* generic data table look */
.dl-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px 36px;
  font-family: var(--mono);
  font-size: 13px; line-height: 1.7;
}
.dl-grid dt {
  color: rgba(0,0,0,0.55);
  font-size: 10px; letter-spacing: 0.28em;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.18);
}
.dl-grid dd {
  font-size: 14px; letter-spacing: 0.04em;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.18);
}
.dl-grid dd .ja { font-family: var(--mincho); font-size: 15px; letter-spacing: 0.06em; }

/* card grid (for works / domain hub etc) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  background: rgba(10,10,10,0.04);
  border: 1px solid rgba(0,0,0,0.18);
  padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--cy);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,229,255,0.12);
}
.card .num {
  font-family: var(--display);
  font-size: 22px; letter-spacing: 0.04em;
  opacity: 0.75;
}
.card .ja-title {
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 22px;
}
.card .en-title {
  font-family: var(--display);
  font-size: 13px; letter-spacing: 0.18em;
  opacity: 0.7;
  text-transform: uppercase;
}
.card .desc {
  font-family: var(--mincho);
  font-size: 13px; line-height: 1.85; letter-spacing: 0.04em;
  margin-top: 4px;
}
.card .meta {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.28em;
  opacity: 0.6;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.card .arrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.3em;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
  transition: color 0.2s, gap 0.25s;
}
.card:hover .arrow { color: var(--cy); gap: 12px; }
.card .arrow::after { content: "→"; }

/* call-to-action button */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.32em;
  background: var(--ink);
  color: var(--paper-bright);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover {
  background: var(--cy);
  color: var(--ink);
  border-color: var(--cy);
  box-shadow: 0 0 24px rgba(0,229,255,0.4);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper-bright); border-color: var(--ink); box-shadow: none; }
@media (max-width: 768px) {
  .domain-cta-row {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .domain-cta-row .btn {
    flex: 0 1 auto;
    padding: 12px 14px;
    font-size: 10px;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }
  .domain-cta-row .mobile-cta-arrow {
    display: none;
  }
}

/* ========= FOOTER (drawer-style, matches top page) ========= */
.site-footer-inline {
  position: relative;
  z-index: 10;
  background: #0a0a0a;
  color: #d9d6cf;
  padding: 56px 32px 32px;
  margin-top: 100px;
  border-top: 1px solid rgba(0,229,255,0.18);
}
.sfi-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: block;
  text-align: center;
}
.sfi-brand-block {
  text-align: center;
  margin-bottom: 28px;
}
.sfi-brand {
  font-family: var(--display);
  font-size: 26px; letter-spacing: 0.04em;
}
.sfi-brand-sub {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.32em;
  opacity: 0.55;
  margin-top: 6px;
}
.sfi-kicker {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.32em;
  color: rgba(0, 229, 255, 0.7);
  text-align: center;
  opacity: 0.85;
  margin-bottom: 22px;
}
.sfi-section { margin-bottom: 8px; }
.sfi-section + .sfi-section {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sfi-label {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.32em;
  color: rgba(0, 229, 255, 0.7);
  text-align: center;
  margin-bottom: 14px;
  opacity: 0.85;
}
.sfi-links {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
}
.sfi-links a {
  color: #d9d6cf;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.sfi-links a:hover, .sfi-links a.current {
  color: var(--cy);
  border-color: var(--cy);
}
.sfi-links a.sfi-domain {
  color: var(--cy);
  border-bottom-color: rgba(0, 229, 255, 0.25);
}
.sfi-links a.sfi-domain:hover, .sfi-links a.sfi-domain.current {
  color: #fff;
  border-bottom-color: var(--cy);
}
.sfi-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.28em;
  opacity: 0.55;
  display: flex; justify-content: space-between;
}
@media (max-width: 768px) {
  .sfi-bottom { flex-direction: column; gap: 6px; align-items: center; text-align: center; }
  .sfi-links { gap: 10px 20px; font-size: 10px; }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .site-header { padding: 14px 18px; font-size: 9px; }
  .sh-brand .mark { font-size: 16px; }
  .main { padding: 96px 20px 80px; }
  .dl-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .dl-grid dt { padding-top: 16px; }
  .dl-grid dd { padding-top: 4px; border-top: none; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .sfi-inner { grid-template-columns: 1fr; }
  .sfi-links { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .sfi-bottom { flex-direction: column; gap: 6px; align-items: center; text-align: center; }
}

/* ========= HUD bits matching top page ========= */
.hud-tr {
  position: fixed;
  top: 22px; right: 32px;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.18em;
  text-align: right;
  z-index: 41;
  opacity: 0.6;
  pointer-events: none;
}
.hud-tr div + div { margin-top: 2px; }
@media (max-width: 768px) { .hud-tr { display: none; } }

/* ========= EN-SPECIFIC TYPOGRAPHY (Audiowide for English headlines) ========= */
html[lang="en"] h1.page-title,
html[lang="en"] h2.page-en,
html[lang="en"] .work-card .title-jp,
html[lang="en"] .work-card .title-en,
html[lang="en"] .ceo-name,
html[lang="en"] .ceo-en,
html[lang="en"] .module .ja,
html[lang="en"] .module .en,
html[lang="en"] .target .head,
html[lang="en"] .why .h,
html[lang="en"] .section-head .title,
html[lang="en"] .news-item .title,
html[lang="en"] .sns-card .ico,
html[lang="en"] .sns-card .name,
html[lang="en"] .sfi-brand,
html[lang="en"] .card .ja-title,
html[lang="en"] .card .en-title {
  font-family: var(--display); /* Audiowide */
  font-weight: 400;
  letter-spacing: 0.02em;
}
html[lang="en"] h1.page-title { letter-spacing: 0.01em; line-height: 1.05; }
html[lang="en"] .module .desc,
html[lang="en"] .target .body,
html[lang="en"] .why .b,
html[lang="en"] .ceo-bio p,
html[lang="en"] .page-lead,
html[lang="en"] .work-card .desc,
html[lang="en"] .case-body {
  /* keep readable body font, NOT Audiowide */
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

/* ========= LANGUAGE SWITCHER ========= */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(0,0,0,0.4);
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.32em;
  margin-left: 14px;
  vertical-align: middle;
}
.lang-switch a {
  padding: 5px 10px;
  color: var(--ink);
  opacity: 0.55;
  cursor: none;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
}
.lang-switch a.current {
  opacity: 1;
  background: var(--ink);
  color: var(--paper-bright);
}
.lang-switch a:not(.current):hover { opacity: 1; color: var(--cy); }
.lang-switch a + a { border-left: 1px solid rgba(0,0,0,0.4); }
.site-header .sh-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.site-header .sh-meta-row { display: inline-flex; align-items: center; }
@media (max-width: 768px) {
  .lang-switch { font-size: 8px; letter-spacing: 0.24em; margin-left: 8px; }
  .lang-switch a { padding: 4px 8px; }
}
