:root {
  --easing: cubic-bezier(.2, 1, .2, 1);
  --transition: .8s var(--easing);
  --color-base: #f8f8f8;
  --color-gray: #ddd;
  --color-theme-darken: #fa9e0b;
  --box-shadow: .8rem .8rem 1.2rem rgba(0, 0, 0, .05), -.8rem -.8rem 1.2rem #fff;
  --box-shadow-hover: 1rem 1rem 1.5rem rgba(0, 0, 0, .08), -1rem -1rem 1.5rem #fff;
  --box-shadow-inset: inset .8rem .8rem 1.2rem rgba(0, 0, 0, .05), inset -.8rem -.8rem 1.2rem #fff;
  --box-shadow-dark: .8rem .8rem 1.2rem rgba(0, 0, 0, .1), -.8rem -.8rem 1.2rem rgba(#fff,.2);
}

[class*=swiper]:focus {
  outline: none;
}

/*********************************************************************************************
 共通CSS
**********************************************************************************************/
.slide-media,
.thumb-media {
  /*position: relative;*/
  overflow: hidden;
}
.slide-media img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /*height: 100%;*/
  /*-o-object-fit: cover;
     object-fit: cover;*/
}

.slide-mm {
  padding-top: 5rem;
}

.gallery-c,.gallery-p,.gallery-p,.gallery-p {
  overflow: hidden;
  max-width: 150rem;
  margin-left: auto;
  margin-right: auto;
}


.gallery-c .swiper-main,.gallery-p .swiper-main {
  overflow: visible;
}

.gallery-c .swiper-fade .swiper-slide,.gallery-p .swiper-fade .swiper-slide {
  -webkit-transition-property: opacity, -webkit-transform !important;
  transition-property: opacity, -webkit-transform !important;
  transition-property: opacity, transform !important;
  transition-property: opacity, transform, -webkit-transform !important;
  pointer-events: none;
}

.gallery-c .swiper-fade .swiper-slide-active,.gallery-p .swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

.gallery-c .swiper-controller,.gallery-p .swiper-controller {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 62.5%;
}

.gallery-c .swiper,.gallery-p .swiper,.gallery-p .swiper,.gallery-p .swiper {
  max-width: 1140px;
  margin: auto;
}

.l-section .l-inner {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.l-inner {
  position: relative;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 4rem;
}

/*********************************************************************************************
 前後ボタン
**********************************************************************************************/
.swiper-button-prev, .swiper-button-next {
  display: grid;
  place-content: center;
  width: 4.4rem;
  height: 4.4rem;
  cursor: pointer;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}
@media only screen and (min-width: 768px) {
  .swiper-button-prev, .swiper-button-next {
    width: 6.4rem;
    height: 6.4rem;
  }
}

/* 円の形と色 */
.swiper-button-prev::before, .swiper-button-next::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: var(--box-shadow-dark);
          box-shadow: var(--box-shadow-dark);
  -webkit-transition: var(--transition);
    transition: var(--transition);
}

.swiper-button-prev:hover::before, .swiper-button-next:hover::before {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

/* 矢印 */
.swiper-button-prev::after, .swiper-button-next::after {
  width: 1rem;
  height: 1rem;
  content: "";
  border: solid var(--color-gray);
  border-color: #fff;
  border-width: 2px 2px 0 0;
}
@media only screen and (min-width: 768px) {
  .swiper-button-prev::after, .swiper-button-next::after {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 3px 3px 0 0;
  }
}

.swiper-button-prev::after {
  margin-left: 0.4rem;
  -webkit-transform: rotate(-135deg);
          transform: rotate(-135deg);
}

.swiper-button-next::after {
  margin-right: 0.4rem;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

/* ボタンが無効（.swiper-button-disabledクラスが適用された場合）のとき、透明になりクリックもできなくなります。 */
.swiper-button-disabled {
  pointer-events: none;
  opacity: 0;
}

/* ボタンの位置 */
.gallery-c .swiper-button-prev, .gallery-c .swiper-button-next,.gallery-p .swiper-button-prev, .gallery-p .swiper-button-next {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  margin: auto;
}

.gallery-c .swiper-button-prev,.gallery-p .swiper-button-prev {
  right: calc(100% - 2rem);
}
@media only screen and (min-width: 768px) {
  .gallery-c .swiper-button-prev,.gallery-p .swiper-button-prev {
    right: calc(100% - 3rem);
  }
}
@media only screen and (min-width: 1025px) {
  .gallery-c .swiper-button-prev,.gallery-p .swiper-button-prev {
    
    right: calc(100% + 3rem);
  }
}

.gallery-c .swiper-button-next,.gallery-p .swiper-button-next {
  left: calc(100% - 2rem);
}
@media only screen and (min-width: 768px) {
  .gallery-c .swiper-button-next,.gallery-p .swiper-button-next {
    left: calc(100% - 3rem);
  }
}
@media only screen and (min-width: 1025px) {
  .gallery-c .swiper-button-next,.gallery-p .swiper-button-next {
    left: calc(100% + 3rem);
    
  }
}

/*********************************************************************************************
 main thumb common CSS
**********************************************************************************************/
.gallery-c .slide,.gallery-p .slide {
  display: block;
  overflow: hidden;
}

/*********************************************************************************************
 main CSS
**********************************************************************************************/
/* */
.mt-top-galley {
  margin-top: 4rem;
}
@media only screen and (min-width: 1025px) {
  .mt-top-galley {
    margin-top: 4rem;
  }
 }

/* main-img-size */
.gallery-c .main-size,.gallery-p .main-size {
  width: 100%;
  transition: opacity 0.5s ease-in-out;
  opacity: 0.6;
}
@media only screen and (min-width: 1025px) {
  .gallery-c .main-size,.gallery-p .main-size {
    width: 74%;
  }
}

.gallery-c .slide-media,.gallery-p .slide-media {
  padding-top: 62.5%;
  border-radius: 4px;
}

.gallery-c .slide-media img,.gallery-p .slide-media img {
  /*-o-object-fit: contain;
     object-fit: contain;*/
}

/* Active img */
.gallery-c .swiper-slide-active .slide-media img,.gallery-p .swiper-slide-active .slide-media img {
  transition: transform 0.5s ease-in-out;
  transform: scale(1);
}

/* non-Active img */
.gallery-c .swiper-slide .slide-media img,.gallery-p .swiper-slide .slide-media img {
  transition: transform 0.5s ease-in-out;
  transform: scale(1);
}

/* 見出し 説明文 ボタン */
.top-width-ex {
	width: 100%;
  transition: transform 0.5s ease-in-out;
  opacity: 0;
  margin-top: 2rem;
}
@media (min-width: 768px) {
	.top-width-ex {
		width: 92%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
	}
}

.gallery-c .swiper-slide-active .top-width-ex,.gallery-p .swiper-slide-active .top-width-ex {
  transition: transform 0.5s ease-in-out;
  animation-name:fadeInAnime;
  animation-duration:1s;
  animation-fill-mode:forwards;
  animation-delay: .8s;
  opacity:0;
}

/* その場で */
@keyframes fadeInAnime{
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
  
.gallery-c .slide-title,.gallery-p .slide-title {	
  font-weight: 500;
	line-height: 1.6;
	font-size: 16px;
}
@media only screen and (min-width: 376px) {
  .gallery-c .slide-title,.gallery-p .slide-title {
      font-size: 18px;
  }	
}
@media only screen and (min-width: 768px) {
  .gallery-c .slide-title,.gallery-p .slide-title {
      font-size: 21px;
  }	
}

/*********************************************************************************************
 thumb CSS
**********************************************************************************************/

/* ボタンエリア包括 */
.gallery-c .swiper-thumb,.gallery-p .swiper-thumb {
  transition: opacity 0.5s ease-in-out;
}

/* 配置のための包括ブロック */
.gallery-c .swiper-wrapper-thumb,.gallery-p .swiper-wrapper-thumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media only screen and (min-width: 1025px) {
  .gallery-c .swiper-wrapper-thumb,.gallery-p .swiper-wrapper-thumb {
    justify-content: flex-start;
  }
}

/* btn-design gallery-c */
.gallery-c .swiper-thumb .thumb-media {
  -webkit-transition: var(--transition);
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  border-radius: 4px;
  background-image: linear-gradient(90deg, rgba(96, 198, 205, 1), rgba(0, 151, 235, 1));
  border: 1px solid #266A74;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .1em;
  padding-top: .8rem;
  padding-bottom: .8rem;
  opacity: .6;
}
@media only screen and (min-width: 768px) {
  .gallery-c .swiper-thumb .thumb-media {
    font-size: 1.3rem;
  }
}
@media only screen and (min-width: 1025px) {
  .gallery-c .swiper-thumb .thumb-media {
    font-size: 1.3rem;
  }
}
@media only screen and (min-width: 1200px) {
  .gallery-c .swiper-thumb .thumb-media {
    font-size: 1.3rem;
  }
}

/* btn-design gallery-p */
.gallery-p .swiper-thumb .thumb-media {
  -webkit-transition: var(--transition);
  transition: var(--transition);
  
  display: flex;
  justify-content: center;
  align-items: center;

  height: 100%;
  border-radius: 4px;
  background-image: linear-gradient(90deg, rgba(50, 106, 218, 1), rgba(91, 150, 165, 1));
 
  border: 1px solid #264993;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .1em;
  padding-top: .8rem;
  padding-bottom: .8rem;
  opacity: .6;
}
@media only screen and (min-width: 768px) {
  .gallery-p .swiper-thumb .thumb-media {
    font-size: 1.3rem;
  }
}
@media only screen and (min-width: 1025px) {
  .gallery-p .swiper-thumb .thumb-media {
    font-size: 1.3rem;
  }
}
@media only screen and (min-width: 1200px) {
  .gallery-p .swiper-thumb .thumb-media {
    font-size: 1.3rem;
  }
}

/* swiperのアクティブ状態自動付与 */
.gallery-c .swiper-thumb .thumb-media.swiper-slide-thumb-active,.gallery-p .swiper-thumb .thumb-media.swiper-slide-thumb-active {
  opacity: 1;
}
/* hover */
.gallery-c .swiper-thumb .thumb-media.hover,.gallery-p .swiper-thumb .thumb-media.hover {
  opacity: 1;
}

/* btn-wrapper-size */
.gallery-c .thumb-size,.gallery-p .thumb-size {
  margin-top: 1rem;
  width: 48% !important;
  height: 100%;
  margin-right: .2rem;
}
@media only screen and (min-width: 768px) {
  .gallery-c .thumb-size,.gallery-p .thumb-size {
    width: 32% !important;
  }
}
@media only screen and (min-width: 1025px) {
  .gallery-c .thumb-size,.gallery-p .thumb-size {
    width: calc(24% - 1rem) !important;
    margin-left: 1rem;
  }
}
@media only screen and (min-width: 1300px) {
  .gallery-c .thumb-size,.gallery-p .thumb-size {
    width: 18% !important;
  }
}