/* =============================================
   ANZU HAMANO — Official Website
   Dark mode, editorial, fashion-magazine style
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --text: #f5f5f5;
  --accent: #e8847c;
  --sub-accent: #c4a882;
  --muted: #666666;
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-sub: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

/* --- Section Labels & Titles --- */
.section__label {
  display: block;
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sub-accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-bottom: 48px;
  color: var(--text);
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* =============================================
   Navigation
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: opacity 0.3s;
}

.nav__logo:hover {
  opacity: 0.7;
}

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

.nav__link {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color 0.3s;
}

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

.nav__link:hover {
  color: var(--accent);
}

.nav__link:hover::after {
  width: 100%;
}

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

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.3s;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 1.05;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero__title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero__subtitle {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: clamp(0.75rem, 2vw, 1rem);
  letter-spacing: 0.25em;
  color: rgba(245, 245, 245, 0.8);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

.hero__catchcopy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

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

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
}

.hero__scroll span {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.6);
}

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

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* =============================================
   About
   ============================================= */
.about__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.about__photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(232, 132, 124, 0.3);
  margin: 0 auto;
}

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

.about__photo:hover img {
  transform: scale(1.05);
}

.about__bio {
  font-size: 0.95rem;
  line-height: 2;
  color: rgba(245, 245, 245, 0.85);
  margin-bottom: 48px;
}

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

.stat {
  text-align: center;
  padding: 20px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.3s;
}

.stat:hover {
  border-color: var(--accent);
}

.stat__number {
  font-family: var(--font-sub);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
  display: inline;
}

.stat__plus {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: 1rem;
  color: var(--accent);
}

.stat__label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* =============================================
   SNS Cards
   ============================================= */
.sns__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.sns-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s,
              box-shadow 0.4s;
  cursor: pointer;
}

.sns-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(232, 132, 124, 0.1);
}

.sns-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--accent);
  transition: transform 0.3s;
}

.sns-card:hover .sns-card__icon {
  transform: scale(1.1);
}

.sns-card__icon svg {
  width: 100%;
  height: 100%;
}

.sns-card__info {
  flex: 1;
  min-width: 0;
}

.sns-card__name {
  font-family: var(--font-sub);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.sns-card__followers {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.sns-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.sns-card__arrow {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.sns-card:hover .sns-card__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* =============================================
   Gallery
   ============================================= */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 40px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  background: var(--gradient);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.2);
  transition: background 0.4s;
}

.gallery__item:hover::after {
  background: rgba(10, 10, 10, 0.5);
}

.gallery__item:hover {
  transform: scale(1.02);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.gallery__placeholder {
  position: relative;
  z-index: 1;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.gallery__cta {
  text-align: center;
}

.gallery__link {
  font-family: var(--font-sub);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: opacity 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery__link:hover {
  opacity: 0.7;
}

.gallery__link span {
  transition: transform 0.3s;
}

.gallery__link:hover span {
  transform: translateX(4px);
}

/* =============================================
   Works Timeline
   ============================================= */
.works__timeline {
  position: relative;
  padding-left: 40px;
}

.works__timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(232, 132, 124, 0.1));
}

.works__item {
  position: relative;
  margin-bottom: 48px;
}

.works__item:last-child {
  margin-bottom: 0;
}

.works__dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  transition: background 0.3s;
}

.works__item:hover .works__dot {
  background: var(--accent);
}

.works__content {
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.works__item:hover .works__content {
  border-color: rgba(232, 132, 124, 0.3);
}

.works__item-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.works__item-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =============================================
   Contact
   ============================================= */
.contact {
  background: var(--surface);
}

.contact__intro {
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.7);
  margin-bottom: 40px;
  text-align: center;
}

.contact__form {
  max-width: 600px;
  margin: 0 auto 24px;
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: border-color 0.3s;
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s, color 0.4s;
}

.form__submit:hover {
  background: var(--accent);
  color: var(--bg);
}

.contact__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
}

.contact__success {
  display: none;
  text-align: center;
  padding: 40px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.contact__success.is-visible {
  display: block;
}

.contact__success p {
  font-size: 1rem;
  line-height: 2;
  color: var(--accent);
}

/* =============================================
   Footer
   ============================================= */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 24px;
  transition: opacity 0.3s;
}

.footer__logo:hover {
  opacity: 0.7;
}

.footer__sns {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.footer__sns a {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}

.footer__sns a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__sns a svg {
  width: 100%;
  height: 100%;
}

.footer__copy {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  /* Nav mobile */
  .nav__hamburger {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav__menu.is-open {
    right: 0;
  }

  .nav__link {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about__photo {
    width: 200px;
    height: 200px;
  }

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

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

  /* Works */
  .works__timeline {
    padding-left: 32px;
  }

  .works__dot {
    left: -28px;
  }

  /* SNS */
  .sns__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .about__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat__number {
    font-size: 1.2rem;
  }

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