/* ============================================================
   LUMINA — Digital Design Studio
   Dark aurora theme / glassmorphism / soft motion
   ============================================================ */

:root {
  --bg: #07070f;
  --bg-soft: #0d0d1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f2f8;
  --text-dim: #9a9ab0;
  --accent-1: #7c5cff;
  --accent-2: #4de3c1;
  --accent-3: #ff6ec7;
  --grad: linear-gradient(120deg, #7c5cff, #4de3c1 55%, #ff6ec7);
  --font-en: "Syne", sans-serif;
  --font-jp: "Zen Kaku Gothic New", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

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

/* スクロールバー */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-1), var(--accent-2));
  border-radius: 8px;
}

/* ---------- カスタムカーソル ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent-2);
  transition: transform 0.15s ease, background 0.2s ease;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(124, 92, 255, 0.7);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s ease, opacity 0.25s ease;
}
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  border-color: var(--accent-2);
}
body.cursor-hover .cursor-dot { transform: translate(-50%, -50%) scale(1.6); }
@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- スクロール進捗 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 1001;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 0; height: 100%;
  background: var(--grad);
}

/* ---------- ローダー ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.25em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.loader__bar {
  display: block;
  width: 180px; height: 2px;
  margin: 24px auto 0;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}
.loader__bar i {
  display: block;
  width: 40%; height: 100%;
  background: var(--grad);
  animation: loaderBar 1.2s ease-in-out infinite;
}
@keyframes loaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(450%); }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              box-shadow 0.4s ease, height 0.3s ease;
}
.site-header.is-scrolled {
  height: 60px;
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
}
.site-header__logo span { color: var(--accent-2); }
.site-nav { display: flex; gap: 34px; align-items: center; }
.site-nav a {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--grad);
  transition: width 0.35s var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav .nav-link--cta {
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-nav .nav-link--cta::after { display: none; }
.site-nav .nav-link--cta:hover {
  background: var(--surface-strong);
  border-color: var(--accent-2);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.hero__glow--1 {
  width: 46vw; height: 46vw;
  top: -12%; left: -10%;
  background: radial-gradient(circle, var(--accent-1), transparent 65%);
  animation: glowFloat 12s ease-in-out infinite;
}
.hero__glow--2 {
  width: 40vw; height: 40vw;
  bottom: -14%; right: -8%;
  background: radial-gradient(circle, var(--accent-3), transparent 65%);
  animation: glowFloat 14s ease-in-out infinite reverse;
}
@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -3vh) scale(1.12); }
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.1rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}
.hero__title-line { display: block; overflow: hidden; }
.word-rotate {
  position: relative;
  display: inline-block;
  min-width: 2.6em;
  height: 1.35em;
  vertical-align: bottom;
  text-align: center;
}
.word-rotate__item {
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
  transform: translateY(60%);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.word-rotate__item.is-active { opacity: 1; transform: translateY(0); }
.word-rotate__item.is-leaving { opacity: 0; transform: translateY(-60%); }
.hero__lead {
  margin: 32px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 2;
}
.hero__scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll-line i {
  display: block;
  width: 100%; height: 40%;
  background: var(--accent-2);
  animation: scrollLine 1.8s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(260%); }
}

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 15px 40px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.btn--primary {
  background: var(--grad);
  color: #0b0b14;
  font-weight: 700;
}
.btn--primary:hover { box-shadow: 0 8px 34px rgba(124, 92, 255, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--surface-strong); border-color: var(--accent-2); }

/* ---------- マーキー ---------- */
.marquee {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}
.marquee__track i {
  font-style: normal;
  color: var(--accent-2);
  font-size: 1.1rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- セクション共通 ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(90px, 14vw, 160px) 24px 0;
}
.section__head { margin-bottom: 56px; }
.section__label {
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.4;
}

/* リビールアニメーション */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about__emph {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 26px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__text p + p { margin-top: 18px; color: var(--text-dim); }
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease,
              background 0.4s ease;
}
.stat:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 227, 193, 0.5);
  background: var(--surface-strong);
}
.stat__num, .stat__suffix {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__suffix { font-size: 1.2rem; margin-left: 2px; }
.stat__label {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  padding: 40px 30px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
              rgba(124, 92, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-8px); border-color: rgba(124, 92, 255, 0.55); }
.service-card__icon {
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-2);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 24px;
  transition: transform 0.45s var(--ease-out);
}
.service-card:hover .service-card__icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 {
  font-family: var(--font-en);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.service-card p { font-size: 0.88rem; color: var(--text-dim); }
.service-card__num {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
}

/* ---------- Works ---------- */
.works__filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 24px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--font-jp);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent-2); }
.filter-btn.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #0b0b14;
  font-weight: 700;
}
.works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.work-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease,
              opacity 0.45s var(--ease-out);
}
.work-card.is-hidden { display: none; }
.work-card.is-prep { opacity: 0; transform: scale(0.96); }
.work-card:hover, .work-card:focus-visible {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  outline: none;
}
.work-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 15, 0.42);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.work-card:hover .work-card__thumb::after { opacity: 1; }
.work-card__thumb--1 { background: linear-gradient(135deg, #1a2a6c, #b21f1f 60%, #fdbb2d); }
.work-card__thumb--2 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.work-card__thumb--3 { background: linear-gradient(135deg, #42275a, #734b6d); }
.work-card__thumb--4 { background: linear-gradient(135deg, #134e5e, #71b280); }
.work-card__thumb--5 { background: linear-gradient(135deg, #232526, #ff9966); }
.work-card__thumb--6 { background: linear-gradient(135deg, #141e30, #5ee7df); }
.work-card__view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
  z-index: 1;
}
.work-card:hover .work-card__view { opacity: 1; transform: translateY(0); }
.work-card__meta { padding: 20px 24px 24px; }
.work-card__meta h3 {
  font-family: var(--font-en);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.work-card__meta p { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- ライトボックス ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}
.lightbox.is-open { visibility: visible; pointer-events: auto; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }
.lightbox__panel {
  position: relative;
  width: min(760px, 100%);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.4s ease;
}
.lightbox.is-open .lightbox__panel { transform: translateY(0) scale(1); opacity: 1; }
.lightbox__thumb { aspect-ratio: 16 / 9; }
.lightbox__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(7, 7, 15, 0.6);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}
.lightbox__close:hover { background: var(--accent-1); transform: rotate(90deg); }
.lightbox__info { padding: 28px 32px 32px; }
.lightbox__info h3 { font-family: var(--font-en); font-size: 1.4rem; }
.lightbox__info p { color: var(--text-dim); font-size: 0.9rem; margin-top: 10px; }
.lightbox__nav { display: flex; gap: 14px; margin-top: 26px; }
.lightbox__nav button {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lightbox__nav button:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(90px, 14vw, 160px); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
}
.contact__lead { font-size: 1.05rem; line-height: 2; }
.contact__list { list-style: none; margin-top: 36px; }
.contact__list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.contact__list span {
  display: inline-block;
  width: 90px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact__list a { color: var(--accent-2); text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__form {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.form-field { position: relative; margin-bottom: 26px; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(7, 7, 15, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: #ff5c7a; }
.form-field__error {
  display: none;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #ff5c7a;
}
.form-field.has-error .form-field__error { display: block; animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.btn--submit { width: 100%; }
.btn--submit.is-sending { opacity: 0.6; pointer-events: none; }
.contact__success {
  display: none;
  margin-top: 20px;
  text-align: center;
  color: var(--accent-2);
  font-size: 0.9rem;
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 60px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.site-footer__logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
}
.site-footer__logo span { color: var(--accent-2); }
.site-footer__copy {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ---------- トップへ戻る ---------- */
.to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(13, 13, 26, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out),
              background 0.3s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--accent-1); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    gap: 38px;
    background: rgba(7, 7, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 1.3rem; }
  .hero__lead br { display: none; }
  .contact__form { padding: 28px 22px; }
  .about__stats { grid-template-columns: 1fr 1fr; }
}

/* モーション低減 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
