@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Homemade+Apple&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

main {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  position: relative;
}

main::before,
main::after {
  content: "";
  display: block;
  width: 100%;
  height: 60%;
  background-color: #eee;
  background-image: url(img/mainvisual_pattern.webp);
  background-size: 7px;
  position: absolute;
  left: 0;
  transform: skewY(-20deg);
  z-index: -1;
}

main::before {
  top: -89%;
}

main::after {
  bottom: -84%;
}



.contents-container {
  width: 95vw;
  max-width: 1980px;
  margin: 0 auto;
  text-align: center;

}

.contents-title {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
}

.contents-title h1 {
  font-size: 3rem;
  position: relative;
}

.contents-title span {
  display: block;
  font-size: 4.3rem;
  color: #E2EFFD;
  font-family: "Homemade Apple", cursive;
  font-weight: bold;
  transform: translateY(-3rem);
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

@media only screen and (max-width: 1180px){
  main::before{
    top: -71%;
    left: 0;
  }

  main::after{
    bottom: -68%;
    left: 0;
  }
}

@media only screen and (max-width: 599px) {

  main::before,
  main::after{
    content: "";
    display: block;
    width: 100%;
    height: 20%;
    background-color: #eee;
    position: absolute;
    z-index: -1;
    transform: skewY(-40deg);
  }
  
  main::before{
    top: -35%;
    left: 0;
  }

  main::after{
    bottom: -34%;
    left: 0;
  }

  .contents-title {
    top: 12%;
  }
  
  .contents-title h1 {
    font-size: 2.5rem;
  }
  
  .contents-title span {
    font-size: 3rem;
    top: 20px;
  }
}

ul.contents {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
  transform: translateY(0);
}

ul.contents {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

@media only screen and (max-width: 599px){
  
  ul.contents{
    top: 55% !important;
  }

}

ul.contents li.content{
  width: 18%;
  box-sizing: border-box;
}

ul.contents li+li{
  margin-left:12px;
}

ul.contents li:nth-child(-n+5){
  margin-bottom: 12px;
}

ul.contents li:nth-of-type(6){
  margin-left: 0;
}

.content a {
 display: block;
 position: relative;
 overflow: hidden !important;
 transition: all ease 0.3s;
 border-radius: 8px;
 box-shadow: 2px 2px 6px #ccc;
}

.content a:hover{
  transform: translateY(-3px);
}

.content a .img {
  width: 100%;
  height: 30vh;
  max-height: 200px !important;
}

.content a .text{
  width: 70%;
  height: 70%;
  background-color: rgba(11, 115, 224, 0.8);
  border-radius: 50%;
  position: absolute;
  bottom: -25%;
  right: -25%;
}

.content a .text h2{
  color: #fff;
  text-align: center;
  margin-left: -28%;
  padding-top: 4vh;
  padding-right: 2px;
  
}

.content:nth-of-type(5) a .text h2,
.content:nth-of-type(6) a .text h2,
.content:nth-of-type(7) a .text h2,
.content:nth-of-type(8) a .text h2,
.content:nth-of-type(9) a .text h2,
.content:nth-of-type(10) a .text h2{
  padding-top: 20%;
}

.content:nth-of-type(10) a .text h2{
  letter-spacing: 0;
}

.content a:hover .text{
  background-color: #E2EFFD;
  background: linear-gradient(to right, #E2EFFD, #fff);
}

.content a:hover .text h2{
  color: #001E62;
  font-weight: bold;
  text-shadow: 2px 2px 6px #ccc;
}

@media only screen and (max-width: 1180px){

.content a .text{
  position: absolute;
  bottom: 0;
  left: 0;
  background-color:#001E62;
  width: 100%;
  height: auto !important;
  transition: all ease 1s;
  border: solid  #001E62;
  border-width: 1px 0 0 0;
  box-sizing: border-box;
  border-radius: 0 0 8px 8px ;
}

.content a:hover .text{
  background-color: #E2EFFD;
  background: linear-gradient(to right, #E2EFFD, #fff);
}

.content a .text h2,
.content a .text p{
  width: 100%;
}

.content a .text h2{
  font-size: 1.8rem;
  color: #fff;
  padding: 6px 0;
  margin-left: 0 !important;
  padding-top: 3px !important;
  padding-right: 0 !important;
  padding-bottom: 3px !important;
}

.content a:hover .text h2{
  color: #001E62;
}

.content:nth-of-type(5) a .text h2,
.content:nth-of-type(6) a .text h2,
.content:nth-of-type(7) a .text h2,
.content:nth-of-type(8) a .text h2,
.content:nth-of-type(10) a .text h2{
  padding-top: 3px;
}

.pconly{
  display: none !important;
}

}




.content a .img{
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: contrast(120%), brightness(150%);;
}

.content:nth-of-type(1) a .img{
  background-image: url(img/13.jpg);
}

.content:nth-of-type(2) a .img{
  background-image: url(img/09.jpg);
}

.content:nth-of-type(3) a .img{
  background-image: url(img/01.png);
  background-color: #aaa;
}

.content:nth-of-type(4) a .img{
  background-image: url(img/02.png);
}

.content:nth-of-type(5) a .img{
  background-image: url(img/04.png);
}

.content:nth-of-type(6) a .img{
  background-image: url(img/05.png);
}

.content:nth-of-type(7) a .img{
  background-image: url(img/06.webp);
}

.content:nth-of-type(8) a .img{
  background-image: url(img/14.jpg);
}

.content:nth-of-type(9) a .img{
  background-image: url(img/12.jpg);
}
.content:nth-of-type(10) a .img{
  background-image: url(img/15.jpg);
}

@media only screen and (max-width: 1024px){
  .content a .img {
    width: 100%;
    height: 30vh;
    max-height: 250px;
  }
} 

@media only screen and (max-width: 840px){

  ul.contents{
    top: 54% !important;
  }

  .content a .text h2{
    font-size: min(calc(34 / 840 * 100vw), 1.3rem); 
    padding: 4px 0 !important;
  }

}


@media only screen and (max-width: 599px){
  

  ul.contents li.content{
    width: 45%;
  }

  .content a .img {
    width: auto;
    height: 12vh;
  }

  ul.contents li+li{
    margin-left: 12px;
  }
  
  ul.contents li{
    margin-bottom: 10px !important;
  }

  ul.contents li:nth-child(-n+5){
    margin-bottom: 0;
  }
  
  ul.contents li:nth-of-type(6){
    margin-left: 10px !important;
  }

  ul.contents li:nth-of-type(odd){
    margin-left: 0 !important;
  }


  .content a .text h2{
    font-size: min(calc(22 / 599 * 100vw), 2rem); 
    padding: 4px 0 !important;
  }


}

.try-san{
  position: absolute;
  bottom: 0;
  right: -35%;
  z-index: 3;
  width: 32vw;
  height: auto;
}

.glass{
  width: 100vw;
  height: 20px;
  background-image: url(img/glass.png);
  background-repeat: repeat-x;
  background-size: contain;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 4;
}

.class-name{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  text-align: center;
}

.class-name p{
  font-size: 2rem;
}

.class-name .back-btn a{
  display: block;
  text-align: center;
  width: 110px;
  height: 30px;
  line-height: 27px;
  font-size: 2rem;
  background-color: #0b73e0;
  border: solid 1px #0b73e0;
  border-radius: 30px;
  color: #fff;
  box-sizing: border-box;
  transition: all ease 0.5s;
}

.class-name .back-btn a:hover{
  background-color: #E2EFFD;
  background: linear-gradient(to right, #E2EFFD, #fff);
  color: #0b73e0;
  font-weight: bold;
}

.class-name .movie-btn{
  position: fixed;
  top: 8%;
  left: 5%;
  display: flex;
  gap: 8px;
}

.class-name .movie-btn a{
  display: block;
  text-align: center;
  width: 140px;
  height: 30px;
  line-height: 27px;
  font-size: 2rem;
  background-color: #0b73e0;
  border: solid 1px #0b73e0;
  border-radius: 30px;
  color: #fff;
  box-sizing: border-box;
  transition: all ease 0.5s;
}

.class-name .movie-btn a:hover{
  background-color: #E2EFFD;
  background: linear-gradient(to right, #E2EFFD, #fff);
  color: #0b73e0;
  font-weight: bold;
}

@media only screen and (max-width: 1024px){

  .class-name .movie-btn{
    display: none;
  }

}


@media only screen and (max-width: 1180px) {
  .try-san{
    right: -40%;
  }
}

@media only screen and (max-width: 599px){

  main{
    position: relative;
  }

  .contents{
    transform: translateY(5rem) !important;
  }


  .try-san{
    width: 250px;
    height: auto;
    right: -70%;
  }

}

.content a .img{
  position: relative;
}

.content:nth-of-type(3) a .img .icon{
  width: 100px;
  height: auto;
  position: absolute;
  left: 2%;
  top: 2%;
}

.content a .img .g-icon{
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  background-repeat: no-repeat;
  background-size: 30px 30px;
  background-position: center center;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 10px;
  position: absolute;
  top: 2%;
  left: 2%;
}

.content:nth-of-type(1) a .img .g-icon{
  background-image: url(icon/good.svg);
}

.content:nth-of-type(2) a .img .g-icon{
  background-image: url(icon/cost.svg);
}

.content:nth-of-type(4) a .img .g-icon{
  background-image: url(icon/UP.svg);
}

.content:nth-of-type(5) a .img .g-icon{
  background-image: url(icon/exam.svg);
}

.content:nth-of-type(6) a .img .g-icon{
  background-image: url(icon/exam.svg);
}

.content:nth-of-type(7) a .img .g-icon{
  background-image: url(icon/exam.svg);
}

.content:nth-of-type(8) a .img .g-icon{
  background-image: url(icon/cong.svg);
  transform: scale(1.2);
}

.content:nth-of-type(9) a .img .g-icon{
  background-image: url(icon/cong.svg);
  transform: scale(1.4);
}

.content:nth-of-type(10) a .img .g-icon{
  background-image: url(icon/cong.svg);
  transform: scale(1.2);
}

@media only screen and (max-width: 599px){
  .content a .img .g-icon{
    width: 30px;
    height: 30px;
    background-size: 20px 20px;
  }
}