/* ========================================
   Momo Fujita - PR Site
   ======================================== */

/* --- Reset & Variables --- */
:root {
  --primary: #1A1A1A;
  --accent: #E8B4B8;
  --accent-gold: #C9A96E;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #333333;
  --text-light: #888888;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul { list-style: none; }

/* --- Utilities --- */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  transition: color 0.4s ease;
}

.header.is-scrolled .header__logo {
  color: var(--primary);
}

.header__nav-list {
  display: flex;
  gap: 2rem;
}

.header__nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.header__nav-link:hover::after {
  width: 100%;
}

.header.is-scrolled .header__nav-link {
  color: var(--text);
}

.header.is-scrolled .header__nav-link:hover {
  color: var(--accent-gold);
}

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

.header__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.4s ease;
}

.header.is-scrolled .header__burger span {
  background-color: var(--primary);
}

.header__burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.header__burger.is-open span:nth-child(2) {
  opacity: 0;
}
.header__burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.is-loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s ease 0.3s forwards;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s ease 0.6s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroFadeIn 1.2s ease 1s forwards;
}

.hero__scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 8rem 2rem;
  background-color: var(--surface);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.about__image {
  position: relative;
  overflow: hidden;
}

.about__image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--accent-gold);
  z-index: -1;
}

.about__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about__heading {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about__heading-en {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-top: 0.25rem;
}

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

.about__tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 0;
}

/* ========================================
   Numbers
   ======================================== */
.numbers {
  background-color: var(--primary);
  padding: 5rem 2rem;
}

.numbers__inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.numbers__item {
  flex: 1;
}

.numbers__value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}

.numbers__plus {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent-gold);
  margin-left: 2px;
}

.numbers__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem;
}

/* ========================================
   Gallery
   ======================================== */
.gallery {
  padding: 8rem 2rem;
  background-color: var(--bg);
}

.gallery__header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}

.gallery__item:hover .gallery__item-overlay {
  background: rgba(26, 26, 26, 0.2);
}

/* Masonry-ish: make some items taller */
.gallery__item:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
.gallery__item:nth-child(5) { grid-row: span 2; aspect-ratio: auto; }

/* ========================================
   Modal
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.modal__close:hover { opacity: 1; }

.modal__prev,
.modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.modal__prev:hover,
.modal__next:hover { opacity: 1; }

.modal__prev { left: 1rem; }
.modal__next { right: 1rem; }

.modal__image-wrap {
  max-width: 85vw;
  max-height: 85vh;
}

.modal__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

/* ========================================
   Platforms
   ======================================== */
.platforms {
  padding: 8rem 2rem;
  background-color: var(--surface);
}

.platforms__header {
  text-align: center;
  margin-bottom: 4rem;
}

.platforms__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.platform-card__icon {
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.platform-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

.platform-card__handle {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.platform-card__count {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.platform-card__link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--accent-gold);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.platform-card:hover .platform-card__link {
  color: var(--accent-gold);
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: 8rem 2rem;
  background-color: var(--bg);
}

.contact__inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact__header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact__lead {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  border: 1px solid #e0e0e0;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  text-align: center;
  margin-top: 1rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.btn--primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.contact__message {
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-top: 1rem;
  min-height: 1.5em;
}

.form-message {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  line-height: 1.6;
}

.form-message--success {
  display: block;
  color: #1f5130;
  background: rgba(212, 230, 218, 0.95);
}

.form-message--error {
  display: block;
  color: #7a2431;
  background: rgba(249, 224, 229, 0.95);
}

.form-message a {
  color: inherit;
  text-decoration: underline;
}

.contact__sns {
  text-align: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e8e8e8;
}

.contact__sns-text {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.contact__sns-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact__sns-links a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.contact__sns-links a:hover {
  color: var(--accent-gold);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  background-color: var(--primary);
}

.footer__copy {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }

  .header__nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  .header__nav.is-open .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .header__nav.is-open .header__nav-link {
    font-size: 1.1rem;
    color: var(--primary);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about__description br { display: none; }

  .numbers__inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item:nth-child(1),
  .gallery__item:nth-child(5) {
    grid-row: span 1;
    aspect-ratio: 1 / 1;
  }

  .platforms__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

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

  .hero__subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }

  .about {
    padding: 5rem 1.5rem;
  }

  .gallery {
    padding: 5rem 1rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .platforms__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .contact {
    padding: 5rem 1.5rem;
  }

  .modal__prev { left: 0.25rem; }
  .modal__next { right: 0.25rem; }
}
