
/*=======  contact ===============*/

.contact h1 {
    margin-top: 80px;
    color: #292929;
    font-size: 3.4rem;
    font-weight: 700;
    position: relative;
    text-align: center;
}

.contact h1::before {
    background: var(--main-color);
    content: "";
    position: absolute;
    display: block;
    margin: auto;
    left: 50%;
    transform: translateX(-120px);
    top: 0;
    bottom: 0;
    width: 30px;
    height: 1px;
}

.contact__en-title{
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--main-color);
    text-align: center;
    margin-top: 5px;
    margin-left: 95px;
}

.thanks{
    text-align: center;
    margin: 73px auto 107px;
    font-size: 1.8rem;
}

/*フッター
**/
.footer {
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 89%;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
}

.footer__container {
    max-width: 1170px;
    padding: 0 15px;
    margin: 0 auto;
    display: flex;
}

.footer__contact {
    position: relative;
    width: 45%;
    color: #fff;
}

.footer__en-title {
    margin-top: 51px;
    position: relative;
    letter-spacing: 0.1em;
}

.footer__en-title::after {
    content: "";
    display: block;
    position: absolute;
    background: #fff;
    width: 113px;
    height: 1px;
    bottom: 0;
    left: 0;
}

.footer__heading {
    font-size: 3.0rem;
    font-weight: 700;
    margin-top: 18px;
}

.footer__business-hours {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: .1em;
}

.footer__contact::after {
    content: "";
    display: inline-block;
    position: absolute;
    background: #fff;
    width: 1px;
    height: 123px;
    top: 37%;
    right: -5px;
}

.footer__address {
    max-width: 1170px;
    padding: 15px;
    margin: 0 auto;
}

.footer__address-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer__logo {
    display: flex;
    align-items: center;
}

.footer__address-inner picture {
    width: 51px;
}

.address {
    color: var(--main-color);
    margin-left: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.footer__small {
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: flex-end;
}

.footer__policy {
    margin-right: 20px;
    position: relative;
    color: var(--main-color);
}

.footer__policy:hover {
    opacity: 0.8;
    transition: .3s;
}


.footer__policy::after {
    content: "";
    display: inline-block;
    position: absolute;
    background: var(--main-color);
    width: 1px;
    height: 17px;
    top: 8px;
    right: -22px;
}

.footer__small small {
    margin-left: 20px;
}

@media screen and (max-width:768px) {
    .footer__container {
        flex-direction: column;
        justify-content: center;
    }

    .footer__contact {
        width: 80%;
    }

    .footer__contact::after {
        display: none;
    }

    .footer__address-inner {
        flex-direction: column;
        justify-content: space-between;
    }

    .footer__logo {
        flex-direction: column;
        margin: 40px auto 40px;
    }

    .address {
        font-size: 1.4rem;
        font-weight: 700;
    }

    .footer__small {
        flex-direction: column;
        margin: 0 auto;
    }

    .footer__policy{
        margin: 0 auto;
        text-align: center;
        width: 100%;
        position: static;
    }
    .footer__policy::after{
        display: none;
    }

    .footer__small small {
        margin: 0 auto;
    }
}

/*pageTopの描写**/
#page-top {
    position: fixed;
    right: 10px;
    bottom: 40px;
    z-index: 2;
    /*はじめは非表示*/
    opacity: 0;
    transform: translateY(100px);
}

#page-top.UpMove {
    animation: UpAnime 0.5s forwards;
}

/*　上に上がる動き　*/
@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

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


/*pageTopテキストの描写**/

.pageTOP {
    position: relative;
}

.pageTOP span {
    /*テキストの形状*/
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 5px;
    /*テキスト縦書き*/
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
}

/* 丸の描写 */
.pageTOP:before {
    z-index: 99;
    content: "";
    /*描画位置*/
    position: absolute;
    bottom: 68px;
    left: 34%;
    /*丸の形状*/
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--main-color);
    /*丸の動き1.6秒かけて透過し、永遠にループ*/
    animation:
        circlemove 1.6s ease-in-out infinite,
        cirlemovehide 1.6s ease-out infinite;
}

/*下から上に動く*/
@keyframes circlemove {
    0% {
        bottom: 68px;
    }

    100% {
        bottom: 148px;
    }
}

/*下から上にかけて丸が透過→不透明→透過する*/
@keyframes cirlemovehide {
    0% {
        opacity: 0
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

/* 線の描写 */
.pageTOP:after {
    z-index: 99;
    content: "";
    /*描画位置*/
    position: absolute;
    bottom: 73px;
    left: 46%;
    /*線の形状*/
    width: 1px;
    height: 80px;
    background: var(--main-color);
}

/*pageTOPの描写 ここまで*/
