/* ============================================
   凪 NAGI — Quiet Luxury Hair Salon
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #F8F6F3;
  --bg-alt: #F0EDE8;
  --text: #1A1A1A;
  --text-mid: #6B6560;
  --text-light: #9E9891;
  --accent: #8B7355;
  --accent-light: #D4C5B5;
  --border: #E0DBD4;
  --white: #FFFEF9;

  --font-display: 'Cormorant Garamond', serif;
  --font-serif: 'Zen Old Mincho', serif;
  --font-sans: 'Zen Kaku Gothic New', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

html.lenis, html.lenis body {
  height: auto;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

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

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

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: none;
  font: inherit;
  color: inherit;
}

/* --- Cursor --- */
.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
  }

  .cursor__dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
  }

  .cursor.is-hover .cursor__dot {
    width: 40px;
    height: 40px;
    background: rgba(139, 115, 85, 0.15);
    border: 1px solid var(--accent);
  }

  body * {
    cursor: none;
  }
}

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

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader__kanji {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: loaderFadeIn 0.8s 0.2s ease forwards;
}

.loader__line {
  width: 1px;
  height: 0;
  background: var(--accent);
  animation: loaderLine 1.2s 0.5s var(--ease-in-out) forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

@keyframes loaderLine {
  to { height: 60px; }
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.header__logo-kanji {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.header__nav {
  display: none;
}

.header__nav ul {
  display: flex;
  gap: 40px;
}

.header__nav a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.4s var(--ease-out);
}

.header__nav a:hover::after {
  width: 100%;
}

.header__menu {
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.header__menu span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.header__menu span:first-child { top: 4px; }
.header__menu span:last-child { bottom: 4px; }

.header__menu.is-active span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.header__menu.is-active span:last-child {
  bottom: 50%;
  transform: rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.mobile-menu__footer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.mobile-menu__footer a {
  color: var(--accent);
}

/* --- Section Label --- */
.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-label--light {
  color: var(--accent-light);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: var(--text);
}

.hero__curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  will-change: transform;
}

.hero__curtain--left {
  left: 0;
}

.hero__curtain--right {
  right: 0;
}

.hero__curtain-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero__curtain--left .hero__curtain-image {
  left: 0;
}

.hero__curtain--right .hero__curtain-image {
  left: -100%;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__title-kanji {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  opacity: 0;
}

.hero__title-en {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
  font-weight: 400;
  margin-top: 32px;
  letter-spacing: 0.15em;
  opacity: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.hero__scroll span {
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* --- Concept --- */
.concept {
  padding: 120px 24px;
  overflow: hidden;
}

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

.concept__image {
  overflow: hidden;
  border-radius: 2px;
}

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

.concept__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.concept__body {
  font-size: 0.875rem;
  line-height: 2.2;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

/* --- Marquee --- */
.marquee {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Styles --- */
.styles {
  padding: 120px 24px;
}

.styles__header {
  max-width: 1100px;
  margin: 0 auto 60px;
}

.styles__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.styles__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.styles__item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.styles__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.styles__item:hover img {
  transform: scale(1.04);
}

.styles__item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  color: var(--white);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.styles__item:hover .styles__item-caption {
  opacity: 1;
  transform: translateY(0);
}

.styles__item-caption span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.styles__item-caption p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}

/* --- Experience --- */
.experience {
  padding: 120px 24px;
  background: var(--bg-alt);
}

.experience__inner {
  max-width: 900px;
  margin: 0 auto;
}

.experience__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 60px;
}

.experience__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.experience__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 24px;
}

.experience__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-light);
  line-height: 1;
  grid-row: 1 / 3;
}

.experience__item h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.experience__item p {
  font-size: 0.8125rem;
  line-height: 2;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}

/* --- Space --- */
.space {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.space__image-wrap {
  position: absolute;
  inset: 0;
}

.space__image {
  width: 100%;
  height: 100%;
}

.space__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

.space__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26, 26, 26, 0.7) 0%,
    rgba(26, 26, 26, 0.3) 50%,
    transparent 100%
  );
  display: flex;
  align-items: center;
}

.space__content {
  padding: 0 40px;
  max-width: 560px;
  color: var(--white);
}

.space__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.space__body {
  font-size: 0.875rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}

/* --- Team --- */
.team {
  padding: 120px 24px;
  overflow: hidden;
}

.team__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.team__image {
  overflow: hidden;
  border-radius: 2px;
}

.team__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team__name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.team__name-ja {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.team__name-en {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.team__role {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.team__bio {
  font-size: 0.875rem;
  line-height: 2.2;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.team__stats {
  display: flex;
  gap: 48px;
}

.team__stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team__stats-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}

.team__stats-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --- Menu --- */
.menu {
  padding: 120px 24px;
  background: var(--bg-alt);
}

.menu__inner {
  max-width: 700px;
  margin: 0 auto;
}

.menu__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 48px;
}

.menu__list {
  display: flex;
  flex-direction: column;
}

.menu__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.menu__item:first-child {
  border-top: 1px solid var(--border);
}

.menu__item-name {
  flex-shrink: 0;
}

.menu__item-name h3 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.menu__item-name p {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.menu__item-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0,
    var(--border) 4px,
    transparent 4px,
    transparent 8px
  );
}

.menu__item-price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  flex-shrink: 0;
}

.menu__note {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

/* --- Info --- */
.info {
  padding: 120px 24px;
}

.info__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.info__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

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

.info__list > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.info__list dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding-top: 2px;
}

.info__list dd {
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.info__list dd a {
  color: var(--accent);
}

.info__map-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* --- CTA --- */
.cta {
  padding: 120px 24px;
  text-align: center;
  background: var(--text);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta__kanji {
  font-family: var(--font-serif);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 400;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
}

.cta__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.cta__body {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 40px;
  border-radius: 0;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta__btn--primary {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.1em;
}

.cta__btn--primary:hover {
  background: var(--accent);
  color: var(--white);
}

.cta__btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-serif);
}

.cta__btn--secondary:hover {
  border-color: var(--white);
}

/* --- Footer --- */
.footer {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.footer__logo-kanji {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.footer__logo-en {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

.footer__copy {
  font-size: 0.6875rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.footer__credit {
  font-size: 0.625rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.footer__credit a {
  transition: color 0.3s;
}

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

/* --- Reveal Image --- */
.reveal-image {
  position: relative;
}

.reveal-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right;
  will-change: transform;
}

.reveal-image.is-revealed::after {
  animation: revealWipe 1s var(--ease-in-out) forwards;
}

@keyframes revealWipe {
  0% { transform: scaleX(1); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: right; }
  50.01% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(0); transform-origin: left; }
}

/* ============================================
   Desktop (768px+)
   ============================================ */
@media (min-width: 768px) {
  .header {
    padding: 28px 48px;
  }

  .header__nav {
    display: block;
  }

  .header__menu {
    display: none;
  }

  .concept__inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .styles__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .styles__item--large {
    grid-row: span 2;
  }

  .styles__item--large img {
    aspect-ratio: auto;
    height: 100%;
  }

  .experience__list {
    flex-direction: row;
    gap: 40px;
  }

  .experience__item {
    grid-template-columns: 1fr;
    gap: 12px;
    flex: 1;
  }

  .experience__num {
    grid-row: auto;
  }

  .team__inner {
    grid-template-columns: 0.9fr 1fr;
    gap: 80px;
  }

  .info__inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .cta__buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   Large Desktop (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  .concept {
    padding: 180px 48px;
  }

  .styles {
    padding: 160px 48px;
  }

  .experience {
    padding: 160px 48px;
  }

  .team {
    padding: 160px 48px;
  }

  .menu {
    padding: 160px 48px;
  }

  .info {
    padding: 160px 48px;
  }

  .space__content {
    padding: 0 80px;
  }
}
