@charset "utf-8";

.main-head {
    background: #d8eefd;
}

.main-head h1 {
    text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}


.box-egao .box-egao-01 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 130px;
    margin-bottom: 100px;
}

.box-egao .box-egao-01 .tit {
    width: 190px;
    margin: 0 auto 60px;
    position: relative;
}

.box-egao .box-egao-01 .txt {
    width: 400px;
    margin: 0 auto;
    position: relative;
}

.box-egao .box-egao-02 {
    height: 335px;
    width: 800px;
    margin: 0 auto 100px;
    position: relative;
}

.box-egao .box-egao-02 .img {
    position: absolute;
}

.box-egao .box-egao-02 .img-kids01,
.box-egao .box-egao-02 .img-kids02 {
    width: 290px;
    height: auto;
}

.box-egao .box-egao-02 .img-kids01 {
    left: calc(50% - 280px);
    top:0;
    z-index: 2;
}

.box-egao .box-egao-02 .img-kids02 {
    right: calc(50% - 280px);
    bottom: 0;
    z-index: 1;
}

.box-egao .box-egao-02 .img-flower01 {
    width: 95px;
    height: auto;
    left: -25px;
    top: 20px;
}

.box-egao .box-egao-02 .img-flower02 {
    width: 175px;
    height: auto;
    right: 0;
    top: -25px;
}

.box-egao .box-egao-02 .img-leaf {
    width: 55px;
    height: auto;
    left: 100px;
    top: 215px;
    z-index: 4;
}

.box-egao .box-egao-02 .img-bird {
    width: 90px;
    height: auto;
    right: 70px;
    top: 270px;
    z-index: 4;
}

.box-egao .box-egao-03 {
    width: 830px;
    margin: 0 auto 70px;
}

.box-egao .box-egao-03 .tit {
    margin-bottom: 40px;
    font-size: 27px;
    color: #F08300;
    text-align: center;
    letter-spacing: 2px;
}

.box-egao .box-egao-03 .txt {
    font-size: 21px;
    margin:0 0 15px 17px;
    position: relative;
    letter-spacing: 2px;
    line-height: 160%;
}

.box-egao .box-egao-03 .txt .txt-point {
    font-size: 18px;
    color: #F08300;
    position: relative;
    top:-2px;
}

.box-egao .box-egao-04 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 130px;
}

.box-egao .box-egao-04 .txt {
    display: block;
    width: 650px;
    height: 250px;
    background: url("../img/rinen/img_fukidasi.svg") no-repeat; 
    background-size: 650px auto;
    font-size: 24px;
    text-align: center;
    color: #F08300;
    line-height: 180%;
    padding-top: 57px;
    position: relative;
    left: 160px;
    z-index: 1;
    letter-spacing: 2px;
}

.box-egao .box-egao-04 .img {
    position: absolute;
    right: calc(50% - 480px);
    bottom: 0;
    z-index: 2;
}

.box-policy h2.tit,
.box-greeting h2.tit {
    width: 330px;
    height: inherit;
    margin:0 auto 50px;
}

.box-policy {
    text-align: center;
    background: #fcc80e;
    padding: 70px 0 90px;
}

.box-policy .txt {
    color: #8D683B;
    font-size: 22px;
    text-align: center;
    line-height: 180%;
}


.box-greeting {
    text-align: center;
    padding: 140px 0 200px;
}

.box-profile {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    gap:50px;
    justify-content: center;
    align-items: center;
}

.box-profile img {
    width: 219px;
    height: auto;
    overflow: hidden;
    border-radius: 20px;
}

.box-greeting .txt-name {
    font-size: 22px;
    text-align: left;
    margin-bottom: 40px;
}

.box-greeting .tit-s {
    font-size: 16px;
    text-align: left;
}

.box-greeting .tit-msg {
    font-size: 28px;
    text-align: left;
    margin-bottom: 40px;
}

.box-greeting .txt-msg {
    font-size: 16px;
    text-align: left;
    text-indent: 1em;
    line-height: 180%;
}

/******************************************************/

.img-kids01.obj.active { animation: fadeKids1 1.6s 0.3s ease-in-out forwards; }

@keyframes fadeKids1 {
    from { 
        opacity: 0;
        translate: -30% -30%;
        transform: rotate(-30deg);
    }
    to { 
        opacity: 1;
        translate: 0;
        transform: rotate(0);
    }
}

.img-kids02.obj.active { animation: fadeKids2 1.6s 1.6s ease-in-out forwards; }

@keyframes fadeKids2 {
    from { 
        opacity: 0;
        translate: 30% -30%;
        transform: rotate(-30deg);
    }
    to { 
        opacity: 1;
        translate: 0;
        transform: rotate(0);
    }
}

.img-flower01.obj.active { animation: fadeFlower1 1.6s 0.3s ease-in-out forwards; }

@keyframes fadeFlower1 {
    from { 
        opacity: 0;
        translate: 0 30%;
    }
    to { 
        opacity: 1;
        translate: 0;
    }
}

.img-flower02.obj.active { animation: fadeFlower2 1.6s 2.0s ease-in-out forwards; }

@keyframes fadeFlower2 {
    from { 
        opacity: 0;
        translate: -10% -20%;
        transform: rotate(-30deg) ;
    }
    to { 
        opacity: 1;
        translate: 0;
        transform: rotate(0) ;
    }
}

.img-leaf.obj.active { animation: fadeLeaf 1.6s 1.6s ease-in-out forwards; }

@keyframes fadeLeaf {
    from { 
        opacity: 0;
        translate: 0 5%;
    }
    to { 
        opacity: 1;
        translate: 0;
    }
}

.img-bird.obj.active { animation: fadeBird 1.6s 2.6s ease-in-out forwards; }

@keyframes fadeBird {
    from { 
        opacity: 0;
        translate: 0 5%;
    }
    to { 
        opacity: 1;
        translate: 0;
    }
}

.box-egao-04 .txt.obj.active { animation: fadeEgao04 1.6s 0.3s ease-in-out forwards; }

@keyframes fadeEgao04 {
    from { 
        opacity: 0;
        transform: scale(1.1);
    }
    to { 
        opacity: 1;
        transform: 0;
    }
}

/******************************************************/

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

    .main-head h1 {
        letter-spacing: 2vw;
    }
    
    .box-egao {
        padding: 20% 0 0;
    }
    
    .box-egao .box-egao-01,
    .box-egao .box-egao-02,
    .box-egao .box-egao-03,
    .box-egao .box-egao-04 {
        width: 100%;
    }
    
    .box-egao .box-egao-01 {
        margin-bottom: 22%;
        padding-top: 0;
    }
    
    .box-egao .box-egao-01 .tit {
        width: 35%;
        margin-bottom: 7%;
    }
    
    .box-egao .box-egao-01 .txt {
        width: 76%;
    }
    
    .box-egao .box-egao-02 {
        height: auto;
        aspect-ratio: 16 / 17;
        margin-bottom: 10%;
    }
    
    .box-egao .box-egao-02 .img-kids01,
    .box-egao .box-egao-02 .img-kids02 {
        width: 60%;
    }
    
    .box-egao .box-egao-02 .img-kids01 {
        left: 8%;
        z-index: 1;
    }
    
    .box-egao .box-egao-02 .img-kids02 {
        right: 8%;
        z-index: 2
    }
    
    .box-egao .box-egao-02 .img-flower01 {
        width: 18%;
        left: 9%;
        bottom: 14%;
        top: auto;
    }
    
    .box-egao .box-egao-02 .img-flower02 {
        width: 29%;
        right: 7%;
        top: -4%;
    }
    
    .box-egao .box-egao-02 .img-leaf {
        width: 9%;
        left: 76%;
        top: 26%;
    }

    .box-egao .box-egao-02 .img-bird {
        width: 19%;
        right: 51%;
        top: 85%;
    }
    
    .box-egao .box-egao-03 {
        margin-bottom: 8%;
    }
    
    .box-egao .box-egao-03 .tit {
        line-height: 180%;
        font-size: 5vw;
        margin-bottom: 5%;
        font-weight: 500;
        letter-spacing: 0.4vw;
    }
    
    .box-egao .box-egao-03 .txt {
        line-height: 180%;
        font-size: 3vw;
        margin-bottom: 2%;
        margin-left: auto;
        text-align: center;
        letter-spacing: 0.4vw;
    }
    
    .box-egao .box-egao-03 .txt .txt-point {
        font-size: 2.4vw;
        top: -0.2vw;
    }
    
    .box-egao .box-egao-04 {
        padding-bottom: 20%;
        overflow: hidden;
    }
    
    .box-egao .box-egao-04 .txt {
        width: 100%;
        height: auto;
        font-size: 4.2vw;
        padding:10% 0 15%;
        left: 0;
        background-size: 125% auto;
        background-position: -10vw 0 ;
        letter-spacing: 0.4vw;
    }
    
    .box-egao .box-egao-04 .img {
        right: calc(50% - 12vw);
        width: 24vw;
        bottom: -30vw;
    }
    
    .box-policy h2.tit, 
    .box-greeting h2.tit {
        width: 72%;
        margin-bottom: 8%;
    }
    
    .box-policy {
        padding: 10% 4%;
    }
    
    .box-policy .txt {
        font-size: 3.7vw;
    }
    
    .box-greeting {
        padding: 10% 5% 12%;
    }
    
    .box-profile {
        display: block;
        width: 100%;
    }
    
    .box-profile img {
        margin-bottom: 10%;
        width: 45%;
    }
    
    .box-greeting .txt-name {
        font-size: 5vw;
        text-align: center;
        margin-bottom: 7%;
    }
    
    .box-greeting .tit-s {
        font-size: 3.8vw;
    }
    
    .box-greeting .tit-msg {
        font-size: 6.4vw;
        text-align: center;
        line-height: 180%;
        margin-bottom: 7%;
    }
    
    .box-greeting .txt-msg {
        font-size: 4vw;
    }
}


