/* =========================================================
   Rare Lush — Corporate Site  /  style.css
   ========================================================= */

:root {
  /* brand */
  --navy: #191970;
  --navy-deep: #0b0b3a;
  --ink: #07071f;
  --indigo: #3a3ad9;
  --violet: #7b5cff;
  --sky: #38c6ff;
  --mint: #4ff0c9;
  --coral: #ff6450;
  --paper: #f5f6fa;
  --paper-2: #eceef6;
  --white: #ffffff;
  --text: #14142b;
  --muted: #6b6f86;
  --line: rgba(20, 20, 43, 0.1);

  --font-en: "Manrope", "Inter", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Zilla Slab", "Roboto Slab", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-feature-settings: "palt";
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }

.en { font-family: var(--font-en); }
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

::selection { background: var(--navy); color: #fff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: grid; place-items: center;
  transition: clip-path 0.9s var(--ease-io) 0.15s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__mark {
  display: flex; align-items: center; gap: 14px;
  color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 22px; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(12px);
  animation: loaderIn 0.8s var(--ease) 0.1s forwards;
}
.loader.is-done .loader__mark { animation: loaderOut 0.4s var(--ease) forwards; }
.loader__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--sky), var(--violet), var(--coral));
  transform-origin: left; transform: scaleX(0);
  animation: loaderBar 1.1s var(--ease-io) 0.1s forwards;
}
@keyframes loaderIn { to { opacity: 1; transform: none; } }
@keyframes loaderOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes loaderBar { to { transform: scaleX(1); } }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy);
  font-family: var(--font-serif); font-weight: 700; font-size: 26px; letter-spacing: 0.01em;
  line-height: 1;
}
.logo svg { width: 34px; height: 34px; flex: none; }
.logo--light { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
  color: #fff;
}
.header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.header.is-solid { color: var(--text); }
.header.is-solid::after { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header .logo { color: #fff; transition: color 0.4s var(--ease); }
.header.is-solid .logo { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__link {
  position: relative; font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: 0.06em;
  padding: 6px 0; opacity: 0.9;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  border: 1.5px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, var(--indigo), var(--violet) 45%, var(--coral));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(25, 25, 112, 0.6); }
.btn:hover::before { opacity: 1; }
.btn .arr { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--ghost:hover { border-color: transparent; }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--light:hover { color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.header.is-solid .btn--ghost { --fg: var(--navy); border-color: rgba(25, 25, 112, 0.35); }
.header.is-solid .btn--ghost:hover { color: #fff; }
.btn--jp { font-family: var(--font-jp); font-weight: 700; letter-spacing: 0.06em; }

/* burger */
.burger {
  display: none; position: relative; width: 44px; height: 44px; border: 0; background: transparent; color: inherit;
  z-index: 110;
}
.burger span {
  position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 105;
  background: var(--ink); color: #fff;
  display: grid; align-content: center; padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 42px) 38px);
  transition: clip-path 0.7s var(--ease-io);
  visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 42px) 38px); visibility: visible; }
.drawer__link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-en); font-weight: 700; font-size: clamp(34px, 9vw, 56px); letter-spacing: -0.01em; line-height: 1.3;
  opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.drawer__link small { font-family: var(--font-jp); font-size: 13px; font-weight: 500; opacity: 0.6; }
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer.is-open .drawer__link:nth-child(1) { transition-delay: 0.25s; }
.drawer.is-open .drawer__link:nth-child(2) { transition-delay: 0.32s; }
.drawer.is-open .drawer__link:nth-child(3) { transition-delay: 0.39s; }
.drawer.is-open .drawer__link:nth-child(4) { transition-delay: 0.46s; }
.drawer.is-open .drawer__link:nth-child(5) { transition-delay: 0.53s; }
.drawer__foot { margin-top: 40px; font-size: 12px; opacity: 0.5; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: #fff;
  display: grid; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 140px;
  overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.hero__video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55; filter: saturate(1.1);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  mix-blend-mode: screen; opacity: 0.85;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 70% 40%, rgba(7, 7, 31, 0) 0%, rgba(7, 7, 31, 0.5) 100%),
    linear-gradient(180deg, rgba(7, 7, 31, 0.5) 0%, rgba(7, 7, 31, 0.1) 40%, rgba(7, 7, 31, 0.75) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.18; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}
.hero__inner { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.8; margin-bottom: 28px;
}
.hero__eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero__title {
  font-size: clamp(38px, 7.2vw, 96px); font-weight: 700; line-height: 1.18; letter-spacing: 0.01em;
  text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.08em 0 0.14em; margin: -0.08em 0 -0.14em; }
.hero__title .word { display: inline-block; }
.hero__title .ch {
  display: inline-block; transform: translateY(110%) rotate(4deg); opacity: 0;
  transition: transform 1s var(--ease), opacity 0.6s var(--ease);
  transform-origin: left bottom;
}
.is-ready .hero__title .ch { transform: none; opacity: 1; }
.hero__title .grad .ch, .hero__title .grad {
  background: linear-gradient(92deg, #9db8ff 0%, #c9b6ff 40%, #7ee0ff 75%, #ffd2c9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  background-size: 200% 100%; animation: shine 6s linear infinite;
}
.hero__title .grad { background: none; animation: none; }
@keyframes shine { to { background-position: 200% 0; } }
.hero__lead {
  margin-top: 32px; max-width: 560px; font-size: clamp(15px, 1.3vw, 18px); line-height: 2; opacity: 0.85;
}
.hero__cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__lead, .hero__cta, .hero__eyebrow {
  opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.is-ready .hero__eyebrow { opacity: 0.8; transform: none; transition-delay: 0.2s; }
.is-ready .hero__lead { opacity: 0.85; transform: none; transition-delay: 0.9s; }
.is-ready .hero__cta { opacity: 1; transform: none; transition-delay: 1.05s; }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 120px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7;
}
.hero__scroll i { position: relative; display: block; width: 1px; height: 56px; background: rgba(255,255,255,0.25); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff;
  animation: scrollLine 2s var(--ease-io) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }

.hero__marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(7,7,31,0) 0%, rgba(7,7,31,0.55) 100%);
  overflow: hidden; white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; gap: 0; animation: marquee 32s linear infinite; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75;
}
.marquee__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Hero variants (hero-switch.js) ---------- */
.hero__img {
  position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
  animation: heroKb 28s ease-in-out infinite alternate;
}
@keyframes heroKb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, 1%); } }
.hero[data-hero="skyline"] .hero__video,
.hero[data-hero="crossing"] .hero__video { opacity: 0.5; filter: saturate(0.9); }
.hero[data-hero="aerial"] .hero__video { opacity: 0.6; filter: saturate(0.9) brightness(0.9); }
.hero[data-hero="skyline"] .hero__canvas,
.hero[data-hero="crossing"] .hero__canvas,
.hero[data-hero="aerial"] .hero__canvas,
.hero[data-hero="fuji"] .hero__canvas,
.hero[data-hero="towers"] .hero__canvas { opacity: 0.55; mix-blend-mode: soft-light; }
.hero[data-hero="skyline"] .hero__shade,
.hero[data-hero="crossing"] .hero__shade,
.hero[data-hero="aerial"] .hero__shade,
.hero[data-hero="fuji"] .hero__shade,
.hero[data-hero="towers"] .hero__shade {
  background:
    linear-gradient(90deg, rgba(7,7,31,0.85) 0%, rgba(7,7,31,0.55) 45%, rgba(7,7,31,0.25) 100%),
    linear-gradient(180deg, rgba(7,7,31,0.55) 0%, rgba(7,7,31,0.1) 40%, rgba(7,7,31,0.8) 100%);
}
.hero[data-hero="fuji"] .hero__img, .hero[data-hero="towers"] .hero__img { opacity: 0.75; }
.hero[data-hero="gradient"] .hero__canvas { opacity: 1; mix-blend-mode: normal; }
.hero[data-hero="gradient"] .hero__shade { background: linear-gradient(180deg, rgba(7,7,31,0.35), rgba(7,7,31,0.1) 40%, rgba(7,7,31,0.7)); }

.hero-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 500; width: 220px;
  background: rgba(20,20,43,0.92); color: #fff; border-radius: 14px; padding: 12px 12px 10px;
  font-size: 12px; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6); backdrop-filter: blur(8px);
}
.hero-switch__title { margin: 0 0 8px; font-family: var(--font-en); font-size: 10px; letter-spacing: 0.2em; opacity: 0.6; }
.hero-switch button {
  display: block; width: 100%; text-align: left; margin: 4px 0; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); background: transparent; color: #fff; font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.hero-switch button:hover { background: rgba(255,255,255,0.1); }
.hero-switch button.is-on { background: #fff; color: var(--navy); border-color: #fff; font-weight: 700; }
.hero-switch__toggle { position: absolute !important; right: 8px; top: 6px; width: 24px !important; height: 24px; padding: 0 !important; margin: 0 !important; border: 0 !important; text-align: center !important; font-size: 14px !important; opacity: 0.6; }
.hero-switch.is-min { width: auto; padding: 8px 36px 8px 12px; }
.hero-switch.is-min button:not(.hero-switch__toggle) { display: none; }
.hero-switch.is-min .hero-switch__title { margin: 0; }
@media (max-width: 767px) { .hero-switch { width: 180px; right: 10px; bottom: 10px; } }

/* photo card visuals */
.card__visual--photo .shot, .card__visual--photo video.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.card:hover .card__visual--photo .shot { transform: scale(1.1); }
.card__visual--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,31,0) 55%, rgba(7,7,31,0.55)); pointer-events: none; }
.card__cap { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.sp-only { display: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }

.sec-head { display: grid; gap: 14px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head__label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy);
}
.section--dark .sec-head__label { color: var(--sky); }
.sec-head__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sec-head__title {
  font-size: clamp(28px, 4.4vw, 52px); font-weight: 700; line-height: 1.35; letter-spacing: 0.01em; text-wrap: balance;
}
.sec-head__desc { color: var(--muted); max-width: 640px; font-size: 15px; }
.section--dark .sec-head__desc { color: rgba(255,255,255,0.65); }
.sec-head--row {
  grid-template-columns: 1fr auto; align-items: end;
}
.sec-head--row .sec-head__desc { grid-column: 1; }

.bg-text {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-en); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(120px, 22vw, 320px);
  color: transparent; -webkit-text-stroke: 1px rgba(25,25,112,0.12);
  white-space: nowrap;
}
.section--dark .bg-text { -webkit-text-stroke: 1px rgba(255,255,255,0.08); }

/* reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.reveal.is-in { 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; }
.reveal-lines .ln { display: block; overflow: hidden; }
.reveal-lines .ln > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.reveal-lines.is-in .ln > span { transform: none; }
.reveal-lines.is-in .ln:nth-child(2) > span { transition-delay: 0.08s; }
.reveal-lines.is-in .ln:nth-child(3) > span { transition-delay: 0.16s; }
.reveal-img { overflow: hidden; }
.reveal-img img, .reveal-img video { transform: scale(1.15); transition: transform 1.4s var(--ease); }
.reveal-img.is-in img, .reveal-img.is-in video { transform: none; }
.reveal-img::after {
  content: ""; position: absolute; inset: 0; background: var(--navy); transform-origin: right;
  transition: transform 1s var(--ease-io);
}
.reveal-img.is-in::after { transform: scaleX(0); }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about .bg-text { top: 40px; right: -20px; }
.about__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.about__title { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; line-height: 1.5; letter-spacing: 0.01em; }
.about__body { margin-top: 28px; color: var(--muted); font-size: 15px; }
.about__body p + p { margin-top: 1.2em; }
.about__media { position: relative; border-radius: 24px; aspect-ratio: 4 / 5; }
.about__media video { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: -24px; bottom: 40px; z-index: 2;
  background: #fff; color: var(--navy); border-radius: 16px; padding: 18px 22px;
  box-shadow: 0 30px 60px -30px rgba(25,25,112,0.45);
  font-family: var(--font-en); font-weight: 700; line-height: 1.2;
  opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease) 0.8s, transform 0.8s var(--ease) 0.8s;
}
.reveal-img.is-in + .about__badge, .about__media.is-in .about__badge { opacity: 1; transform: none; }
.about__badge b { display: block; font-size: 28px; letter-spacing: -0.02em; }
.about__badge small { font-family: var(--font-jp); font-size: 11px; font-weight: 500; color: var(--muted); }

.values { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; position: relative; z-index: 1; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.value {
  position: relative; background: #fff; padding: 40px 36px 44px; overflow: hidden;
  transition: background 0.5s var(--ease);
}
.value::before {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,255,0.25), rgba(56,198,255,0) 70%);
  opacity: 0; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); transform: scale(0.6);
}
.value:hover::before { opacity: 1; transform: scale(1.4); }
.value__num { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.value__en { margin-top: 26px; font-family: var(--font-en); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--navy); }
.value__jp { margin-top: 10px; font-weight: 700; font-size: 17px; }
.value__desc { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Service ---------- */
.service { overflow: clip; }
.service .bg-text { top: 120px; left: -30px; }
.service__layout { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.service__side { position: sticky; top: calc(var(--header-h) + 40px); }
.service__side .sec-head { margin-bottom: 40px; }
.service__nav { display: grid; gap: 4px; }
.service__nav a {
  display: flex; align-items: center; gap: 16px; padding: 12px 0;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.4s var(--ease);
}
.service__nav a i { width: 0; height: 1px; background: var(--navy); transition: width 0.5s var(--ease); }
.service__nav a.is-active { color: var(--navy); }
.service__nav a.is-active i { width: 28px; }
.service__nav a .en { font-size: 11px; letter-spacing: 0.16em; opacity: 0.6; }

.cards { display: grid; gap: 28px; }
.card {
  --grad: linear-gradient(135deg, var(--indigo), var(--violet));
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px; background: #fff; border: 1px solid var(--line);
  padding: clamp(28px, 3.6vw, 48px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: stretch;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(25,25,112,0.35); border-color: transparent; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.card:hover::before { opacity: 1; }
.card--2 { --grad: linear-gradient(135deg, var(--sky), var(--indigo)); }
.card--3 { --grad: linear-gradient(135deg, var(--coral), var(--violet)); }
.card--4 { --grad: linear-gradient(135deg, var(--mint), var(--sky)); }
.card__num { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.card__en { margin-top: 18px; font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card__title { margin-top: 8px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.4; }
.card__desc { margin-top: 16px; font-size: 14px; color: var(--muted); }
.card__tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags li { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--navy); }
.card__links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--navy);
}
.link-arrow .circ {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--navy); display: grid; place-items: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.link-arrow .circ svg { width: 16px; height: 16px; }
.link-arrow:hover .circ { background: var(--navy); color: #fff; transform: translateX(4px); }
.link-arrow--jp { font-family: var(--font-jp); font-size: 13px; }
.card__visual {
  position: relative; border-radius: 20px; min-height: 280px; height: 100%; overflow: hidden;
  background: var(--ink);
}
.card__visual .vis { position: absolute; inset: 0; }
.card__visual .vis::before {
  content: ""; position: absolute; inset: -30%;
  background: var(--grad); filter: blur(40px); opacity: 0.75;
  animation: drift 10s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(-6%, -4%) rotate(0deg); } to { transform: translate(6%, 6%) rotate(12deg); } }
.card__visual .vis-inner {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
}
.card__visual .vis-inner svg { width: 46%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3)); transition: transform 0.8s var(--ease); }
.card:hover .card__visual .vis-inner svg { transform: translateY(-6px) scale(1.04); }
.card__visual img { width: 100%; height: 100%; object-fit: cover; }
.card__visual .shot { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.card:hover .card__visual .shot { transform: scale(1.05); }

/* ---------- Flow ---------- */
.flow { overflow: hidden; }
.flow .bg-text { bottom: 40px; right: -30px; }
.flow__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.flow__grid::before {
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25) 15%, rgba(255,255,255,0.25) 85%, transparent);
}
.step { position: relative; padding-top: 70px; }
.step__dot {
  position: absolute; top: 20px; left: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center;
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
}
.step__dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(56,198,255,0.5); animation: pulse 2.4s ease-out infinite; }
.step:nth-child(2) .step__dot::after { animation-delay: 0.8s; }
.step:nth-child(3) .step__dot::after { animation-delay: 1.6s; }
@keyframes pulse { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.step__en { font-family: var(--font-en); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; padding-bottom: 0.05em; background: linear-gradient(120deg, #fff, #9db8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step__jp { margin-top: 12px; font-size: 20px; font-weight: 700; }
.step__desc { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.65); }
.step__chip { display: inline-flex; margin-top: 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); font-size: 12px; color: rgba(255,255,255,0.75); }

/* ---------- Company ---------- */
.company { overflow: hidden; }
.company .bg-text { top: 60px; right: -20px; }
.company__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.company__dl { display: grid; }
.company__dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.company__dl > div:first-child { border-top: 1px solid var(--line); }
.company__dl dt { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; }
.company__dl dd { font-weight: 500; }
.company__dl dd small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.company__map { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--paper-2); }
.company__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease); }
.company__map:hover iframe { filter: none; }
.company__map .pin {
  position: absolute; left: 24px; bottom: 24px; padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); font-size: 13px; line-height: 1.6;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.3);
}
.company__map .pin b { display: block; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.16em; color: var(--navy); }

/* ---------- News ---------- */
.news__list { display: grid; }
.news__item {
  display: grid; grid-template-columns: 140px 120px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}
.news__item:first-child { border-top: 1px solid var(--line); }
.news__item:hover { padding-left: 12px; }
.news__date { font-family: var(--font-en); font-size: 14px; font-weight: 600; color: var(--muted); }
.news__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); text-align: center; color: var(--navy); }
.news__title { font-size: 15px; font-weight: 600; }
.news__item .circ { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--navy); transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s; }
.news__item .circ svg { width: 16px; }
.news__item:hover .circ { background: var(--navy); border-color: var(--navy); color: #fff; }
.news__note { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: #fff; padding: clamp(96px, 12vw, 160px) 0; background: var(--navy-deep); isolation: isolate; }
.cta__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.9; }
.cta__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,58,0.2), rgba(11,11,58,0.6)); }
.cta__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta__title { font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: 1.35; text-wrap: balance; }
.cta__desc { margin-top: 20px; opacity: 0.8; font-size: 15px; max-width: 520px; }
.cta__actions { display: grid; gap: 14px; justify-items: end; }
.cta__actions .btn { width: min(100%, 320px); justify-content: space-between; padding: 22px 28px; font-size: 16px; }
.cta__actions small { font-size: 12px; opacity: 0.7; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 72px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__tag { margin-top: 20px; font-size: 13px; opacity: 0.65; max-width: 320px; }
.footer__col h4 { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; font-size: 14px; opacity: 0.85; transition: opacity 0.3s, transform 0.4s var(--ease); }
.footer__col a:hover { opacity: 1; transform: translateX(4px); }
.footer__col a span { font-family: var(--font-en); font-size: 11px; opacity: 0.5; margin-left: 8px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 12px; opacity: 0.55; font-family: var(--font-en); }
.to-top { display: inline-flex; align-items: center; gap: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.to-top .circ { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center; transition: background 0.4s, color 0.4s; }
.to-top:hover .circ { background: #fff; color: var(--ink); }
.to-top svg { width: 14px; transform: rotate(-90deg); }

/* ---------- Sub pages ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  padding: calc(var(--header-h) + 96px) 0 96px; isolation: isolate;
}
.page-hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.7; }
.page-hero__label { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; }
.page-hero__title { margin-top: 16px; font-size: clamp(32px, 5vw, 60px); font-weight: 700; line-height: 1.3; }
.page-hero__desc { margin-top: 20px; opacity: 0.8; max-width: 620px; font-size: 15px; }
.crumbs { display: flex; gap: 10px; margin-top: 36px; font-family: var(--font-en); font-size: 12px; opacity: 0.6; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.5; }

/* form */
.form-wrap { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 28px; }
.form-aside__item { padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.form-aside__item h4 { font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.form-aside__item p { font-size: 13px; color: var(--muted); }
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field__label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.field__label .req { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #fff; background: var(--coral); padding: 3px 7px; border-radius: 4px; }
.field__label .opt { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); background: var(--paper-2); padding: 3px 7px; border-radius: 4px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s; outline: none; appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(25,25,112,0.1); }
.field textarea { min-height: 180px; resize: vertical; }
.field--row { grid-template-columns: 1fr 1fr; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600;
  transition: all 0.3s var(--ease); cursor: pointer; background: #fff;
}
.choice input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.agree { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.agree a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.agree input { width: 18px; height: 18px; accent-color: var(--navy); }
.form__submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__submit .btn { padding: 20px 36px; font-size: 15px; }
.form__submit small { font-size: 12px; color: var(--muted); }
.form__msg { display: none; padding: 16px 20px; border-radius: 12px; background: #eef7f1; color: #1d6b3a; font-size: 14px; }
.form__msg.is-show { display: block; }
.form__msg--error { background: #fdeeee; color: #a12b2b; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* privacy */
.prose { max-width: 800px; }
.prose h3 { font-size: 18px; margin: 48px 0 14px; padding-left: 16px; border-left: 3px solid var(--navy); line-height: 1.5; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 15px; color: #33364d; }
.prose ol { padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose .date { margin-top: 48px; font-size: 13px; color: var(--muted); text-align: right; }

/* ---------- Cursor glow (desktop) ---------- */
.glow {
  position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,255,0.18), rgba(56,198,255,0) 65%);
  transform: translate(-50%, -50%); mix-blend-mode: multiply; opacity: 0;
  transition: opacity 0.6s;
}
body.has-glow .glow { opacity: 1; }
.section--dark .glow { mix-blend-mode: screen; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about__grid, .service__layout, .company__grid, .cta__inner, .form-wrap { grid-template-columns: 1fr; }
  .service__side { position: static; }
  .service__nav { display: none; }
  .values, .flow__grid { grid-template-columns: 1fr; }
  .flow__grid::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .cta__actions { justify-items: start; }
  .form-aside { position: static; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 20px; }
  .sec-head__title { font-size: clamp(26px, 7.4vw, 32px); }
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .hero { padding-bottom: 130px; min-height: 100vh; min-height: 100svh; }
  .hero__title { font-size: clamp(32px, 9.4vw, 52px); line-height: 1.22; }
  .sec-head__title--sm { font-size: clamp(21px, 6.3vw, 28px); }
  .hero__scroll { display: none; }
  .card { grid-template-columns: 1fr; }
  .card__visual { order: -1; min-height: 0; height: auto; aspect-ratio: auto; }
  .card__visual::before { content: ""; display: block; padding-top: 62.5%; }
  .about__media { aspect-ratio: 4 / 3; }
  .about__badge { left: 16px; bottom: 16px; padding: 14px 16px; }
  .company__dl > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .news__item { grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 8px 14px; }
  .news__title { grid-column: 1 / -1; }
  .news__item .circ { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
  .sec-head--row { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .glow { display: none; }
  .bg-text { font-size: 34vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal-lines .ln > span, .hero__title .ch { opacity: 1; transform: none; }
}
