* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #111;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

/* ===== NAV ===== */

.nav {
  position: fixed;
  top: 12px;
  width: 100%;
  height: 56px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  transition: background-color 0.4s;
}

.nav.active {
  background-color: #111;
}

.nav_logo {
  width: 90px;
  height: auto;
}

.nav_avatar {
  width: 35px;
  height: auto;
}

/* ===== HERO ===== */

#banner {
  position: relative;
  height: 65vh;
  background-image:
  linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
  url("../assets/hero/hero00.png");
  background-size: cover;
  background-position: center;
  color: white;
}

/* 上下フェード（超重要） */
#banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(17,17,17,1) 0%,
    rgba(17,17,17,0.2) 40%,
    rgba(17,17,17,0.2) 60%,
    rgba(17,17,17,1) 100%
  );
}

#banner_contents {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  z-index: 1;
}

/* ===== HERO BUTTONS ===== */

#banner_buttons {
  display: flex;
  justify-content: center; /* ← 中央寄せ */
  gap: 1rem;
}

.banner_button  {
  cursor: pointer;
  font-weight: 700;
  border-radius: 0.5vw; /* ← 角丸 */
  padding: 0.6rem 2.2rem;
  border: none;
  background-color: rgba(51,51,51,0.6);
  color: white;
}

/* ===== HERO DESCRIPTION ===== */

#banner_desc {
  margin: 1rem auto 0;
  max-width: 600px;
  font-size: 0.9rem;
  line-height: 1.4;
}


/* ===== ROWS ===== */

.row {
  margin-left: 20px;
  margin-top: 20px;
}

.row_title {
  margin-left: 10px;
  font-size: 0.9rem;
}

.row_posters {
  display: flex;
  overflow-x: scroll;
  padding: 20px 0;
}

.row_posters::-webkit-scrollbar {
  display: none;
}

/* ===== TOP10 専用 ===== */
.row_top10 .row_posters {
  display: flex;
  gap: 20px;
  overflow-y: hidden;
  padding-left: 0px;
}

.rank_item {
  position: relative;
  display: flex;
  align-items: flex-end;
}

/* Netflix風 数字 */
.rank_number {
  position: absolute;
  left: -15px;
  bottom: -15px;

  font-size: 180px;
  font-weight: 900;
  line-height: 1;

  color: black;
  -webkit-text-stroke: 3px #e6e6e6;
  /* text-stroke: 6px #e6e6e6; */

  z-index: 1;
  pointer-events: none;
}

.rank_item .row_poster {
  height: 200px;
  margin-left: 70px;
  aspect-ratio: 9 / 16; 
  position: relative;
  z-index: 2;
}


/* 縦長・大きめ（元Netflix仕様） */
.row_poster {
  height: 200px;     
  aspect-ratio: 9 / 16;    
  margin-right: 12px;
  object-fit: contain;
  border-radius: 0.5vw; /* ← 角丸 */
  transition: transform 0.3s;
  cursor: pointer;
}

.row_poster:hover {
  transform: scale(1.08);
}

/* ===== VIDEO OVERLAY ===== */

#video_overlay {
  position: fixed;
  inset: 0;
  background: black;
  display: none;
  z-index: 9999;
}

#video_overlay.show {
  display: block;
}

#player {
  width: 100%;
  height: 100%;
}

#close_video {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
}

/* hero画面に文字を重ねる */
.hero_script {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(-8%);

  font-family: 'Great Vibes', cursive;
  font-size: 4.5rem;
  font-weight: 400;
  color: rgba(255,255,255,0.95);

  text-align: center;
  white-space: nowrap;

  pointer-events: none;
}

/* 1文字ずつアニメするため span にする */
.hero_script span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: charFade 0.6s ease forwards;
}

/* フェード＋少し上 */
@keyframes charFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero_script {
    font-size: 2.8rem;
    top: 35%;
  }
}
