
/*****************************************
*
* HOME
*
******************************************/

/*------------------------------------------*/
/* メインビジュアル
/*------------------------------------------*/

.topmain,
.topmain .mainimage {
  position: relative;
}

.topmain .mainimage::before {
  content: '';
  display: inline-block;
  background: url('../img/common/line_waves_up_white.svg') repeat-x;
  width: 100%;
  height: 14px;
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 11;
}

@media screen and (max-width: 767px) {
  .topmain {
    background: white;
  }
}

.topmain .flex-viewport {
  width: 100%;
  height: auto;
}

.topmain .ms-image {
  text-align: center;
  font-size: 18px;
  background: var(--color-light-gray);
  /* Center slide text vertically */
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1300px), print {
  .topmain .ms-image {
    height: 90vh;
    overflow: hidden;
  }

  .topmain .ms-image img {
    object-fit: cover;
    height: 100%;
  }
}
.mainimage .flexslider{
  margin-bottom: 0 !important;
}

.mainimage.ms-theme-bitono .flexslider .flex-control-nav li a{
  width: 15px;
  height: 15px;
  border-radius: 100% !important;
}

@media screen and (max-width: 833px) {
  .metaslider.ms-theme-bitono .flexslider .flex-control-nav {
    bottom: 0;
    margin-bottom: 10px;
  }
}

@media screen and (min-width: 834px), print {
  .metaslider.ms-theme-bitono .flexslider .flex-control-nav {
    margin-bottom: 20px;
  }
}



/* ナビ --------------------------------*/
.topmain-nav {
  width: calc(100% - 40px);
  margin: 0 auto;
}

.topmain-nav li a {
  position: relative;
  text-align: left;
  display: inline-block;
  background: var(--color-dark-gray);
  border-radius: 10px;
  width: 100%;
  color: white;
  font-weight: bold;
  padding: 10px;
  box-shadow: var(--box-shadow-blue);
  transition: all .5s ease;
}

.topmain-nav li.swimming a {
  background: var(--color-swimming);
}

.topmain-nav li.kids a {
  background: var(--color-kids);
}

.topmain-nav li.fitness a {
  background: var(--color-fitness);
}

.topmain-nav li a::before {
  content: '';
  display: inline-block;
  background: url('../img/common/icon_arrow_bottom_w.svg') no-repeat;
  background-size: 100%;
  aspect-ratio: 1/1;
  width: 15px;
  height: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
}

.topmain-nav li a:hover {
  text-decoration: none;
  transform: translateY(10px);
}

@media screen and (max-width: 767px) {
  .topmain-nav li {
    margin-top: 20px;
  }
}

@media screen and (min-width: 768px), print {
  .topmain-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
  }
}

@media screen and (min-width: 834px), print {
  .topmain-nav {
    width: calc(100% - 120px);
    bottom: 80px;
  }

  .topmain-nav li a {
    padding: 20px;
  }

  .topmain-nav li a::before {
    width: 25px;
    right: 20px;
  }
}

@media screen and (min-width: 1300px), print {
  .topmain-nav {
    width: 1100px;
  }
}


/*------------------------------------------*/
/* swiper
/*------------------------------------------*/

.topmain .swiper-container {
  width: 100%;
  height: auto;
}

.topmain .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: var(--color-light-gray);
  /* Center slide text vertically */
  display: flex;
  justify-content: center;
  align-items: center;
}

.topmain .swiper-slide img {
  width: 100%;
}

@media screen and (min-width: 1300px), print {
  .topmain .swiper-slide {
    height: 90vh;
    overflow: hidden;
  }

  .topmain .swiper-slide img {
    object-fit: cover;
    height: 100%;
  }
}

/* ナビゲーション --------------------------------*/
.topmain .swiper-pagination-bullet {
  background: white;
  opacity: 0.8;
}

.topmain .swiper-pagination-bullet-active {
  background: var(--color-text);
  opacity: 0.5;
}

@media screen and (max-width: 833px) {
  .topmain .swiper-container-horizontal>.swiper-pagination-bullets {
    bottom: 0;
    margin-bottom: 10px;
  }
}

@media screen and (min-width: 834px), print {
  .topmain .swiper-container-horizontal>.swiper-pagination-bullets {
    margin-bottom: 20px;
  }

  .topmain .swiper-pagination-bullet {
    width: 15px;
    height: 15px;
  }
}

/* スライダー矢印 --------------------------------*/
.topmain .swiper-button-next,
.topmain .swiper-button-prev {
  opacity: 0.8;
  display: none;
}



/*------------------------------------------*/
/* HOME コンテンツ 共通
/*------------------------------------------*/

.top-contents {
  position: relative;
  padding: 60px 0;
}

.top-contents::before {
  content: '';
  background: url('../img/common/line_waves_white.svg') repeat-x;
  width: 100%;
  height: 14px;
  position: absolute;
  bottom: -14px;
  left: 0;
}

@media screen and (min-width: 834px), print {
  .top-contents {
    position: relative;
    padding: 100px 0;
  }
}

/* section --------------------------------*/
.top-news .section,
.top-contents .section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* 見出し --------------------------------*/
.top-news .heading-wrap,
.top-contents .heading-wrap {
  color: var(--color-text);
  margin-bottom: 40px;
}

.top-contents .heading-wrap {
  position: relative;
}

.top-news .heading-wrap .en,
.top-contents .heading-wrap .en {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
}

.top-news .heading-wrap .heading,
.top-contents .heading-wrap .heading {
  font-size: 0.9rem;
  font-weight: bold;
}

@media screen and (min-width: 834px), print {
  .top-contents .heading-wrap {
    text-align: left;
  }

  .top-news .heading-wrap,
  .top-contents .heading-wrap {
    margin-bottom: 60px;
  }

  .top-news .heading-wrap .en,
  .top-contents .heading-wrap .en {
    font-size: 4rem;
  }

  .top-news .heading-wrap .heading,
  .top-contents .heading-wrap .heading {
    font-size: 1rem;
  }
}

/* box --------------------------------*/
@media screen and (min-width: 834px), print {
  .top-contents .box {
    display: flex;
    align-items: flex-end;
  }

  .top-contents.reverse .box {
    flex-direction: row-reverse;
  }
}

/* cont --------------------------------*/
@media screen and (min-width: 834px), print {
  .top-contents .cont {
    width: calc(50% - 30px);
  }
}

@media screen and (min-width: 1300px), print {
  .top-contents .cont {
    width: calc(50% - 50px);
  }
}

/* 画像 --------------------------------*/
.top-contents .image {
  max-width: 600px;
}

.top-contents .image img {
  width: 100%;
}

@media screen and (max-width: 833px) {
  .top-contents .image {
    margin: 0 auto;
  }
}

@media screen and (min-width: 834px), print {
  .top-contents .image {
    width: calc(50% - 30px);
    margin-right: 60px;
  }

  .top-contents.reverse .image {
    margin-right: 0;
    margin-left: 60px;
  }
}

@media screen and (min-width: 1300px), print {
  .top-contents .image {
    width: 600px;
    margin-left: -100px;
    margin-right: 100px;
  }

  .top-contents.reverse .image {
    margin-right: -100px;
    margin-left: 100px;
  }
}

/* テキスト --------------------------------*/
.top-contents .cont .text {
  text-align: left;
  line-height: 1.8rem;
}

@media screen and (max-width: 833px) {
  .top-contents .cont .text {
    margin-top: 20px;
  }
}

/* ボタン --------------------------------*/
.top-contents .top-btn {
  margin-top: 20px;
}

.top-contents .top-btn li+li {
  margin-top: 1em;
}

.top-contents .top-btn li a {
  position: relative;
  display: inline-block;
  text-align: left;
  background: var(--color-dark-gray);
  width: 100%;
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 20px;
  transition: all .5s ease;
}

.top-contents .top-btn li a::before {
  content: '';
  display: inline-block;
  background: url('../img/common/icon_arrow_white.svg') no-repeat;
  background-size: 100%;
  aspect-ratio: 1/1;
  width: 20px;
  height: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
}

.top-contents .top-btn li a:hover {
  text-decoration: none;
  box-shadow: var(--box-shadow-hover);
}

@media screen and (min-width: 834px), print {
  .top-contents .top-btn {
    margin-top: 40px;
  }

  .top-contents .top-btn li a {
    font-size: 1rem;
  }
}

/* インスタ --------------------------------*/
.top-contents .btn-type-insta-wrap {
  margin-top: 40px;
}

@media screen and (min-width: 834px), print {
  .top-contents .btn-type-insta-wrap {
    margin-top: 60px;
  }
}


/*------------------------------------------*/
/* HOMT お知らせ
/*------------------------------------------*/

.top-news {
  position: relative;
  background: white;
  padding: 60px 0;
  z-index: 40;
}

.top-news::before {
  content: '';
  background: url('../img/common/line_waves_white.svg') repeat-x;
  width: 100%;
  height: 14px;
  position: absolute;
  bottom: -13px;
  left: 0;
}

.top-news .heading-wrap {
  color: var(--color-red);
}

@media screen and (min-width: 834px), print {
  .top-news {
    padding: 100px 0;
  }
}


/*------------------------------------------*/
/* ジュニアスイミング
/*------------------------------------------*/

.top-contents.swimming {
  background: var(--color-back-swimming);
  z-index: 30;
}

.top-contents.swimming::before {
  background: url('../img/common/line_waves_swimming.svg') repeat-x;
  width: 100%;
}

/* 見出し --------------------------------*/
.top-contents.swimming .heading-wrap {
  color: var(--color-swimming);
}

@media screen and (min-width: 834px), print {
  .top-contents.swimming .heading-wrap {
    margin-bottom: 100px;
  }
}

/* ボタン --------------------------------*/
.top-contents.swimming .top-btn li a {
  background: var(--color-btn-swimming);
}

/* インスタ --------------------------------*/
.top-contents.swimming .btn-type-insta {
  background: var(--color-back-swimming);
  border-color: var(--color-btn-swimming);
  color: var(--color-btn-swimming);
}

/* イルカ --------------------------------*/
.top-contents.swimming .heading-wrap::after {
  content: '';
  display: inline-block;
  background: url('../img/top/top_dolphin.png') no-repeat;
  background-size: 100%;
  aspect-ratio: 180/220;
  width: 80px;
  height: auto;
  position: absolute;
  top: 40px;
  right: 0;
}

@media screen and (min-width: 768px), print {
  .top-contents.swimming .heading-wrap::after {
    width: 140px;
  }
}

@media screen and (min-width: 834px), print {
  .top-contents.swimming .heading-wrap::after {
    width: 180px;
    top: -50px;
    right: auto;
    left: 36em;
  }
}

/* マンタ --------------------------------*/
.top-contents.swimming .image {
  position: relative;
}

.top-contents.swimming .image::after {
  content: '';
  display: inline-block;
  background: url('../img/top/top_manta.png') no-repeat;
  background-size: 100%;
  aspect-ratio: 176/144;
  width: 90px;
  height: auto;
  position: absolute;
  bottom: 0;
  right: 0;
}

@media screen and (min-width: 768px), print {
  .top-contents.swimming .image::after {
    width: 140px;
  }
}

@media screen and (min-width: 834px), print {
  .top-contents.swimming .image::after {
    width: 176px;
  }
}


/*------------------------------------------*/
/* キッズスタジオ
/*------------------------------------------*/

.top-contents.kids {
  background: var(--color-back-kids);
  z-index: 20;
}

.top-contents.kids::before {
  background: url('../img/common/line_waves_kids.svg') repeat-x;
  width: 100%;
}

/* 見出し --------------------------------*/
.top-contents.kids .heading-wrap {
  color: var(--color-kids);
}

/* ボタン --------------------------------*/
.top-contents.kids .top-btn li a {
  background: var(--color-btn-kids);
}

/* ペンギン --------------------------------*/
.top-contents.kids .heading-wrap::after {
  content: '';
  display: inline-block;
  background: url('../img/top/top_pengin.png') no-repeat;
  background-size: 100%;
  aspect-ratio: 200/124;
  width: 100px;
  height: auto;
  position: absolute;
  top: 40px;
  right: 0;
}

@media screen and (min-width: 768px), print {
  .top-contents.kids .heading-wrap::after {
    width: 160px;
  }
}

@media screen and (min-width: 834px), print {
  .top-contents.kids .heading-wrap::after {
    width: 200px;
    top: -30px;
    right: auto;
    left: 26em;
  }
}


/*------------------------------------------*/
/* フィットネス
/*------------------------------------------*/

.top-contents.fitness {
  background: var(--color-back-fitness);
  z-index: 10;
}

.top-contents.fitness::before {
  background: url('../img/common/line_waves_fitness.svg') repeat-x;
  width: 100%;
}

/* 見出し --------------------------------*/
.top-contents.fitness .heading-wrap {
  color: var(--color-fitness);
}

/* ボタン --------------------------------*/
.top-contents.fitness .top-btn li a {
  background: var(--color-btn-fitness);
}

/* インスタ --------------------------------*/
.top-contents.fitness .btn-type-insta {
  background: var(--color-back-fitness);
  border-color: var(--color-btn-fitness);
  color: var(--color-btn-fitness);
}

/* くま --------------------------------*/
.top-contents.fitness .heading-wrap::after {
  content: '';
  display: inline-block;
  background: url('../img/top/top_bear.png') no-repeat;
  background-size: 100%;
  aspect-ratio: 140/200;
  width: 80px;
  height: auto;
  position: absolute;
  top: 0px;
  right: 0;
}

@media screen and (min-width: 768px), print {
  .top-contents.fitness .heading-wrap::after {
    width: 140px;
  }
}

@media screen and (min-width: 834px), print {
  .top-contents.fitness .heading-wrap::after {
    width: 140px;
    top: -50px;
    right: auto;
    left: 20em;
  }
}

