/* ============================================
   声 KOE — Style
   Typography-driven / Text Mask
   ============================================ */

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

:root {
  --bg:      #F5F2ED;
  --text:    #0A0A0A;
  --text-lt: #999088;
  --accent:  #C84B31;
  --ff-min:  'Zen Old Mincho', serif;
  --ff-sans: 'Space Grotesk', sans-serif;
  --ff-body: 'Zen Kaku Gothic New', sans-serif;
}

html { font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }


/* ============================================
   Loader
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__svg {
  width: 120px;
  height: 120px;
}
.loader__char {
  font-family: var(--ff-min);
  font-size: 80px;
  font-weight: 700;
  fill: none;
  stroke: var(--bg);
  stroke-width: 1;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.loader.is-drawing .loader__char {
  animation: strokeDraw 2s ease forwards;
}

@keyframes strokeDraw {
  to { stroke-dashoffset: 0; }
}


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

.header__logo {
  font-family: var(--ff-min);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.header__logo span {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-left: 8px;
  vertical-align: middle;
}

.header__menu-btn {
  width: 32px;
  height: 20px;
  position: relative;
  z-index: 110;
}
.header__menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.header__menu-btn span:first-child { top: 4px; }
.header__menu-btn span:last-child { bottom: 4px; }

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


/* ============================================
   Menu Overlay
   ============================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.menu-overlay nav a {
  font-family: var(--ff-sans);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu-overlay.is-open nav a {
  opacity: 1;
  transform: translateY(0);
}
.menu-overlay.is-open nav a:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.is-open nav a:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay.is-open nav a:nth-child(3) { transition-delay: 0.2s; }
.menu-overlay.is-open nav a:nth-child(4) { transition-delay: 0.25s; }
.menu-overlay.is-open nav a:nth-child(5) { transition-delay: 0.3s; }

.menu-overlay nav a:hover {
  color: var(--accent);
}


/* ============================================
   S1: Hero — Giant Kanji Text Mask
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero__text-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero__kanji {
  font-family: var(--ff-min);
  font-weight: 700;
  font-size: 50vw;
  line-height: 1;
  background-image: url('images/hero_mask.jpg');
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}

.hero__copy {
  position: absolute;
  bottom: 15vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  opacity: 0;
}

.hero__tagline {
  font-family: var(--ff-min);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.hero__sub {
  font-family: var(--ff-sans);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-lt);
}
.hero__sub em {
  font-style: italic;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0;
}
.hero__scroll span {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-lt);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-lt);
  animation: scrollPulse 2s ease-in-out infinite;
}

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


/* ============================================
   S2: Statement — Giant Text Alternating Slide
   ============================================ */
.statement {
  position: relative;
  padding: 20vh 0;
  overflow: hidden;
  background: var(--bg);
}

.statement__line {
  overflow: hidden;
  padding: 0.5vw 0;
}
.statement__line span {
  display: block;
  font-family: var(--ff-sans);
  font-size: clamp(3rem, 10vw, 10vw);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.statement__line--right span {
  transform: translateX(100%);
}
.statement__line--left span {
  transform: translateX(-100%);
}

.statement__accent {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 6vh auto 0;
  transform: scaleX(0);
  transform-origin: center;
}


/* ============================================
   S3: Styles — Text Mask Gallery
   ============================================ */
.styles {
  background: var(--text);
  color: var(--bg);
}

.styles__item {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10vh 5vw;
}

.styles__text-mask {
  position: relative;
  z-index: 2;
}

.styles__title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 18vw);
  line-height: 1;
  letter-spacing: -0.03em;
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}

.styles__info {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 4vh;
  opacity: 0;
  transform: translateY(20px);
}

.styles__desc {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  line-height: 2;
  color: rgba(245, 242, 237, 0.7);
  margin-bottom: 16px;
}

.styles__price {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}


/* ============================================
   S4: Stylist — Typographic Layout
   ============================================ */
.stylist {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15vh 8vw;
  background: var(--bg);
  overflow: hidden;
}

.stylist__bg-number {
  position: absolute;
  top: 50%;
  left: -5vw;
  transform: translateY(-50%);
  font-family: var(--ff-sans);
  font-size: clamp(15rem, 30vw, 30vw);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 10, 10, 0.08);
  pointer-events: none;
  z-index: 0;
}

.stylist__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8vw;
  max-width: 1100px;
  width: 100%;
}

.stylist__photo {
  flex: 0 0 35%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}
.stylist__photo img {
  transition: transform 0.6s ease;
}
.stylist__photo:hover img {
  transform: scale(1.03);
}

.stylist__profile {
  flex: 1;
  opacity: 0;
  transform: translateY(30px);
}

.stylist__label {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.stylist__name {
  font-family: var(--ff-sans);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stylist__name-ja {
  font-family: var(--ff-min);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-lt);
  margin-bottom: 12px;
}

.stylist__role {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-lt);
  margin-bottom: 24px;
}
.stylist__role em {
  font-style: italic;
}

.stylist__bio {
  font-size: 0.85rem;
  line-height: 2;
  max-width: 480px;
}


/* ============================================
   S5: Information — Giant Kanji + Details
   ============================================ */
.info {
  background: var(--bg);
  padding: 0 0 10vh;
}

.info__photo {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  margin-bottom: 10vh;
}

.info__block {
  display: flex;
  align-items: flex-start;
  gap: 4vw;
  max-width: 1000px;
  margin: 0 auto;
  padding: 6vh 8vw;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  opacity: 0;
  transform: translateY(20px);
}

.info__kanji {
  font-family: var(--ff-min);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  color: var(--text);
}

.info__detail {
  padding-top: 1.5rem;
  flex: 1;
}

.info__detail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  font-size: 0.85rem;
}

.info__detail dt {
  font-family: var(--ff-sans);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-lt);
  font-size: 0.75rem;
}

.info__detail dd {
  line-height: 1.8;
}


/* ============================================
   S6: Reserve
   ============================================ */
.reserve {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  overflow: hidden;
}

.reserve__kanji-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-min);
  font-size: clamp(20rem, 50vw, 50vw);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 242, 237, 0.06);
  pointer-events: none;
  z-index: 0;
}

.reserve__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8vh 5vw;
}

.reserve__lead {
  font-family: var(--ff-min);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 6vh;
  opacity: 0;
  transform: translateY(20px);
}

.reserve__links {
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: wrap;
}

.reserve__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 48px;
  border: 1px solid rgba(245, 242, 237, 0.12);
  transition: background 0.4s ease, border-color 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}
.reserve__link:hover {
  background: rgba(245, 242, 237, 0.05);
  border-color: rgba(245, 242, 237, 0.25);
}

.reserve__link-label {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.reserve__link-detail {
  font-family: var(--ff-body);
  font-size: 0.85rem;
}


/* ============================================
   S7: Footer
   ============================================ */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 6vh 8vw;
  border-top: 1px solid rgba(245, 242, 237, 0.06);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--ff-min);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer__copy {
  font-size: 0.7rem;
  color: rgba(245, 242, 237, 0.4);
  letter-spacing: 0.05em;
}

.footer__top {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.5);
  transition: color 0.3s ease;
}
.footer__top:hover {
  color: var(--bg);
}


/* ============================================
   Sample Banner
   ============================================ */
.sample-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.75rem;
}
.sample-banner a {
  text-decoration: underline;
  font-weight: 400;
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
  .header {
    padding: 16px 20px;
  }

  .hero__kanji {
    font-size: 70vw;
  }

  .hero__copy {
    bottom: 20vh;
  }

  .statement {
    padding: 12vh 0;
  }

  .statement__line span {
    font-size: clamp(2.5rem, 12vw, 12vw);
  }

  .styles__item {
    min-height: 80vh;
    padding: 8vh 5vw;
  }

  .styles__title {
    font-size: clamp(4rem, 22vw, 22vw);
  }

  .stylist {
    padding: 10vh 6vw;
  }

  .stylist__content {
    flex-direction: column;
    gap: 5vh;
  }

  .stylist__photo {
    flex: none;
    width: 60%;
    max-width: 280px;
  }

  .stylist__profile {
    text-align: center;
  }

  .stylist__bio {
    max-width: 100%;
  }

  .stylist__bg-number {
    font-size: 40vw;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .info__block {
    flex-direction: column;
    gap: 2vh;
    padding: 4vh 6vw;
  }

  .info__kanji {
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .info__detail {
    padding-top: 0;
  }

  .reserve__links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .reserve__link {
    width: 100%;
    max-width: 300px;
    padding: 24px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
