html{
  font-size: calc(6pt + 0.9vw);
}
header > ul > li > a {
  font-size: min(calc(6pt + 0.9vw), 16px);
}
footer {
  font-size: min(calc(3.6pt + 0.54vw), 9.6px);
}

header{
  transition: opacity 1000ms ease 500ms;
}

body:not(.scrolled) header{
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease 0;
}

#mainContentsContainer {
  width: 100vw;
  max-width: initial;
  margin-left: 0;
  margin-right: 0;
  padding-top: 5rem;
}

#index-eyecatch{
  position: relative;
  width: 100%;
  background-color: rgb(27, 2, 11);
}

#index-eyecatch > img:first-of-type,
#index-eyecatch > video{
  width: 100%; 
  display: block;
  transition: opacity 1200ms ease-in 1000ms;
}

#index-eyecatch > img:first-of-type{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#index-eyecatch > img:not(:first-of-type){
  position: absolute;
  transition: top 2000ms ease 3000ms, left 2000ms ease 3000ms, bottom 2000ms ease 3000ms, right 2000ms ease 3000ms, transform 2000ms ease 3000ms;
}

#index-eyecatch > img:nth-of-type(2){
  /* top */
  width: 25vw;
  top: 5vh;
  left: 50vw;
  transform: translateX(-50%);
}

#index-eyecatch > img:nth-of-type(3){
  /* bottom */
  width: 25vw;
  bottom: 5vh;
  left: 50vw;
  transform: translateX(-50%);
}

#index-eyecatch > img:nth-of-type(4){
  /* 赤 */
  width: 11vw;
  top: calc(8vw + 8vh);
  right: 37.5vw;
}
#index-eyecatch > img:nth-of-type(5){
  /* 山 */
  width: 11vw;
  top: calc(22vw + 8vh);
  right: 37.5vw;
}
#index-eyecatch > img:nth-of-type(6){
  /* 禅 */
  width: 11vw;
  top: calc(8vw + 8vh);
  left: 37.5vw;
}
#index-eyecatch > img:nth-of-type(7){
  /* 院 */
  width: 11vw;
  top: calc(22vw + 8vh);
  left: 37.5vw;
}

#index-eyecatch:not(.dom-loaded) > img:first-of-type{
  opacity: 0;
}

#index-eyecatch.dom-loaded > img:nth-of-type(4){
  /* 赤 */
  top: 5vh;
  right: 5vw;
}
#index-eyecatch.dom-loaded > img:nth-of-type(5){
  /* 山 */
  top: calc(100% - 5vh);
  transform: translateY(-100%);
  right: 5vw;
}
#index-eyecatch.dom-loaded > img:nth-of-type(6){
  /* 禅 */
  top: 5vh;
  left: 5vw;
}
#index-eyecatch.dom-loaded > img:nth-of-type(7){
  /* 院 */
  top: calc(100% - 5vh);
  transform: translateY(-100%);
  left: 5vw;
}

#index-menu{
  width: 100%;
}

#index-menu > *{
  width: 100%;
  margin-bottom: 3rem;
  position: relative;
}

#index-menu dl > dt{
  margin-bottom: 0.5rem;
  font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  position: relative;
  padding-left: 2rem;
}

#index-menu dl > dt:before{
  content: url("../r/triangle.svg");
  width: 1.8rem;
  position: absolute;
  bottom: 0;
  left: 0;
}

#index-menu dl > dt > a > img{
  height: 1.2rem;
  margin-left: 0.5rem;
}

#index-menu dl > dd{
  padding: 0.2rem 0 0.2rem 0.7rem;
  border-left: 0.08rem solid rgba(27, 2, 11, 0.6);
  margin-left: 2rem;
}

.index-menu-right-image{
  display: flex;
  justify-content: space-between;
}

.index-menu-right-image > dl{
  margin-left: 17%;
  width: 28%;
}

.index-menu-bottom-image > dl,
.index-menu-right-bottom-image > dl{
  margin-left: 17%;
  width: 50%;
}

.index-menu-bottom-image > dl{
  margin-bottom: 1.5rem;
}

.index-menu-right-image > img:nth-child(2),
.index-menu-right-bottom-image > video:nth-child(2){
  width: 55%;
  margin-top: 2rem;
}

.index-menu-right-bottom-image > video:nth-child(2){
  margin-left: 45%;
}

.index-menu-right-image > img:nth-child(3),
.index-menu-right-bottom-image > img:nth-child(3){
  position: absolute;
  width: 57%;
  left: 43%;
  bottom: 2%;
}

.index-menu-bottom-image{
  margin-bottom: 1.5rem;
}

.index-menu-bottom-image > img{
  width: 100%;
  border-bottom: 3px solid red;
  height: 35vw;
  object-fit: cover;
}

#index-menu > .index-menu-two-triangles{
  width: 56%;
  margin-left: 22%;
  display: flex;
  justify-content: space-between;
}

.index-menu-two-triangles > dl{
  width: 22vw;
  height: 11.5vw;
  background-image: url(../r/double-triangle.svg);
}

#index-menu > .index-menu-two-triangles > dl > dt{
  text-align: center;
  width: 100%;
  padding-left: 0;
  padding-top: 6.1vw;
}

#index-menu > .index-menu-two-triangles > dl > dt:before{
  display: none;
}

#index-menu > .index-menu-two-triangles > dl > dt > a > img{
  height: 1rem;
  margin-left: 0;
}

/* スライドの動き等速 */
.swiper-wrapper {
  transition-timing-function: linear;
  height: 10rem;
}
/* 画像のサイズ調整 */
.swiper-slide{
  width: auto;
}

.swiper-slide img {
  height: 10rem;
}

/*=========Maximum 980px ===========*/
@media screen and (max-width:980px) {
  
}
/*=========Maximum 768px ===========*/
@media screen and (max-width:768px) {
  html{
    font-size: 12pt;
  }

  #index-eyecatch {
    height: 100vw;
  }

  #index-eyecatch > video{
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #index-eyecatch > img:nth-of-type(2){
    /* top */
    width: 40vw;
    top: 5vh;
  }
  
  #index-eyecatch > img:nth-of-type(3){
    /* bottom */
    width: 40vw;
    bottom: 5vh;
  }
  
  #index-eyecatch > img:nth-of-type(4){
    /* 赤 */
    width: 18vw;
    top: 30vw;
    right: 30vw;
  }
  #index-eyecatch > img:nth-of-type(5){
    /* 山 */
    width: 18vw;
    top: 50vw;
    right: 30vw;
  }
  #index-eyecatch > img:nth-of-type(6){
    /* 禅 */
    width: 18vw;
    top: 30vw;
    left: 30vw;
  }
  #index-eyecatch > img:nth-of-type(7){
    /* 院 */
    width: 18vw;
    top: 50vw;
    left: 30vw;
  }

  #index-menu > .index-menu-right-image,
  #index-menu > .index-menu-right-bottom-image{
    flex-wrap: wrap;
    width: 95vw;
    margin-left: 5vw;
    margin-right: 0;
  }

  .index-menu-right-image > dl,
  .index-menu-right-bottom-image > dl{
    margin-left: 0;
    width: 100%;
  }

  .index-menu-bottom-image > dl{
    margin-left: 5vw;
    width: 95vw;
  }

  .index-menu-right-image > img:nth-child(2),
  .index-menu-right-bottom-image > video:nth-child(2){
    width: 100%;
  }

  .index-menu-right-bottom-image > video:nth-child(2){
    margin-left: 0;
  }

  #index-menu > .index-menu-two-triangles{
    width: 90vw;
    margin-left: 5vw;
  }

  .index-menu-two-triangles > dl{
    width: 40vw;
    height: 21vw;
  }

  #index-menu > .index-menu-two-triangles > dl > dt{
    padding-top: 10.5vw;
  }

  #index-menu dl > dt > a{
    font-size: 0.9rem;
    letter-spacing: 0;
  }

  #index-menu > .index-menu-two-triangles > dl > dt > a > img{
    height: 0.8rem;
    margin-top: 0.5rem;
  }

  .index-menu-bottom-image > img{
    height: 45vw;
  }

}
/*=========Maximum 576px ===========*/
@media screen and (max-width:576px) {
    
}
/*=========Maximum 460px ===========*/
@media screen and (max-width:460px) {

}