@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600&family=Noto+Sans+JP:wght@300;400;700&family=Zen+Kaku+Gothic+New:wght@300;400;500;700&display=swap');

:root {
  --bg-color: #030303;
  --bg-surface: #111111;
  --text-primary: #f5f5f5;
  --text-secondary: #aaaaaa;
  --accent-color: #ea580c; /* Subdued vibrant orange */
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-title: 'Bebas Neue', sans-serif;
  --font-jp-concept: 'Zen Kaku Gothic New', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-jp);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .en-text {
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Film Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 120px 0;
  position: relative;
}

/* Typography */
.section-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.section-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.4s ease;
}

header.scrolled {
  background-color: rgba(3, 3, 3, 0.9);
  backdrop-filter: blur(10px);
}

.logo {
  height: 40px;
  width: auto;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-en);
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.1em;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/WSH2026_f_1.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate linear;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(3,3,3,1) 0%, rgba(3,3,3,0.3) 50%, rgba(3,3,3,0.8) 100%);
  z-index: -1;
}

@keyframes slowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  animation: fadeIn 2s ease forwards;
}

.hero-logo-text {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  margin-bottom: 2rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.hero-catchphrase {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
  .hero-catchphrase {
    font-size: 2.5rem;
  }
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border: 1px solid var(--text-primary);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--text-primary);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn:hover {
  color: var(--bg-color);
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.btn-primary::before {
  background-color: #fff;
}
.btn-primary:hover {
  color: var(--accent-color);
}

/* Concept Section */
.concept {
  text-align: center;
  padding: 250px 5%; /* Bold white space */
  position: relative;
}

.concept .section-title {
  font-family: var(--font-title);
  font-size: 8rem;
  letter-spacing: 0.15em;
  margin-bottom: 80px;
  color: #ffffff; /* Strong contrast */
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

@media (max-width: 768px) {
  .concept .section-title {
    font-size: 4.5rem;
    margin-bottom: 50px;
  }
}

.concept .section-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.concept-text {
  font-family: var(--font-jp-concept);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 2.5;
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff; /* Strong contrast */
}

.concept-text p {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 768px) {
  .concept-text {
    font-size: 1.1rem;
    line-height: 2.2;
    letter-spacing: 0.15em;
  }
  .concept-text p {
    margin-bottom: 2rem;
  }
}

.concept-text.is-visible p {
  opacity: 1;
  transform: translateY(0);
}

.concept-text p:nth-child(2) { transition-delay: 0.3s; }
.concept-text p:nth-child(3) { transition-delay: 0.6s; }
.concept-text p:nth-child(4) { transition-delay: 0.9s; }

/* Next Stage Section */
.next-stage {
  padding: 100px 5%;
  background-color: var(--bg-surface);
}

.next-stage-wrapper {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .next-stage-wrapper {
    flex-direction: row;
    align-items: stretch;
  }
}

.next-stage-img {
  flex: 1;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.next-stage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.next-stage-img:hover img {
  transform: scale(1.05);
}

.next-stage-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.next-stage-label {
  color: var(--accent-color);
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.next-stage-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.next-stage-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.next-stage-details {
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.next-stage-details p {
  margin-bottom: 10px;
  display: flex;
}

.next-stage-details span {
  width: 60px;
  color: var(--text-secondary);
}

/* Works Section */
.works {
  padding: 150px 5%;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.works-grid.is-visible .work-card {
  opacity: 1;
  transform: translateY(0);
}

.works-grid.is-visible .work-card:nth-child(2) { transition-delay: 0.2s; }
.works-grid.is-visible .work-card:nth-child(3) { transition-delay: 0.4s; }

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: grayscale(80%) contrast(120%);
}

.work-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(100%);
}

.work-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.work-card:hover .work-card-info {
  transform: translateY(0);
  opacity: 1;
}

.work-year {
  font-family: var(--font-en);
  color: var(--accent-color);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.work-title {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Members Section */
.members {
  padding: 100px 5%;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  filter: grayscale(100%) contrast(120%);
  transition: filter 0.5s ease;
}

.member-img-wrap:hover {
  filter: grayscale(0%) contrast(100%);
}

.member-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.member-img-wrap:hover img {
  transform: scale(1.05);
}

.member-role {
  color: var(--accent-color);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.member-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.member-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer */
footer {
  padding: 80px 5% 40px;
  background-color: #000;
  border-top: 1px solid #222;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.social-links a:hover {
  color: var(--text-primary);
}

.copyright {
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Global Menu Overlay */
.global-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 3, 3, 0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  backdrop-filter: blur(10px);
}

.global-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close-btn {
  position: absolute;
  top: 30px;
  right: 5%;
}

.menu-close-btn button {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 10px;
}

.menu-nav ul {
  list-style: none;
  text-align: center;
}

.menu-nav li {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.global-menu.is-open .menu-nav li {
  opacity: 1;
  transform: translateY(0);
}

.global-menu.is-open .menu-nav li:nth-child(1) { transition-delay: 0.1s; }
.global-menu.is-open .menu-nav li:nth-child(2) { transition-delay: 0.2s; }
.global-menu.is-open .menu-nav li:nth-child(3) { transition-delay: 0.3s; }
.global-menu.is-open .menu-nav li:nth-child(4) { transition-delay: 0.4s; }
.global-menu.is-open .menu-nav li:nth-child(5) { transition-delay: 0.5s; }
.global-menu.is-open .menu-nav li:nth-child(6) { transition-delay: 0.6s; }

.menu-nav a {
  font-family: var(--font-title);
  font-size: 3rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.menu-nav a:hover {
  color: var(--text-primary);
}
