@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');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box !important;
  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;
}

header {
  position: relative;
}

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
  position: absolute;
  left: -9999px;
}

.menu-icon:checked+label,
.menu-icon:not(:checked)+label {
  position: fixed;
  top: 32px;
  right: 31px;
  display: block;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 10;
}

.menu-icon:checked+label:before,
.menu-icon:not(:checked)+label:before {
  position: absolute;
  content: '';
  display: block;
  width: 30px;
  height: 20px;
  z-index: 20;
  top: 0;
  left: 0;
  border-top: 3px solid #ececee;
  border-bottom: 3px solid #ececee;
  transition: border-width 100ms 1500ms ease,
    top 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
    height 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms ease,
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked+label:after,
.menu-icon:not(:checked)+label:after {
  position: absolute;
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  z-index: 20;
  top: 10px;
  right: 4px;
  background-color: #ececee;
  margin-top: -1px;
  transition: width 100ms 1750ms ease,
    right 100ms 1750ms ease,
    margin-top 100ms ease,
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked+label:before {
  top: 10px;
  transform: rotate(45deg);
  height: 3px;
  background-color: #ececee;
  border-width: 0;
  transition: border-width 100ms 340ms ease,
    top 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
    height 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms 500ms ease,
    transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked+label:after {
  width: 30px;
  height: 3px;
  margin-top: 0;
  right: 0;
  transform: rotate(-45deg);
  transition: width 100ms ease,
    right 100ms ease,
    margin-top 100ms 500ms ease,
    transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}


.nav {
  position: fixed;
  top: 10px;
  right: 15px;
  display: block;
  width: 65px;
  height: 65px;
  padding: 0;
  margin: 0;
  z-index: 7;
  overflow: hidden;
  box-shadow: 0 6px 15px 0 rgba(0, 0, 0, 0.3);
  background-color: #1f377d;
  border: solid 2px #fff;
  animation: border-transform 7s linear infinite;
  transition: top 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
    right 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 250ms 1100ms ease,
    width 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1),
    height 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1);
}


@keyframes border-transform {

  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }

  14% {
    border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
  }

  28% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }

  42% {
    border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
  }

  56% {
    border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
  }

  70% {
    border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
  }

  84% {
    border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
  }
}

.menu-icon:checked~.nav {
  animation-play-state: paused;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 200%;
  height: 200%;
  transition: top 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
    right 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 250ms 700ms ease,
    width 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1),
    height 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1);
}

.sp {
  display: none !important;
}

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


  .nav ul {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 6;
    text-align: center;
    transform: translateY(-50%);
    list-style: none;
  }

  .nav ul li {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 8px 0;
    text-align: center;
    list-style: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 250ms linear;
  }

  .nav ul li:nth-child(1) {
    transition-delay: 600ms;
  }

  .nav ul li:nth-child(2) {
    transition-delay: 550ms;
  }

  .nav ul li:nth-child(3) {
    transition-delay: 500ms;
  }

  .nav ul li:nth-child(4) {
    transition-delay: 450ms;
  }

  .nav ul li:nth-child(5) {
    transition-delay: 400ms;
  }

  .nav ul li:nth-child(6) {
    transition-delay: 350ms;
  }

  .nav ul li:nth-child(7) {
    transition-delay: 300ms;
  }

  .nav ul li:nth-child(8) {
    transition-delay: 250ms;
  }

  .nav ul li:nth-child(9) {
    transition-delay: 200ms;
  }

  .nav ul li:nth-child(9) {
    transition-delay: 150ms;
  }

  .nav ul li:nth-child(9) {
    transition-delay: 100ms;
  }

  .nav ul li:nth-child(9) {
    transition-delay: 50ms;
  }


  .nav ul li a {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 4vh;
    text-transform: uppercase;
    line-height: 1.7;
    font-weight: 100;
    display: inline-block;
    position: relative;
    color: #ececee;
    transition: all 250ms linear;
  }

  .nav ul li a::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }

  .nav ul li:nth-of-type(1) a::before {
    background-image: url(icon/MENU-W.svg);
    background-size: 15px 15px;
    margin-right: 0.2rem;
    transform: translateY(4px);
    padding-left: 2px;
  }

  .nav ul li:nth-of-type(2) a::before {
    background-image: url(icon/good-W.svg);
    background-size: 23px 23px;
    transform: translate(-3px, 2px);
  }

  .nav ul li:nth-of-type(3) a::before {
    display: inline-block;
    background-image: url(icon/cost-W.svg);
    background-size: 28px 28px;
    transform: translateY(3px);
    margin-right: 0.7rem;
  }

  .nav ul li:nth-of-type(4) a::before {
    background-image: url(icon/type-W.svg);
    background-size: 20px 20px;
    transform: translate(2px, 5px);
  }

  .nav ul li:nth-of-type(5) a::before {
    background-image: url(icon/UP-W.svg);
    background-size: 18px 18px;
    transform: translate(-2px, 5px);
  }

  .nav ul li:nth-of-type(6) a::before,
  .nav ul li:nth-of-type(7) a::before,
  .nav ul li:nth-of-type(8) a::before {
    background-image: url(icon/exam-W.svg);
    background-size: 24px 24px;
    transform: translate(-2px, 4px);
  }

  .nav ul li:nth-of-type(9) a::before {
    background-image: url(icon/cong-W.svg);
    background-size: 24px 24px;
    transform: translateY(3px);
    margin-right: 0.4rem;
  }

  .nav ul li:nth-of-type(10) a::before {
    background-image: url(icon/cong-W.svg);
    background-size: 28px 28px;
    transform: translateY(3px);
    margin-right: 0.5rem;
  }

  .nav ul li:nth-of-type(11) a::before {
    background-image: url(icon/cong-w.svg);
    background-size: 28px 28px;
    transform: translateY(3px);
    margin-right: 0.5rem;
  }




  .nav ul li a:hover {
    text-decoration: none;
    color: #ffeba7;
  }

  .nav ul li:nth-of-type(1) a:hover::before {
    background-image: url(icon/MENU-O.svg);
  }

  .nav ul li:nth-of-type(2) a:hover:before {
    background-image: url(icon/good-O.svg);
  }

  .nav ul li:nth-of-type(3) a:hover:before {
    background-image: url(icon/cost-O.svg);
  }

  .nav ul li:nth-of-type(4) a:hover:before {
    background-image: url(icon/type-O.svg);
  }

  .nav ul li:nth-of-type(6) a:hover:before,
  .nav ul li:nth-of-type(7) a:hover:before,
  .nav ul li:nth-of-type(8) a:hover:before {
    background-image: url(icon/exam-O.svg);
  }

  .nav ul li:nth-of-type(5) a:hover:before {
    background-image: url(icon/UP-O.svg);
  }

  .nav ul li:nth-of-type(9) a:hover:before {
    background-image: url(icon/cong-O.svg);
  }

  .nav ul li:nth-of-type(10) a:hover:before {
    background-image: url(icon/cong-O.svg);
  }

  .nav ul li:nth-of-type(11) a:hover:before {
    background-image: url(icon/cong-O.svg);
  }



  .nav ul li a:after {
    display: block;
    position: absolute;
    top: 50%;
    content: '';
    height: 1vh;
    margin-top: 2vh;
    width: 0;
    left: 0;
    background-color: #fff;
    opacity: 0.5;
    transition: width 250ms linear;
  }

  .nav ul li a:hover:after {
    width: 100%;
  }


  .menu-icon:checked~.nav ul li {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 350ms ease,
      transform 250ms ease;
  }

  .menu-icon:checked~.nav ul li:nth-child(1) {
    transition-delay: 1400ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(2) {
    transition-delay: 1480ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(3) {
    transition-delay: 1560ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(4) {
    transition-delay: 1640ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(5) {
    transition-delay: 1720ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(5) {
    transition-delay: 1800ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(6) {
    transition-delay: 1880ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(7) {
    transition-delay: 1960ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(8) {
    transition-delay: 2040ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(9) {
    transition-delay: 2120ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(10) {
    transition-delay: 2200ms;
  }

  .menu-icon:checked~.nav ul li:nth-child(11) {
    transition-delay: 2280ms;
  }


  main {
    width: 100%;
    height: auto;
    position: relative;
    opacity: 0;
  }

  .bg-white {
    width: 100%;
    height: 100%;
    background-color: #fff;
    padding-bottom: 7rem;
  }

}

main {
  width: 100%;
  height: auto;
  position: relative;
  background-color: #f8f8f8;
  opacity: 0;
}

.bg-white {
  width: 100%;
  height: 100%;
  background-color: #fff;
  padding-bottom: 7rem;
  background-image: linear-gradient(0deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px)), linear-gradient(90deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px));
  background-size: 25px 25px;
}

.root-container {
  width: 100vw;
  height: 100%;
  display: grid;
  place-items: center;
  display: none;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
}

.show.root-container {
  display: block;
  opacity: 1;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

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

  .root-container,
  .show.root-container {
    display: none;
  }

  .sp {
    display: block !important;
  }

}


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


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

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;
  border: solid 2px #fff;
}

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

.content a .img {
  width: 100%;
  height: 30vh;
}

.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(9) 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);
}

.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: 25%;
}

@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;
  }


}

.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.4);
}

.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.4);
}

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

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

.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;
}

.container {
  max-width: 1200px;
  width: 95%;
  height: auto;
  margin: 0 auto;
  text-align: center;
}



.pankuzu {
  max-width: 1200px;
  width: 95%;
  height: auto;
  margin: 0 auto;
  display: flex;
  margin-top: 1rem;
}

.pankuzu li {
  font-size: 1.5rem;
}

.pankuzu li+li {
  margin-left: 1.2rem;
}

.pankuzu li.here {
  color: #1f377D;
  font-weight: 700;
}

.pankuzu li a {
  position: relative;
  padding: 0 3px;
  transition: all ease .3s;
  display: block;
}

.pankuzu li a:hover {
  font-weight: bold;
}

.pankuzu li a::before {
  content: "";
  display: inline-block;
  width: 100%;
  height: 2px;
  background-color: #001E62;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: all ease .3s;
}

.pankuzu li a:hover::before {
  transform: scale(1, 1);
}



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


  .contents-title {
    top: 20vh !important;
  }

  .contents-title h1 {
    font-size: 2.5rem;
    margin-top: -4rem;
  }

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

}

.container {
  max-width: 1200px;
  width: 95%;
  height: auto;
  margin: 0 auto;
  padding-top: 13rem;
}

.top-banner {
  width: 100%;
  margin: 0 auto;
}

.top-banner video {
  display: block;
  width: 90%;
  height: auto;
  max-width: 600px;
  margin: auto;
  padding-bottom: 20vh;
}

.glass-container {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.try-san {
  position: absolute;
  bottom: 0;
  right: -45%;
  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;
}

.congratulations{
  width: 100%;
  height: auto;
  position: absolute;
  top: 2%;
  left: 0;
  z-index: 3;
}

.congratulations video{
  width: 17%;
  height: auto;
  filter: drop-shadow(0px 0px rgba(0,0,0,0));
  outline: none;
  border: none;
}

.top-banner video{
  filter: drop-shadow(0px 0px rgba(0,0,0,0));
  outline: none;
  border: none;
}


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

  .top-banner video {
    padding-bottom: 12vh !important;
    padding-top: 3rem;
  }

}

@media only screen and (max-width: 840px) {
  .top-banner video {
    padding-bottom: 10vh !important;
    padding-top: 3rem;
  }

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

  .congratulations{
    top: 4%;
  }

}

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

  .top-banner video {
    padding-bottom: 7vh !important;
    padding-top: 1rem;
  }

  .congratulations{
    top: 21%;
    left: 45%;
  }

}

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

  main {
    position: relative;
  }

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


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

}


@media only screen and (max-width: 599px) {
  .container {
    padding-top: 8rem;

  }



  .top-banner {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .top-banner_image {
    width: 100%;
    padding-top: 3rem;
  }

  .top-banner_text {
    width: 90%;
    margin: 0 auto;
    padding-top: 0;
  }

  p.exp {
    width: 90%;
    margin: 0 auto;
    font-size: 1.8rem;
    line-height: 1.7;
    text-align: justify;
    padding-top: 2rem;
  }

}

p.class-name {
  font-size: 2rem;
  position: absolute;
  top: 6vh;
  right: 10%;
}

@media only screen and (max-width: 599px) {
  p.class-name {
    left: 6%;
    top: 6vh;
  }
}


/*===============================================
高校入試分析
================================================*/
#subjects {
  width: 95%;
  height: auto;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box !important;
  margin-top: 2rem;

}

/*タブボタン*/
.tabbox {
  width: 100%;
  height: auto;
  box-sizing: border-box !important;
  text-align: center;
  position: sticky;
  top: -1px;
  width: 100%;
  z-index: 5;
}

.tabbox input {
  display: none;
}

.tab {
  display: inline-block;
  border-width: 1px 1px 0 1px;
  border-style: solid;
  border-color: #ccc;
  border-radius: 0.75em 0.75em 0 0;
  font-size: 1.7rem;
  font-weight: 500;
  color: #555;
  background-color: #e0e0e0;
  width: 24%;
  height: 45px;
  text-align: center;
  line-height: 45px;
  box-sizing: border-box !important;
  margin: 0 !important;
  cursor: pointer;
  transition: all ease 0.3s;
}

.tab:hover {
  color: #333;
  font-weight: 500;
  background-color: #fff;
}

.tab.active {
  color: #001E62;
  background-color: #fff;
  font-weight: 600;
  border-color: #001E62;
  border-width: 2px;
}


.subject{
  display: none;
  transition: all 0.5s ease-in-out;
}

.subject.active{
  display: block;
}



@media only screen and (max-width: 1024px) {
  .tab {
    font-size: min(calc(18 / 1024 * 100vw), 1.8rem);
  }
}

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

  .tabbox {
    position: static;
  }

  .tab {
    font-size: calc(16 / 599 * 100vw);
    line-height: 1.4;
    padding-top: 1.3vh;
  }
}

.subject-container {
  width: 100%;
  height: auto;
  border: solid 1px #ccc;
  box-shadow: 2px 2px 6px #ccc;
  background-color: #fff;
}

.subject-content {
  width: 98%;
  margin: auto;
  padding: 3rem 0 7rem;
  position: relative;
}

h2.subject-title {
  text-align: center;
  font-size: 3rem;
  position: relative;
  z-index: 2;
  margin-bottom: 4rem;
}

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

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

  .subject-content {
    padding: 5rem 0;
  }

  h2.subject-title {
    font-size: 2.3rem;
    margin-bottom: 5rem;
  }

  h2.subject-title span {
    font-size: 2.8rem;
    top: 20px;
    line-height: 1;
  }
}

h3.sub-title {
  width: 85%;
  margin: auto;
  text-align: justify;
  font-size: 2.2rem;
  font-weight: 700;
  color: #5a90e0;
  text-align: center;
  line-height: 1.7;
}

h3.sub-title span.sub {
  display: block;
  font-size: 1.8rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 1rem;
}

@media only screen and (max-width: 599px) {
  h3.sub-title {
    width: 95%;
    margin: auto;
    text-align: center;
  }

  h3.sub-title span {
    text-align: justify;
  }


}

.subject-content-container {
  width: 85%;
  margin: auto;
  margin-top: 2rem;
  position: relative;
}

@media only screen and (max-width: 599px) {
  .subject-content-container {
    width: 98%;
  }
}

/*=================================================
授業料について
==================================================*/

.costs {
  width: 100%;
  height: auto;
}

.cost:nth-of-type(2) {
  margin-top: 4rem;
}

.cost img {
  width: 68%;
  height: auto;
  display: block;
  margin: auto;
}

.cost2 img {
  width: 65%;
  height: auto;
  display: block;
  margin: auto;
}

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

  .cost img {
    width: 75%;
  }

  .cost2 img {
    width: 70%;
  }

}

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


  .cost:nth-of-type(2) {
    margin-top: 2rem;
  }

  .cost img {
    width: 100%;
  }

  .cost2 img {
    width: 100%;
  }

}


/*====================================================
入会後も安心のシステム
====================================================*/

.feelsafe {
  width: 100%;
  margin: auto;
  background: rgba(254, 255, 223, 0.80);
  padding: 5rem 0;
  margin-top: 5rem;
}

.feelsafe-contaier {
  width: 75%;
  height: auto;
  margin: auto;
}

.feelsafe-content ul{
  background-color: #fff;
  padding: 2rem 1rem;
}

.feelsafe-content ul li {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.feelsafe-content ul li+li{
  border-top: solid 1px #ccc;
}

.content-left {
  width: 20%;
}

.content-left img {
  width: 65%;
  height: auto;
  margin: auto;
  display: block;
}

.content-right {
  width: 80%;
  padding-right: 1.5rem;
}

.content-right h6 {
  font-size: 2rem;
  color: #243b80;
  margin-bottom: 0.2em;
}

.content-right p {
  font-size: 1.6rem;
  font-weight: 300;
  text-align: justify;
}

.feelsafe-content ul li:nth-child(2) .content-left img {
  transform: translateY(2px);
}

.feelsafe-content ul li:nth-child(3) .content-left img {
  width: 57%;
  margin: auto;
  transform: translateY(6px);
}

.feelsafe-content ul li:nth-child(4) .content-left img {
  width: 48%;
  margin: auto;
}

.feelsafe-content ul li:nth-child(5) .content-left img {
  width: 55%;
  margin: auto;
}

.feelsafe-content ul li:nth-child(6) .content-left img {
  width: 60%;
  margin: auto;
  transform: translateY(15px);
}

.feelsafe-content ul li:nth-child(7) .content-left img {
  width: 65%;
  margin: auto;
  transform: translateY(-5px);
}

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

  .feelsafe-contaier{
    width: 90%;
  }

}

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

  .feelsafe-contaier{
    width: 95%;
  }

  .feelsafe-content ul li {
    flex-direction: column;
  }

  .content-left{
    width: 80%;
  }

  .content-right{
    width: 95%;
    margin: auto;
    padding-right: 0;
    margin-top: 2rem;
  }

  .content-right h6{
    padding-bottom: 1rem;
  }

} 

/*==================================================
授業料シミュレーション
==================================================*/

.simulation-container {
  width: 85%;
  max-width: 1200px;
  margin: auto;
  background-image: linear-gradient(0deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px)), linear-gradient(90deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px));
  background-size: 20px 20px;
  background-repeat: repeat;
  padding: 2rem 0;
}

p.simulation-container-title {
  width: 75%;
  margin: auto;
  padding: 15px 0;
  text-align: center;
  font-size: 2.2rem;
  color: #fff;
  background-color: #001E62;
}

.input {
  background-color: #FEFFE5;
  width: 75%;
  margin: auto;
  padding: 30px 0;
  text-align: center;
}

.input label {
  font-size: 2rem;
  padding-right: 8px;
  color: #5a90e0;
  font-weight: 700;
}

.input option {
  font-size: 1.7rem;
  text-align: center;
}

.input label:nth-of-type(2) {
  padding-left: 14px;
}

.input select {
  width: 25%;
  height: 40px;
  border-radius: 5px;
  box-shadow: 2px 2px 6px #ccc;
  font-size: 1.7rem;
}

.spec {
  width: 80%;
  margin: auto;
  text-align: left;
  padding: 30px 0 0;
}

.spec p {
  font-size: 1.6rem;
}

p.totalfee {
  font-size: 2.2rem;
  font-weight: bold;
  color: #001E62;
  text-align: center;
  border-bottom: solid 1px #ccc;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.spec p span#fee {
  font-size: 2.2rem !important;
}

.include-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

p.include {
  padding-left: 1.7rem;
  width: 48%;
}

.spec p+p {
  margin-bottom: 0.5rem;
}

.spec p span.cost {
  background-color: #fff;
  display: inline-block;
  width: 140px;
  padding: 4px 0;
  text-align: center;
  border-radius: 5px;
  margin-right: 0.3rem;
  border: solid 1px #ccc;
  font-size: 1.8rem;
}

@media only screen and (max-width: 599px) {
  .spec p span.cost {
    width: 120px;
  }
}

.spec p span.title {
  display: inline-block;
  width: 100px;
  font-size: 1.2rem;
}

.spec p span#fee {
  display: inline-block;
  width: 160px;
  box-shadow: 1px 1px 2px #ccc;
  margin-right: 0.2rem;
}

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

  p.simulation-container-title,
  .input {
    width: 90%;
  }

}

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

  .simulation-container {
    width: 100%;
  }

  p.simulation-container-title,
  .input {
    width: 98%;
  }

  .input label:nth-of-type(2) {
    padding-left: 0;
  }

  .input select {
    width: 60%;
  }

  span.sponly {
    display: block;
    width: 100%;
    height: 14px;
  }

  .input label {
    width: 100px;
    display: inline-block;
  }

  .spec {
    width: 90%;
  }

  p.include {
    padding-left: 0;
  }


}

/*====================================================
Comiruコミル
=====================================================*/

.comiru-logo{
  width: 180px;
  height: auto;
  position: absolute;
  top: 3%;
  left: 4%;
}

.comiru-cat{
  width: 140px;
  height: auto;
  position: absolute;
  top: 1%;
  right: 4%;
}

.comiru-contents{
  width: 70%;
  margin: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5rem;
}

.comiru-content{
  width: 48%;
  height: auto;
  margin-bottom: 2rem;
}

.comiru-content img{
  width: 100%;
  display: block;
}

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

  .comiru-logo{
    width: 140px;
  }

  .comiru-cat{
    width: 120px;
    right: 2%;
  }

  .comiru-contents{
    width: 85%;
    margin-top: 3rem;
  }

  .comiru-content{
    margin-bottom: 1rem;
  }

}

@media only screen and (max-width: 599px){
  
  .comiru-logo{
    width: 80px;
  }

  .comiru-cat{
    width: 80px;
  }

  .comiru-contents{
    width: 95%;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .comiru-content{
    width: 95%;
    margin: 0 auto 1tem;
  }

}


.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #fff;
  border: solid 2px #001E62;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 7;
}

.pagetop__arrow {
  height: 10px;
  width: 10px;
  border-top: 3px solid #001E62;
  border-right: 3px solid #001E62;
  transform: translateY(20%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {

  .pagetop:hover,
  .pagetop:hover .pagetop__arrow {
    border-color: #3293e7;
  }
}

.pagetop2 {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 30px;
  bottom: 87px;
  background: #fff;
  border: solid 2px #001E62;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 7;
}

.pagetop__arrow2 {
  font-weight: bold;
  color: #001E62;
}

@media (hover: hover) and (pointer: fine) {

  .pagetop2:hover,
  .pagetop2:hover .pagetop__arrow2 {
    border-color: #3293e7;
    color: #3293e7;
  }
}