/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --yellow: #F5C518;
  --yellow-light: #FFE066;
  --yellow-dark: #D4A017;
  --yellow-glow: rgba(245, 197, 24, 0.25);
  --bg: #0e0e0e;
  --bg-section: #141414;
  --bg-card: #1a1a1a;
  --text: #f0f0f0;
  --text-muted: #999;
  --nav-h: 120px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Zen Kaku Gothic New', 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===========================
   LOADING
   =========================== */
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading.hidden {
  display: none;
}

.loading__inner {
  text-align: center;
}

.loading__logo {
  width: 200px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  margin-bottom: 24px;
  animation: loadingPulse 1.2s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.loading__percent {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.1em;
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.08);
  transition: background 0.3s;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.1rem;
}

.nav__logo-img {
  height: 90px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}

.nav__links a::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translateX(-50%) scale(0);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='65' rx='22' ry='18' fill='white'/%3E%3Ccircle cx='28' cy='38' r='10' fill='white'/%3E%3Ccircle cx='72' cy='38' r='10' fill='white'/%3E%3Ccircle cx='50' cy='30' r='9' fill='white'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover { color: var(--yellow); }
.nav__links a:hover::after { width: 100%; }
.nav__links a:hover::before { opacity: 1; transform: translateX(-50%) scale(1); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  z-index: 2;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.3) 0px,
    rgba(0, 0, 0, 0.3) 2px,
    transparent 2px,
    transparent 6px
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: var(--nav-h);
}

.hero__logo {
  width: clamp(200px, 30vw, 360px);
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero__tagline {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero__cta {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-radius: 50px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.hero__cta:hover {
  background: var(--yellow);
  color: var(--bg);
  box-shadow: 0 0 30px var(--yellow-glow);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ===========================
   SECTIONS (common)
   =========================== */
.section {
  padding: 120px 0;
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--yellow);
  margin-top: 10px;
  border-radius: 2px;
}

.section__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}

/* ===========================
   ABOUT
   =========================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  height: 420px;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}

.about__img-wrap:hover .about__img {
  transform: scale(1.03);
}

.about__name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.about__role {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--yellow);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about__desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 2;
}

/* ===========================
   WORKS / GALLERY
   =========================== */
.works {
  position: relative;
  overflow: hidden;
}

.works::before {
  content: '';
  position: fixed;
  bottom: -60px;
  left: -60px;
  width: 500px;
  height: 500px;
  background: url('images/logo_neko_only.png') no-repeat center / contain;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.works__item {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.works__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245, 197, 24, 0.1);
}

.works__video-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.works__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.works__caption {
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.works__more {
  text-align: center;
  margin-top: 48px;
}

.works__more-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-radius: 50px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.works__more-btn:hover {
  background: var(--yellow);
  color: var(--bg);
  box-shadow: 0 0 30px var(--yellow-glow);
}

.works__note {
  text-align: center;
  margin-top: 28px;
  font-size: 1rem;
  color: var(--text);
}

/* ===========================
   AWARDS
   =========================== */
.awards__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 100%;
}

.awards__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 10px;
  border-left: 3px solid rgba(245, 197, 24, 0.2);
  transition: border-color 0.3s, transform 0.3s;
}

.awards__item:hover {
  border-left-color: var(--yellow);
  transform: translateX(4px);
}

.awards__item--grand {
  border-left-color: var(--yellow);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.08), var(--bg-card));
}

.awards__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  line-height: 1.4;
}

.awards__badge--grand {
  background: linear-gradient(135deg, var(--yellow-dark), var(--yellow));
  color: var(--bg);
}

.awards__contest {
  font-size: 0.9rem;
  font-weight: 500;
}

.awards__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.awards__more-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, margin 0.3s ease;
  margin-top: 0;
}

.awards__more-list.open {
  max-height: 2000px;
  margin-top: 12px;
}

.awards__toggle {
  display: block;
  margin: 28px auto 0;
  padding: 12px 32px;
  background: none;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.awards__toggle:hover {
  background: var(--yellow);
  color: var(--bg);
  box-shadow: 0 0 30px var(--yellow-glow);
}

/* ===========================
   CONTACT
   =========================== */
.contact {
  text-align: center;
  padding-bottom: 120px;
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-weight: 500;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.contact__link:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 20px var(--yellow-glow);
  transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  text-align: center;
  padding: 32px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===========================
   PAGE TOP BUTTON
   =========================== */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 10px;
  color: var(--yellow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  transform: translateY(12px);
  backdrop-filter: blur(8px);
}

.page-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-top:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 20px var(--yellow-glow);
}

.page-top__arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--yellow);
  border-right: 2px solid var(--yellow);
  transform: rotate(-45deg);
}

.page-top__text {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .page-top {
    bottom: 20px;
    right: 16px;
    padding: 10px 12px;
  }
}

/* ===========================
   FADE-IN ANIMATION
   =========================== */
[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  :root {
    --nav-h: 80px;
  }

  .nav__logo-img {
    height: 60px;
  }

  .hero {
    height: auto;
    min-height: auto;
    padding-top: var(--nav-h);
  }

  .hero__video {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-width: auto;
    min-height: auto;
    transform: none;
  }

  .hero__overlay {
    position: absolute;
    inset: 0;
  }

  .hero__content {
    position: absolute;
    top: calc(50% + var(--nav-h) / 2);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    margin-top: 0;
    text-align: center;
  }

  .works::before {
    width: 250px;
    height: 250px;
    bottom: -30px;
    left: -30px;
  }

  .hero__logo {
    width: 140px;
  }

  .hero__tagline {
    display: none;
  }

  .hero__cta {
    display: none;
  }

  .hero__content {
    margin-top: 0;
  }

  .hero__sub {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  .hero__title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .hero__tagline {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .hero__cta {
    padding: 10px 24px;
    font-size: 0.8rem;
  }

  .hero__scroll-hint {
    display: none;
  }

  .nav__links {
    position: fixed;
    top: 0; right: 0;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(16px);
    padding: 90px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid rgba(245, 197, 24, 0.1);
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .burger {
    display: flex;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__img-wrap {
    max-width: 100%;
    height: 260px;
    margin: 0 auto;
  }

  .works__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .awards__list,
  .awards__more-list {
    grid-template-columns: 1fr;
  }

  .awards__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .awards__badge {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.4rem;
  }

  .hero__cta {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  .about__icon {
    width: 48px;
    height: 48px;
  }

  .contact__links {
    flex-direction: column;
    align-items: center;
  }
}
