/** Shopify CDN: Minification failed

Line 107:3 Cannot use type selector "--scanlines" directly after nesting selector "&"
Line 117:3 Cannot use type selector "--noise" directly after nesting selector "&"

**/
/* ==============================================
   KV Hero Section — Custom CSS
   Structure: Pure CSS Nesting (Native CSS)
   Prefix: kv- (namespace for conflict prevention)
   ============================================== */

/* ── Variables ── */
:root {
  --kv-bg:          #0a0a0a;
  --kv-accent:      #ffffff;
  --kv-glitch-pink: #ff00c1;
  --kv-glitch-cyan: #00fff9;

}

/* ── Pixel Cursor (canvas-based, site-wide / デスクトップのみ) ── */
/* pointer: fine = マウス操作デバイスにのみ適用。タッチのみのスマホでは通常カーソル */
@media (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
  .kv-pixel-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }
}
/* スマホ・タッチデバイスではキャンバスを非表示 */
@media (pointer: coarse) {
  .kv-pixel-cursor {
    display: none !important;
  }
}

/* ── Trail Particles ── */
.kv-trail-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #D4AF37;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 4px rgba(212, 175, 55, 0.4);
}

/* ── Body lock (applied via JS during opening) ── */
body.kv-is-opening {
  overflow: hidden;
  background-color: #0a0a0a !important;
}

/* Skip intro animations on subsequent in-session navigations */
body.kv-intro-skipped .kv-hero,
body.kv-intro-skipped .kv-hero *,
body.kv-intro-skipped .kv-hero *::before,
body.kv-intro-skipped .kv-hero *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
}


/* ══════════════════════════════════════════════
   Fixed Full-Viewport Layers (outside section)
   ══════════════════════════════════════════════ */

/* base.css の div:empty { display: none } を上書き */
.kv-tv-startup,
.kv-hero__bg,
.kv-overlay {
  display: block !important;
}

/*
 * TV Startup — 参考コード tv-off の完全移植
 * position: fixed でビューポート全体（kv-site-header も含む）を覆う
 * will-change で GPU レイヤー確保（Shopify他CSSとの競合対策）
 */
.kv-tv-startup {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 102;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
  animation: kv-tv-off 0.5s ease-in-out forwards 0.1s;
}

.kv-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;

  &--scanlines {
    background: linear-gradient(
      to bottom,
      rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    opacity: 0.15;
  }

  &--noise {
    /* canvas grain（JS）に置き換えのため非表示 */
    display: none !important;
  }
}


/* ══════════════════════════════════════════════
   Site Header (fixed top / color-adaptive)
   mix-blend-mode: difference により
   暗背景→白表示 / 明背景→黒表示 に自動切替
   ══════════════════════════════════════════════ */
.kv-site-header {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 9980;
  box-sizing: border-box;
  background: transparent;
  color: #ffffff;
  mix-blend-mode: difference;

  & .header__icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;

    & .header__icon svg,
    & .header__icon .svg-wrapper svg {
      fill: currentColor;
    }

    & .header__icon {
      color: inherit;
    }
  }
}

/* ══════════════════════════════════════════════
   Bottom Fixed Bar — Cart & Account
   下部中心固定。洗練されたグラスモーフィズム。
   ══════════════════════════════════════════════ */
.kv-bottom-bar {
  position: fixed !important;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999 !important;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 9999px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
  pointer-events: auto;
  isolation: isolate;
}

/* ── 共通ボタン ── */
.kv-bottom-bar__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.3rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.2s ease;
}

.kv-bottom-bar__btn:active {
  transform: scale(0.96);
}

.kv-bottom-bar__btn .svg-wrapper svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Account — subtle / ghost ── */
.kv-bottom-bar__btn--account {
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.kv-bottom-bar__btn--account:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ── Cart — orange accent (primary CTA) ── */
.kv-bottom-bar__btn--cart {
  color: #ffffff;
  background: #e8650a;
}

.kv-bottom-bar__btn--cart:hover {
  background: #ff7a1a;
}

/* ── Label text ── */
.kv-bottom-bar__label {
  text-transform: uppercase;
}

/* ── Cart badge ── */
.kv-bottom-bar__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #e8650a;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Mobile fine-tuning ── */
@media (max-width: 749px) {
  .kv-bottom-bar {
    bottom: 1.2rem;
    gap: 0.35rem;
    padding: 0.4rem;
  }
  .kv-bottom-bar__btn {
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
  }
}


/* ══════════════════════════════════════════════
   KV Brand Morph — scroll-driven
   中央 → ヘッダー中央へ縮小移動
   .kv-hero は will-change:filter を持つため
   子要素の position:fixed が効かない。
   JS でクローンを body 直下に生成し、
   元の brand は非表示にして差し替える。
   ══════════════════════════════════════════════ */
.kv-brand-clone {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9985;
  pointer-events: none;
  will-change: transform;
  text-decoration: none;
  display: block;
  /* スクロールに 1:1 追従させるため transition は外す（15ms のイージングで跳ね返りが見えていた） */
  transition: none;
}

.kv-brand-clone.is-docked {
  pointer-events: auto;
}

.kv-brand-clone img {
  display: block;
  width: 100%;
  height: auto;
}

/* 元の brand を clone 表示後に隠す */
.kv-hero__brand.is-cloned {
  visibility: hidden;
}


/* ══════════════════════════════════════════════
   Section Root
   ══════════════════════════════════════════════ */
/* KV wrapper — Shopify の .shopify-section を高さ確保用に使用 */
.kv-hero-wrapper {
  height: 100svh;
}

.kv-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background-color: var(--kv-bg);
  color: var(--kv-accent);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  z-index: 0;
  will-change: filter;


  /* ── Background Image Layer ── */
  & .kv-hero__bg {
    position: absolute;
    inset: 0;
    background-image: var(--kv-bg-image, none);
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: kv-bg-fade 2s ease-out forwards 0.8s;
  }


  /* ── Navigation は .kv-site-header に移管 ── */


  /* ── Main Content Area ── */
  & .kv-hero__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: 30;
  }


  /* ── Brand / Logo Block ── */
  & .kv-hero__brand {
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    animation: kv-develop 2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.6s;

    & .kv-hero__brand-logo {
      display: block;
      width: 100%;
      /* max-width はインラインスタイルで section 設定値を注入 */
      height: auto;
      margin: 0 auto;
    }

    & .kv-hero__brand-subtitle {
      font-size: 0.625rem;
      letter-spacing: 0.8em;
      text-transform: uppercase;
      opacity: 0.6;
      margin-top: 1rem;
      margin-left: 0.8em;
    }
  }


  /* ── Scroll Indicator ── */
  & .kv-hero__scroll {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    animation: kv-ui-fade 1s ease-out forwards 2.2s;

    & .kv-hero__scroll-label {
      font-size: 0.5625rem;
      letter-spacing: 0.4em;
      text-transform: uppercase;
      opacity: 0.4;
    }

    & .kv-hero__scroll-line {
      width: 1px;
      height: 3rem;
      background: rgba(255, 255, 255, 0.2);
      position: relative;
      overflow: hidden;

      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        animation: kv-scroll-line 2s infinite ease-in-out;
      }
    }
  }


  /* ── Coordinates (Desktop only) ── */
  & .kv-hero__coordinates {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    animation: kv-ui-fade 1s ease-out forwards 2.4s;

    @media (max-width: 749px) {
      display: none;
    }
  }
}


/* ══════════════════════════════════════════════
   Keyframes
   ══════════════════════════════════════════════ */

/* 参考コード @keyframes tv-off の完全移植（値・イージング・%すべて同一） */
@keyframes kv-tv-off {
  0%   { transform: scaleY(1)     scaleX(1); opacity: 1; }
  50%  { transform: scaleY(0.005) scaleX(1); opacity: 1; } /* 縦に収縮 → 細い横線 */
  99%  { transform: scaleY(0.005) scaleX(0); opacity: 1; } /* 横に収縮 */
  100% { transform: scaleY(0)     scaleX(0); opacity: 0; visibility: hidden; }
}

@keyframes kv-develop {
  0%   { opacity: 0; filter: blur(30px) brightness(5) contrast(0.1) saturate(0);   transform: scale(0.95); }
  30%  { opacity: 1; filter: blur(15px) brightness(2) contrast(0.5) saturate(0.2); transform: scale(0.95); }
  100% { opacity: 1; filter: blur(0px)  brightness(1) contrast(1)   saturate(1.1); transform: scale(1); }
}

@keyframes kv-bg-fade {
  from { opacity: 0;   filter: grayscale(100%) contrast(1.5); }
  to   { opacity: 1;   filter: grayscale(0%)   contrast(1); }
}

@keyframes kv-chromatic {
  0%, 100% { text-shadow:  1px 0 var(--kv-glitch-pink), -1px 0 var(--kv-glitch-cyan); }
  50%       { text-shadow: -1px 0 var(--kv-glitch-pink),  1px 0 var(--kv-glitch-cyan); }
}

/* 画像ロゴ用 chromatic aberration (drop-shadow ベース) */
@keyframes kv-chromatic-img {
  0%, 100% {
    filter: drop-shadow( 0.8px 0 var(--kv-glitch-pink))
            drop-shadow(-0.8px 0 var(--kv-glitch-cyan));
  }
  50% {
    filter: drop-shadow(-0.8px 0 var(--kv-glitch-pink))
            drop-shadow( 0.8px 0 var(--kv-glitch-cyan));
  }
}

@keyframes kv-ui-fade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes kv-noise {
  0%, 100% { transform: translate(0,    0); }
  20%       { transform: translate(2%,  -2%); }
  40%       { transform: translate(-2%, 1.5%); }
  60%       { transform: translate(1.5%, 2%); }
  80%       { transform: translate(-1.5%, -2%); }
}

@keyframes kv-scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
