/* ==========================================================================
   UNISEED Inc. — Corporate Site
   Design System: "Emerald Minimal"
   ========================================================================== */

:root {
  /* Color */
  --ink: #0d1512;
  --ink-2: #46524d;
  --ink-3: #7d8884;
  --paper: #fdfdfc;
  --surface: #f4f6f5;
  --line: #e5e9e7;
  --accent: #0e9b6c;
  --accent-deep: #0a7a54;
  --accent-dark: #06382a;
  --accent-tint: #e9f5f0;
  --accent-bright: #2fd695;

  /* Type */
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;

  /* Scale */
  --display: clamp(3rem, 9.5vw, 7.5rem);
  --h1: clamp(2.4rem, 6vw, 4.5rem);
  --h2: clamp(1.9rem, 4.5vw, 3.25rem);
  --h3: clamp(1.25rem, 2.2vw, 1.6rem);

  /* Layout */
  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --section: clamp(96px, 14vw, 180px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Utilities ---------- */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.en {
  font-family: var(--font-en);
  letter-spacing: -0.03em;
  font-feature-settings: "ss01";
}
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* Section label: e.g. "OUR SERVICES" */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 24px;
}
.label::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}
.dark .label { color: var(--accent-bright); }

.heading {
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.heading .en-line {
  display: block;
  font-family: var(--font-en);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.lead {
  margin-top: 28px;
  max-width: 620px;
  color: var(--ink-2);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(10, 122, 84, 0.55);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(10, 122, 84, 0.55);
}
.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-2px);
}
.dark .btn--ghost { border-color: rgba(255,255,255,0.25); color: #fff; }
.dark .btn--ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* Text link with underline sweep */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding-bottom: 4px;
  position: relative;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }
.tlink .arrow { transition: transform 0.4s var(--ease); color: var(--accent-deep); }
.tlink:hover .arrow { transform: translateX(5px); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(160deg, #0b1a15, #050d0a 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: min(190px, 42vw);
  animation: preloaderIn 1s var(--ease) both;
}
@keyframes preloaderIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: none; }
}
.preloader__track {
  width: min(220px, 52vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-bright);
}
.preloader__pct {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.header.is-scrolled {
  background: rgba(253, 253, 252, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  max-width: calc(var(--max) + 80px);
  margin-inline: auto;
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.4s var(--ease);
}
.header.is-scrolled .header__inner { padding-block: 14px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  z-index: 102;
}
.logo__mark { height: 40px; width: auto; flex: none; }
.logo span em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 34px; }
.nav__link {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
  transform-origin: right;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 12px 26px; font-size: 0.88rem; }

/* Header over dark hero (index): light text until scrolled */
.logo__mark--on-dark { display: none; }
body.has-dark-hero:not(.nav-open) .header:not(.is-scrolled) .logo__mark--on-light { display: none; }
body.has-dark-hero:not(.nav-open) .header:not(.is-scrolled) .logo__mark--on-dark { display: block; }
body.has-dark-hero:not(.nav-open) .header:not(.is-scrolled) .logo span { color: #fff; }
body.has-dark-hero:not(.nav-open) .header:not(.is-scrolled) .logo span em { color: var(--accent-bright); }
body.has-dark-hero:not(.nav-open) .header:not(.is-scrolled) .nav__link { color: rgba(255, 255, 255, 0.72); }
body.has-dark-hero:not(.nav-open) .header:not(.is-scrolled) .nav__link:hover,
body.has-dark-hero:not(.nav-open) .header:not(.is-scrolled) .nav__link.is-active { color: #fff; }
body.has-dark-hero:not(.nav-open) .header:not(.is-scrolled) .menu-btn span { background: #fff; }

/* Hamburger */
.menu-btn {
  display: none;
  z-index: 102;
  width: 44px; height: 44px;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.3s, background 0.3s;
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
body.nav-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease);
  }
  body.nav-open .nav { opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: center; gap: 28px; }
  .nav__link { font-size: 1.5rem; font-weight: 600; color: var(--ink); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* スタッキングコンテキストを作り、z-index:-1のcanvasを自身の背景より手前に描画させる */
  z-index: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
/* gallery/login_bg.png を参考にしたダークグリーン空間(.darkの背景より優先) */
.hero.dark {
  background:
    radial-gradient(900px 620px at 50% 44%, rgba(14, 155, 108, 0.30), transparent 62%),
    radial-gradient(700px 500px at 86% 8%, rgba(14, 155, 108, 0.17), transparent 55%),
    radial-gradient(620px 440px at 6% 88%, rgba(47, 214, 149, 0.10), transparent 55%),
    linear-gradient(160deg, #0b1a15, #050d0a 72%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg canvas { width: 100%; height: 100%; }
.hero__inner { width: 100%; padding-block: 140px 100px; }
.hero__kicker {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__kicker::before {
  content: "";
  width: 44px; height: 1.5px;
  background: var(--accent-bright);
}
.hero__title {
  font-family: var(--font-en);
  font-size: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
}
.hero__title .row { display: block; overflow: hidden; }
.hero__title .row > span {
  display: block;
  opacity: 0;
  transform: translateX(-72px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero__title .accent { color: var(--accent); }

/* rotator: MISSION / VISION alternating scramble text (ACES-style) */
.hero__rotator {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__rotator-label {
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-bright);
  border: 1px solid rgba(47, 214, 149, 0.45);
  border-radius: 999px;
  padding: 7px 16px;
  min-width: 92px;
  text-align: center;
}
.hero__rotator-text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  min-height: 1.6em;
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
/* hero entrance: fade in from the left, fired once the preloader finishes */
.hero__kicker, .hero__rotator, .hero__actions {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
body.is-loaded .hero__kicker { opacity: 1; transform: none; transition-delay: 0.05s; }
body.is-loaded .hero__title .row:nth-child(1) > span { opacity: 1; transform: none; transition-delay: 0.2s; }
body.is-loaded .hero__title .row:nth-child(2) > span { opacity: 1; transform: none; transition-delay: 0.38s; }
body.is-loaded .hero__rotator { opacity: 1; transform: none; transition-delay: 0.6s; }
body.is-loaded .hero__actions { opacity: 1; transform: none; transition-delay: 0.78s; }
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hero__scroll::after {
  content: "";
  width: 56px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
  animation: scrollHint 2.2s var(--ease) infinite;
  transform-origin: left;
}
@keyframes scrollHint {
  0% { transform: scaleX(0); }
  45% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

/* Page hero (sub pages) */
.page-hero { padding: clamp(160px, 22vw, 240px) 0 clamp(60px, 8vw, 100px); }
.page-hero__title {
  font-family: var(--font-en);
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.page-hero__sub {
  margin-top: 18px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: inline-flex;
  animation: ticker 32s linear infinite;
}
.ticker__item {
  font-family: var(--font-en);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-inline: 34px;
  display: inline-flex;
  align-items: center;
  gap: 34px;
}
.ticker__item::after { content: "·"; color: var(--accent); font-size: 1.4em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- Mission ---------- */
.mission__statement {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 900px;
}
.mission__statement .accent { color: var(--accent-deep); }
.mission__body {
  margin-top: 36px;
  max-width: 640px;
  color: var(--ink-2);
}

/* ---------- Dark section (U-LYNX) ---------- */
.dark {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(14, 155, 108, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(14, 155, 108, 0.12), transparent 55%),
    var(--accent-dark);
  color: #fff;
}
.dark .heading, .dark .lead { color: inherit; }
.dark .lead { color: rgba(255,255,255,0.72); }

.ulynx__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.ulynx__brand {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ulynx__brand em { font-style: normal; color: var(--accent-bright); }
.ulynx__logo {
  width: clamp(210px, 26vw, 320px);
  height: auto;
  display: block;
}
.ulynx__tag {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ulynx__desc { margin-top: 24px; color: rgba(255,255,255,0.72); max-width: 480px; }
.ulynx__features { display: grid; gap: 14px; }
.ulynx__feature {
  padding: 26px 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.ulynx__feature:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 214, 149, 0.5);
  background: rgba(47, 214, 149, 0.07);
}
.ulynx__feature h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 700;
}
.ulynx__feature h3 .num {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
}
.ulynx__feature p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}
@media (max-width: 860px) {
  .ulynx__grid { grid-template-columns: 1fr; }
}

/* ---------- Services grid ---------- */
.services__grid {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  display: block;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.4s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-tint), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s, transform 0.8s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -24px rgba(13, 21, 18, 0.16);
}
.service-card:hover::before { opacity: 1; transform: scale(1.6); }
.service-card__num {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
}
.service-card__title {
  margin-top: 18px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.service-card__en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.service-card__desc {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.8;
}
.service-card__arrow {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.service-card:hover .service-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-45deg);
}
.service-card--wide { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .service-card--wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(120deg, #fff 45%, var(--accent-tint));
  }
}

/* ---------- Why / Reasons ---------- */
.why__list {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  gap: 0;
}
.why__item {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(32px, 5vw, 52px);
  border-top: 1px solid var(--line);
}
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__num {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.2;
}
.why__title { font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 700; line-height: 1.5; }
.why__desc { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 720px) {
  .why__item { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Numbers / Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 7vw, 72px);
}
.stat {
  padding: 36px 30px;
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}
.stat__value {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.stat__value .unit { font-size: 0.45em; font-weight: 700; color: var(--accent-deep); margin-left: 2px; }
.stat__label { margin-top: 10px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Flow ---------- */
.flow__list {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  counter-reset: flow;
}
.flow__step {
  position: relative;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.flow__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(13, 21, 18, 0.14);
}
.flow__step::before {
  counter-increment: flow;
  content: "0" counter(flow);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}
.flow__step h3 { margin-top: 14px; font-size: 1.1rem; font-weight: 700; }
.flow__step p { margin-top: 10px; font-size: 0.88rem; color: var(--ink-2); line-height: 1.8; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 80% 20%, rgba(47, 214, 149, 0.25), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(14, 155, 108, 0.18), transparent 55%),
    var(--accent-dark);
  color: #fff;
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(64px, 9vw, 110px) clamp(28px, 6vw, 90px);
  text-align: center;
}
.cta-band__en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.cta-band__title {
  margin-top: 20px;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.4;
}
.cta-band__sub { margin-top: 18px; color: rgba(255,255,255,0.72); font-size: 0.98rem; }
.cta-band .btn { margin-top: 40px; }
.cta-band .btn--accent { background: #fff; color: var(--accent-dark); }
.cta-band .btn--accent:hover { background: var(--accent-bright); color: var(--accent-dark); box-shadow: 0 14px 32px -10px rgba(0,0,0,0.4); }

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--section);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 90px) 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer__brand p {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ink-3);
  max-width: 320px;
}
.footer__col h4 {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.footer__col li { margin-bottom: 12px; }
.footer__col a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--accent-deep); }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.footer__bottom .en { letter-spacing: 0.04em; }
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Content pages (about / recruit / etc.) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 90px);
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td {
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}
.profile-table th {
  width: 32%;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.profile-table td { color: var(--ink); font-weight: 500; }

.values { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 16px; }
.value-item {
  padding: 30px 32px;
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.value-item:hover { transform: translateX(6px); background: var(--accent-tint); }
.value-item h3 {
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.value-item h3 .en-tag {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.value-item p { margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }

.message-block {
  background: var(--surface);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(36px, 6vw, 72px);
}
.message-block--photo {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.message-block__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 44px -22px rgba(13, 21, 18, 0.28);
}
@media (max-width: 720px) {
  .message-block--photo { grid-template-columns: 1fr; }
  .message-block__photo { max-width: 300px; }
}
.message-block blockquote {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 2;
}
.message-block .signature {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.message-block .signature strong { font-size: 1.05rem; color: var(--ink); }

/* Service detail sections */
.service-detail {
  padding-block: clamp(56px, 8vw, 90px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(28px, 5vw, 80px);
}
.service-detail:first-of-type { border-top: 0; }
@media (max-width: 820px) { .service-detail { grid-template-columns: 1fr; } }
.service-detail__head .num {
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}
.service-detail__head h2 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.4;
}
.service-detail__head .en-sub {
  font-family: var(--font-en);
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.service-detail__body > p { color: var(--ink-2); }
.feature-list { margin-top: 28px; display: grid; gap: 12px; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.93rem;
  font-weight: 500;
  transition: border-color 0.35s, background 0.35s, transform 0.45s var(--ease);
}
.feature-list li:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
  transform: translateX(4px);
}
.feature-list .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.feature-list .check svg { width: 11px; height: 11px; }

/* Recruit */
.culture-grid {
  margin-top: clamp(48px, 7vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.culture-card {
  padding: 36px 32px;
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.culture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -26px rgba(13, 21, 18, 0.18);
}
.culture-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  box-shadow: 0 4px 14px -6px rgba(13, 21, 18, 0.12);
}
.culture-card .icon svg { width: 24px; height: 24px; }
.culture-card h3 { margin-top: 22px; font-size: 1.12rem; font-weight: 700; }
.culture-card p { margin-top: 10px; font-size: 0.9rem; color: var(--ink-2); }

.position-list { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 14px; }
.position-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.5s var(--ease), border-color 0.35s, box-shadow 0.5s var(--ease);
}
.position-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 20px 44px -26px rgba(10, 122, 84, 0.35);
}
.position-card__meta .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 4px 14px;
}
.position-card__meta h3 { margin-top: 12px; font-size: 1.15rem; font-weight: 700; }
.position-card__meta p { margin-top: 6px; font-size: 0.85rem; color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-note { color: var(--ink-2); font-size: 0.95rem; }
.contact-note .mail {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--accent-deep);
}

.form { display: grid; gap: 26px; }
.form__row { display: grid; gap: 10px; }
.form__row label {
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form__row label .req {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.06em;
}
.form__row label .opt {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--surface);
  border-radius: 6px;
  padding: 2px 8px;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  font: inherit;
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2346524d' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 155, 108, 0.14);
}
.form__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.form__consent input { margin-top: 5px; accent-color: var(--accent); width: 17px; height: 17px; }
.form__consent a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.form__status {
  display: none;
  padding: 18px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form__status.is-success { display: block; background: var(--accent-tint); color: var(--accent-deep); }
.form__status.is-error { display: block; background: #fdeeee; color: #b3261e; }

/* ---------- Privacy / legal ---------- */
.legal { max-width: 760px; }
.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.legal p, .legal li { font-size: 0.95rem; color: var(--ink-2); }
.legal ol { list-style: decimal; padding-left: 22px; }
.legal ol li { margin-bottom: 8px; }
.legal .updated { margin-top: 56px; font-size: 0.85rem; color: var(--ink-3); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pad);
}
.notfound__code {
  font-family: var(--font-en);
  font-size: clamp(6rem, 20vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--ink) 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound h1 { margin-top: 20px; font-size: 1.3rem; font-weight: 700; }
.notfound p { margin-top: 12px; color: var(--ink-2); font-size: 0.95rem; }
.notfound .btn { margin-top: 36px; }

/* ---------- Breadcrumb-ish page CTA spacing ---------- */
.page-cta { padding-block: 0 var(--section); }

/* ---------- News ---------- */
.news-grid {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -24px rgba(13, 21, 18, 0.16);
}
.news-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.news-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.news-card:hover .news-card__thumb img { transform: scale(1.05); }
.news-card__body { padding: 26px 26px 30px; }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-3);
}
.news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 4px 12px;
}
.news-card__title {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}
.news-card__excerpt {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-more { margin-top: clamp(36px, 5vw, 56px); text-align: center; }

/* NEW badge: corner ribbon on thumbnails */
.news-badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  box-shadow: 0 6px 16px -4px rgba(14, 155, 108, 0.6);
}

/* News article list page (accordion: <details>/<summary>) */
.news-article {
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.news-article:first-of-type { border-top: 0; }
.news-article__summary {
  padding-block: clamp(40px, 6vw, 64px);
  cursor: pointer;
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(28px, 5vw, 64px);
  list-style: none;
}
.news-article__summary::-webkit-details-marker { display: none; }
.news-article__summary::marker { content: ""; }
@media (max-width: 820px) { .news-article__summary { grid-template-columns: 1fr; } }
.news-article__thumb {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.news-article__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-article__head { display: flex; flex-direction: column; }
.news-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.news-article h2 {
  margin-top: 14px;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.5;
}
.news-article__toggle {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.news-article__toggle .chevron {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.news-article[open] .news-article__toggle .chevron { transform: rotate(180deg); }
.news-article[open] .news-article__toggle .label-open { display: none; }
.news-article__toggle .label-close { display: none; }
.news-article[open] .news-article__toggle .label-close { display: inline; }

.news-article__body {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
@media (max-width: 820px) { .news-article__body { grid-template-columns: 1fr; } }
.news-article__body-spacer { display: block; }
@media (max-width: 820px) { .news-article__body-spacer { display: none; } }
.news-article__body-inner { color: var(--ink-2); }
.news-article__body-inner p { margin-bottom: 1.4em; }
.news-article__body-inner p:last-child { margin-bottom: 0; }
.news-article__facts {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.news-article__facts dl {
  display: grid;
  grid-template-columns: 120px 1fr;
}
.news-article__facts div {
  display: contents;
}
.news-article__facts dt {
  padding: 14px 18px;
  background: var(--surface);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.news-article__facts dd {
  padding: 14px 18px;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.news-article__facts div:first-child dt,
.news-article__facts div:first-child dd { border-top: 0; }
.news-article__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--accent-deep);
}

/* ---------- AX platform (U-LYNX / services page) ---------- */
.ax-pillars {
  margin-top: clamp(44px, 6vw, 68px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.ax-pillar {
  padding: 34px 30px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.ax-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 214, 149, 0.5);
  background: rgba(47, 214, 149, 0.07);
}
.ax-pillar__en {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.ax-pillar h3 { margin-top: 14px; font-size: 1.25rem; font-weight: 700; }
.ax-pillar__lead {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}
.ax-chips {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ax-chips li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.35s, color 0.35s;
}
.ax-chips li:hover { border-color: var(--accent-bright); color: #fff; }
.ax-metric {
  margin-top: clamp(44px, 6vw, 68px);
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
.ax-metric__value {
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.ax-metric__value .plus { color: var(--accent-bright); }
.ax-metric__label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
  max-width: 560px;
}
@media (max-width: 640px) {
  .ax-metric { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__kicker, .hero__title .row > span, .hero__rotator, .hero__actions { opacity: 1 !important; transform: none !important; }
  #preloader { display: none; }
  .reveal { opacity: 1; transform: none; }
}
