/* index
##################################### */
#index #main {
  margin: 0;
}
#index #main:after {
  z-index: -1;
}
#mainvisual {
  position: relative;
}
/* 元のslick用スタイルをコメントアウト
#mainvisual > *:not(.visual) {
    opacity: 0;
}
#mainvisual div {
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    margin: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
*/
#index_news .news-ticker {
  background: #fff;
}
#index_news .swiper-slide {
  box-sizing: border-box;
}
#index_news .swiper-slide a {
  display: block;
  padding: 0 20px;
  font-size: 12px;
  font-size: 1.2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: left;
  -ms-flex-pack: left;
  justify-content: left;
  -webkit-transition: color 0.3s ease-out;
  -o-transition: color 0.3s ease-out;
  transition: color 0.3s ease-out;
}
#index_news .date {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  color: #0096ff;
  margin-right: 20px;
}
#index_news .ttl {
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#index_news li a:hover .ttl {
  color: #0096ff;
}
#index_news .btn_hover {
  border: none;
}
#index_news .btn_hover:hover {
  border: none;
}
#index_movie {
  position: relative;
  z-index: 1;
  width: 240px;
}
#index_movie:after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(220deg, rgb(37, 58, 163, 0.5), rgb(249, 255, 83, 0.5));
  transform: translate(15px, 15px);
}
#index_movie .inner {
  background: #fff;
  padding: 5px;
}
#index_bnr {
  max-width: 200px;
  width: 100%;
  height: 72px;
}
#index_bnr .bnr-slider {
  height: 72px !important; /* 強制的に高さを固定 */
  overflow: hidden;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  display: none;
}

#index_bnr .slide-arrow {
  position: absolute;
  outline: none;
}
.swiper-button-next,
.swiper-button-prev {
  top: auto;
  width: auto;
  height: auto;
  margin-top: 0;
  z-index: 10;
  cursor: pointer;
  display: block;
  /* align-items: center; */
  /* justify-content: center; */
  /* color: var(--swiper-navigation-color, var(--swiper-theme-color)); */
}
.swiper-button-prev,
.swiper-rtl .swiper-button-next {
  left: 0;
  right: auto;
}
#index_bnr .prev-arrow {
  top: 24px;
  left: -25px;
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 6px solid #333333;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(90deg);
  background: none;
}
#index_bnr .next-arrow {
  bottom: 24px;
  left: -25px;
  width: 0;
  height: 0;
  border-right: 0 solid transparent;
  border-left: 6px solid #333333;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(90deg);
  background: none;
}
#index_bnr .prev-arrow:hover {
  border-right: 6px solid #ff149b;
}
#index_bnr .next-arrow:hover {
  border-left: 6px solid #ff149b;
}

.widget {
  position: relative;
  z-index: 1;
}
.widget .inner {
  position: relative;
  display: block;
  max-width: 180px;
  width: 100%;
  background: #fff;
  padding: 15px 10px;
}
.widget iframe {
  /*width: 740px !important; */
  width: 100% !important;
  vertical-align: top;
}
.widget .btn_hover {
  margin-top: 20px;
}
#modal {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  min-height: 100%;
  text-align: center;
  opacity: 0;
  z-index: 500;
}
#modal #modal_layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/common/bg_modal.png");
  cursor: pointer;
}
#modal #modal_inner {
  position: relative;
  display: inline-block;
}
#modal .btn_close {
  position: absolute;
  right: 0;
  padding: 0;
  background-image: url("../img/common/btn_close.png");
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: contain;
  border: none;
  outline: none;
  font-size: 0;
  text-indent: -9999px;
  cursor: pointer;
}
#modal .btn_close a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#modal.on {
  display: block;
}

/* index pc
===================================== */
@media screen and (min-width: 769px) {
  #mainvisual {
    /* //padding-top: 59.5% */
  }
  /* 元のslick用個別背景スタイルをコメントアウト（Swiperで統一）
    #mainvisual div.kv01 {
        background-image: url(../img/index/kv01.png);
    }
    #mainvisual div.kv02 {
        background-image: url(../img/index/kv02.png);
    }
    #mainvisual div.kv03 {
        background-image: url(../img/index/kv03.png);
    }
    #mainvisual div.kv04 {
        background-image: url(../img/index/kv04.png);
    }
    #mainvisual div.kv05 {
        background-image: url(../img/index/kv05.png);
    }
    */
  #side {
    position: absolute;
    top: 0 !important;
    right: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 100%;
  }
  #index #btn_ptop {
    display: none !important;
  }
  #index_movie,
  #index_news,
  #index_bnr,
  .widget {
    position: absolute;
  }
  #index_movie {
    bottom: 30px;
    right: 30px;
  }
  #index_news {
    width: 100%;
    max-width: 455px;
    top: 85px;
    right: 55px;
    z-index: 1;
  }
  #index_news .btn_hover {
    margin-left: 325px;
  }
  #index_bnr {
    /*bottom: 330px;
        left: 55px;*/
    bottom: 180px;
    right: 45px;
  }
  .widget {
    bottom: 30px;
    left: 55px;
  }
  .widget:after {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(220deg, rgb(37, 58, 163, 0.5), rgb(249, 255, 83, 0.5));
    transform: translate(-15px, 15px);
  }
  #modal {
    min-width: 1240px;
  }
  #modal #modal_inner {
    margin: 10vh 0;
  }
  #modal .btn_close {
    top: -8vh;
    right: -8vh;
    width: 8vh;
    height: 8vh;
  }
}

/* index sp
===================================== */
@media screen and (max-width: 768px) {
  #opening img {
    width: 4.26667%;
  }
  #opening img:not(:last-child) {
    margin-right: 2.13333%;
  }
  #mainvisual {
    /* //padding-top: 143.5%; */
    background: #fff;
  }
  /* 元のslick用スタイルをコメントアウト（Swiperで統一）
    #mainvisual div {
        height: 100vh;
    }
    #mainvisual div.kv01 {
        background-image: url(../img/index/kv01_sp.png);
    }
    #mainvisual div.kv02 {
        background-image: url(../img/index/kv02_sp.png);
    }
    #mainvisual div.kv03 {
        background-image: url(../img/index/kv03_sp.png);
    }
    #mainvisual div.kv04 {
        background-image: url(../img/index/kv04_sp.png);
    }
    #mainvisual div.kv05 {
        background-image: url(../img/index/kv05_sp.png);
    }
    */
  #side {
    padding-top: 4rem;
    position: relative;
  }
  #side #index_news, /*#side #index_bnr, */#side .widget, #side #index_movie {
    margin-bottom: 12%;
  }
  #side_layer:after {
    background: url("../img/common/bg_gnav.png") no-repeat 50% 0/100% auto;
  }
  #index_movie {
    width: 20rem;
    margin-top: -9rem;
    margin-left: auto;
    margin-right: 3rem;
  }
  #index_news {
    width: 90%;
    margin: 0 auto;
  }
  #index_news .news-ticker {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }
  #index_news .swiper-slide {
    line-height: 1.7;
  }
  #index_bnr {
    /*margin-left: auto;
        margin-right: auto;*/
    position: absolute;
    right: 3.41vw;
    top: -28%;
  }
  .widget .inner {
    max-width: 90%;
    margin-right: auto;
    margin-left: auto;
    padding: 5rem 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  .widget iframe {
    height: 300px !important;
    min-height: 300px !important;
  }
  .bg-page {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 100%;
    margin: 0 auto;
    background: url("../img/common/bg-top-sp.png") no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -1;
  }
  #modal #modal_inner {
    margin: 17.8vw 0;
  }
  #modal .btn_close {
    top: -15.4vw;
    right: 2.4vw;
    width: 13vw;
    height: 13vw;
  }
}

@media screen and (max-width: 480px) {
  #mainvisual {
    /* padding-top: 185.5%; */
  }
}

/* Swiper カスタムスタイル */
#mainvisual.swiper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

#mainvisual .swiper-wrapper {
  height: auto;
}

#mainvisual .swiper-slide {
  width: 100%;
  height: auto;
  padding-top: 59.5%; /* PC用アスペクト比維持 */
  position: relative;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
}

/* タブレット・スマホ対応 */
@media screen and (max-width: 768px) {
  #mainvisual .swiper-slide {
    padding-top: 143.5%; /* スマホ用アスペクト比 */
  }
}

@media screen and (max-width: 480px) {
  #mainvisual .swiper-slide {
    padding-top: 185.5%; /* より小さいスマホ用 */
  }
}

/* 既存のkv01-05クラスをswiper-slideに適用 */
#mainvisual .swiper-slide.kv01 {
  background-image: url(../img/index/kv01.png);
}
#mainvisual .swiper-slide.kv02 {
  background-image: url(../img/index/kv02.png);
}
#mainvisual .swiper-slide.kv03 {
  background-image: url(../img/index/kv03.png);
}
#mainvisual .swiper-slide.kv04 {
  background-image: url(../img/index/kv04.png);
}
#mainvisual .swiper-slide.kv05 {
  background-image: url(../img/index/kv05.png);
}

/* スマホ用画像 */
@media screen and (max-width: 768px) {
  #mainvisual .swiper-slide.kv01 {
    background-image: url(../img/index/kv01_sp.png);
  }
  #mainvisual .swiper-slide.kv02 {
    background-image: url(../img/index/kv02_sp.png);
  }
  #mainvisual .swiper-slide.kv03 {
    background-image: url(../img/index/kv03_sp.png);
  }
  #mainvisual .swiper-slide.kv04 {
    background-image: url(../img/index/kv04_sp.png);
  }
  #mainvisual .swiper-slide.kv05 {
    background-image: url(../img/index/kv05_sp.png);
  }
}
