/* ============================================
   TOKENS
   ============================================ */
:root {
  --navy:       #06090f;
  --navy-mid:   #0a1018;
  --navy-light: #101828;
  --gold:       #c8922a;
  --gold-pale:  #e8b84a;
  --gold-mid:   #d4a040;
  --gold-hi:    #f5d060;
  --gold-glow:  #ffe08050;
  --white:      #f0ede8;
  --white-dim:  #b0a898;
  --muted:      #607080;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #06090f;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

/* ============================================
   HEADER
   ============================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(6, 10, 18, 0.94);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(200, 145, 42, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--gold-pale);
  transition: opacity 0.2s;
  text-shadow:
    0 1px 0 rgba(255,230,120,0.3),
    0 -1px 0 rgba(60,30,0,0.8),
    0 0 16px rgba(200,145,42,0.5),
    0 0 40px rgba(200,145,42,0.18);
}
.logo:hover { opacity: 0.75; }

.nav { display: flex; gap: 40px; }
.nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.2s, text-shadow 0.2s;
}
.nav a:hover { color: var(--gold-pale); text-shadow: 0 0 12px rgba(200,145,42,0.4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(200,165,90,0.15);
}
.nav-mobile-link {
  padding: 10px 0;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-mobile-link:hover { color: var(--white); }
.nav-mobile.open { display: flex; }

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  background: var(--navy);
}

/* 背景画像レイヤー */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/site_top_large_new.png') 60% center / cover no-repeat;
  z-index: 0;
}

/* canvas はbg の上 */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* CTAボタンエリア */
.hero-overlay {
  position: absolute;
  bottom: 3%;
  left: 68%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.2s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 13px 48px;
  border: 1px solid rgba(200,145,42,0.8);
  color: var(--gold-pale);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
  background: rgba(6,9,15,0.35);
  backdrop-filter: blur(4px);
  text-shadow:
    0 1px 0 rgba(255,230,120,0.2),
    0 -1px 0 rgba(60,30,0,0.6),
    0 0 12px rgba(200,145,42,0.4);
}
.hero-cta:hover {
  background: rgba(200,145,42,0.15);
  border-color: var(--gold-pale);
  color: var(--gold-hi);
  box-shadow: 0 0 28px rgba(200,145,42,0.25), inset 0 0 20px rgba(200,145,42,0.06);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUpScroll 1s var(--ease-out) 1.8s forwards;
}
.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(200,145,42,0.6);
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
section {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

#contact, #gallery { max-width: 1200px; }

.section-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 16px;
  letter-spacing: 0.3em;
  text-shadow: 0 0 10px rgba(200,145,42,0.4), 0 0 25px rgba(200,145,42,0.15);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 64px;
  color: var(--white);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.1),
    0 -1px 0 rgba(0,0,0,0.6),
    0 2px 8px rgba(0,0,0,0.5),
    0 0 30px rgba(200,145,42,0.06);
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   SHOWREEL
   ============================================ */
#showreel {
  border-top: 1px solid rgba(200,145,42,0.12);
}

.showreel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--navy-mid);
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-label {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================
   GALLERY
   ============================================ */
#gallery {
  border-top: 1px solid rgba(200,145,42,0.12);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 7px 18px;
  background: none;
  border: 1px solid rgba(200,165,90,0.2);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--white);
}
.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,165,90,0.07);
  box-shadow: 0 0 14px rgba(200,145,42,0.15);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-mid);
}
.gallery-item.hidden { display: none; }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,10,18,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}


/* ============================================
   ABOUT
   ============================================ */
#about {
  border-top: 1px solid rgba(200,145,42,0.12);
}

.about-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.about-name-en {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  margin-top: -10px;
}

.about-origin {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 2px;
}

.about-origin-en {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 56px;
  opacity: 0.6;
}

.about-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px 64px;
  margin-bottom: 0;
}

.about-category {
  padding-top: 4px;
}

.about-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 14px;
}

.about-role {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow:
    0 1px 0 rgba(255,230,120,0.2),
    0 -1px 0 rgba(60,30,0,0.6),
    0 0 16px rgba(200,145,42,0.3);
}

.about-role-en {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  margin: 0;
}

.about-text {
  padding-top: 4px;
}

.about-ja {
  font-size: 14px;
  line-height: 2;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.about-en {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.03em;
  border-left: 1px solid rgba(200,145,42,0.2);
  padding-left: 20px;
}

.about-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200,145,42,0.2), transparent);
  margin: 56px 0;
}

@media (max-width: 768px) {
  .about-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#lightbox.active {
  opacity: 1;
  pointer-events: all;
}
#lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(6,10,18,0.96);
  backdrop-filter: blur(8px);
}
#lightbox-img {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(200,165,90,0.1);
}
#lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  z-index: 3;
  background: none;
  border: 1px solid rgba(200,145,42,0.3);
  color: var(--gold-pale);
  font-size: 18px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
#lightbox-close:hover {
  background: rgba(200,165,90,0.1);
  border-color: var(--gold);
}
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: 1px solid rgba(200,165,90,0.2);
  color: var(--gold);
  font-size: 28px;
  width: 48px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(200,165,90,0.08);
  border-color: var(--gold);
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  border-top: 1px solid rgba(200,145,42,0.12);
  max-width: 640px;
}

.contact-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: -40px;
  margin-bottom: 56px;
}

.form-group { margin-bottom: 32px; }

.form-group label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(200,145,42,0.18);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--gold); }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 48px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
}
.submit-btn:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 20px rgba(200,165,90,0.25);
}
.submit-arrow { transition: transform 0.3s; }
.submit-btn:hover .submit-arrow { transform: translateX(4px); }

.form-status {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold-pale);
  min-height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  border-top: 1px solid rgba(200,145,42,0.12);
  padding: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-sns { display: flex; gap: 28px; }
.footer-sns a {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  transition: color 0.2s, text-shadow 0.2s;
}
.footer-sns a:hover {
  color: var(--gold-pale);
  text-shadow: 0 0 10px rgba(200,145,42,0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .showreel-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  #header { padding: 0 20px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }

  section { padding: 80px 20px; }
  #footer { padding: 32px 20px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }

  #lightbox-prev { left: 8px; }
  #lightbox-next { right: 8px; }
 .hero-bg {
    background-image: url('images/site_top_tate_new.png');
    background-position: center center;
  }
  .hero-cta {
    padding: 13px 28px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes fadeUpScroll {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
