/* ============================================
   霧 KIRI — Style
   Immersive / Atmospheric
   ============================================ */

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

:root {
  --black:   #0D0D0D;
  --dark:    #1A1A1A;
  --text:    #E8E4DF;
  --text-dim:#6B6560;
  --accent:  #8B7355;
  --ff-serif: 'Cormorant Garamond', serif;
  --ff-min:   'Shippori Mincho', serif;
  --ff-body:  'Zen Kaku Gothic New', sans-serif;
}

html { font-size: 16px; cursor: none; }

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

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


/* ============================================
   Custom Cursor
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: -3px;
  left: -3px;
  transition: transform 0.1s ease;
}

.cursor__ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  position: absolute;
  top: -20px;
  left: -20px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body:hover .cursor__ring { opacity: 1; }

.cursor.is-hover .cursor__ring {
  transform: scale(1.8);
  opacity: 0.3;
}

@media (pointer: coarse) {
  html, body, a, button { cursor: auto; }
  .cursor { display: none; }
}


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

.loader__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader__text {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}
.loader.is-ready .loader__text {
  opacity: 1;
  transform: translateY(0);
}

.loader__kanji {
  display: block;
  font-family: var(--ff-min);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}
.loader__sub {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  margin-top: 8px;
}


/* ============================================
   Fog Canvas (persistent)
   ============================================ */
.fog-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}


/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.header.is-visible { opacity: 1; }

.header__logo {
  font-family: var(--ff-min);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.header__logo span {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  margin-left: 10px;
  vertical-align: middle;
  color: var(--text-dim);
}

.header__sound {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.header__sound:hover { opacity: 1; }

.header__sound-label {
  font-family: var(--ff-serif);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header__sound-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}
.header__sound-bars i {
  display: block;
  width: 2px;
  background: var(--text);
  border-radius: 1px;
}
.header__sound-bars i:nth-child(1) { height: 40%; animation: soundBar 0.8s ease-in-out infinite alternate; }
.header__sound-bars i:nth-child(2) { height: 70%; animation: soundBar 0.6s ease-in-out 0.1s infinite alternate; }
.header__sound-bars i:nth-child(3) { height: 50%; animation: soundBar 0.7s ease-in-out 0.2s infinite alternate; }
.header__sound-bars i:nth-child(4) { height: 30%; animation: soundBar 0.9s ease-in-out 0.15s infinite alternate; }

.header__sound.is-muted .header__sound-bars i {
  animation: none;
  height: 2px !important;
}

@keyframes soundBar {
  to { height: 100%; }
}

.header__menu-btn {
  width: 32px;
  height: 20px;
  position: relative;
  z-index: 110;
}
.header__menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s 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(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8vh;
  clip-path: circle(0% at calc(100% - 56px) 34px);
  transition: clip-path 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-overlay.is-open {
  clip-path: circle(150% at calc(100% - 56px) 34px);
}

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.menu-overlay nav a {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.3s ease;
}
.menu-overlay nav a::before {
  content: attr(data-index);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.menu-overlay.is-open nav a {
  opacity: 1;
  transform: translateX(0);
}
.menu-overlay.is-open nav a:nth-child(1) { transition-delay: 0.15s, 0.15s, 0s; }
.menu-overlay.is-open nav a:nth-child(2) { transition-delay: 0.2s, 0.2s, 0s; }
.menu-overlay.is-open nav a:nth-child(3) { transition-delay: 0.25s, 0.25s, 0s; }
.menu-overlay.is-open nav a:nth-child(4) { transition-delay: 0.3s, 0.3s, 0s; }
.menu-overlay.is-open nav a:nth-child(5) { transition-delay: 0.35s, 0.35s, 0s; }

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

.menu-overlay__info {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 2;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}
.menu-overlay.is-open .menu-overlay__info { opacity: 1; }


/* ============================================
   S1: Entrance
   ============================================ */
.entrance {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.entrance__bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
}
.entrance__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
}

.entrance__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, var(--black) 100%);
}

.entrance__content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
}

.entrance__kanji {
  display: block;
  font-family: var(--ff-min);
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
}

.entrance__tagline {
  font-family: var(--ff-min);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-top: 3vh;
}

.entrance__tagline-en {
  font-family: var(--ff-serif);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-top: 10px;
}
.entrance__tagline-en em { font-style: italic; }

.entrance__scroll-cue {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.entrance__scroll-circle {
  width: 48px;
  height: 48px;
}
.entrance__scroll-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.entrance__scroll-track {
  fill: none;
  stroke: rgba(232, 228, 223, 0.15);
  stroke-width: 1;
}
.entrance__scroll-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transition: stroke-dashoffset 0.1s linear;
}

.entrance__scroll-cue span {
  font-family: var(--ff-serif);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ============================================
   S2: Experience — 横スクロール
   ============================================ */
.experience {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.experience__track {
  display: flex;
  width: fit-content;
  will-change: transform;
}

.experience__panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
}

.experience__panel--intro {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.experience__panel-inner {
  text-align: center;
}

.experience__num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
}

.experience__heading {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.experience__lead {
  font-family: var(--ff-min);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.15em;
  color: var(--text-dim);
  line-height: 2.2;
}

.experience__panel-bg {
  position: absolute;
  inset: 0;
}
.experience__panel-bg img {
  filter: brightness(0.5) saturate(0.8);
}

.experience__panel-content {
  position: absolute;
  bottom: 15vh;
  left: 8vw;
  z-index: 2;
  max-width: 400px;
}

.experience__panel-label {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.experience__panel-text {
  font-family: var(--ff-min);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 2.4;
  letter-spacing: 0.08em;
}


/* ============================================
   S3: Craft — 多層パララックス
   ============================================ */
.craft {
  position: relative;
  height: 300vh;
  z-index: 2;
}

.craft__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

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

.craft__layer--back {
  z-index: 0;
}
.craft__layer--back img {
  filter: brightness(0.25) saturate(0.5) blur(2px);
  transform: scale(1.15);
  will-change: transform;
}

.craft__layer--mid {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.craft__text-block {
  text-align: center;
  max-width: 500px;
  padding: 0 5vw;
  opacity: 0;
  transform: translateY(40px);
}

.craft__num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
}

.craft__heading {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.craft__body {
  font-family: var(--ff-min);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 2.6;
  letter-spacing: 0.1em;
}

.craft__layer--front {
  z-index: 2;
  pointer-events: none;
}

.craft__blur-overlay {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(13,13,13,0.6) 70%, var(--black) 100%);
}


/* ============================================
   S4: Space — 空間没入
   ============================================ */
.space {
  position: relative;
  height: 250vh;
  z-index: 2;
}

.space__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.space__image-wrap {
  position: absolute;
  inset: -20%;
  z-index: 0;
}
.space__image {
  filter: brightness(0.3) saturate(0.6);
  will-change: transform;
  transform: scale(1.0);
}

.space__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 10%, var(--black) 80%);
  opacity: 0.7;
}

.space__content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.space__num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
}

.space__heading {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 5vh;
}

.space__details {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-bottom: 5vh;
}

.space__detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.space__detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.space__detail-value {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.space__philosophy {
  font-family: var(--ff-min);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}


/* ============================================
   S5: Artist
   ============================================ */
.artist {
  position: relative;
  z-index: 2;
  padding: 15vh 0;
  overflow: hidden;
}

.artist__inner {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8vw;
  gap: 8vw;
  align-items: center;
}

.artist__image-col {
  flex: 0 0 40%;
}

.artist__image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}
.artist__image {
  transition: transform 0.8s ease;
}
.artist__image-wrap:hover .artist__image {
  transform: scale(1.03);
}

.artist__text-col {
  flex: 1;
  opacity: 0;
  transform: translateY(40px);
}

.artist__num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 16px;
}

.artist__label {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.artist__name {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.artist__name-ja {
  font-family: var(--ff-min);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.artist__role {
  font-family: var(--ff-serif);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.artist__role em { font-style: italic; }

.artist__bio {
  margin-bottom: 32px;
}
.artist__bio p {
  font-size: 0.85rem;
  line-height: 2.2;
  margin-bottom: 12px;
}
.artist__bio p:last-child { margin-bottom: 0; }

.artist__stats {
  display: flex;
  gap: 40px;
}
.artist__stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.artist__stat-num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
}
.artist__stat-unit {
  font-family: var(--ff-serif);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ============================================
   S6: Connect
   ============================================ */
.connect {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10vh 5vw;
}

.connect__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-min);
  font-size: clamp(20rem, 50vw, 50vw);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 228, 223, 0.03);
  pointer-events: none;
  z-index: 0;
}

.connect__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
}

.connect__num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(15px);
}

.connect__lead {
  font-family: var(--ff-min);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 2;
  margin-bottom: 6vh;
  opacity: 0;
  transform: translateY(15px);
}

.connect__actions {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-bottom: 6vh;
}

.connect__action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 36px;
  border: 1px solid rgba(232, 228, 223, 0.1);
  transition: background 0.4s ease, border-color 0.4s ease;
  opacity: 0;
  transform: translateY(15px);
}
.connect__action:hover {
  background: rgba(232, 228, 223, 0.03);
  border-color: rgba(232, 228, 223, 0.2);
}

.connect__action-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.connect__action-icon svg {
  width: 100%;
  height: 100%;
}

.connect__action-text {
  text-align: left;
  font-size: 0.85rem;
}
.connect__action-text em {
  display: block;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 2px;
}

.connect__info {
  opacity: 0;
  transform: translateY(15px);
}
.connect__info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  text-align: left;
  font-size: 0.8rem;
  max-width: 350px;
  margin: 0 auto;
}
.connect__info dt {
  font-family: var(--ff-serif);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  padding-top: 3px;
}
.connect__info dd {
  line-height: 1.8;
}


/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: 5vh 8vw;
  border-top: 1px solid rgba(232, 228, 223, 0.05);
}

.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: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer__copy {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.footer__top {
  font-family: var(--ff-serif);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease;
}
.footer__top:hover { color: var(--text); }


/* ============================================
   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; }


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

  .entrance__kanji { font-size: 30vw; }

  .experience__panel-content {
    bottom: 10vh;
    left: 6vw;
    right: 6vw;
  }

  .artist__inner {
    flex-direction: column;
    gap: 5vh;
    padding: 0 6vw;
  }
  .artist__image-col {
    flex: none;
    width: 70%;
    max-width: 300px;
  }
  .artist__text-col {
    text-align: center;
  }

  .space__details {
    flex-direction: column;
    gap: 16px;
  }

  .connect__actions {
    flex-direction: column;
    align-items: center;
  }
  .connect__action {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

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