/* ─────────────────────────────────────
   monaka design. — style.css
   ───────────────────────────────────── */

:root {
  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;

  --bg: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #888888;
  --rule: #e0e0e0;

  --accent:      #A5E02E;
  --accent-dark: #8fc426;

  --menu-overlay: #0a0a0a;
  --menu-text:    #ffffff;
  --menu-accent:  #A5E02E;

  --pad-x: clamp(24px, 5vw, 80px);
  --pad-y: clamp(80px, 10vw, 140px);
  --max-w: 1400px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: auto; }
body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Page Loader ── */
/* ── Loader ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
}
.loader-panel {
  position: absolute;
  left: 0;
  right: 0;
  background: #ffffff;
}
.loader-panel--top {
  top: 0;
  height: 50%;
}
.loader-panel--bottom {
  bottom: 0;
  height: 50%;
}
.loader-line {
  position: absolute;
  top: 50%;
  left: var(--pad-x);
  right: var(--pad-x);
  width: calc(100% - var(--pad-x) * 2);
  height: 1px;
  transform: translateY(-0.5px);
  z-index: 2;
  overflow: visible;
}
.loader-counter {
  position: absolute;
  top: calc(50% + 16px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #888888;
  opacity: 0;
  z-index: 2;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 768px) {
  .loader-line { left: 24px; right: 24px; width: calc(100% - 48px); }
  .loader-counter { left: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-char { clip-path: inset(0% 0 0 0); transform: none; transition: none; }
}

/* ── Works Modal ── */
.works-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(255, 255, 255, 0.97);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.works-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal-close {
  position: absolute;
  top: 32px;
  right: var(--pad-x);
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  cursor: none;
  padding: 0;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.modal-close:hover { color: var(--accent); }
.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 960px;
  width: 100%;
  padding: 0 var(--pad-x);
}
.modal-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  filter: grayscale(1);
}
.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 32px;
}
.modal-tag {
  display: flex;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.2;
}
@media (max-width: 700px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-img-wrap { aspect-ratio: 4/3; }
}

/* ── Custom Cursor — Figma style ── */
#cursor-figma,
#cursor-shito {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
#cursor-figma { z-index: 9999; }
#cursor-shito { z-index: 9998; }
.cursor-label {
  position: absolute;
  top: 14px;
  left: 13px;
  background: var(--text);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 0 8px 8px 8px;
  white-space: nowrap;
  line-height: 1.4;
}
.cursor-label--you   { background: var(--accent); color: #0a0a0a; }
.cursor-label--shito { background: #999; }

/* ── Three.js Canvas ── */
#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x);
  mix-blend-mode: multiply;
}
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
  mix-blend-mode: normal;
  isolation: isolate;
}

/* ── Logo SVG ── */
.logo-img {
  display: block;
  width: auto;
  flex-shrink: 0;
}
.logo-img--nav {
  height: 20px;
}
.logo-img--footer {
  height: 28px;
}
.logo-img--gate {
  height: 24px;
}
.logo-img--menu {
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
@media (max-width: 600px) {
  .logo-img--nav    { height: 17px; }
  .logo-img--footer { height: 22px; }
  .logo-img--gate   { height: 20px; }
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}
.nav-link:hover::after { width: 100%; }

/* ── Hero ── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(48px, 7vw, 80px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 10.5vw, 156px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero-title .line {
  overflow: hidden;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}
.hero-title .line span {
  display: block;
  transform: translateY(110%);
}
.hero-title em {
  font-style: italic;
}
.hero-sub {
  position: absolute;
  bottom: clamp(28px, 4vw, 48px);
  left: var(--pad-x);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 280px;
  opacity: 0;
}
/* ═══════════════════════════════════
   Hero 装飾テキスト
   ═══════════════════════════════════ */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
.hd {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  opacity: 0;
  white-space: nowrap;
}
.hd--07 {
  bottom: clamp(28px, 4vw, 48px);
  right: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hd-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-deco { display: none; }
}
.scroll-hint {
  position: absolute;
  bottom: clamp(28px, 4vw, 48px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  opacity: 0;
}


/* ═══════════════════════════════════
   日本語サブテキスト（共通）
   ═══════════════════════════════════ */
.ja {
  display: block;
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 5px;
  line-height: 1.6;
}
.ja-inline {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Section meta ── */
.section-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.section-label-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.section-num {
  font-size: 10px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ── Works ── */
#works {
  position: relative;
  z-index: 1;
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
/* View All Works link */
.works-more-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(80px, 12vw, 160px);
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px) clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease, padding-left 0.4s ease;
}
.works-more-link:hover {
  background: var(--text);
  color: var(--bg);
  padding-left: clamp(16px, 2vw, 32px);
}
.work-title + .ja {
  font-size: 10px;
  margin-top: 8px;
}
.works-more-label {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.works-more-arrow {
  font-size: clamp(24px, 4vw, 56px);
  transition: transform 0.4s ease, color 0.4s ease;
}
.works-more-link:hover .works-more-arrow {
  transform: translateX(12px);
  color: var(--accent);
}

/* ── Password Gate (works.html) ── */
.gate-wrap {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.gate-logo {
  display: block;
  text-decoration: none;
  margin-bottom: clamp(48px, 8vw, 96px);
  transition: opacity 0.2s ease;
}
.gate-logo:hover { opacity: 0.7; }
.gate-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 16px;
}
.gate-sub {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}
.gate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}
.gate-field {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--text);
  padding-bottom: 12px;
  gap: 12px;
}
.gate-field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.08em;
}
.gate-field input::placeholder { color: var(--text-secondary); }
.gate-field button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text);
  padding: 0;
  transition: transform 0.3s ease;
}
.gate-field button:hover { transform: translateX(6px); }
.gate-error {
  font-size: 11px;
  color: #c0392b;
  letter-spacing: 0.08em;
  min-height: 16px;
  text-align: center;
}

/* ── Works Archive page ── */
.archive-header {
  padding: calc(var(--pad-y) * 1.5) var(--pad-x) var(--pad-y);
  max-width: var(--max-w);
  margin: 0 auto;
}
.archive-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.archive-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0;
}
.archive-grid {
  padding: 0 var(--pad-x) var(--pad-y);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px) clamp(24px, 3vw, 48px);
}
.archive-card {
  cursor: pointer;
}
.archive-card .work-img-wrap {
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}
.archive-card .work-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.archive-card .work-tag { margin-bottom: 6px; }
.archive-card .work-title { font-size: clamp(18px, 2vw, 28px); }

@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; }
}

/* Editorial staggered layout */
.works-list {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 14vw, 180px);
}
.work-entry {
  display: grid;
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  cursor: pointer;
}
.work-entry.js-modal-open { cursor: pointer; }
.work-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.15;
}
.work-entry:nth-child(1) { grid-template-columns: 28fr 72fr; }
.work-entry:nth-child(2) { grid-template-columns: 52fr 48fr; padding-left: 6vw; }
.work-entry:nth-child(3) { grid-template-columns: 38fr 62fr; padding-left: 12vw; }
.work-entry:nth-child(4) { grid-template-columns: 58fr 42fr; }
.work-entry:nth-child(5) { grid-template-columns: 30fr 70fr; padding-left: 5vw; }

/* Even entries: image left */
.work-entry:nth-child(even) .work-img-wrap { order: -1; }

/* Aspect ratios — vary for rhythm */
.work-entry:nth-child(1) .work-img-wrap { aspect-ratio: 3/4; }
.work-entry:nth-child(2) .work-img-wrap { aspect-ratio: 4/5; }
.work-entry:nth-child(3) .work-img-wrap { aspect-ratio: 16/10; }
.work-entry:nth-child(4) .work-img-wrap { aspect-ratio: 1; }
.work-entry:nth-child(5) .work-img-wrap { aspect-ratio: 3/4; }

/* Info alignment per entry */
.work-entry__info { align-self: flex-end; }
.work-entry:nth-child(3) .work-entry__info { align-self: flex-start; margin-top: 48px; }
.work-entry:nth-child(4) .work-entry__info { align-self: center; }

.work-tag {
  display: flex;
  gap: 16px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 300;
}
.work-entry:hover .work-cat {
  color: var(--accent);
  transition: color 0.3s ease;
}
.work-num {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 40px;
}

/* Image container */
.work-img-wrap {
  overflow: hidden;
  position: relative;
  filter: grayscale(1);
  transition: filter 1.2s ease;
}
.work-img-wrap img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* ── About ── */
#about {
  position: relative;
  z-index: 1;
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 140px 1fr 280px;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.about-index {
  font-family: var(--font-display);
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 400;
  color: var(--rule);
  line-height: 1;
  padding-top: 32px;
  user-select: none;
  letter-spacing: 0.25em;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  text-transform: uppercase;
}
.about-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.about-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.about-headline-ja {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  line-height: 1.8;
  margin-top: -20px;
  margin-bottom: 32px;
}
.about-rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 24px;
}
.career-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.career-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.career-role { font-weight: 300; }
.career-years { color: var(--text-secondary); font-weight: 300; }

.portrait-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}
.portrait-wrap:hover { filter: grayscale(0.2); }
.available-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Services ── */
#services {
  position: relative;
  z-index: 1;
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.services-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
  overflow: visible;
}
.service-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-name-inner {
  overflow: hidden;
  padding-bottom: 0.2em;
}
.service-ja {
  font-size: 11px;
  opacity: 0;
  margin-top: 0;
}
.service-row:first-child { border-top: 1px solid var(--rule); }
.service-row:hover .service-num { color: var(--accent); }
.service-num {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.service-name {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.5vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transform: translateY(100%);
}
.service-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 200px;
  text-align: right;
}

/* ── Dark Section（Contact + Footer） ── */
/* ── Contact ── */
#contact {
  position: relative;
  z-index: 1;
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: clamp(40px, 6vw, 72px);
}
.contact-header {
  position: sticky;
  top: 120px;
}
.contact-eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.contact-headline em { font-style: italic; }
.contact-headline-ja {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}
.form-row { width: 100%; }
.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  outline: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  padding: 12px 0;
  transition: border-color 0.3s ease;
  cursor: none;
  resize: none;
}
.form-input::placeholder { color: var(--rule); }
.form-input:focus { border-color: var(--accent); }
.form-textarea {
  min-height: 120px;
  line-height: 1.75;
}
.form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form-tag { cursor: pointer; }
.form-tag input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.form-tag span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: pointer;
}
.form-tag input:checked + span,
.form-tag span:hover {
  border-color: var(--text);
  color: var(--text);
}
.form-tag input:checked + span {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.form-select-wrap {
  position: relative;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s ease;
}
.form-select-wrap:focus-within { border-color: var(--accent); }
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  padding: 12px 0;
  appearance: none;
  cursor: pointer;
}
.form-select option { background: var(--bg); color: var(--text); }
.form-select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-secondary);
  pointer-events: none;
}
.form-row--submit { margin-top: 8px; }
.form-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 18px 40px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: none;
  transition: gap 0.4s ease;
}
.form-submit:hover {
  gap: 28px;
  background: var(--accent);
  color: #0a0a0a;
}
.form-submit-arrow { transition: transform 0.3s ease; }
.form-submit:hover .form-submit-arrow { transform: translateX(4px); }
.form-success {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.form-success.is-visible { display: flex; }
.form-success-icon { font-size: 20px; color: var(--accent); }
.form-success p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}
@media (max-width: 600px) {
  .form-row--half { grid-template-columns: 1fr; }
  .contact-headline { font-size: clamp(52px, 14vw, 90px); }
}

/* ── Site Footer ── */
#site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  padding: clamp(56px, 8vw, 100px) var(--pad-x) 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.footer-logo {
  display: block;
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
  line-height: 0;
}
.footer-logo:hover { opacity: 0.6; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 32px;
}
.footer-tagline em { font-style: italic; }
.footer-tagline-ja {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.footer-socials { display: flex; gap: 20px; }
.footer-social-link {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.footer-social-link:hover { color: var(--accent); }
.footer-col-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: 13px;
  font-weight: 300;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-info-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  font-weight: 300;
}
.footer-info-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.footer-info-list a { transition: opacity 0.2s ease; }
.footer-info-list a:hover { opacity: 0.6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Scroll reveal ── */
.reveal-wrap { overflow: hidden; }
.reveal-el { transform: translateY(60px); opacity: 0; }

/* ── Magnetic ── */
.js-magnetic { display: inline-block; }

/* ── Mobile: restore native cursor ── */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  #cursor-figma, #cursor-shito { display: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .work-entry { grid-template-columns: 1fr !important; padding-left: 0 !important; }
  .work-entry:nth-child(even) .work-img-wrap { order: 0; }
  .work-entry__info { align-self: auto !important; margin-top: 0 !important; }
  .about-grid { grid-template-columns: 1fr; }
  .about-index { display: none; }
  .about-portrait { max-width: 300px; }
  .service-row { grid-template-columns: 36px 1fr; }
  .service-desc { display: none; }
  .contact-body { grid-template-columns: 1fr; gap: 48px; }
  .contact-header { position: static; }
}
@media (max-width: 600px) {
  .service-name { font-size: clamp(28px, 9vw, 48px); }
  .work-entry__info { padding: 0; }
}

/* ══════════════════════════════════════
   HAMBURGER MENU
   ══════════════════════════════════════ */

/* ── Trigger Button ── */
.menu-trigger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, border-radius 200ms ease;
}
.menu-trigger.is-scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 100px;
}
.burger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity   250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-trigger.is-open .burger-line        { background: var(--menu-text); }
.menu-trigger.is-open .burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-trigger.is-open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-trigger.is-open .burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Overlay ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--menu-overlay);
  clip-path: circle(0% at calc(100% - 22px) 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 10vw, 80px) clamp(32px, 8vw, 80px);
  pointer-events: none;
}

/* SVG noise */
.menu-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
}

/* ── Nav items ── */
.menu-nav { position: relative; z-index: 1; }
.menu-list { list-style: none; padding: 0; margin: 0; }

.menu-link {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: clamp(40px, 9vw, 80px);
  font-weight: 300;
  font-variation-settings: 'wght' 300;
  letter-spacing: -0.02em;
  color: var(--menu-text);
  text-decoration: none;
  line-height: 1.15;
  transition: font-variation-settings 180ms ease-out;
  will-change: transform, opacity;
}
.menu-link:hover { font-variation-settings: 'wght' 600; }

.menu-arrow {
  display: inline-block;
  color: var(--menu-accent);
  opacity: 0;
  transform: translateX(-10px);
  margin-right: 0;
  transition: opacity 150ms ease, transform 150ms ease, margin-right 150ms ease;
  font-variation-settings: 'wght' 300;
}
.menu-link:hover .menu-arrow {
  opacity: 1;
  transform: translateX(0);
  margin-right: 16px;
}

/* ── Footer ── */
.menu-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 clamp(32px, 8vw, 80px) calc(40px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  z-index: 1;
}
.menu-footer a {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 150ms ease;
}
.menu-footer a:hover { color: rgba(255, 255, 255, 0.8); }
.menu-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}
.menu-footer-right a {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 150ms ease;
}
.menu-footer-right a:hover { color: rgba(255, 255, 255, 0.8); }

/* ── Show trigger / hide desktop nav on mobile ── */
@media (max-width: 900px) {
  .menu-trigger { display: flex; }
  .nav-links    { display: none; }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .burger-line,
  .menu-link,
  .menu-arrow { transition-duration: 0ms; }
}
