/* ════════════════════════════════════════════════════════
   IXAS Corporate Site — shared styles
   ════════════════════════════════════════════════════════ */

:root {
  --navy: #14253D;
  --navy-2: #233650;
  --navy-deep: #0B1B30;
  --accent: #2E5AAA;
  --accent-2: #4D85E0;
  --slate: #6B7E94;
  --slate-light: #B8C4D2;
  --ink: #0E141B;
  --ink-2: #3B4654;
  --ink-3: #6B7682;
  --line: #DEE3E9;
  --line-soft: #EEF1F5;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --bg-soft-2: #ECF0F4;

  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --display: "Barlow Condensed", "Noto Sans JP", sans-serif;
}

[data-tone="black"] { --navy: #0E141B; --navy-2: #1F2832; --accent: #C8102E; --accent-2: #E13B53; }
[data-tone="green"] { --navy: #0B3D2E; --navy-2: #145140; --accent: #1E8C61; --accent-2: #34B07F; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 36px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 36px; }
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 20px; }
}

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.en { font-family: var(--display); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 500; }

/* ════════ UTILITY BAR ════════ */
.util { background: var(--navy); color: rgba(255,255,255,0.7); font-size: 11px; padding: 8px 0; letter-spacing: 0.02em; }
.util .util-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 28px 0 28px; }
.util .left { color: rgba(255,255,255,0.85); font-weight: 500; }
.util .right { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,0.55); font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.util .util-sep { color: rgba(255,255,255,0.2); }
.util .util-meta::before { content: "● "; color: var(--accent-2); font-size: 7px; vertical-align: middle; }
@media (max-width: 720px) {
  .util .util-inner { padding: 0 20px; gap: 12px; }
  .util .right .util-sep, .util .right .util-meta:nth-child(n+3) { display: none; }
  .util .left { font-size: 10px; }
}

/* ════════ NAV ════════ */
.nav {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line-soft);
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
/* Only on the home page is nav transparent over the hero video */
body[data-page="home"] .nav {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: blur(0);
  color: #fff;
}
body[data-page="home"] .nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  color: var(--ink);
}
body[data-page="home"] .nav:not(.is-scrolled) .nav-links > li > a,
body[data-page="home"] .nav:not(.is-scrolled) .brand .tagline-en,
body[data-page="home"] .nav:not(.is-scrolled) .brand .tagline-ja {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
body[data-page="home"] .nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}
body[data-page="home"] .nav.is-scrolled::before { opacity: 0; }
body[data-page="home"] .nav:not(.is-scrolled) .nav-links .en-small {
  color: rgba(255,255,255,0.6);
}
body[data-page="home"] .nav:not(.is-scrolled) .brand .wordmark-img {
  filter: brightness(0) invert(1);
}
body[data-page="home"] .nav:not(.is-scrolled) .brand .brand-text {
  border-left-color: rgba(255,255,255,0.25);
}
body[data-page="home"] .nav:not(.is-scrolled) .nav-toggle {
  color: #fff;
}
body[data-page="home"] .nav.is-scrolled .nav-links > li > a,
body[data-page="home"] .nav.is-scrolled .brand .tagline-en,
body[data-page="home"] .nav.is-scrolled .brand .tagline-ja {
  color: var(--ink) !important;
}
body[data-page="home"] .nav.is-scrolled .nav-links .en-small {
  color: var(--ink-3) !important;
}
body[data-page="home"] .nav.is-scrolled .brand .tagline-en {
  color: var(--accent) !important;
}
body[data-page="home"] .nav.is-scrolled .brand .wordmark-img {
  filter: none !important;
}
body[data-page="home"] .nav.is-scrolled .brand .brand-text {
  border-left-color: var(--line) !important;
}
body[data-page="home"] .nav.is-scrolled .nav-toggle {
  color: var(--ink) !important;
}
/* On sub-pages: nav is solid white from the start, but body needs top padding so content isn't hidden under fixed nav */
body:not([data-page="home"]) { padding-top: 96px; }
@media (max-width: 1180px) {
  body:not([data-page="home"]) { padding-top: 76px; }
}
@media (max-width: 720px) {
  body:not([data-page="home"]) { padding-top: 60px; }
}
.nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
  padding: 0 36px 0 28px;
  width: 100%;
  max-width: none;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  height: 100%;
  flex-shrink: 0;
  padding: 12px 0;
}
.brand .mark-img {
  width: 44px; height: 48px;
  object-fit: contain;
  display: block;
  align-self: center;
  flex-shrink: 0;
}
.brand .brand-text {
  display: flex; flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: flex-start;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  height: 50px;
}
.brand .tagline-en {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.brand .wordmark-img {
  height: 18px;
  width: auto;
  display: block;
}
.brand .tagline-ja {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 1280px) {
  .brand .tagline-en { font-size: 9px; letter-spacing: 0.1em; }
  .brand .wordmark-img { height: 16px; }
  .brand .tagline-ja { font-size: 9.5px; }
  .brand .brand-text { height: 46px; gap: 4px; }
}
@media (max-width: 1180px) {
  .nav .nav-inner { height: 70px; }
  .brand .mark-img { width: 38px; height: 42px; }
  .brand .brand-text { height: 42px; gap: 3px; padding-left: 12px; }
  .brand .wordmark-img { height: 14px; }
  .brand .tagline-en, .brand .tagline-ja { font-size: 9px; }
}
@media (max-width: 720px) {
  .nav .nav-inner { height: 60px; padding: 0 20px; }
  .brand .brand-text { border-left: 0; padding-left: 0; height: auto; }
  .brand .tagline-en, .brand .tagline-ja { display: none; }
  .brand .mark-img { width: 32px; height: 36px; }
  .brand .wordmark-img { height: 14px; }
}
.nav-right {
  display: flex; align-items: center; gap: 8px;
  height: 100%;
  margin-left: auto;
}
.nav-links { display: flex; gap: 2px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  padding: 12px 18px;
  font-size: 14px; font-weight: 500;
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  transition: color 0.2s;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--accent); }
.nav-links > li > a::after {
  content: ""; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--accent); transition: width 0.3s;
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 60%; }
.nav-links .en-small { font-family: var(--display); font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; font-weight: 500; }
.nav-cta {
  background: var(--accent); color: #fff;
  padding: 14px 22px;
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.2s;
  margin-left: 16px;
  align-self: center;
}
.nav-cta:hover { background: var(--navy); }
.nav-cta svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; align-self: center; }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav .nav-inner { height: 70px; padding: 0 20px; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 90vw;
  background: var(--navy); color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 200;
  padding: 80px 32px 32px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .close {
  position: absolute; top: 22px; right: 22px;
  background: none; border: 0; color: #fff;
  width: 36px; height: 36px; cursor: pointer;
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 16px; font-weight: 500;
}
.mobile-menu a .en {
  display: block; font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 0.16em; margin-top: 4px;
}
.scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 150;
}
.scrim.open { opacity: 1; pointer-events: auto; }

/* ════════ SECTION HEADERS ════════ */
section { padding: 110px 0; }
@media (max-width: 720px) { section { padding: 70px 0; } }

.sec-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--accent); margin-bottom: 18px; }
.sec-eyebrow .num { font-family: var(--display); font-size: 14px; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 10px; }
.sec-eyebrow .en { font-family: var(--display); font-size: 13px; letter-spacing: 0.16em; font-weight: 700; }
.sec-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.sec-title .accent { color: var(--accent); }
.sec-title .div { display: inline-block; width: 56px; height: 2px; background: var(--accent); margin: 0 14px 8px; vertical-align: middle; }
.sec-sub { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.85; max-width: 62ch; }

/* ════════ BUTTONS ════════ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  font-weight: 700; font-size: 14px;
  transition: all 0.2s;
  cursor: pointer; border: 0;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline.on-dark { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline.on-dark:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn .arrow { width: 18px; height: 18px; display: inline-flex; align-items: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--navy);
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}
.text-link:hover { gap: 16px; color: var(--accent); border-color: var(--accent); }

/* ════════ PAGE HEADER (inner pages) ════════ */
.page-head {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 100px 0 80px;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.page-head::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 280px; height: 4px;
  background: var(--accent-2);
}
.page-head .container { position: relative; z-index: 1; }
.page-head .crumbs {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  font-family: var(--mono);
}
.page-head .crumbs a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.page-head .crumbs a:hover { color: #fff; }
.page-head .crumbs .sep { color: rgba(255,255,255,0.3); }
.page-head h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.page-head h1 .en {
  display: block;
  font-family: var(--display);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.24em;
  color: var(--accent-2);
  margin-bottom: 16px;
  font-weight: 700;
}
.page-head h1 .accent { color: var(--accent-2); }
.page-head .lead {
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.95;
  color: rgba(255,255,255,0.85);
  max-width: 56ch;
}

/* ════════ FOOTER ════════ */
footer { background: #0E141B; color: rgba(255,255,255,0.7); padding: 80px 0 28px; }
footer .grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer .brand-block { display: flex; flex-direction: column; gap: 18px; }
footer .brand-block .b { display: flex; align-items: center; gap: 14px; color: #fff; }
footer .brand-block .b .mark-img-light {
  width: 40px; height: 44px;
  object-fit: contain;
  filter: brightness(1.1);
}
footer .brand-block .b .wordmark-img-light {
  height: 22px;
  width: auto;
}
footer .addr { font-size: 13px; line-height: 1.9; }
footer h5 { margin: 0 0 18px; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a { font-size: 13px; transition: color 0.2s; }
footer ul a:hover { color: var(--accent-2); }
footer .bottom { padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
@media (max-width: 880px) {
  footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer .bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ════════ CTA BAND ════════ */
.cta-band { position: relative; background: var(--navy); color: #fff; padding: 0; overflow: hidden; }
.cta-band .row { display: grid; grid-template-columns: 1fr 1fr; min-height: 280px; }
.cta-band .col {
  padding: 48px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  transition: background 0.3s;
  cursor: pointer;
}
.cta-band .col:first-child { background: var(--accent); }
.cta-band .col:hover { background: var(--accent-2); }
.cta-band .col:last-child:hover { background: var(--navy-2); }
.cta-band .col h3 {
  font-family: var(--display);
  margin: 0;
  font-weight: 700; font-size: 48px; line-height: 1;
  letter-spacing: 0.02em;
}
.cta-band .col .sub { margin-top: 14px; color: rgba(255,255,255,0.85); font-size: 14px; }
.cta-band .col .bottom { display: flex; justify-content: space-between; align-items: end; }
.cta-band .col .ja { font-size: 16px; font-weight: 700; }
.cta-band .col .arr {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--navy);
  display: grid; place-items: center; transition: transform 0.3s;
  font-size: 18px;
}
.cta-band .col:hover .arr { transform: rotate(-45deg); }
@media (max-width: 720px) { .cta-band .row { grid-template-columns: 1fr; } .cta-band .col { padding: 36px 24px; min-height: 220px; } }

/* ════════ REVEAL ════════ */
.r { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.r.in { opacity: 1; transform: translateY(0); }

/* image placeholders */
.ph-img {
  background:
    repeating-linear-gradient(135deg, #E6EBF1 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #ECF0F4 0%, #DDE4EB 100%);
  position: relative;
}
.ph-img .note {
  position: absolute; bottom: 12px; left: 14px;
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.ph-img.alt {
  background:
    repeating-linear-gradient(135deg, #DDE5ED 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #DCE3EB 0%, #CFD7E0 100%);
}
