@charset "utf-8";

main   {
    margin-top: 60px;
}


/* セクションタイトル */
.section_title   {
    margin: 120px 0 64px;
}

.section_title::before   {
    background-color: #FEF100;
    width: 400px;
    top: 56px;
    left: -30px;
}

.section_title .logo   {
    max-width: 48px;
}

.section_title .text   {
    font-size: 40px;
}



/* コンタクトインナー */
#contact-inner   {
    width: 100%;
    padding: 0 14%;
    margin: 160px 0 240px 0;
}



/* テキスト */
#contact-inner .text   {
    width: 100%;
    margin-bottom: 120px;
    font-size: 28px;
}

#contact-inner .text .text-top   {
    margin-bottom: 2%;
}

#contact-inner .text .text-top .br-sp   {
    display: none;
}

#contact-inner .text .text-bottom   {
    display: flex;
    align-items: center;
}

#contact-inner .text .text-bottom .sns   {
    display: flex;
    gap: 16px;
    margin-right: 8px;
}

#contact-inner .text .text-bottom .sns a   {
    display: block;
}

#contact-inner .text .text-bottom .sns a img   {
    width: 100%;
    max-width: 30px;
}



/* フォーム */

#contact-inner ::placeholder   {
    color: #bbb;
    opacity: 1;
    font-size: 16px;
}

#contact-inner form label   {
    display: block;
    margin-bottom: 24px;
    font-size: 24px;
    margin-left: 26px;
    position: relative;
}

#contact-inner form label::before   {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #FEF100;
    border-radius: 2px;
    top: 6px;
    left: -26px;
}

#contact-inner form input, form select, form textarea   {
    width: 100%;
    padding: 16px;
    margin-bottom: 40px;
    border: solid 2px #ddd;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

#contact-inner form input:focus, form select:focus, form textarea:focus   {
    border-color: #333;
    outline: none;
}

/* ご用件selectのカスタマイズ */
#contact-inner form select   {
    background-color: #f0f0f0;
    background-image: url("../img/top/contact_arrow.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    border: solid 2px #ddd;
}

#contact-inner form .consent   {
    width: 100%;
    margin-bottom: 160px;
    margin-top: 20px;
}

#contact-inner form .consent label   {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 24px;
    cursor: pointer;
}

#contact-inner form .consent label .text-top   {
    font-size: 12px;
    text-align: center;
    margin-bottom: 16px;
}

#contact-inner form .consent label .text-top span   {
    color: #ff0000;
}

#contact-inner form .consent label .check   {
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact-inner form .consent label::before   {
    content: none;
}

#contact-inner form .consent label input[type="checkbox"]   {
    appearance: none;
    -webkit-appearance: none;
    max-width: 40px;
    height: 40px;
    margin: 0 24px 0 0;
    border: solid 2px #333;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    background-color: #fff;
}

#contact-inner form .consent label input[type="checkbox"]:checked::before   {
    content: "✔";
    color: #333;
    font-size: 36px;
    position: absolute;
    top: -1px;
    left: 3px;
}

#contact-inner form .consent label .text-bottom   {
    font-size: 16px;
    text-align: center;
    line-height: 1.8em;
}

#contact-inner .submit-button   {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background-color: #333;
    color: #FEF100;
    text-align: center;
    border-radius: 20px;
    padding: 40px 64px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 24px;
}

#contact-inner .submit-button .plane   {
    width: 100%;
    max-width: 80px;
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
}

/* 揺れる */
#contact-inner .submit-button:hover .plane   {
    animation: shake 0.5s infinite;
}

@keyframes shake   {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* 飛んでいくアニメーション */
#contact-inner .submit-button.fly .plane   {
    animation: flyAway 1.2s ease-in-out forwards;
}

@keyframes flyAway   {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(300px, -150px);
        opacity: 0;
    }
}

#contact-inner .submit-button p   {
    line-height: 1.2em;
}

#contact-inner .submit-button .en   {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.032em;
}






/* スマートフォン */
@media screen and (max-width: 768px)   {


    /* セクションタイトル */
    .section_title   {
        margin: 60px 0 32px;
    }

    .section_title::before   {
        width: 220px;
        top: 32px;
    }

    .section_title .logo   {
        max-width: 28px;
        margin-right: 14px;
    }

    .section_title .text   {
        font-size: 24px;
    }



    /* テキスト */
    #contact-inner   {
        margin: 80px 0 120px;
    }


    #contact-inner .text   {
        padding: 0 14%;
        font-size: 16px;
        margin-bottom: 80px;
    }

    #contact-inner .text .text-top   {
        text-align: center;
        line-height: 1.6em;
    }

    #contact-inner .text .text-top .br-sp   {
        display: block;
    }

    #contact-inner .text .text-bottom .sns   {
        gap: 8px;
        margin-right: 4px;
    }

    #contact-inner .text .text-bottom .sns a img   {
        max-width: 16px;
    }




    /* フォーム */
    #contact-inner   {
        width: 100%;
        padding: 0;
    }

    #contact-inner ::placeholder   {
        font-size: 14px;
    }

    #contact-inner form label   {
        font-size: 20px;
    }

    #contact-inner form .consent   {
        margin-bottom: 80px;
    }

    #contact-inner form .consent label .text-top   {
        font-size: 11px;
    }

    #contact-inner form .consent label input[type="checkbox"]    {
        max-width: 30px;
        height: 30px;
        margin-right: 20px;
    }

    #contact-inner form .consent label input[type="checkbox"]:checked::before   {
        font-size: 30px;
        top: 0px;
        left: 3px;
    }

    #contact-inner form .consent label .text-bottom    {
        font-size: 12px;
    }

    #contact-inner .submit-button   {
        max-width: 220px;
        padding: 28px 16px;
        flex-direction: column;
        font-size: 20px;
        gap: 24px;
    }

    #contact-inner .submit-button .en   {
        font-size: 14px;
    }
}