.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  z-index: 800;
}

.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/main/trailer-cover-ex.jpg') center/cover no-repeat;
  opacity: 0.9;
  z-index: -1;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay.fade-out {
  opacity: 0;
}

#youtubePlayer {

  transform: translateY(20px);
  /* 初期状態は少し下に */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}


/* 動画エリア */
.overlay-content {
  position: relative;
  width: 90%;
  max-width: 800px;
}

.overlay-content::before {
  content: "";
  display: block;
  padding-top: 56.25%;
  /* 16:9のアスペクト比 */
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 閉じるボタン */
.close-btn {
  width: 40px;
  height: 40px;
  position: absolute;
  top: -40px;
  right: -40px;
  background-color: rgba(60, 155, 255, 0.5);
  /* 半透明の黒 */
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: rgba(60, 155, 255, 0.9);
}


.close-btn::before,
.close-btn::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hide-btn {
  position: absolute;
  bottom: -70px;
  /* 枠の外に50px下げる */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 6px 16px;
  background: rgba(60, 155, 255, 0.5);
  color: white;
  border: 1px solid white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10000;
  /* 他の要素に埋もれないように */
}

.hide-btn:hover {
  background: rgba(60, 155, 255, 0.9);
}

.ol_logo {
  position: absolute;
  bottom: 10px;
  right: 0;
  width: 20%;
  z-index: 10000;
}

@media screen and (min-width:320px) and (max-width:1050px) {
  .ol_logo {
    width: 50vw;
    height: 50vw;
    position: absolute;
    top: -33vw;
    right: 18vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }

  .overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/main/trailer-cover-sp-ex.jpg') center/cover no-repeat;
    opacity: 0.9;
    z-index: -1;
  }

  /* 閉じるボタン */
  .close-btn {
    width: 50px;
    height: 50px;
    position: absolute;
    top: -45px;
    right: 0px;
    background-color: rgba(60, 155, 255, 0.5);
    /* 半透明の黒 */
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .hide-btn {
    position: absolute;
    bottom: -70px;
    /* 枠の外に50px下げる */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 6px 18px;
    background: rgba(60, 155, 255, 0.5);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10000;
    /* 他の要素に埋もれないように */
  }
}

/*タブレット*/
@media screen and (min-width:768px) and (max-width:1050px) {
  .ol_logo {
    width: 40vw;
    height: 40vw;
    position: absolute;
    top: -26vw;
    left: -5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
}

#progress {
  width: 100%;
  height: 2px;
  z-index: 31000;
  position: fixed;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
}

#progress svg {
  border: 0px solid white;
  /* 白枠 */
}

#progress-text {
    position: absolute;
    top: -30px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #FF3300;
    white-space: nowrap;
    z-index: 31001;
    font-family: monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    display: inline-block;
    width: 4ch; 
    text-align: right;
}


@media screen and (min-width: 320px) and (max-width: 1050px) {
  #progress {
    width: 100%;
    height: 1px;
    z-index: 31000;
    position: fixed;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
  }

  #progress svg {
    border: 0px solid white;
  }

  /* 数値をプログレスバーの中央に */
  #progress-text {
    top: -25px;
    /* バーの上に離して配置 */
    transform: translateX(-50%);
    /* 水平方向中央揃え維持 */
    font-size: 16px;
  }

  .main_5thback {
    position: fixed;
    width: 100%;
    height: 100vh;
    padding-bottom: 0%;
    background-color: #000;
    z-index: 798 !important;
  }
}

.overlay_flash {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  z-index: 750;
  opacity: 0;
  /* 初期状態では非表示 */
  visibility: hidden;
  /* 初期状態では非表示 */
}

.character_btn_ex {
  width: 20%;
  margin-top: 45%;
  margin-left: 10%;
  position: absolute;
  margin-bottom: 5%;
  z-index: 400;
  -webkit-filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
  filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
}

.character_btn_ex2 {
  width: 20%;
  margin-top: 40.5%;
  margin-left: 10%;
  position: absolute;
  margin-bottom: 5%;
  z-index: 400;
  -webkit-filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
  filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
}

.characterwrp_charashot_sub {
  position: absolute;
  width: 44%;
  margin-top: 30.8vw;
  right: 17px;
  z-index: 190;
}

.character_cr7 {
  position: absolute;
  width: 50%;
  margin-top: 3%;
  right: 13%;
  z-index: 300;
}

.character_effect_thunder_ex {
  position: absolute;
  width: 85%;
  margin-top: -3%;
  left: 30%;
  z-index: 180;
}

.characterwrp_charashot {
  position: relative;
  margin-top: 7.2vw;
  margin-left: 1%;
  width: 98%;
  z-index: 195;
}

.characterwrp_charactercolor_cr7 {
  background: rgb(140, 0, 30);
  background: radial-gradient(circle, rgba(200, 10, 20, 1) 38%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, 0) 100%);

}

.characterwrp_rightinfo {
  position: absolute;
  width: 37%;
  padding-top: 8%;
  right: 6%;
  height: auto;
  z-index: 200;
}

.textarea_chararegion_ex {
  font-size: min(3.5vw, 20px);
  margin-top: 15px;
  margin-bottom: 60px;
  font-weight: 600;
  color: #fff;
}

.star7 {
  position: absolute;
  width: 19%;
  margin-top: -8%;
  margin-left: 37%;
}

.characterwrp_charaname_ex {
  width: 125%;
  margin-left: -00%;
  -webkit-filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
  filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
}


@media screen and (min-width: 320px) and (max-width: 1050px) {
  .characterwrp_charaname_ex {
    width: 100%;
    margin-left: -00%;
    -webkit-filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
    filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
  }

  .star7 {
    position: absolute;
    width: 19%;
    margin-top: -8%;
    margin-left: 37%;
    z-index: 300 !important;
  }

  .character_effect_thunder_ex {
    position: absolute;
    width: 130%;
    margin-top: 0%;
    left: -2%;
    z-index: 50 !important;
  }

  .characterwrp_rightinfo {
    position: relative;
    width: 92%;
    margin: 0 auto;
    padding-top: 3%;
    right: 0%;
    height: auto;
    z-index: 100;
  }

  .character_cr7 {
    position: relative;
    width: 85%;
    margin-top: 3%;
    right: 0;
    left: -2%;
    z-index: 360 !important;
  }

  .characterwrp_charashot {
    position: relative;
    margin-top: 0vw;
    margin-left: 1%;
    width: 98%;
    z-index: 100;
  }

  .textarea_chararegion_ex {
    font-size: min(5vw, 30px);
    margin-top: 0px;
    font-weight: 600;
    color: #fff;
  }
}



.bnr_newcharacter_c {
  position: absolute;
  margin-top: 4.5vw;
  right: 0.5vw;
  width: 18%;
  z-index: 399;
}

.bnr_newcharacter {
  position: absolute;
  margin-top: 14.5vw;
  right: 0.5vw;
  width: 19.95%;
  z-index: 399;
}


.bnr_newcharacter2 {
  position: absolute;
  margin-top: 24.9vw;
  right: 2vw;
  width: 18.3%;
  z-index: 399;
}

.bnr_newcharacter_sp {
  position: absolute;
  margin-top: 4.7vw;
  right: 0.5vw;
  width: 20%;
  z-index: 399;
}

@media screen and (min-width: 320px) and (max-width: 1050px) {
  .bnr_newcharacter_c {
    position: absolute;
    margin-top: 4.5vw;
    right: 0.5vw;
    width: 18%;
    z-index: 399;
  }

  .bnr_newcharacter {
    position: relative;
    margin-top: 0vw;
    right: 0.5vw;
    width: 100%;
    left: 4vw;
    z-index: 399;
  }


  .bnr_newcharacter2 {
    position: absolute;
    margin-top: 23vw;
    right: 1.88vw;
    width: 16.4%;
    z-index: 399;
  }

  .bnr_newcharacter_sp {
    position: relative;
    margin-top: 0;
    right: 0vw;
    left: 4vw;
    width: 100%;
    z-index: 400;
  }
}

.bnr_topnewbnrwrp {
  position: absolute;
  width: 16%;
  margin-top: 80px;
  right: 30px;
  z-index: 100;
}

.bnr_topnewlist {
  width: 100%;
}

.bnr_topnewlist li {
  margin-bottom: 15px;
  -webkit-filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
  filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
}

@media screen and (min-width: 320px) and (max-width: 1050px) {
  .bnr_topnewbnrwrp {
    position: relative;
    width: 91%;
    margin-top: 20px;
    right: 0;
    z-index: 100;
  }

  .bnr_topnewlist {
    width: 100%;
  }

  .bnr_topnewlist li {
    margin-bottom: 25px;
    -webkit-filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
    filter: drop-shadow(0px 6px 6px rgba(0, 0, 0, .8));
  }
}

.snk_accounts {
  position: absolute;
  width: 125px;
  margin-top: 9px;
  left: 30px;
}

.snk_x {
  position: absolute;
  margin-top: 11px;
  left: 95px;
}
.snk_insta {
  position: absolute;
  margin-top: 11px;
  left: 125px;
}
.snk_dis {
  position: absolute;
  margin-top: 11px;
  left: 157px;
}

.gnavi_bnr2 {
  position: absolute;
  width: 205px;
  height: 45px;
  left: 345px;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  transition: opacity 0.5s ease-in-out;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;

}

@media screen and (min-width: 720px) and (max-width: 1500px) {
  .gnavi_bnr2 {
    display: none;
  }
}

.ftsns {
  position: relative;
  width: 30%;
  margin: 15px auto;
  
  z-index: 100;
}

.ftsns li {
  position: relative;
  float: left;
  margin-right: 30px;
}
.ftsns li:first-child {
	width: 33%;
}
.ftsns li:nth-child(2) {
	width: 31%;
}
.ftsns li:last-child {
	width: 28%;
  margin-right: -30%;
}

.characterwrp_charactercolor_ganacci {
  background: rgb(66, 90, 155);
  background: radial-gradient(circle, rgba(66, 90, 155, 1) 38%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, 0) 100%);

}


@media screen and (min-width: 320px) and (max-width: 1050px) {

  .ftsns {
    position: relative;
    width: 80%;
    margin: 15px auto;
    margin-bottom: 0;
    z-index: 100;
  }

  .ftsns li {
    border-top: 1px solid #666666;
    padding-bottom: 3vw;
    padding-top: 3vw;
    padding-left: 4vw;
    padding-right: 4vw;
    position: relative;
    float: left;
    width: 100%;
    margin-bottom: 0%;
    margin-right: 0px;
  }

  .ftsns li:first-child {
	width: 100%;
}
.ftsns li:nth-child(2) {
	padding:3% 15%;
	width: 100%;
}
.ftsns li:last-child {
	width: 100%;
  margin-right: -30%;
	 padding-bottom: 0vw;
}
  .ftsns li:last-child img {
    width: 80%;
    margin-left: 11%;
  }
}
.character_ganacci {
  position: absolute;
  width: 50%;
  margin-top: 3%;
  right: 13%;
  z-index: 300;
}

.mb30 {
  margin-bottom:50px;
}
.character_hokutomaru {
  position: absolute;
  width: 65%;
  margin-top: 0%;
  right: 3%;
  z-index: 200;
}
@media screen and (min-width: 320px) and (max-width: 1050px) {
  .character_hokutomaru {
  position: relative;
  width: 100%;
  margin-top: 0%;
  right: 3%;
  z-index: 200;
}
    .character_ganacci {
   position: relative;
    width: 78%;
    margin-top: 3%;
    right: 0;
    left: 7%;
    z-index: 360!important;
}
.mb30 {
  margin-bottom: 15%;
}
}
.characterwrp_charactercolor_hokutomaru {
  background: rgb(17,203,186);
  background: radial-gradient(circle, rgba(17,203,186, 1) 38%, rgba(0, 0, 0, 0) 74%, rgba(0, 0, 0, 0) 100%);
}



.snkaccount {
	position: absolute;
	margin-top: 9px;
	left: 25px;
  font-weight: 700;
  font-family: "aktiv-grotesk-condensed", sans-serif;
  font-size: min(1.5vw, 18px);
	color:#fff;
}

 .textarea_goldsub {
	font-size: 1.5rem;
	font-weight: 500;
	text-align: center;
	color:#fff;
}

@media screen and (min-width: 320px) and (max-width: 1050px) {
	.textarea_goldsub {
		font-size: 2rem;
	font-weight: 500;
	text-align: center;
	color:#fff;
}
}