/* =========================================================================
   RINX Inc. — Corporate Site
   Design system: minimal, premium, global. Mono base + magenta brand accent.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --ink:        #0A0A0B;   /* near-black text / dark sections            */
  --ink-soft:   #1A1A1D;
  --paper:      #FAFAF8;   /* warm off-white page background             */
  --white:      #FFFFFF;
  --muted:      #6E6E73;   /* secondary text                            */
  --muted-2:    #9A9A9F;
  --line:       #E8E7E2;   /* hairline borders                          */
  --line-dark:  #26262A;

  --accent:     #A50062;   /* RINX magenta                              */
  --accent-2:   #D6007A;
  --accent-ink: #5C0038;

  --container:  1220px;
  --gutter:     clamp(20px, 5vw, 64px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .7s;

  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
             "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Helvetica Neue", "Arial", var(--font-jp);
  --font: -apple-system, BlinkMacSystemFont, var(--font-jp);
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Japanese-aware line breaking: break at phrase (文節) boundaries, honour kinsoku */
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

/* Phrase unit — keeps a 文節 together and only allows breaks between units.
   Used in headings for deterministic, natural Japanese line breaks. */
.b { display: inline-block; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* ---- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 12vw, 160px); }
.section--tight { padding-block: clamp(56px, 8vw, 110px); }

.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  font-size: clamp(30px, 5vw, 54px);
  margin-top: 20px;
}
.lead {
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2;
  max-width: 60ch;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 16px 40px -14px rgba(165,0,98,.6); }

.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(0,0,0,.35); }

.btn--outline-light { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn--outline-light:hover { border-color: #fff; transform: translateY(-2px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250,250,248,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: .82;
  transition: opacity .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
}
.lang b { color: var(--ink); }
.lang a { color: var(--muted); transition: color .25s var(--ease); }
.lang a:hover { color: var(--ink); }
.nav-lang { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--ink); transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { bottom: 17px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 84px;
  overflow: hidden;
}
.hero-inner {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(16px, 2.5vw, 40px);
  padding-block: clamp(20px, 3vh, 48px);
}
.hero-copy { position: relative; z-index: 2; }
.hero-kicker {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-jp);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.24;
  font-size: clamp(28px, 4.4vw, 52px);
}
.hero h1 .accent { color: var(--accent); }
.hero h1 em {
  font-style: normal;
  display: block;
  font-family: var(--font-en);
  letter-spacing: -.02em;
  line-height: 1.05;
  font-size: clamp(28px, 4.2vw, 50px);
  margin-top: .12em;
}
.hero-sub {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 2.05;
}
.hero-cta { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-inner { position: relative; z-index: 2; }
/* allow the oversized ring to bleed without stealing width from the copy column */
.hero-copy, .hero-visual { min-width: 0; }

/* ---- Hero decorative background ---- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.orb--1 {
  width: 46vw; height: 46vw; max-width: 700px; max-height: 700px; right: -6vw; top: -12vh;
  background: radial-gradient(circle at 42% 42%, rgba(214,0,122,.30), rgba(165,0,98,.10) 46%, transparent 70%);
  animation: drift 18s var(--ease) infinite alternate;
}
.orb--2 {
  width: 38vw; height: 38vw; max-width: 540px; max-height: 540px; left: -9vw; bottom: -16vh;
  background: radial-gradient(circle at 50% 50%, rgba(96,120,255,.16), transparent 68%);
  animation: drift 22s var(--ease) infinite alternate-reverse;
}
@keyframes drift { to { transform: translate3d(3%, 4%, 0) scale(1.06); } }

.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10,10,11,.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 100% at 72% 32%, #000 26%, transparent 72%);
          mask-image: radial-gradient(120% 100% at 72% 32%, #000 26%, transparent 72%);
  opacity: .6;
}
.hero-ring-outline {
  position: absolute; top: 50%; right: 5%; transform: translateY(-50%);
  width: clamp(320px, 33vw, 540px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, transparent 67%, #000 68%);
          mask-image: radial-gradient(closest-side, transparent 67%, #000 68%);
  opacity: .8;
}

/* ---- Hero stage ---- */
.hero-visual {
  position: relative; z-index: 1;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: flex-end;
  overflow: visible;
}
.hero-stage {
  position: absolute; top: 50%; right: clamp(-120px, -6vw, -50px);
  transform: translateY(-50%);
  width: clamp(440px, 46vw, 660px);
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.stage-glow {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(214,0,122,.24), rgba(165,0,98,.08) 46%, transparent 68%);
  filter: blur(20px);
}
.hero-ring {
  width: 100%; max-width: none;
  filter: drop-shadow(0 26px 44px rgba(20,10,30,.16));
  animation: spin 68s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

/* rotating emblem in the ring's hollow centre */
.hero-emblem {
  position: absolute; top: 50%; left: 50%; width: 33%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
}
.emblem-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin-rev 24s linear infinite; }
.emblem-text text {
  font-family: var(--font-en); font-size: 10.5px; font-weight: 600;
  letter-spacing: .04em; fill: var(--ink); text-transform: uppercase;
}
.emblem-core {
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--accent-2), var(--accent-ink));
  color: #fff; box-shadow: 0 12px 26px -8px rgba(165,0,98,.6);
}
.emblem-core svg { width: 46%; height: 46%; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }

/* animated dot before the kicker */
.hero-kicker { display: inline-flex; align-items: center; gap: 11px; }
.hero-kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(165,0,98,.5); }
  70% { box-shadow: 0 0 0 10px rgba(165,0,98,0); }
  100% { box-shadow: 0 0 0 0 rgba(165,0,98,0); }
}

.hero-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(20px, 3vh, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}
.hero-meta .stat b {
  display: block;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.scroll-cue {
  flex: none;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-cue::after {
  content: "";
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--ink), transparent);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleX(0); transform-origin: left; }
  40% { transform: scaleX(1); transform-origin: left; }
  60% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ---- Marquee (trust strip) ------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 26px;
  overflow: hidden;
  background: var(--white);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-en);
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-track span::after { content: "●"; font-size: 6px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =========================================================================
   About
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy .section-title { font-family: var(--font-jp); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.4; }
.about-copy p { margin-top: 26px; }
.about-figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  left: 22px; bottom: 22px;
  background: rgba(10,10,11,.72);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--r-sm);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .14em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 7vw, 88px);
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.stat-item .num {
  font-family: var(--font-en);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.stat-item .num small { font-size: .5em; margin-left: 2px; color: var(--accent); }
.stat-item .label { margin-top: 12px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* =========================================================================
   Business
   ========================================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head .lead { margin-top: 22px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 34px 44px;
  background: var(--white);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(165,0,98,.06), transparent 46%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(20,20,30,.35);
}
.card:hover::before { opacity: 1; }
.card-index {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
}
.card-icon {
  width: 52px; height: 52px;
  margin: 22px 0 26px;
  color: var(--ink);
  transition: transform .5s var(--ease), color .5s var(--ease);
}
.card:hover .card-icon { transform: translateY(-2px) scale(1.04); color: var(--accent); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.card .jp-sub {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}
.card p {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--muted);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.card-link svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* =========================================================================
   Featured Brands / Projects
   ========================================================================= */
.brands { background: var(--white); border-block: 1px solid var(--line); }
.brand-feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.brand-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #F1F0EC;
}
.brand-visual img { width: 100%; display: block; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 6vw, 72px);
}
.gallery figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #F1F0EC;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 24px 22px;
  background: linear-gradient(transparent, rgba(10,10,11,.72));
  color: #fff;
}
.gallery figcaption b { font-family: var(--font-en); font-size: 15px; letter-spacing: .02em; }
.gallery figcaption span { display: block; font-size: 12.5px; opacity: .8; margin-top: 4px; }

/* =========================================================================
   Mission (dark)
   ========================================================================= */
.mission {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(165,0,98,.22), transparent 60%);
  pointer-events: none;
}
.mission .container { position: relative; z-index: 1; }
.mission .eyebrow { color: var(--accent-2); }
.mission .eyebrow::before { background: var(--accent-2); }
.mission h2 {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  font-size: clamp(52px, 12vw, 148px);
  margin: 28px 0 8px;
}
.mission .mission-lead {
  font-family: var(--font-jp);
  font-size: clamp(18px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .01em;
  max-width: 24ch;
  margin-top: 26px;
}
.mission-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 48px;
  border-top: 1px solid var(--line-dark);
}
.mission-body p { color: rgba(255,255,255,.66); line-height: 2.1; font-size: clamp(15px,1.6vw,17px); }
.mission-body .mission-quote {
  font-family: var(--font-jp);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: #fff;
  line-height: 1.85;
}

/* =========================================================================
   Company
   ========================================================================= */
.company-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 88px); }
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-top: 1px solid var(--line); }
.company-table tr:last-child { border-bottom: 1px solid var(--line); }
.company-table th {
  text-align: left;
  vertical-align: top;
  width: 34%;
  padding: 24px 20px 24px 0;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}
.company-table td {
  padding: 24px 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}
.company-table td small { color: var(--muted); }
.company-side .section-title { font-family: var(--font-jp); font-size: clamp(24px,3vw,36px); line-height:1.4; }

.map-note {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 13.5px;
  color: var(--muted);
}
.map-note b { display:block; color: var(--ink); font-family: var(--font-en); letter-spacing:.06em; margin-bottom: 6px; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.contact-bg {
  position: absolute; inset: 0; z-index: 0;
}
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.contact-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,10,11,.94) 30%, rgba(92,0,56,.6));
}
.contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact h2 { font-family: var(--font-en); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(38px, 6vw, 72px); }
.contact .contact-jp { font-family: var(--font-jp); font-size: clamp(16px,1.8vw,19px); font-weight:600; margin-top: 20px; }
.contact p.contact-lead { color: rgba(255,255,255,.66); margin-top: 22px; line-height: 2; max-width: 44ch; }
.contact-info { margin-top: 40px; display: grid; gap: 20px; }
.contact-info .row { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .row svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; margin-top: 3px; }
.contact-info .row b { font-family: var(--font-en); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); display:block; margin-bottom: 3px; }
.contact-info a { color: inherit; transition: color .25s var(--ease); }
.contact-info a:hover { color: var(--accent-2); }

.contact-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  backdrop-filter: blur(10px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  font-family: var(--font-en);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255,255,255,.07);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.32); }
.form-note { font-size: 12px; color: rgba(255,255,255,.42); margin-top: 14px; line-height: 1.7; }
.form-error { font-size: 13px; color: #ff9db1; margin-bottom: 12px; }

/* submit loading state */
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading svg { display: none; }
.btn.is-loading::after {
  content: ""; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* success panel (replaces the form after submit) */
.success-panel {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; min-height: 340px;
}
.success-panel:focus { outline: none; }
.success-check {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-2), var(--accent-ink));
  color: #fff; box-shadow: 0 14px 32px -10px rgba(165,0,98,.6);
  animation: pop .5s var(--ease) both;
}
.success-check svg { width: 30px; height: 30px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.success-panel h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.success-panel p { color: rgba(255,255,255,.72); line-height: 2; font-size: 15px; max-width: 36ch; }
.success-panel strong { color: #fff; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding-block: clamp(56px, 8vw, 88px) 40px; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 34ch; font-size: 14px; line-height: 1.9; }
.footer-col h4 { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 20px; }
.footer-col a { display: block; padding: 7px 0; font-size: 14.5px; color: rgba(255,255,255,.72); transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: clamp(48px, 7vw, 72px); padding-top: 30px; border-top: 1px solid var(--line-dark);
  font-size: 12.5px; letter-spacing: .04em; color: rgba(255,255,255,.42);
}
.footer-bottom .tagline { font-family: var(--font-en); letter-spacing: .1em; }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .hero { min-height: auto; padding-top: 108px; padding-bottom: 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { max-width: 520px; margin-inline: auto; order: 2; }
  .hero-stage { position: static; transform: none; right: auto; top: auto; width: 100%; }
  .hero-foot { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { aspect-ratio: 16 / 10; }
  .cards { grid-template-columns: 1fr 1fr; }
  .brand-feature { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  .header-inner { height: 64px; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(250,250,248,.98);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .5s var(--ease), opacity .4s var(--ease);
  }
  body.menu-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { font-size: 24px; font-family: var(--font-en); font-weight: 600; padding: 12px; opacity: 1; }
  .nav a::after { display: none; }
  .header-actions .lang { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav a.nav-lang { display: block; color: var(--accent); margin-top: 4px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .mission-body { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .company-table th { width: 40%; padding-right: 16px; font-size: 12.5px; }
  .btn { padding: 14px 24px; }
}

/* ---- Motion / a11y ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* =========================================================================
   Business page (下層ページ) — reuses existing tokens & components
   ========================================================================= */
.page-hero {
  position: relative;
  padding-top: clamp(120px, 16vw, 184px);
  padding-bottom: clamp(44px, 7vw, 84px);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.page-hero-bg::before {
  content: "";
  position: absolute;
  width: 46vw; max-width: 620px; aspect-ratio: 1;
  right: -8vw; top: -34%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, rgba(214,0,122,.14), rgba(165,0,98,.05) 46%, transparent 70%);
  filter: blur(54px);
}
.page-hero h1 {
  font-family: var(--font-jp);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.32;
  font-size: clamp(28px, 4.4vw, 52px);
  margin-top: 20px;
  max-width: 22ch;
}
.page-hero .lead { margin-top: 28px; max-width: 72ch; }

.biz-list {
  border-top: 1px solid var(--line);
  margin-top: clamp(16px, 3vw, 36px);
}
.biz-item {
  display: grid;
  grid-template-columns: minmax(170px, 240px) 1fr;
  gap: clamp(22px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 68px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.biz-num {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--accent);
}
.biz-label {
  display: block;
  margin-top: 14px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.biz-name {
  font-family: var(--font-jp);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.biz-catch {
  font-family: var(--font-jp);
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 18px);
  margin-top: 12px;
}
.biz-desc {
  color: var(--muted);
  margin-top: 18px;
  line-height: 2;
  font-size: clamp(15px, 1.6vw, 16.5px);
  max-width: 64ch;
}
.biz-activities { margin-top: 28px; }
.biz-activities h3 {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.biz-activities ul { display: grid; gap: 10px; }
.biz-activities li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
}
.biz-activities li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.page-cta { background: var(--ink); color: #fff; text-align: center; }
.page-cta .container { max-width: 760px; }
.page-cta h2 {
  font-family: var(--font-jp);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.page-cta p { color: rgba(255,255,255,.7); margin-top: 18px; line-height: 2; max-width: 52ch; margin-inline: auto; }
.page-cta .btn { margin-top: 32px; }

@media (max-width: 900px) {
  .biz-item { grid-template-columns: 1fr; gap: 16px; }
  .biz-num { font-size: clamp(38px, 11vw, 56px); }
  .biz-label { margin-top: 10px; }
}
