@charset "UTF-8";

/* -------共通部分------- */
body {
    background-color: #f7f2ec;
    font-family: 'Zen Maru Gothic', serif;
    color: #595757;
    text-align: center;
}


/* ――――――――――――各設定―――――――――――― */

/*―――――――――――――― ヘッダー―――――――――――――――――― */
header img {
    width: 100%;
}

.nikken-logo {
    position: absolute;
    top: 0;
    width: 20%;
}

/* ―――――――導入0―――――――――*/

h1 {
    font-size: 1.65rem;
    font-weight: bold;
}

.sub-title {
    font-size: 1.25rem;
    line-height: 2rem;
}

.btn {
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 350px;
    margin-top: 30px;
    padding: 0.75rem;
    font-size: 1.65rem;
    color: #fff;
    background: #FF8F86;
    border-radius: 50px;
    transition: all .35s;
}

.btn:hover {
    background-color: #eba384;
    color: #363636;
}

/* ――――――――――セクション1――――――――――――― */
/* .about {
    width: 100%;
} */

h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 80px 0 20px 0;
    background-image: linear-gradient(-45deg, rgba(255, 230, 200, .4) 25%, transparent 25%, transparent 50%, rgba(255, 230, 200, .4) 50%, rgba(255, 230, 200, .4) 75%, transparent 75%, transparent 100%);
    /*見出しの色*/
    background-size: 20px 20px;
    /*線の太さ*/
    border-left: 2px dotted rgba(0, 0, 0, .1);
    border-right: 2px dotted rgba(0, 0, 0, .1);
    box-shadow: 0 0 5px rgba(0, 0, 0, .2);
    /*見出しの影*/
    padding: 1.875rem;
    /*文字まわりの余白*/
    color: #454545;
    /*文字色*/
    transform: rotate(0deg);
    /*見出しの角度*/
    line-height: 2rem;
}

.worry {
    width: 100%;
    margin: 0 auto;
}

.worry img {
    width: 80%;
}

.answer {
    width: 100%;
    font-weight: bold;
    line-height: 2.3rem;
    color: rgb(230, 94, 94);
    margin: 80px 0;
    position: relative;
    padding: 16px;
    /* word-break: keep-all; overflow-wrap:anywhere */
}

.answer p {
    font-size: 1.875rem;
    line-height: 2.3rem;
}


.substance {
    background-color: #fff;
    /* margin: 0 85px; */

    margin: 20px 150px;
    padding: 30px;
    border-radius: 10px;
}

h3 {
    font-size: 1.25rem;
    padding-bottom: 0.3rem;
    font-weight: bold;
}

p {
    font-size: 1.125rem;
    line-height: 1.5rem;
    /* word-break: keep-all;
    overflow-wrap: anywhere */
}

.red {
    color: rgb(230, 94, 94);
}

/* ――――――――――セクション2――――――――――――― */
.about2-detail {
    width: 100%;
    /* display: inline-block; */
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 0 0 10px 0;
}

.column {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 3% 3%;
}

.column img {
    width: 100%;
    /* margin: 0 auto; */
}

.about2-img {
    width: 100%;
    margin: 25px auto;
}

.flexbox {
    display: flex;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}

/* ――――――――――セクション3――――――――――――― */
.title-top {
    font-size: 1rem;
}

.learning {
    width: 100%;
    margin: 3% 0;
}


.learning img {
    width: 70%;
}

.column2 {
    width: 100%;
    margin: 3% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.column2 img {
    width: 70%;
}

/* ――――――――――セクション4――――――――――――― */
.flexbox3 {
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    margin: 10px 150px;
}

.column3 {
    display: flex;
    flex-direction: column;
    margin: 50px 0;
}

.timeschedule img {
    width: 100%;
    margin: 0 auto;
}

.column3 img {
    width: 100%;
    margin: 0 auto;
}

/* ――――――――――セクション5――――――――――――― */
.flexbox4 {
    display: flex;
    justify-content: center;
    width: 100%;

}

.flexbox4 img {
    width: 25%;
    margin: 0.3%;
}


/* ――――――――――セクション6――――――――――――― */
.flexbox5 {
    display: flex;
    justify-content: center;
    place-items: center;
    background-image: url(../images/backgroundimg.jpg);
    width: 100%;
    margin: 30px 0;
    height: 150px;
}

.btn2 {
    display: inline-block;
    text-align: center;
    width: 100%;
    max-width: 350px;
    margin: 0 20px;
    padding: 0.75rem;
    font-size: 1.65rem;
    color: #fff;
    background: #FF8F86;
    border-radius: 50px;
    transition: all .35s;
}

.btn2:hover {
    background-color: #eba384;
    color: #363636;
}

/* ――――――――――セクション8――――――――――――― */
.application-period {
    width: 100%;
    margin-top: 50px;
    padding: 30px 0;
    background-color: #ffc9d2;
}

.flexbox6 {
    display: flex;
    justify-content: center;
    place-items: center;
    margin: 30px 0;
}

.application-period h1 {
    color: #ffffff;
    text-shadow: 1px 2px 3px #808080;
}

.tel {
    display: flex;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: bold;
    margin-top: 15px;
    color: #ffffff;
    text-shadow: 1px 2px 3px #808080;
}

.tel img {
    padding-right: 10px;
}

/* ――――――――――セクション9――――――――――――― */

h4 {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.3rem;
    margin-right: 30px;
}

.adress {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flexbox7 {
    display: flex;
    justify-content: center;
    background-color: #fdc9d1;
    margin-top: 30px;

}

.maps iframe {
    margin: 0 auto;
}

/* ――――――――――footer――――――――――――― */
.footer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-color: #d6d1cc;
    padding-top: 10px;

}

.flexbox8 {
    margin-left: 10px;
}




/* ------------------------------アニメーション------------------------- */

/* 左から右に文章 */
.slide-in {
    overflow: hidden;
    display: inline-block;
}

.slide-in_inner {
    display: inline-block;

}

/*左右のアニメーション*/
.leftAnime {
    opacity: 0;
    /*事前に透過0にして消しておく*/
}

.slideAnimeLeftRight {
    animation-name: slideTextX100;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes slideTextX100 {
    from {
        transform: translateX(-100%);
        /*要素を左の枠外に移動*/
        opacity: 0;
    }

    to {
        transform: translateX(0);
        /*要素を元の位置に移動*/
        opacity: 1;
    }
}

.slideAnimeRightLeft {
    animation-name: slideTextX-100;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
}


@keyframes slideTextX-100 {
    from {
        transform: translateX(100%);
        /*要素を右の枠外に移動*/
        opacity: 0;
    }

    to {
        transform: translateX(0);
        /*要素を元の位置に移動*/
        opacity: 1;
    }
}

/* <-------------------------fin----------------------> */
/*アコーディオン全体*/
.accordion-area {
    list-style: none;
    width: 96%;
    max-width: 1250px;
    margin: 0 auto;
}

.accordion-area li {
    margin: 10px 0;
}

.accordion-area section {
    border: 5px solid #ccc;
    border-radius: 20px;
}

/*アコーディオンタイトル*/
.title {
    position: relative;
    /*+マークの位置基準とするためrelative指定*/
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 3% 3% 3% 50px;
    transition: all .5s ease;
}

/*アイコンの＋と×*/
.title::before,
.title::after {
    position: absolute;
    content: '';
    width: 15px;
    height: 2px;
    background-color: #333;

}

.title::before {
    top: 48%;
    left: 15px;
    transform: rotate(0deg);

}

.title::after {
    top: 48%;
    left: 15px;
    transform: rotate(90deg);
}

/*　closeというクラスがついたら形状変化　*/

.title.close::before {
    transform: rotate(45deg);
}

.title.close::after {
    transform: rotate(-45deg);
}

/*アコーディオンで現れるエリア*/
.box {
    display: none;
    /*はじめは非表示*/
    background: #fff;
    border-radius: 20px;
    margin: 0 3% 3% 3%;
    padding: 3%;
    border: 5px solid #ccc;
}

/* <-------------------------fin----------------------> */

/* fadeUp */
/* 下から */
.fadeUp {
    animation-name: fadeUpAnime;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(150px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* スクロールをしたら出現する要素にはじめに透過0を指定　*/

.fadeUpTrigger {
    opacity: 0;
}

/* <-------------------------fin----------------------> */

/* TOPに戻る */
/*リンクの形状*/
#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d7abac;
    border-radius: 50px;
    width: 100px;
    height: 100px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: "Itim", cursive;
    transition: all 0.3s;
}

#page-top a:hover {
    background: #777;
}

/*リンクを右下に固定*/
#page-top {
    position: fixed;
    right: 0;
    bottom: 15px;
    z-index: 2;
    /* はじめは非表示 */
    opacity: 0;
    transform: translateX(100px);

}




/*　左の動き　*/

#page-top.LeftMove {
    animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*　右の動き　*/

#page-top.RightMove {
    animation: RightAnime 0.5s forwards;
}

@keyframes RightAnime {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 1;
        transform: translateX(100px);
    }
}



/* ---------------ココからスマホ用---------------------*/
@media screen and (max-width: 480px) {

    .btn {
        margin: 20px 0;
    }

    .answer p {
        font-size: 1.25rem;
        line-height: 2.3rem;
    }

    /* 1 */
    .substance {
        align-items: center;
        background-color: #fff;
        margin: 20px;
        padding: 30px;
        border-radius: 10px;
    }

    h3 {
        font-size: 1.25rem;
        padding-bottom: 0.3rem;
        font-weight: bold;
    }

    p {
        font-size: 1.125rem;
        line-height: 1.5rem;
    }

    h2 {
        font-size: 1.0625rem;
    }

    /* 2 */
    .flexbox {
        flex-direction: column;
        width: 100%;
        margin: 0 auto;
        justify-content: center;
    }

    .about2-detail {
        width: 90%;
    }

    .column {
        margin: 0;
        align-items: center;
    }

    .column img {
        width: 90%;

    }

    .about2-img img {
        width: 90%;
        margin: 0;
    }


    /* 3 */
    .column2 {
        margin: 0;
    }

    .column2 img {
        margin-bottom: 3%;
    }

    /* 4 */
    .flexbox3 {
        background-color: #fff;
        border-radius: 10px;
        display: flex;
        justify-content: center;
        margin: 10px 20px;
    }

    .column3 {
        display: flex;
        flex-direction: column;
        margin: 50px 0;
        padding: 0 10px;
    }

    .column3 img {
        width: 95%;
        margin: 0 auto;
    }

    /* 5 */
    .flexbox4 img {
        width: 90%;
        margin: 10px 3px;
    }

    .flexbox4 {
        flex-direction: column;
        align-items: center;
    }

    /* 6 */
    .btn2 {
        font-size: 0.75rem;
        margin: 0 15px;
    }

    .flexbox5 {
        height: 80px;
    }




    /* 8 */
    .application-period {
        padding: 10px;
    }

    .application-period h1 {
        font-size: 1rem;
    }

    .tel img {
        width: 12%;
    }

    .flexbox7 {
        flex-direction: column;
    }

    .adress h4 {
        font-size: 1rem;
    }

    .maps iframe {
        width: 95%;
        padding: 0;
        margin: 0;
    }

    /* footer */
    .footer-img img {
        width: 100%;
        text-align: left;
    }

    .footer-img{
        text-align: left;
        width: 30%;
        margin-right: 20px;
    }

    .footer {
        display: flex;
        width: 100%;
    }

    .flexbox8 {
        margin-left: 0;
        text-align: left;
    }

    .flexbox8 p {
        font-size: 0.5rem;
        line-height: 0.8rem;
    }














}