/* ============================================================
   Tonix Lab — Corporate Site Design System
   ============================================================ */

:root {
  --ink: #0b1020;
  --ink-2: #131a33;
  --text: #333a4d;
  --muted: #707688;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --line: #e7e9f2;
  --accent: #4f5ae8;
  --accent-2: #17b8d4;
  --grad: linear-gradient(120deg, #4f5ae8 0%, #17b8d4 100%);
  --grad-soft: linear-gradient(120deg, rgba(79, 90, 232, 0.12), rgba(23, 184, 212, 0.12));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(11, 16, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 16, 32, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 16, 32, 0.16);
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Outfit", "Noto Sans JP", sans-serif;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}
.container--narrow { width: min(860px, 92%); }

/* ---------- Equalizer motif ---------- */
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.eq span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--grad);
  animation: eq-bounce 1.2s ease-in-out infinite;
  transform-origin: bottom;
}
.eq span:nth-child(1) { animation-delay: 0s; }
.eq span:nth-child(2) { animation-delay: 0.18s; }
.eq span:nth-child(3) { animation-delay: 0.36s; }
.eq span:nth-child(4) { animation-delay: 0.54s; }
.eq span:nth-child(5) { animation-delay: 0.72s; }
.eq--light span { background: linear-gradient(180deg, #9aa3ff, #5fe6f8); }
@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .eq span { animation: none; transform: scaleY(0.7); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.btn .btn-arrow { transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(79, 90, 232, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(79, 90, 232, 0.45); }
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  color: #fff;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(11, 16, 32, 0.06), 0 10px 30px rgba(11, 16, 32, 0.07);
  color: var(--ink);
}
.header-inner {
  width: min(1240px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(79, 90, 232, 0.35);
  flex: none;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
}
.brand-jp { font-size: 0.62rem; letter-spacing: 0.14em; opacity: 0.75; }

/* Global nav */
.global-nav { display: flex; }
.global-nav > ul { display: flex; align-items: center; gap: 6px; }
.global-nav > ul > li { position: relative; }
.global-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
}
.global-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.global-nav > ul > li:hover > a::after,
.global-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 8px;
  min-width: 230px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.global-nav li:hover > .dropdown-menu,
.global-nav li:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.dropdown-menu a:hover {
  background: var(--grad-soft);
  color: var(--accent);
  padding-left: 18px;
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(79, 90, 232, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 90, 232, 0.42); }

/* Hamburger */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: inherit;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.3s ease, top 0.35s ease;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
body.menu-open .menu-toggle { color: #fff; }
body.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(11, 16, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 9% 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu .menu-group { margin-bottom: 26px; }
.mobile-menu .menu-label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #7f8bff;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mobile-menu a {
  display: inline-block;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 7px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mobile-menu .menu-sub a { font-size: 0.98rem; font-weight: 500; opacity: 0; color: rgba(255, 255, 255, 0.82); }
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .menu-sub a { opacity: 0.85; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(8, 11, 26, 0.72) 0%, rgba(8, 11, 26, 0.45) 45%, rgba(8, 11, 26, 0.88) 100%),
    url("../../images/main.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(11, 16, 32, 0.9));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 140px 0 120px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #8fd9ff;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2rem, 5.2vw, 3.7rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
}
.hero-title .grad-text {
  background: linear-gradient(120deg, #98a2ff, #5fe6f8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 560px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 42px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, #fff, transparent);
  animation: scroll-drop 2s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 88px) 0 76px;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 12% -10%, rgba(79, 90, 232, 0.5), transparent 65%),
    radial-gradient(560px 300px at 88% 112%, rgba(23, 184, 212, 0.34), transparent 65%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 90% at 50% 10%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 90% at 50% 10%, #000 30%, transparent 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .kicker { color: #8fd9ff; }
.page-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-top: 10px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: #8fd9ff; }
.breadcrumbs .sep { opacity: 0.45; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--white { background: var(--surface); }
.section--ink {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-head { margin-bottom: 54px; }
.section-head--center { text-align: center; }
.section-head--center .eq { vertical-align: middle; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.5;
}
.section--ink .section-title { color: #fff; }
.section-lead {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
}
.section-head--center .section-lead { margin-inline: auto; }
.section--ink .section-lead { color: rgba(255, 255, 255, 0.75); }
.section-more { margin-top: 48px; text-align: center; }

/* ---------- Stats strip ---------- */
.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: -72px;
}
.stats-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.stat {
  padding: 34px 28px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: var(--line);
}
.stat-value {
  font-family: var(--font-en);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}
.stat-value small { font-size: 1rem; font-weight: 700; }
.stat-label { margin-top: 6px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ---------- News cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card a { display: flex; flex-direction: column; height: 100%; }
.news-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-date {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--grad-soft);
  color: var(--accent);
}
.news-card h3 {
  font-size: 0.99rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .read-more {
  margin-top: auto;
  font-family: var(--font-en);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-card .read-more::after { content: "→"; transition: transform 0.3s ease; }
.news-card:hover .read-more::after { transform: translateX(5px); }

/* News list page */
.news-list { display: grid; gap: 22px; }
.news-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-row a {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
}
.news-row .news-thumb { aspect-ratio: 16 / 10; height: 100%; }
.news-row .news-body { padding: 26px 32px; }
.news-row h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.7; }
.news-row .row-arrow {
  font-family: var(--font-en);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-row .row-arrow::after { content: "→"; transition: transform 0.3s ease; }
.news-row:hover .row-arrow::after { transform: translateX(5px); }

/* ---------- Value cards (about) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.value-card:hover img { transform: scale(1.07); }
.value-card .value-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0) 30%, rgba(11, 16, 32, 0.86) 100%);
  color: #fff;
}
.value-card .value-en {
  font-family: var(--font-en);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8fd9ff;
  margin-bottom: 6px;
}
.value-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }

/* ---------- Feature rows (business) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  padding: 64px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-num {
  font-family: var(--font-en);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.22;
  margin-bottom: 4px;
}
.feature-copy .kicker { font-size: 0.7rem; }
.feature-copy h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin: 8px 0 18px;
}
.feature-copy p { color: var(--muted); font-size: 0.96rem; margin-bottom: 12px; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(79, 90, 232, 0.12), transparent 55%);
  pointer-events: none;
}
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s ease; }
.feature-row:hover .feature-media img { transform: scale(1.04); }
.feature-row--rev .feature-media { order: -1; }

/* Mini features on home */
.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mini-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mini-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(79, 90, 232, 0.35); }
.mini-feature .mf-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mini-feature h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 10px 0 10px; }
.mini-feature p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Business showcase (home) ---------- */
.showcase {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 46px;
}
.showcase img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transition: transform 0.8s ease; }
.showcase:hover img { transform: scale(1.03); }
.showcase .showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(11, 16, 32, 0.82) 8%, rgba(11, 16, 32, 0.25) 60%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
  color: #fff;
}
.showcase .showcase-overlay .kicker {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #8fd9ff;
}
.showcase h3 { font-size: clamp(1.3rem, 2.8vw, 2rem); font-weight: 900; letter-spacing: 0.05em; margin: 10px 0 14px; }
.showcase p { max-width: 460px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 96px 0;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(540px 280px at 18% 120%, rgba(79, 90, 232, 0.55), transparent 65%),
    radial-gradient(540px 280px at 82% -20%, rgba(23, 184, 212, 0.4), transparent 65%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; letter-spacing: 0.06em; margin: 12px 0 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 640px; margin: 0 auto 38px; font-size: 0.96rem; }
.cta-band .kicker { color: #8fd9ff; background: none; -webkit-background-clip: initial; background-clip: initial; }

/* ---------- Info table (profile) ---------- */
.info-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table dl { margin: 0; }
.info-table .row {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.info-table .row + .row { border-top: 1px solid var(--line); }
.info-table dt {
  padding: 22px 30px;
  background: #f3f5fb;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-table dt::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}
.info-table dd { margin: 0; padding: 22px 30px; font-size: 0.95rem; }

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Philosophy (idea) ---------- */
.philosophy-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding: 70px 0;
}
.philosophy-row + .philosophy-row { border-top: 1px solid var(--line); }
.philosophy-row--rev .philosophy-media { order: -1; }
.philosophy-copy .statement {
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 2;
  margin: 18px 0 16px;
}
.philosophy-copy p { color: var(--muted); font-size: 0.95rem; }
.philosophy-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.philosophy-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  counter-reset: value;
}
.value-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(79, 90, 232, 0.3); }
.value-item::before {
  counter-increment: value;
  content: counter(value, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.4;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: none;
}
.value-item h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.value-item p { font-size: 0.88rem; color: var(--muted); }

/* Stance / slogan cards */
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.banner-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-md);
}
.banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.banner-card:hover img { transform: scale(1.05); }
.banner-card .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.18), rgba(11, 16, 32, 0.84));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
.banner-card .banner-en {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8fd9ff;
  margin-bottom: 8px;
}
.banner-card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 4px; }
.banner-card p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Message page ---------- */
.message-letter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(30px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}
.message-letter::before {
  content: "“";
  position: absolute;
  top: -30px;
  left: 24px;
  font-family: Georgia, serif;
  font-size: 11rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.16;
  pointer-events: none;
}
.message-letter p { margin-bottom: 1.4em; font-size: 0.98rem; }
.message-letter p:last-of-type { margin-bottom: 0; }
.signature { margin-top: 44px; text-align: right; }
.signature .position { font-size: 0.84rem; color: var(--muted); }
.signature .name { font-size: 1.5rem; font-weight: 900; color: var(--ink); letter-spacing: 0.12em; }
.signature .name small { font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }

.ceo-profile {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.ceo-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ceo-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ceo-photo .ceo-name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(11, 16, 32, 0.88));
  color: #fff;
}
.ceo-photo .ceo-name h3 { font-size: 1.1rem; font-weight: 800; }
.ceo-photo .ceo-name p { font-size: 0.76rem; color: rgba(255, 255, 255, 0.75); }
.ceo-bio p { color: var(--text); font-size: 0.95rem; margin-bottom: 1.2em; }

.timeline { margin-top: 36px; position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #4f5ae8, #17b8d4);
}
.timeline-item { position: relative; padding: 10px 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 90, 232, 0.15);
}
.timeline-item .tl-year {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.02rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.timeline-item .tl-desc { font-size: 0.93rem; color: var(--text); }

/* ---------- Requirements table (careers) ---------- */
.req-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.req-table .row { display: grid; grid-template-columns: 200px 1fr; }
.req-table .row + .row { border-top: 1px solid var(--line); }
.req-table dt {
  padding: 24px 28px;
  background: #f3f5fb;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
.req-table dd { margin: 0; padding: 24px 30px; font-size: 0.93rem; }
.req-table dd p { margin-bottom: 8px; }
.req-table dd p:last-child { margin-bottom: 0; }
.req-table dd ul { display: grid; gap: 6px; margin: 6px 0; }
.req-table dd ul li {
  position: relative;
  padding-left: 20px;
}
.req-table dd ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad);
}
.req-note { font-size: 0.82rem; color: var(--muted); }

.empty-state {
  background: var(--surface);
  border: 1px dashed #c9cede;
  border-radius: var(--radius);
  padding: 80px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.empty-state .eq { height: 26px; margin-bottom: 18px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.empty-state p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.contact-aside {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(360px 220px at 90% -10%, rgba(79, 90, 232, 0.55), transparent 70%),
    radial-gradient(320px 200px at 0% 110%, rgba(23, 184, 212, 0.4), transparent 70%);
}
.contact-aside > * { position: relative; }
.contact-aside h3 { font-size: 1.25rem; font-weight: 800; margin: 8px 0 14px; }
.contact-aside p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 14px; }
.contact-aside .hours {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
}
.contact-aside .hours dt {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8fd9ff;
  margin-bottom: 6px;
}
.contact-aside .hours dd { margin: 0; font-size: 0.92rem; }
.contact-aside .hours dd small { display: block; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.required-mark {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--grad);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  vertical-align: 2px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #f3f5fb;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 90, 232, 0.13);
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234f5ae8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.submit-group { text-align: center; margin-top: 8px; }
.submit-group .btn { min-width: 240px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.is-success { display: block; background: #e8f8f0; color: #15803d; }
.form-status.is-error { display: block; background: #fdeaea; color: #b91c1c; }

/* ---------- Article ---------- */
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 5vw, 60px);
}
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.article-title {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.6;
  padding-bottom: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.article-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 88px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.article-body p { margin-bottom: 1.5em; font-size: 0.96rem; }
.article-body h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2em 0 0.8em;
  padding-left: 14px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #4f5ae8, #17b8d4) 1;
}
.article-body .note { font-size: 0.85rem; color: var(--muted); }
.article-body ul { display: grid; gap: 8px; margin: 0 0 1.5em; }
.article-body ul li { position: relative; padding-left: 20px; font-size: 0.96rem; }
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad);
}
.article-sign { margin-top: 40px; text-align: right; font-weight: 700; color: var(--ink); }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.article-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.article-nav .nav-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 320px at 85% 0%, rgba(79, 90, 232, 0.22), transparent 65%);
  pointer-events: none;
}
.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 76px 0 56px;
}
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: 0.86rem; line-height: 2; color: rgba(255, 255, 255, 0.6); margin-bottom: 18px; }
.footer-col h4 {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8fd9ff;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.06em; }
.footer-watermark {
  position: absolute;
  right: -10px;
  bottom: -28px;
  font-family: var(--font-en);
  font-size: clamp(80px, 14vw, 170px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(79, 90, 232, 0.4);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }
.scroll-top svg { width: 18px; height: 18px; }

/* ---------- Reveal animation (only when JS is running) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .global-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-features { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .ceo-profile { grid-template-columns: 1fr; }
  .ceo-photo { max-width: 420px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero-inner { padding: 130px 0 110px; }
  .stats-card { grid-template-columns: 1fr; }
  .stat + .stat::before {
    left: 18%;
    right: 18%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .stats-strip { margin-top: -56px; }
  .news-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-row { grid-template-columns: 1fr; padding: 48px 0; }
  .feature-row--rev .feature-media { order: 0; }
  .philosophy-row { grid-template-columns: 1fr; padding: 48px 0; }
  .philosophy-row--rev .philosophy-media { order: 0; }
  .values-grid { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr; }
  .news-row a { grid-template-columns: 1fr; }
  .news-row .news-thumb { aspect-ratio: 16 / 9; }
  .info-table .row, .req-table .row { grid-template-columns: 1fr; }
  .info-table dt, .req-table dt { padding: 14px 24px; }
  .info-table dd, .req-table dd { padding: 18px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; padding: 56px 0 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .scroll-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
  .map-wrap iframe { height: 320px; }
}

@media (max-width: 480px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card { aspect-ratio: 16 / 10; }
  .hero-actions .btn { width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
}
