/* ============================================================
   wfifth Brand Site - Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg:        #000000;
  --color-bg-2:      #111111;
  --color-bg-3:      #161616;
  --color-surface:   #1a1a1a;
  --color-border:    rgba(255,255,255,0.08);
  --color-white:     #ffffff;
  --color-off-white: #f0ece4;
  --color-gray:      #888888;
  --color-gray-light:#bbbbbb;
  --color-gold:      #c9a96e;
  --color-gold-light:#e8c98a;
  --color-gold-dark: #9a7a4a;

  --font-serif-jp:   'Noto Serif JP', serif;
  --font-sans-jp:    'Noto Sans JP', sans-serif;
  --font-en:         'Cormorant Garamond', serif;
  --font-en-sans:    'Josefin Sans', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --header-h:   72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  margin: 0;
  height: 100%;

}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul { list-style: none; }

/* google fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');


/* ---------- オープニングアニメーション ---------- */

/* 初期状態 */
.content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* 表示状態 */
.content.show {
  opacity: 1;
  pointer-events: auto;
}

/* オープニング全体 */
.opening {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* フェードアウト */
.opening.hide {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

/* 全体 */
.text {
  font-family: "Koburina Gothic StdN", sans-serif;
  display: inline-block;
  font-size: 28px;
  letter-spacing: -0.1em;
  color: #fff;
  position: relative;
  animation: moveUp 1s ease forwards;

  /* 👇 表示後にしっかり止める */
  animation-delay: 2s;
}

.text img {
  height: 36px; 
  width: auto;
  letter-spacing: -0.1em;
}

@media screen and (max-width: 768px) {
.text img {
  height: 32px; 
  width: auto;
}
}

/* 下線 */
.text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;

  /* 文字に合わせて速く */
  animation: lineGrow 0.6s ease forwards;
}

/* 文字 */
.text span {
  display: inline-block;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

/* 👇 表示スピードを速く（0.1 → 0.07） */
.text span:nth-child(1) { animation-delay: 0s; }
.text span:nth-child(2) { animation-delay: 0.07s; }
.text span:nth-child(3) { animation-delay: 0.14s; }
.text span:nth-child(4) { animation-delay: 0.21s; }
.text span:nth-child(5) { animation-delay: 0.28s; }
.text span:nth-child(6) { animation-delay: 0.35s; }
.text span:nth-child(7) { animation-delay: 0.42s; }
.text span:nth-child(8) { animation-delay: 0.49s; }
.text span:nth-child(9) { animation-delay: 0.56s; }

/* フェード */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 下線 */
@keyframes lineGrow {
  to {
    transform: scaleX(1);
  }
}

/* 上に移動 */
@keyframes moveUp {
  to {
    transform: translateY(-80px);
    opacity: 0;
  }
}


/* ヘッダー */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #000;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo img {
  margin:50px 0 0 0;
  height: 32px;
  width: auto;
  max-width: 100%;
  display: block;
}

/* ハンバーガー */
.hamburger {
  margin:50px 0 0 0;
  width: 30px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  margin: 6px 0;
  background: #fff;
  transition: 0.3s;
}

/* ✖状態 */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* サイドメニュー */
nav {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #000;
  padding-top: 60px;
  transition: 0.3s;
}

nav a {
  display: block;
  padding: 15px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #222;
}

nav a:hover {
  background: #222;
}

/* 開いた状態 */
nav.open {
  right: 0;
}

main {
  padding: 0;
}

/* wrap */

.hero {
  position: relative;
}

/* video */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #000; /* ← 黒帯の色 */
  overflow: hidden;
}

video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* ← 全体表示（黒帯あり） */
  object-position: center;
  transform: translate(-50%, -50%);
}

.sound-toggle {
  position: absolute;
  bottom: 40px;
  right: 20px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 16px;
  cursor: pointer;
}

/* PC/SP切り替え */
.video-sp {
  display: none;
}

@media screen and (max-width: 768px) {
  .video-pc {
    display: none;
  }
  .video-sp {
    display: block;
  }
}

.video-wrap {
  position: relative;
  display: inline-block;
}

.sound-btn {
  position: absolute;
  right: 20px;
  bottom: 40px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

.sound-btn img {
  width: 24px;
  height: 24px;
}

.sound-btn img {
  filter: brightness(0) invert(1);
}