/* ============================================================
   ReZipang TOP — style.css
   Color: Red #C41E3A / White #F5F5F0 / Black #0a0a0a
   Font: Kaisei Harunoumi / Noto Sans JP / Inter
   Ref: junni.co.jp design approach
============================================================ */

/* ---- Variables ---- */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #181818;
  --accent:      #C41E3A;
  --accent-h:    #E8294A;
  --gold:        #C8952E;
  --text:        #F5F5F0;
  --text-sub:    #999999;
  --text-muted:  #555555;
  --border:      rgba(245,245,240,0.08);
  --border-h:    rgba(245,245,240,0.18);

  --font-j: 'Kaisei Harunoumi', 'Hiragino Mincho ProN', serif;
  --font-b: 'Noto Sans JP', sans-serif;
  --font-e: 'Inter', sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Noise texture */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9998;
}

/* ---- Typography ---- */
.section-label {
  display: block;
  font-family: var(--font-e);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 9rem 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-e);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg { padding: 1rem 2rem; font-size: 0.9375rem; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-h);
}
.btn--outline:hover {
  border-color: var(--text);
  background: rgba(245,245,240,0.05);
  transform: translateY(-1px);
}



/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
  padding: 0 2rem;
}
.nav.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.nav__logo-text {
  font-family: var(--font-j);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: var(--text);
}
.nav__links {
  display: flex; align-items: center; gap: 2.5rem;
  margin-left: auto;
}
.nav__link {
  font-family: var(--font-e);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex; align-items: center; gap: 1rem;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  font-family: var(--font-e);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-h); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav__inner { text-align: center; }
.mobile-nav__links { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 3rem; }
.mobile-nav__link {
  font-family: var(--font-j);
  font-size: 2rem;
  color: var(--text-sub);
  transition: color 0.2s;
}
.mobile-nav__link:hover { color: var(--text); }
.mobile-nav__cta { display: inline-block; }

/* ============================================================
   SECTION 1: HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

/* ── HERO + VISION 共通動画背景ラッパー ── */
.hero-vision-wrap {
  position: relative;
}
.hero-vision-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-vision-video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
}
.hero-vision-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,.5) 0%,
    rgba(10,10,10,.4) 40%,
    rgba(10,10,10,.6) 80%,
    rgba(10,10,10,.85) 100%
  );
}

/* HERO内の文字を完全な白に（動画背景のため） */
.hero-vision-wrap .hero__eyebrow,
.hero-vision-wrap .hero__title-line,
.hero-vision-wrap .hero__subtitle,
.hero-vision-wrap .hero__scroll-text,
.hero-vision-wrap .hero__corner,
.hero-vision-wrap .hero__question,
.hero-vision-wrap .hero__divider-line,
.hero-vision-wrap .hero__divider-dot {
  color: #ffffff !important;
}
/* SCROLLを横書きに */
.hero__scroll-text {
  writing-mode: horizontal-tb !important;
  letter-spacing: 0.2em;
}

/* Background glow */
.hero__glow {
  position: absolute;
  width: 800px; height: 800px;
  bottom: -200px; right: -200px;
  background: radial-gradient(ellipse at center,
    rgba(196,30,58,0.12) 0%,
    rgba(200,149,46,0.04) 40%,
    transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Grid bg */
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,245,240,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,240,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  pointer-events: none;
}

/* Content */
.hero__content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 820px;
}

/* Eyebrow: REBORN ZIPANG CONCEPTION */
.hero__eyebrow {
  display: block;
  font-family: var(--font-e);
  font-size: clamp(0.65rem, 1.2vw, 0.8125rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 2rem;
  overflow: hidden;
}

/* 日本再創造構想：Kaisei Harunoumi・小さく */
.hero__eyebrow--ja {
  font-family: var(--font-j);
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: none;
  color: rgba(255,255,255,.7);
  opacity: 0;
  animation: fadeUp 0.6s 0.2s var(--ease-out) forwards;
}

/* Reborn Zipang Conception：Kaisei Harunoumi・大きく */
.hero__title-line--rzc {
  font-family: var(--font-j);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: block;
}
.hero__title-line--sub {
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  margin-top: 0.6rem;
}
.hero__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charIn 0.6s var(--ease-out) forwards;
}
.hero__char--space { width: 1em; }
@keyframes charIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Main title */
.hero__title {
  font-family: var(--font-j);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s 0.8s var(--ease-out) forwards;
  display: flex;
  flex-direction: column;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Divider */
.hero__divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.6s 1.2s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero__divider-line {
  display: block;
  width: 60px; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  animation: lineExpand 0.6s 1.3s var(--ease-out) forwards;
}
@keyframes lineExpand { to { transform: scaleX(1); } }
.hero__divider-dot {
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: fadeIn 0.3s 1.5s ease forwards;
}

/* Subtitle */
.hero__subtitle {
  font-family: var(--font-j);
  font-size: clamp(1rem, 2.2vw, 1.375rem);
  font-weight: 400;
  line-height: 2.0;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s 1.4s var(--ease-out) forwards;
}

/* Actions */
/* 問いかけ文（SCROLLの上） */
.hero__question {
  font-family: var(--font-j);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.75);
  text-align: center;
  margin: 18rem 0 16rem;
  line-height: 1.8;
}

.hero__actions {  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 1.7s var(--ease-out) forwards;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 1s 2.2s ease forwards;
}
.hero__scroll-text {
  font-family: var(--font-e);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.hero__scroll-bar {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollBar 2s ease-in-out infinite;
}
@keyframes scrollBar {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Corner info */
.hero__corner {
  position: absolute; bottom: 2.5rem; right: 2rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-e);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 0.8s 2.4s ease forwards;
}
.hero__corner-dot {
  display: block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   SECTION 2: VISION
============================================================ */
.vision { border-top: 1px solid var(--border); }

/* 見出しブロック：中央揃え */
.vision__center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.vision__heading {
  font-family: var(--font-j);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-top: 0.5rem;
}

/* 本文ブロック：中央揃え */
.vision__body-center {
  max-width: 640px;
  margin: 0 auto 5rem;
  text-align: center;
}

.vision__body {
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.vision__body:last-of-type { margin-bottom: 0; }
.vision__body--spacer { margin: 0; padding: 0; height: 1.5rem; }

.vision__statement {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  text-align: center;
}
.vision__statement-inner {
  display: inline-flex; align-items: flex-start; gap: 1.5rem;
  max-width: 680px;
}
.vision__statement-quote {
  font-family: var(--font-j);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: -0.5rem;
}
.vision__statement-quote--right {
  margin-top: auto;
  margin-bottom: -0.5rem;
}
.vision__statement-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
  font-family: var(--font-j);
  font-size: clamp(0.875rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--text);
}

/* Reborn Zipang Conception：大きく・Kaisei Harunoumi */
.vision__stmt-main {
  font-family: var(--font-j);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.04em;
  display: block;
}

/* 日本再創造構想：小さく・Kaisei Harunoumi */
.vision__stmt-sub {
  font-family: var(--font-j);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.08em;
  display: block;
}

/* ============================================================
   SECTION 3: WORKS
============================================================ */
.works { padding-bottom: 0; }

.works__header {
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.works__title {
  font-family: var(--font-j);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-top: 0.5rem;
}

/* ---- Work Item ---- */
.work-item {
  border-bottom: 1px solid var(--border);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.work-item:hover { background: rgba(245,245,240,0.015); }

/* Large background number */
.work-item::before {
  content: attr(id);
  position: absolute;
  top: 50%; right: -2rem;
  transform: translateY(-50%);
  font-family: var(--font-e);
  font-size: 18vw;
  font-weight: 800;
  color: rgba(245,245,240,0.018);
  letter-spacing: -0.05em;
  pointer-events: none;
  line-height: 1;
  text-transform: uppercase;
}

/* Inner layout: image + text side by side */
.work-item__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.work-item--reverse .work-item__inner {
  direction: rtl;
}
.work-item--reverse .work-item__inner > * {
  direction: ltr;
}

/* Visual placeholder */
.work-item__visual {
  position: relative;
}
.work-item__placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--wc2, #111) 0%, color-mix(in srgb, var(--wc, #333) 30%, #000) 100%);
  border: 1px solid color-mix(in srgb, var(--wc, #555) 25%, transparent);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.work-item:hover .work-item__placeholder {
  transform: scale(1.02);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* Glow effect inside placeholder */
.work-item__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, color-mix(in srgb, var(--wc, #fff) 15%, transparent) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid lines inside placeholder */
.work-item__placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--wc, #fff) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--wc, #fff) 6%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.work-item__ph-kanji {
  font-family: var(--font-j);
  font-size: clamp(4rem, 8vw, 7rem);
  color: color-mix(in srgb, var(--wc, #fff) 60%, transparent);
  line-height: 1;
  position: relative; z-index: 1;
  text-shadow: 0 0 40px color-mix(in srgb, var(--wc, #fff) 30%, transparent);
}
.work-item__ph-label {
  font-family: var(--font-e);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: color-mix(in srgb, var(--wc, #fff) 45%, transparent);
  text-transform: uppercase;
  position: relative; z-index: 1;
}

/* Content */
.work-item__content { }

.work-item__num {
  display: block;
  font-family: var(--font-e);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.work-item__cat {
  display: block;
  font-family: var(--font-e);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.work-item__title-ja {
  font-family: var(--font-j);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.work-item__title-en {
  font-family: var(--font-e);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.work-item__desc {
  font-family: var(--font-b);
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

/* CTA link */
.work-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-e);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lc, var(--accent));
  padding-bottom: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--lc, var(--accent)) 40%, transparent);
  transition: gap 0.25s var(--ease), border-color 0.25s, opacity 0.25s;
}
.work-item__link:hover {
  gap: 1rem;
  border-color: var(--lc, var(--accent));
  opacity: 0.85;
}
.work-item__arrow {
  transition: transform 0.25s var(--ease);
}
.work-item__link:hover .work-item__arrow {
  transform: translateX(4px);
}

/* ============================================================
   PROTOTYPE NOTE
============================================================ */
.prototype-note {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.prototype-note p {
  font-family: var(--font-e);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   REVEAL ANIMATIONS (Intersection Observer)
============================================================ */
.reveal .reveal-child {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in-view .reveal-child:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.reveal.in-view .reveal-child:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal.in-view .reveal-child:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .work-item__inner { grid-template-columns: 1fr; gap: 3rem; }
  .work-item--reverse .work-item__inner { direction: ltr; }
  .work-item__desc { max-width: 100%; }
  .work-item::before { font-size: 30vw; right: -1rem; opacity: 0.5; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 6rem 0; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .hero__corner { display: none; }
  .works__header { padding-bottom: 3rem; }
  .work-item { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn--lg { width: 100%; }
  .work-item__title-ja { font-size: 2rem; }
}

/* ============================================================
   SECTION 4: ECOSYSTEM
============================================================ */
.ecosystem__title {
  font-family: var(--font-j);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.ecosystem__lead {
  font-family: var(--font-b);
  font-size: 0.9375rem;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  line-height: 1.8;
  max-width: 540px;
}

/* ── Diagram wrapper ── */
.eco-diagram {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Tiers ── */
.eco-tier {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
}

/* ── 角飾り共通（case1スタイル） ── */
.eco-node {
  border: 1px solid var(--border);
  border-radius: 0;           /* 角丸なし */
  padding: 1.25rem 1.75rem;
  text-align: center;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.eco-node:hover {
  border-color: var(--border-h);
  background: var(--bg-3);
}

/* 四隅のL字装飾 */
.eco-node::before,
.eco-node::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-style: solid;
  border-color: var(--eco-accent, rgba(200,149,46,.6));
  pointer-events: none;
}
.eco-node::before { top: -1px; left: -1px;  border-width: 2px 0 0 2px; }
.eco-node::after  { top: -1px; right: -1px; border-width: 2px 2px 0 0; }

/* 下2隅はspan要素で */
.eco-node .eco-corner-bl,
.eco-node .eco-corner-br {
  position: absolute;
  width: 10px; height: 10px;
  border-style: solid;
  border-color: var(--eco-accent, rgba(200,149,46,.6));
  pointer-events: none;
}
.eco-node .eco-corner-bl { bottom: -1px; left: -1px;  border-width: 0 0 2px 2px; }
.eco-node .eco-corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* アクセントカラー変数をノードごとに設定 */
.eco-tier--root    .eco-node          { --eco-accent: #C8952E; }
.eco-node--ichioshi                   { --eco-accent: #D946A8; }
.eco-node--dbs                        { --eco-accent: #00BCD4; }
.eco-node--gameplay                   { --eco-accent: #E8872A; }
.eco-node--holder                     { --eco-accent: #a78bfa; }
.eco-node--ennokuni                   { --eco-accent: #E8872A; }
.eco-node--nft                        { --eco-accent: #a78bfa; }

/* ホバー時に角飾りを明るく */
.eco-node:hover::before,
.eco-node:hover::after,
.eco-node:hover .eco-corner-bl,
.eco-node:hover .eco-corner-br { opacity: 1; filter: brightness(1.3); }

/* Root node GOVERNANCE NFT */
.eco-node__governance {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(200,149,46,.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
}
.eco-node__governance-name {
  font-family: var(--font-j);
  font-size: 1.375rem;  /* ReZipangと同じサイズ */
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #e2b96f;
  display: block;
}
.eco-node__governance-sub {
  font-family: var(--font-b);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

/* Root node */
.eco-tier--root .eco-node {
  width: 380px;
  border-color: rgba(200,149,46,.3);
  background: linear-gradient(135deg, rgba(200,149,46,.08) 0%, var(--bg-2) 100%);
  padding: 0;         /* ビジュアルが上端まで来るよう */
  overflow: hidden;
}
.eco-tier--root .eco-node:hover { border-color: rgba(200,149,46,.55); }
.eco-tier--root .eco-node .eco-node__body {
  padding: 1rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  box-sizing: border-box;
}

/* GOVERNANCE NFT ビジュアルエリア（薄いゴールド背景） */
.eco-visual--governance {
  background: linear-gradient(135deg,
    rgba(200,149,46,.2) 0%,
    rgba(160,110,20,.28) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* 下部配置の場合は上から暗くなるグラデ */
.eco-visual--governance-bottom {
  background: linear-gradient(to bottom,
    rgba(200,149,46,.2) 0%,
    rgba(160,110,20,.28) 100%);
}
.eco-visual__overlay--governance {
  background: linear-gradient(180deg,
    transparent 30%,
    rgba(10,10,10,.65) 100%);
}

/* 5枚ファン — GOVERNANCEゴールド枠 */
.eco-nft-fan--gold .eco-nft-card--1 { transform: rotate(-28deg) translateX(-68px); z-index:1; border-color: rgba(200,149,46,.55); }
.eco-nft-fan--gold .eco-nft-card--2 { transform: rotate(-14deg) translateX(-34px); z-index:2; border-color: rgba(200,149,46,.55); }
.eco-nft-fan--gold .eco-nft-card--3 { transform: rotate(  0deg) translateX(  0px); z-index:3; border-color: rgba(200,149,46,.55); }
.eco-nft-fan--gold .eco-nft-card--4 { transform: rotate( 14deg) translateX( 34px); z-index:4; border-color: rgba(200,149,46,.55); }
.eco-nft-fan--gold .eco-nft-card--5 { transform: rotate( 28deg) translateX( 68px); z-index:5; border-color: rgba(200,149,46,.55); }
.eco-visual--governance:hover .eco-nft-fan--gold .eco-nft-card--1 { transform: rotate(-32deg) translateX(-76px); }
.eco-visual--governance:hover .eco-nft-fan--gold .eco-nft-card--2 { transform: rotate(-16deg) translateX(-40px); }
.eco-visual--governance:hover .eco-nft-fan--gold .eco-nft-card--3 { transform: rotate(  0deg) translateX(  0px); }
.eco-visual--governance:hover .eco-nft-fan--gold .eco-nft-card--4 { transform: rotate( 16deg) translateX( 40px); }
.eco-visual--governance:hover .eco-nft-fan--gold .eco-nft-card--5 { transform: rotate( 32deg) translateX( 76px); }

/* 通常ファン（ANV104）5枚目を追加 */
.eco-nft-fan .eco-nft-card--5 { transform: rotate( 20deg) translateX( 54px); z-index:5; }
.eco-visual--nft:hover .eco-nft-card--5 { transform: rotate( 26deg) translateX( 64px); }

/* Platform nodes */
.eco-tier--platforms .eco-node {
  flex: 0 0 380px;
  width: 380px;
}
.eco-node--ichioshi { border-color: rgba(217,70,168,.25); }
.eco-node--ichioshi:hover { border-color: rgba(217,70,168,.5); }
.eco-node--dbs { border-color: rgba(0,188,212,.25); }
.eco-node--dbs:hover { border-color: rgba(0,188,212,.5); }

/* Pool nodes */
.eco-tier--pools .eco-node {
  flex: 0 0 380px;
  width: 380px;
}


/* End nodes */
.eco-tier--end .eco-node {
  flex: 0 0 380px;
  width: 380px;
  text-align: left;
  align-items: flex-start;
}
.eco-node--ennokuni { border-color: rgba(232,135,42,.25); }
.eco-node--ennokuni:hover { border-color: rgba(232,135,42,.5); }
.eco-node--nft { border-color: rgba(167,139,250,.25); }
.eco-node--nft:hover { border-color: rgba(167,139,250,.5); }

/* ── Node text elements ── */
.eco-node__eyebrow {
  font-family: var(--font-e);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.eco-node__name {
  font-family: var(--font-j);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  display: block;
  white-space: nowrap;
}
.eco-node__name--sm {
  font-family: var(--font-e);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.eco-node__sub {
  font-family: var(--font-b);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* ZENY Pool タグ：クリエイタープラットフォームと同じ色 */
.eco-node__tag {
  font-family: var(--font-e);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

/* BCG / NFT Game・NFT Holderのeyebrowも同色に */
.eco-node--ennokuni .eco-node__eyebrow,
.eco-node--nft .eco-node__eyebrow {
  color: var(--text-muted) !important;
}

/* Gameplay / Holder プール名：Kaisei Harunoumi・各指定色に */
.eco-node--gameplay .eco-node__name--sm {
  font-family: var(--font-j);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #E8872A;
  white-space: nowrap;
}
.eco-node--holder .eco-node__name--sm {
  font-family: var(--font-j);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #a78bfa;
  white-space: nowrap;
}

/* プールノードの枠を白に */
.eco-node--gameplay {
  border-color: rgba(255,255,255,.25);
}
.eco-node--gameplay:hover {
  border-color: rgba(255,255,255,.55);
}
.eco-node--holder {
  border-color: rgba(255,255,255,.25);
}
.eco-node--holder:hover {
  border-color: rgba(255,255,255,.55);
}

.eco-node__addr {
  font-family: 'Courier New', 'Menlo', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  word-break: break-all;
  white-space: normal;
  display: block;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.eco-node__list {
  list-style: none;
  margin-top: 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.eco-node__list li {
  font-family: var(--font-b);
  font-size: 0.8125rem;
  color: var(--text-sub);
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eco-node__list li::before {
  content: '›';
  color: var(--gold);
  flex-shrink: 0;
}

.eco-burn {
  font-family: var(--font-e);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ff7055;
  background: rgba(220,60,40,.12);
  border: 1px solid rgba(220,60,40,.25);
  border-radius: 2px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ── Connectors (SVG rows) ── */
.eco-conn {
  width: 100%;
  max-width: 1000px;
  position: relative;
}
.eco-conn svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.eco-conn--fork svg { height: 48px; }
.eco-conn--cross { display: flex; flex-direction: column; align-items: center; }
.eco-conn--cross svg { height: 72px; }

.eco-conn__note {
  font-family: var(--font-e);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.35rem 0;
  text-align: center;
}
.eco-conn__note em {
  font-style: normal;
  color: var(--gold);
}

/* ── Feedback loop outer frame + arrows ── */
/* ラッパーなし。フィードバックSVGはeco-diagram上に絶対配置 */

/* eco-diagram: フィードバックSVGの基準座標 */
.eco-diagram {
  position: relative;
}

/* フィードバックループSVG */
.eco-fb-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: visible;
}

/* ── Tier 4 end nodes: ビジュアルブロック付き ── */
.eco-tier--end .eco-node {
  flex: 0 0 380px;
  width: 380px;
  text-align: left;
  align-items: flex-start;
  padding: 0;
  overflow: hidden;
}

/* ビジュアルエリア（画像ゾーン） */
.eco-visual {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.eco-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s var(--ease);
}
.eco-node:hover .eco-visual__img {
  transform: scale(1.04);
}

/* オーバーレイ（グラデ） */
.eco-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 50%,
    rgba(10,10,10,.55) 100%);
  pointer-events: none;
}

/* 炎エフェクト・グロウは削除済み */
.eco-char-glow { display: none; }
.eco-char-flame { display: none; }

/* 炎の国 visual エリア：薄オレンジ背景 */
.eco-visual--ennokuni {
  background: linear-gradient(135deg,
    rgba(232,135,42,.25) 0%,
    rgba(180,80,10,.35) 100%);
}

/* NFT visual エリア */
.eco-visual--nft {
  background: linear-gradient(135deg,
    rgba(30,10,60,.6) 0%,
    rgba(10,5,30,.8) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.eco-visual__overlay--nft {
  background: linear-gradient(180deg,
    transparent 30%,
    rgba(10,10,10,.65) 100%);
}

/* NFT ファン */
.eco-nft-fan {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
}
.eco-nft-card {
  position: absolute;
  bottom: 12px;
  width: 70px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(167,139,250,.5);
  box-shadow: 0 6px 20px rgba(0,0,0,.6), 0 0 0 1px rgba(167,139,250,.2);
  transform-origin: bottom center;
  transition: transform 0.35s var(--ease);
}
.eco-nft-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eco-nft-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,.18) 0%, transparent 50%,
    rgba(167,139,250,.1) 100%);
  pointer-events: none;
}
/* 4枚扇状 */
.eco-nft-card--1 { transform: rotate(-20deg) translateX(-54px); z-index: 1; }
.eco-nft-card--2 { transform: rotate(-7deg)  translateX(-18px); z-index: 2; }
.eco-nft-card--3 { transform: rotate( 7deg)  translateX( 18px); z-index: 3; }
.eco-nft-card--4 { transform: rotate( 20deg) translateX( 54px); z-index: 4; }
/* ホバーで扇が開く */
.eco-visual--nft:hover .eco-nft-card--1 { transform: rotate(-26deg) translateX(-64px); }
.eco-visual--nft:hover .eco-nft-card--2 { transform: rotate(-9deg)  translateX(-22px); }
.eco-visual--nft:hover .eco-nft-card--3 { transform: rotate( 9deg)  translateX( 22px); }
.eco-visual--nft:hover .eco-nft-card--4 { transform: rotate( 26deg) translateX( 64px); }

/* ノード本文エリア（ビジュアルの下） */
.eco-node__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
/* 上のbodyとの間に区切り線 */
.eco-node__body--bordered {
  padding-bottom: 0.75rem;
}
/* 区切り線 */
.eco-node__divider {
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem;
  height: 1px;
  background: var(--border);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .eco-tier { flex-direction: column; align-items: center; gap: 1rem; }
  .eco-tier--platforms .eco-node,
  .eco-tier--pools .eco-node,
  .eco-tier--end .eco-node { width: min(340px, 90vw); flex: none; }
  .eco-tier--root .eco-node { width: min(340px, 90vw); }
  .eco-fb-svg { display: none; } /* モバイルでフィードバックSVGを非表示 */
  /* フィードバックループの代替テキスト */
  .eco-fb-note {
    display: block;
    text-align: center;
    font-family: var(--font-e);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 0.75rem 0;
    border-top: 1px dashed rgba(245,245,240,.1);
    border-bottom: 1px dashed rgba(245,245,240,.1);
    margin: 0.5rem 0;
  }
}

/* ============================================================
   ROADMAP（roadmap-test.htmlから移植）
============================================================ */
.rm-outer { position: relative; height: 900vh; background: #050407; }
#rm-scroll-container-inner { position: relative; height: 100%; }
#rm-overlay {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
  background: #050407;
}
#rm-overlay.visible { opacity: 1; pointer-events: auto; }
#rm-video-layer { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
#rm-video-layer video {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.0s ease;
}
#rm-video-layer video.active { opacity: 1; }
#rm-color-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: background 1.2s ease; }
#rm-vignette {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 20%, rgba(0,0,0,.72) 100%);
  pointer-events: none;
}
#rm-year-bg { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; overflow: hidden; }
#rm-year-text {
  font-family: var(--font-e); font-size: clamp(10rem, 28vw, 26rem);
  font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: rgba(245,245,240,.06); user-select: none;
  transform: translateY(-5%); transition: opacity 0.6s ease, color 0.8s ease;
}
#rm-fadein { position: absolute; inset: 0; z-index: 50; background: #050407; pointer-events: none; transition: opacity 0.8s ease; }
#rm-fadein.done { opacity: 0; pointer-events: none; }
#rm-label {
  position: absolute; top: 2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-e); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.25em; color: var(--accent); text-transform: uppercase;
  z-index: 10; opacity: 0; transition: opacity 0.8s 0.4s;
}
#rm-overlay.visible #rm-label { opacity: 1; }
#rm-text {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 3rem 0;
  pointer-events: none;
}
#rm-phase-label {
  font-family: var(--font-e); font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 700; letter-spacing: 0.35em; color: #ffffff;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
#rm-concept {
  font-family: var(--font-e); font-size: clamp(4.5rem, 12vw, 11rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.88;
  margin-bottom: 1.8rem; text-shadow: 0 2px 60px rgba(0,0,0,.95);
}
#rm-concept .c { display: inline-block; }
#rm-copy {
  font-family: var(--font-j); font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.04em; color: #ffffff;
  line-height: 1.5; margin-bottom: 1rem;
  text-shadow: 0 1px 24px rgba(0,0,0,.95);
}
#rm-detail {
  font-family: var(--font-j); font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.06em; color: #ffffff;
  line-height: 2.0; margin-bottom: 2.2rem;
  text-shadow: 0 1px 24px rgba(0,0,0,.95); white-space: pre-line;
}
#rm-kw { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
#rm-kw span {
  font-family: var(--font-e); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; color: #ffffff;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.4);
  padding: 0.3rem 1rem; border-radius: 2px;
}
#rm-timeline { position: absolute; bottom: 3.5rem; left: 0; right: 0; overflow: hidden; pointer-events: none; z-index: 10; }
#rm-tl-inner { display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.rm-tl-node { display: inline-flex; flex-direction: column; align-items: center; position: relative; }
.rm-tl-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(245,245,240,.25); transition: background .4s, transform .4s, box-shadow .4s; flex-shrink: 0; }
.rm-tl-dot.active { background: #C8952E; transform: scale(2); box-shadow: 0 0 16px rgba(200,149,46,.8); }
.rm-tl-dot.passed { background: rgba(200,149,46,.5); }
.rm-tl-name { position: absolute; bottom: 18px; font-family: var(--font-e); font-size: .5rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,245,240,.25); white-space: nowrap; transition: color .4s; }
.rm-tl-dot.active ~ .rm-tl-name { color: rgba(200,149,46,.9); }
.rm-tl-bar { width: 180px; height: 1px; background: rgba(245,245,240,.1); flex-shrink: 0; position: relative; overflow: hidden; }
.rm-tl-bar-fill { position: absolute; top:0; left:0; height:100%; width:0%; background: rgba(200,149,46,.6); transition: width .15s linear; }
#rm-indicator { position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .7rem; pointer-events: none; z-index: 10; }
.rm-ind { width: 3px; height: 3px; border-radius: 50%; background: rgba(245,245,240,.2); transition: background .4s, height .4s, border-radius .4s, box-shadow .4s; }
.rm-ind.active { background: #C8952E; height: 22px; border-radius: 2px; box-shadow: 0 0 8px rgba(200,149,46,.5); }
.rm-ind.passed { background: rgba(200,149,46,.35); }
#rm-hint { position: absolute; bottom: 6rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; z-index: 10; transition: opacity .5s; }
#rm-hint.hidden { opacity: 0; }
#rm-hint span { font-family: var(--font-e); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,245,240,.35); }
#rm-hint-line { width: 1px; height: 28px; background: linear-gradient(to bottom, rgba(245,245,240,.4), transparent); animation: rm-hint-pulse 1.8s infinite; }
@keyframes rm-hint-pulse { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:.9;transform:scaleY(1.1)} }
.p0 #rm-concept { color: rgba(245,245,240,.92); }
.p1 #rm-concept { color: #C8952E; }
.p2 #rm-concept { color: #e8a040; }
.p3 #rm-concept { color: #4ec8d8; }
.p4 #rm-concept { color: #C41E3A; }
.p5 #rm-concept { color: #fff; text-shadow: 0 0 60px rgba(255,230,180,.5), 0 2px 48px rgba(0,0,0,.9); }

/* ============================================================
   WORKS 準備中ボタン
============================================================ */
.work-item__link--soon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-e); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--text-muted);
  border: none; background: none; cursor: default;
  padding: 0; opacity: 0.5;
}
.work-item__link--soon.work-item__link--fired::after {
  content: '　Coming Soon';
  color: var(--gold);
}

/* ============================================================
   OFFICIAL ACCOUNTS
============================================================ */
.official { border-top: 1px solid var(--border); }
.official__title {
  font-family: var(--font-j); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400; letter-spacing: 0.04em; color: var(--text);
  margin: 0.5rem 0 4rem;
}

.official__profile-name-row {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.official__profile-imgs {
  position: relative; flex-shrink: 0;
}
.official__profile-main {
  width: 140px; height: 140px; border-radius: 4px;
  object-fit: cover; display: block;
  border: 1px solid var(--border);
}
.official__profile-ximg-wrap {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}
.official__profile-ximg {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.official__profile-bio {
  font-family: var(--font-b); font-size: 0.9375rem;
  color: var(--text-sub); line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* プロフィール */
.official__profile {
  display: flex; align-items: center; gap: 3rem;
  padding: 3rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.official__profile-imgs {
  position: relative; flex-shrink: 0;
}
.official__profile-main {
  width: 140px; height: 140px; border-radius: 4px;
  object-fit: cover; display: block;
  border: 1px solid var(--border);
}
.official__profile-icon {
  position: absolute; bottom: -12px; right: -12px;
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}
.official__profile-role {
  font-family: var(--font-e); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.5rem;
}
.official__profile-name {
  font-family: var(--font-e); font-size: 2rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 1rem;
}
.official__x-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-e); font-size: 0.875rem; font-weight: 600;
  color: var(--text-sub); letter-spacing: 0.04em;
  border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.official__x-link:hover { color: var(--text); border-color: var(--border-h); }
.official__x-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* アカウント一覧 */
.official__accounts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-bottom: 4rem;
}
.official__account-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-2); color: var(--text-sub);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.official__account-card:hover { border-color: var(--border-h); background: var(--bg-3); color: var(--text); }
.official__account-card .official__x-icon { margin-left: auto; flex-shrink: 0; opacity: 0.4; }
.official__account-card:hover .official__x-icon { opacity: 0.8; }
.official__account-logo {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.official__account-logo img { width: 100%; height: 100%; object-fit: cover; }
.official__account-logo--fire { background: rgba(232,135,42,.15); color: #E8872A; font-family: var(--font-j); font-size: 1.2rem; }
.official__account-logo--pink { background: rgba(217,70,168,.15); color: #D946A8; font-family: var(--font-j); font-size: 1.2rem; }
.official__account-name { font-family: var(--font-e); font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.official__account-handle { font-family: var(--font-e); font-size: 0.75rem; color: var(--text-muted); }

/* CTA */
.official__cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .official__profile { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .official__accounts { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 0 2rem;
  background: var(--bg);
}
.footer__inner {
  display: flex; gap: 4rem; margin-bottom: 3rem;
  flex-wrap: wrap;
}
.footer__brand { flex: 0 0 280px; }
.footer__logo {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer__logo-img { width: 32px; height: 32px; object-fit: contain; }
.footer__logo-text {
  font-family: var(--font-j); font-size: 1rem; font-weight: 400;
  letter-spacing: 0.05em; color: var(--text);
}
.footer__tagline {
  font-family: var(--font-b); font-size: 0.8125rem;
  color: var(--text-muted); line-height: 1.8;
}
.footer__links { flex: 1; display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__col { flex: 1; min-width: 120px; }
.footer__col-title {
  font-family: var(--font-e); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-sub); margin-bottom: 1rem; display: block;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a {
  font-family: var(--font-b); font-size: 0.875rem;
  color: var(--text-muted); transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.footer__company {
  font-family: var(--font-j); font-size: 0.75rem;
  color: var(--text-muted); line-height: 1.6;
}
.footer__copy {
  font-family: var(--font-e); font-size: 0.75rem; color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer__inner { flex-direction: column; gap: 2.5rem; }
  .footer__brand { flex: none; }
}
