@charset "utf-8";

.tobira {
  position: relative;
}

.tobira_copy {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fffef7;
  max-width: 800px;
  width: 100%;
  padding: 8px 0;
  z-index: 3;
}

.tobira_copy p {
  text-align: center;
  font-size: 4rem;
  color: #506dca;
}

.box {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.box1 {
  position: relative;
  background: #c3e6f8 url("../img/tobira/img01.png") right center / contain
    no-repeat;
}

.box2 {
  position: relative;
  background: #6a91d7 url("../img/tobira/img02.png") center / contain no-repeat;
}
.box3 {
  position: relative;
  background: #fff799 url("../img/tobira/img03.png") center / contain no-repeat;
}

.tobira-img {
  width: 100%;

  object-fit: contain;
  display: block;
  inset: 0;
}

.page_btn_box {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
}

.page_box {
  position: relative;
  margin: 0 auto;
}
.page_box::before {
  content: "";
  position: absolute;
  bottom: 2%;
  left: 50%;
  border-style: solid;
  border-width: 25px 11px 0 11px;
  border-color: #002861 transparent transparent transparent;
  translate: -50% 100%;
}
.page_icon {
  position: absolute;
  z-index: 1;
  width: 120.2%; /* 387 ÷ 322 × 100 */
  bottom: 0;
  right: 0;
}

.page_txt {
  background-color: #002861;
  text-align: center;
  padding: 15px 0;
  border-radius: 100px;
  width: 322px;
}

.page_txt p {
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1.2;
}

.page_txt p span {
  color: #ffe750;
}

.page_arrow {
  position: relative;
  display: flex;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  padding-top: 40px;
}

.page_arrow img {
  width: 150px;
}

.page_arrow:hover {
  opacity: 0.7;
}

@media (max-width: 1300px) {
  .page_txt {
    width: 250px;
  }

  .page_txt p {
    font-size: 2.2rem;
  }

  .page_icon {
    bottom: 20%;
    right: -10%;
  }
}

@media (max-width: 860px) {
  .tobira_copy {
    top: 22%;
    width: 80%;
  }

  .tobira_copy p {
    font-size: 3.2rem;
  }

  .page_txt {
    width: 200px;
  }

  .page_txt p {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  main {
    margin-top: 70px;
  }
  .outer {
    flex-direction: column;
    height: 100vh;
  }

  .tobira {
    background-color: #c3e6f8;
    padding-top: 1%;
  }

  .tobira_copy {
    width: 90%;
    line-height: 1.4;
    position: static;
    transform: none;
    top: auto;
    left: auto;
    margin: 2% auto;
  }

  .tobira_copy p {
    font-size: 2.8rem;
  }

  .box1 {
    flex: 3.3;
    min-height: 0;
    background: #c3e6f8 url("../img/tobira/img01_2.png") 10% bottom / contain
      no-repeat;
  }

  .box2 {
    flex: 3.3;
    min-height: 0;
    background: #6a91d7 url("../img/tobira/img02_2.png") 20% bottom / contain
      no-repeat;
  }
  .box3 {
    flex: 3.4;
    min-height: 0;
    background: #fff799 url("../img/tobira/img03_2.png") 20% bottom / contain
      no-repeat;
  }

  .page_btn_box {
    left: 70%;
  }

  /* .box1 .page_btn_box {
    top: 75%;
  } */

  .page_txt {
    width: 240px;
  }

  .page_txt p {
    font-size: 1.9rem;
  }

  .page_icon {
    width: 80%;
    bottom: 20%;
    right: 30%;
  }
}

@media (max-width: 480px) {
  .tobira_copy p {
    font-size: 2.4rem;
  }

  .page_btn_box {
    left: 50%;
  }

  .page_txt {
    width: 200px;
    padding: 10px 0;
  }

  .page_box::before {
    border-width: 15px 7px 0 7px;
  }
  .page_txt p {
    font-size: 1.8rem;
  }

  .page_arrow {
    padding-top: 25px;
  }

  .page_arrow img {
    width: 120px;
  }
}

/*******************************************************
ヘッダー
*******************************************************/

/*******************************************************
フッター
*******************************************************/
.tobira_footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background-color: transparent;
  color: #002861;
  padding: 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 5rem;
  padding: 0 0 20px 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-nav > a:not(:first-child)::before {
  content: "｜";
  position: relative;
  right: 3%;
}

@media (max-width: 960px) {
  .footer-inner {
    gap: 2rem;
  }
}

@media (max-width: 880px) {
  .footer-inner {
    flex-direction: column;
    gap: 0;
    padding: 0 0 10px 0;
  }
}

@media (max-width: 768px) {
  .tobira_footer {
    position: static;
    background-color: #fff799;
  }

  .footer-inner {
    align-items: center;
  }

  .footer-nav {
    padding: 0 0 5px;
    gap: 0;
  }
}

@media (max-width: 492px) {
  .footer-nav {
    gap: 0;
    padding: 15px 0 0;
  }
}
