/* ============================================================
   ORBIS.NFT — Global Reset & Variables
   ============================================================ */

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

:root {
  --color-background: #010828;
  --color-cream: #EFF4FF;
  --color-neon: #6FFF00;
  --font-display: 'Dela Gothic One', 'Hiragino Kaku Gothic StdN', 'Yu Gothic', sans-serif;
  --font-hand: 'Yomogi', 'Hiragino Maru Gothic ProN', cursive;
}

body {
  background-color: var(--color-background);
  color: var(--color-cream);
  margin: 0;
  overflow-x: hidden;
  font-family: sans-serif;
}

/* ============================================================
   LIQUID GLASS (Design System Utility)
   ============================================================ */

.liquid-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.45),
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.45));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Centered pill nav */
.nav-center {
  display: none;
  /* hidden on mobile */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-pill {
  display: flex;
  align-items: center;
  background-color: #111827;
  /* gray-900 */
  border-radius: 9999px;
  padding: 6px 8px;
  gap: 2px;
}

.nav-item {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 9999px;
  color: #D1D5DB;
  /* gray-300 */
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: #ffffff;
}

.nav-item--active {
  background-color: #ffffff;
  color: #111827 !important;
}

/* Desktop CTA */
.nav-cta-wrap {
  display: none;
  /* hidden on mobile */
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #111827;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: #374151;
  /* gray-700 */
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ADE80;
  /* green-400 */
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* ============================================================
   MOBILE DROPDOWN
   ============================================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #ffffff;
  padding: 64px 20px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-item {
  background: none;
  border: none;
  border-bottom: 1px solid #F3F4F6;
  /* gray-100 */
  cursor: pointer;
  color: #1F2937;
  /* gray-800 */
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  text-align: left;
  width: 100%;
  transition: color 0.2s ease;
}

.mobile-nav-item:hover {
  color: #6B7280;
  /* gray-500 */
}

.mobile-cta-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-background);
}

/* Video wrapper — ふよふよアニメーション */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  animation: videoFloat 4s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes videoFloat {
  0% {
    transform: translateY(0px) scale(1.02);
  }

  50% {
    transform: translateY(-12px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1.02);
  }
}

/* Video */
.hero-video {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Content layer
   z-index を付けると重なりが分離され、見出しの差の絶対値ブレンドが動画に効かなくなるため付けない */
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Text block — anchored bottom-left */
.hero-text-block {
  flex: 1;
  display: flex;
  align-items: flex-end;
  /* 下は「サンプル一覧へ戻る」ボタンと重ならない余白 */
  padding: 0 24px 96px;
}

/* Inner wrapper for positioning accent */
.hero-inner {
  position: relative;
  max-width: 820px;
}

/* Main heading */
.hero-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.25;
  color: var(--color-cream);
  letter-spacing: 0.02em;
  /* 白い背景では黒く、黒猫の上では白く見える */
  mix-blend-mode: difference;
}

/* Lead text */
.hero-lead {
  margin-top: 20px;
  max-width: 42em;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--color-cream);
  font-weight: 700;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  mix-blend-mode: difference;
}

.pc-br {
  display: none;
}

/* Cursive accent */
.hero-accent {
  position: absolute;
  right: 0;
  top: -36px;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--color-neon);
  transform: rotate(-1deg);
  opacity: 0.9;
  mix-blend-mode: exclusion;
  pointer-events: none;
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — sm (≥ 640px)
   ============================================================ */

@media (min-width: 640px) {
  #navbar {
    padding: 20px 32px;
  }

  .hero-text-block {
    padding: 0 24px 80px;
  }

  .hero-heading {
    font-size: 52px;
    line-height: 1.2;
  }

  .hero-accent {
    top: -44px;
    font-size: 24px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .pc-br {
    display: inline;
  }
}

/* ============================================================
   RESPONSIVE — md (≥ 768px)
   ============================================================ */

@media (min-width: 768px) {

  /* Show desktop nav items */
  .nav-center {
    display: flex;
  }

  .nav-cta-wrap {
    display: flex;
  }

  /* Hide hamburger */
  .nav-hamburger {
    display: none;
  }

  .hero-heading {
    font-size: 64px;
    line-height: 1.2;
  }

  .hero-accent {
    top: -52px;
    font-size: 30px;
  }
}

/* ============================================================
   RESPONSIVE — lg (≥ 1024px)
   ============================================================ */

@media (min-width: 1024px) {
  .hero-text-block {
    padding: 0 48px 96px;
  }

  .hero-inner {
    margin-left: 48px;
  }

  .hero-heading {
    font-size: 80px;
    line-height: 1.2;
  }

  .hero-accent {
    top: -60px;
    font-size: 34px;
  }
}

/* ============================================================
   TILT BUTTON（スマホ傾きセンサー許可用）
   ============================================================ */

.tilt-btn {
  display: none;
  /* iOSでのみJSが表示する */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  padding: 12px 24px;
  border: 1px solid var(--color-cream);
  border-radius: 9999px;
  background: rgba(1, 8, 40, 0.6);
  color: var(--color-cream);
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
/* 横になぞって猫を動かすため、横スワイプをブラウザの「戻る」等に渡さない */
html,
body {
  overscroll-behavior-x: none;
}

.hero {
  touch-action: pan-y;
}
