@charset "utf-8";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", system-ui;
}

.wrapper {
  width: 100%;
}

article {
  font-weight: 600;
  color: #212A68;
}

.top {
  width: 100%;
  height: 85vh;
  background-image: url(../images/topimage.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tab-only {
  display: none;
}

.navi ul {
  display: flex;
  flex-wrap: nowrap;
  width: fit-content;
  margin: 30px 20px 120px auto;
}

.navi ul li {
  width: 200px;
  text-align: center;
  margin: 0 20px;
  border-radius: 10px;
}

.navi ul li:nth-child(1) {
  background-color: #5890FF;
}

.navi ul li:nth-child(2) {
  background-color: #77A5FF;
}

.navi ul li:nth-child(3) {
  background-color: #95B9FF;
}

.navi ul li:nth-child(4) {
  background-color: #B1CBFF;
}

.navi ul li a {
  display: block;
  text-decoration: none;
  line-height: 60px;
  color: #fff;
}

.quest {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 200px;
}

.quest .leftitem {
  width: 45%;
}

.quest .leftitem img {
  width: 100%;
  border-radius: 0 0 15% 0;
}

.quest .rightitem {
  display: flex;
  width: 55%;
  justify-content: center;
  align-items: center;
}

.quest .rightitem div {
  width: 80%;
  max-width: 600px;
}

.quest .rightitem h3 {
  font-size: 24px;
  line-height: 38px;
  margin-bottom: 40px;
}

.quest .rightitem p {
  line-height: 30px;
}

.topics {
  width: 60%;
  margin: 0 auto;
  margin-bottom: 200px;
}

.topics h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 60px;
}

.topics iframe {
  width: 100%;
  height: 200px;
  font-family: "Noto Sans JP", system-ui;
  border-radius: 50px;
  background: #ffffff;
  box-shadow: 20px 20px 60px #e9e9e9,
    -20px -20px 60px #ffffff;
  -ms-overflow-style: none;
  /* IE, Edge 対応 */
  scrollbar-width: none;
  /* Firefox 対応 */
}

.topics iframe::-webkit-scrollbar {
  display: none; /* Chrome, Safari 対応 */
}

.slide2 {
  margin-bottom: 200px;
}

.slider-2 {
  width: 70%;
  height: auto;
  margin: 0 auto;
}

.slider-2 .item {
  overflow: hidden;
}

.slider-2 .item p {
  width: 100%;
  height: 100%;
  padding: 20px;
}

.slider-2 .item p img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contents {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 200px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
}

.contents .leftitem {
  width: 30%;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
}

.contents .leftitem h3 {
  font-size: 24px;
}

.contents .rightitem {
  width: 60%;
}

.contents .rightitem ul {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contents .rightitem ul li {
  width: 28%;
  height: 150px;
  border: solid 1px #4d4d4d;
  border-radius: 10px;
}

.contents .rightitem ul li a {
  font-size: 16px;
  text-decoration: none;
  color: #212A68;
  text-align: center;
  display: block;
  line-height: 150px;
}

.access {
  width: 100%;
  background-image: url(../images/accessback.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 10% 0;
  display: flex;
  justify-content: space-between;
}

.access .leftitem {
  width: 50%;
  height: auto;
  text-align: center;
}

.access .leftitem iframe {
  width: 70%;
  height: 100%;
}

.access .rightitem {
  width: 50%;
  height: auto;
  background-color: #fff;
  padding: 5%;
  border-radius: 100px 0 0 0;
  box-sizing: border-box;
  position: relative;
}

.access .commute {
  width: 200px;
  height: 60px;
  position: absolute;
  top: 0;
  right: 0;
  margin: 10% 20% 0 0;
  background-color: #5890FF;
  border-radius: 10px;
  text-align: center;
}

.access .commute a {
  display: block;
  line-height: 60px;
  color: #fff;
  text-decoration: none;
}

.access .rightitem h3 {
  font-size: 24px;
  margin-bottom: 30px;
}

.access .rightitem p {
  margin-bottom: 10px;
}

.footer {
  height: auto;
  text-align: center;
  background-color: #77A5FF;
  color: #fff;
  padding: 60px 0;
}

footer h4 {
  font-size: 24px;
  margin-bottom: 20px;
}

footer address {
  font-size: 18px;
  margin-bottom: 30px;
}

footer p {
  font-size: 25px;
  margin-bottom: 30px;
}

footer a {
  text-decoration: none;
  color: #ffffff;
}



/* --------------------tablet------------------- */

@media screen and (max-width: 1280px) {

  .tab-only {
    display: inline-block;
    width: 100%;
  }

  .top {
    width: 100%;
    height: auto;
    background-size: contain;
  }

  .navi ul {
    width: 100%;
    justify-content: space-around;
  }

  .navi ul li {
    width: 23%;
    max-width: 200px;
    text-align: center;
    margin: 0 20px;
    border-radius: 10px;
  }

  .quest {
    margin-bottom: 120px;
  }

  .quest .rightitem h3 {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 30px;
  }

  .quest .rightitem p {
    font-size: 14px;
    line-height: 24px;
  }

  .slide2 {
    margin-bottom: 120px;
  }

  .contents {
    flex-wrap: wrap;
    margin-bottom: 120px;
  }

  .contents {
    width: 100%;
  }

  .contents .leftitem {
    width: 100%;
    margin-bottom: 50px;
  }

  .contents .rightitem {
    width: 100%;
  }

  .contents .rightitem ul {
    justify-content: center;
    gap: 30px;
  }

  .contents .rightitem ul li {
    height: 120px;
  }

  .contents .rightitem ul li a {
    line-height: 120px;
  }

  .access .commute {
    position: relative;
    margin: 20px 0 0 0;
  }

}

/* --------------------smartphone------------------- */

@media screen and (max-width: 700px) {

  .navi ul {
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    margin-bottom: 20px;
    padding: 20px 10px;
    gap: 15px;
  }

  .navi ul li {
    width: 44%;
    margin: 0;
  }

  .navi ul li a {
    font-size: 14px;
  }

  .quest {
    flex-wrap: wrap;
    margin-bottom: 50px;
  }

  .quest .leftitem {
    width: 100%;
    margin-bottom: 40px;
  }

  .quest .rightitem {
    width: 100%;
  }

  .quest .rightitem h3 {
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 30px;
  }

  .slide2 {
    margin-bottom: 70px;
  }

  .contents .rightitem ul li {
    width: 35%;
    height: 100px;
  }

  .contents .rightitem ul li a {
    line-height: 100px;
    font-size: 14px;
  }

  .access {
    flex-wrap: wrap;
  }

  .access .leftitem {
    width: 100%;
    height: 400px;
    margin-bottom: 50px;
  }

  .access .leftitem iframe {
    width: 80%;
  }

  .access .rightitem {
    margin: 0 0 0 auto;
    width: 90%;
    padding: 10%;
  }

  .access .rightitem p {
    font-size: 14px;
  }

}