/* =========================
   HERO 全体
========================= */

.top-hero {
  width: 100%;
  background: #f2f2f2;
}

/* =========================
   HERO コンテナ
========================= */

.laptop-container {
  position: relative;
  width: 100vw;
  max-width: 100%;
  margin: auto;
}

.background {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   PC内 映像（TV）
========================= */

.pc-video {
  position: absolute;
  top: 43.6%;
  left: 27.6%;
  width: 26.9%;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 102;

  filter: drop-shadow(0 0 20px rgba(0, 220, 0, 0.3));
  mix-blend-mode: screen;
}

/* =========================
   霧エフェクト
========================= */

.fog-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
  z-index: 100;
}

/* =========================
   時計（背景画像連動版）
========================= */

.pc-clock-container {
  position: absolute;
  top: 25%;
  left: 70%;
  width: 18%;    
  height: auto;
  transform: translate(-50%, -50%);

  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35))   /* 接地影 */
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25)) /* 落ち影 */

    brightness(0.5)
    contrast(1)
    sepia(0.2);
}

.clock-face {
  width: 100%;
  height: auto;
  display: block;
}

.clock-hand {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 100%;

  transform-origin: 50% 50%;
  transform: translate(-50%, -50%);

  pointer-events: none;
}

.clock-hand.body {
  top: 50%;
  left: 50%;

  transform-origin: 50% 50%;
  transform: translate(-50%, -50%);

  z-index: 5;
}

/* =========================
   ローディング（最終形）
========================= */

.hero-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: #8f373a;
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  transform: translateY(0);
  transition: transform 0.9s ease-in-out;
}

.hero-loader.is-hide {
  transform: translateY(-100%);
}

.goal-anim {
  width: 100vw;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* =========================
   ローディング中身
========================= */

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 18px;
}

/* ロゴ */
.loader-logo {
  width: min(360px, 70vw); 
  height: auto;
  display: block;
}

/* テキスト */
.loader-text {
  font-family: 'Anton SC', 'Outfit', sans-serif;
  font-size: clamp(40px, 3vw, 32px);
  letter-spacing: 0.2em;

  color: #2a2f51;
  opacity: 1;
  user-select: none;
}


/* =========================
   HERO 表示制御
========================= */

#hero-content {
  opacity: 0;
  transform: scale(0.998);

  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

#hero-content.is-show {
  opacity: 1;
  transform: scale(1);
}

/* =========================
   チャンネル切替ボタン
========================= */
.channel-switch-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 40px;
  background: #fff;
}

#change-channel-btn {
  width: 140px;
  height: 6px;
  padding: 0;
  line-height: 0;
  border: none;
  border-radius: 999px;
  background: #cacaca;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  
  transition: background-color .15s ease, transform .1s ease;
}


/* 押した瞬間 */
#change-channel-btn:active {
  background: #B8193F; 
  transform: scale(0.96);
}

.channel-switch-wrap {
  grid-column: 1 / -1;
  width: 100%;
}




@media (max-width: 768px) {

.loader-logo{
  width: min(360px, 50vw);
}

.loader-text {
    font-family: 'Anton SC', 'Outfit', sans-serif;
    font-size: clamp(30px, 3vw, 32px);
    letter-spacing: 0.1em;}


}



/* =========================
   ローディング中：スクロール禁止
========================= */
html.is-loading,
body.is-loading {
  height: 100%;
  overflow: hidden;
}

/* iOS/一部ブラウザのバウンス抑制 */
body.is-loading {
  overscroll-behavior: none;
  touch-action: none;
}

.pc-video{
  transition: opacity .18s ease;
  will-change: opacity;
}
.pc-video.is-fading{
  opacity: 0;
}



.pc-video {
  transition: opacity .25s ease;
  will-change: opacity;
}

.pc-video.is-fading {
  opacity: 0;
}




html:not(.fonts-ready) .loader-text {
  opacity: 0;
  transform: translateY(2px);
}

/* 準備できたら表示 */
html.fonts-ready .loader-text {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}


