* {
  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: 0;
  width: 100%;
  height: 50px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav_logo { width: 90px; }
.nav_avatar { width: 40px; }

/* HERO */
#banner {
  position: relative;
  height: 500px;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url("../assets/hero/hero00.webp") center/cover no-repeat;
}

.hero_script {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.95);
  text-align: center;
  pointer-events: none;
}

/* 上下フェード */
#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: 5%;
  width: 100%;
  text-align: center;
}

#banner_buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.banner_button {
  padding: 0.6rem 2rem;
  border: none;
  background: rgba(51,51,51,0.6);
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}

#banner_desc {
  font-size: 0.875rem;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 1rem;
  white-space: pre-line;
}

/* ROWS */
.row {
  margin: 20px;
}


.row_title {
  font-size: 1.0rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.row_posters {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden; /* 縦スクロールを防止 */
  align-items: flex-end; /* サムネイルを下揃え */
}

.row_posters::-webkit-scrollbar {
  display: none;
}

.row_poster {
  width: 90px;     
  aspect-ratio: 9 / 16;    
  margin-right: 12px;
  object-fit: contain;
  border-radius: 0.5vw; /* ← 角丸 */
  transition: transform 0.3s;
  cursor: pointer;
}

/* 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%;
}

#player iframe,
#player video {
  width: 100%;
  height: 100%;
  border: none;
}

/* CLOSE BUTTON */
#close_video {
  position: fixed;
  top: 0%;
  left: 5px;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

/* FOOTER */
.site-footer {
  background-color: #0f0f0f;
  color: #b3b3b3;
  font-size: 12px;
  padding: 32px 16px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1000px;
  margin: auto;
}

.footer-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #e5e5e5;
}

.footer-text {
  margin: 4px 0;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 16px;
  color: #777;
}
/* TOP10用ラッパー */
.poster_wrapper {
  position: relative;
  display: inline-block;
  margin-right: 0%;
}

/* サムネイル（数字より前面） */
.poster_wrapper .row_poster {
  position: relative;
  z-index: 2;
  border-radius: 3px;
}

/* TOP10だけ右にずらす */
.row_top10 .poster_wrapper .row_poster {
  transform: translateX(35px);
}

/* ランキング数字（サムネイルの背面） */
.rank_number {
  position: absolute;
  left: -30px;
  bottom: -10px;

  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;
}

/* TOP10行のみサムネイルを大きくする */
.row_top10 .row_poster {
  margin-right: 80px;
}

.row_top10 .row_posters {
  padding-left: 24px;
}

/* スマホ対応 */
/* @media (max-width: 768px) {
  .rank_number {
    font-size: 3.5rem;
    left: -12px;
    bottom: -10px;
    -webkit-text-stroke: 1.5px #ffffff;
  }

  .row_top10 .row_poster {
    width: 95px;
  }
} */

.modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.8);

z-index: 99999; /* 🔥 これが最重要 */
}

.modal-box {
background: #222;

position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

width: 90%;
max-width: 400px;
max-height: 80vh;
overflow-y: auto; /* 🔥 スクロール対応 */

padding: 20px;
border-radius: 10px;
}

#previewImg {
width: 100%;
margin-bottom: 10px;
}

