@charset "utf-8";

/* ============
common
============== */
:root{
    --primary-darkBlue:#232469;
    --primary-yellow:#F7EE9A;
    --primary-lightBlue:#7AB1F4;
    --primary-red:#FE9383;
    --primary-green:#96E18F;
}

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

body{
    color: #FFF;
    background-color: var(--primary-darkBlue);
    font-family: "Chango", "Zen Maru Gothic", sans-serif , serif;
    font-weight: 400;
    font-style: normal;
    line-height: 2;
}

img{
    max-width: 100%;
    height: auto;
}

/* ローディング画面 */
#loading {
  width: 100vw;
  height: 100vh;
  transition: all 1s;
  background-color:var(--primary-darkBlue);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1%;
}

#loading p{
    color: #F7EE9A;
    font-size: 3.2rem;
}

#loading img{
    max-width: 100px;
    animation: poyoyon infinite 1.5s;
}

@keyframes poyoyon {
    0%   { transform: scale(1.0, 1.0) translate(0%, 0%); }
    10%  { transform: scale(1.1, 0.8) translate(0%, 10%); }
    35%  { transform: scale(0.8, 1.1) translate(0%, -10%); }
    60%  { transform: scale(1.1, 0.9) translate(0%, 5%); }
    80% { transform: scale(1.0, 1.0) translate(0%, 0%); }
  }

.loaded {
  opacity: 0;
  visibility: hidden;
}

.topic{
    color: #F7EE9A;
    font-family: Chango;
    font-size: 3.2rem;
    text-align: center;
    line-height: normal;
}

.topic span{
    display: block;
    color: #FFF;
    font-family: "Zen Maru Gothic";
    font-size: 1.3rem;
}

.btn{
    display: flex;
    color: var(--primary-darkBlue);
    justify-content: center;
    text-align: center;
    align-items: center;
    font-family: "Zen Maru Gothic";
    font-size: 1.4rem;
    font-weight: 500;
    width: 261px;
    padding: 20px 15px 17px;
    margin: 27px auto 0;
    border-radius: 33px;
    background: #FFF;
    position: relative;
    transition: 0.2s;
}

.btn:hover{
    transform: scale(1.05);
}

.pcBr{
    display: none;
}

.spBr{
    display: block;
}

/* zoomIn */
.zoomIn{
    transform: scale(0);
}

.zoomIn.animated{
    animation: zoomIn 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1);
}

@keyframes zoomIn {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }

    30%{
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

/* fadeIn */
.fadeIn{
    transform: translate(0 , 20px);
    opacity: 0;
    transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fadeIn.animated{
    transform: translate(0 , 0);
    opacity: 1;
}


/* ============
header
============== */
.header__topic{
    position: fixed;
    top: 29px;
    z-index: 99;
    left: 5%;
    width: 30%;
    max-width: 113px;
    transition: 0.2s;
}

.hamb {
    position: fixed;
    top: 26px;
    right: 6%;
    cursor: pointer;
    z-index: 300;
    width: 49px;
    height: 49px;
    padding: 15px;
    border-radius: 50px;
    background: #FFF;
    transition: 0.2s;
}

.hamb:hover{
    transform: scale(1.1);
}

.line {
    position: absolute;
    left: 12.5px;
    top: 13px;
    width: 24px;
    height: 5px;
    background-color: var(--primary-darkBlue);
    border-radius: 10px;
}

.line:nth-child(2)  {
    top: 22.5px;
}

.line:nth-child(3)  {
    top: 32px;
}

.nav{
    position: fixed;
    background: var(--primary-yellow);
    top: 0;
    width: 100%;
    height: 0%;
    visibility: hidden;
    overflow: hidden;
    z-index: 100;
}

.nav.open {
    visibility: visible;
    height: 100%;
}

.nav__item{
    color: var(--primary-darkBlue);
    text-align: center;
    font-family: Chango;
    font-size: 3.2rem;
    font-weight: 400;
    line-height: normal;
    margin-top: 2.5vh;
    transition: 0.2s;
}

.nav__item:hover{
    color: var(--primary-lightBlue);
}

.nav__item:first-of-type{
    margin-top: 8vh;
}

.nav__item--contact{
    position: absolute;
    left: 50%;
    top: 55vh;
    transform: translateX(-50%);
    background-color: var(--primary-lightBlue);
    width: 656px;
    height: 656px;
    border-radius: 656px;
}

.nav__item--contact:hover{
    top: 53vh;
}

.nav__item--contact p{
    color: #FFF;
    margin-top: 6vh;
}

.nav__item--contact p span{
    display: block;
    color: #FFF;
    text-align: center;
    font-family: "Zen Maru Gothic";
    font-size: 1.6rem;
    line-height: normal;
    margin-top: 19px;
}

.nav__icon{
    margin: 24px auto;
    display: flex;
    width: 154px;
    gap: 20px;
}

/* アニメーション */
.nav {
    transition:visibility 0.35s, height 0.35s;
  }

#hamb.active .line:nth-child(1) {
    transform: translateY(9.5px) translateX(0) rotate(45deg);
}
#hamb.active .line:nth-child(2) {
    opacity: 0;
    background: #FFF;
}
#hamb.active .line:nth-child(3) {
    transform: translateY(-9.5px) translateX(0) rotate(-45deg);
}
.animation {
  transition: all .3s;
}

/* common pc */
@media screen and (min-width:769px) {
    .pcBr{
        display: block;
    }

    .spBr{
        display: none;
    }

    .topic{
        font-size: 4rem;
    }

    .topic span{
        font-size: 1.5rem;
    }

    .btn{
        font-size: 1.6rem;
        padding: 25px 17px 23px 26px;
        width: 307px;
        padding: 20px 15px 17px;
        margin: 91px auto 0;
        border-radius: 47px;
    }

    .header__topic{
        top: 47px;
        left: 4%;
        width: 30%;
        max-width: 140px;
    }    

    .hamb{
        top: 47px;
        right: 4%;
        z-index: 300;
        width: 49px;
        height: 49px;
        padding: 15px;
        border-radius: 50px;
        background: #FFF;
    }

    .nav{
        width: 375px;
        right: 0;
    }
}/* pc 769px */

/* common タブレットのみ */
@media screen and (min-width:769px) and (max-width: 1280px) {
    .nav{
        width: 100%;
    }
}/* タブレットのみ * 767px-1280px/

/* ==========
main
============ */

/* ===========
footer
============ */
.imgBox3{
    margin: 0 auto;
    max-width: 375px;
    height: 153px;
    position: relative;
}

.imgBox3 img{
    animation: floating-y 1.8s ease-in-out infinite alternate-reverse;
}

@keyframes floating-y {
    0% {
      transform: translateY(-10%);
    }
    100% {
      transform: translateY(10%);
    }
  }

.imgBox3 img:nth-of-type(1){
    width: 86px;
    transform: rotate(-14deg);
    position: absolute;
    left: 0px;
    bottom: 0;
    z-index: 3;
}

.imgBox3 img:nth-of-type(2){
    width: 46px;
    transform: rotate(-10deg);
    position: absolute;
    left: 40px;
    top: 0;
}

.imgBox3 img:nth-of-type(3){
    width: 104px;
    transform: rotate(8deg);
    position: absolute;
    left: 90px;
    bottom: 20px;
}

.imgBox3 img:nth-of-type(4){
    width: 101px;
    position: absolute;
    left: 173px;
    bottom: 13px;
}

.imgBox3 img:nth-of-type(5){
    width: 106px;
    transform: rotate(10deg);
    position: absolute;
    right: 4px;
    bottom: 0;
}

.footer__container{
    background-image: url(../images/footer_bg.svg);
    background-repeat: no-repeat;
    background-position: center top;
    overflow: hidden;
    margin-top: -90px;
}

.footer__goToTop{
    display: flex;
    color: var(--primary-yellow);
    font-family: Chango;
    font-size: 2rem;
    line-height: normal;
    align-items: center;
    margin: 136px 28px 0 auto;
    justify-content: end;
}

.footer__goToTop img{
    transition: 0.2s;
}

.footer__goToTop img:hover{
    transform: scale(1.4);
}

.footer__goToTop img{
    width: 21px;
    height: 21px;
}

.footer__sns{
    display: flex;
    width: 205px;
    align-items: center;
    gap: 9px;
    margin: 38px auto 0;
}

.footer__snsIcon{
    transition: 0.2s;
}

.footer__snsIcon:hover{
    transform: scale(1.1);
}

.copy{
    font-size: 1rem;
    text-align: center;
    margin: 41px auto 60px;
}

/* .footer pc */
@media screen and (min-width:769px) {
    .imgBox3{
        max-width: 895px;
        height: 351px;
    }

    .imgBox3 img:nth-of-type(1){
        width: 172px;
        left: 0px;
        bottom: 0;
    }
    
    .imgBox3 img:nth-of-type(2){
        width: 92px;
        transform: rotate(-15deg);
        left:140px ;
        top: 10px;
    }
    
    .imgBox3 img:nth-of-type(3){
        width: 210px;
        left: 255px;
        bottom: 78px;
    }
    
    .imgBox3 img:nth-of-type(4){
        width: 203px;
        left: 420px;
        bottom: 60px;
    }
    
    .imgBox3 img:nth-of-type(5){
        width: 212px;
        right: 4px;
        bottom: 10px;
    }

    .footer__container{
        background-image: url(../images/footer_bg_pc.svg);
        margin-top: -180px;
    }

    .footer__goToTop{
        font-size: 2.4rem;
        margin: 203px 10% 0 auto;
        justify-content: end;
        gap: 5px;
    }
    
    .footer__goToTop img{
        width: 31px;
        height: 31px;
    }

    .footer__sns{
        width: 364px;
        margin: 20px auto 0;
        gap: 23px;
    }
    
    .copy{
        font-size: 1.2rem;
        margin: 61px auto 50px;
    }
    
    
}
