.hp {
    position: relative;
    z-index: -2;
}

main {
    background: url(../../img/hp/about-bg.jpg) center center/contain repeat-y;
    position: relative;
    z-index: -1;
}

.hp-fv {
    aspect-ratio: 1920 / 432;
    position: relative;
}

.hp-fv-bg {
    position: absolute;
    inset: 0;
    /* top: 0; right: 0; bottom: 0; left: 0 と同義 */
    background: url(../../img/hp/contact-fv.webp) center center / cover no-repeat;
    clip-path: inset(0 100% 0 0);
    /* 初期状態：右100%カット */
    animation: revealFromLeft 1s ease-out forwards;
}

@keyframes revealFromLeft {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

.hp-fv-title {
    position: absolute;
    top: 40%;
    left: 7%;
    color: #f27200;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
    .hp-fv {
        aspect-ratio: 750 / 334;
    }

    .hp-fv-bg {
        background: url(../../img/hp/sp/about-fv.png) center center / cover no-repeat;
    }

    .hp-fv-title {
        bottom: 30%;
        font-size: 26px;
    }
}




.hp-contact-list-container {
    padding: 5% 2.865%;
    background-color: #fffcf9;
    max-width: 976px;
    width: 90%;
    margin: 0 auto 5.25%;
}

.contactTxt1 {
    text-align: center;
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.05em;
    margin-bottom: 3.334%;
}

.contactimg {
    max-width: 450px;
    margin: 80px auto 30px;
    width: 80%;
}

.contactTable {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-family: "Segoe UI", sans-serif;
}

.contactTable th,
.contactTable td {
    padding: 16px 12px;
    vertical-align: top;
    font-size: 14px;
    display: block;
}

.contactTable th {
    font-weight: bold;
    padding: 16px 12px 0;
}

.contactTable .required {
    background: #e60033;
    color: white;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    display: inline-block;
}

.contactTable input[type="text"],
.contactTable input[type="email"],
.contactTable input[type="tel"],
.contactTable textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.contactTable input:focus,
.contactTable textarea:focus {
    border-color: #e60033;
    outline: none;
}

.contactTable .error {
    border-color: #e60033 !important;
}

.contactBtn {
    text-align: center;
}

.contactBtn input[type="submit"] {
    background: #fcc10a;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 150px;
}

.contactBtn input[type="submit"]:hover {
    background: #f19001;
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 1em;
    display: block;
    font-weight: bold;
    margin-top: 5px;
}

.wpcf7-spinner {
    display: none !important;
}

.contacta {
    margin: 10px auto;
    text-align: center;
    display: block;
    font-size: 9pt;
    line-height: 1.5;
}

.contacta a {
    text-decoration: underline;
}

.tel-link {
    pointer-events: none;
    cursor: default;
}

.hp-contact-thanks {
    padding: 5% 2.865%;
    max-width: 976px;
    width: 90%;
    margin: 0 auto 5.25%;
    text-align: center;
}

.hp-contact-thanks .title {
    font-size: 24px;
    margin: 0 0 60px;
    line-height: 1.6;
}

.hp-contact-thanks .text {
    line-height: 2;
}

.hp-contact-thanks .text p {
    font-size: 14px;
}

.hp-contact-thanks .text a {
    display: block;
}

.hp-contact-thanks .text a.tel-link {
    font-size: 24px;
    color: #f27200;
    margin: 30px 0 5px;
    line-height: 1;
    letter-spacing: 1px;
}

.hp-contact-thanks .text a.tel-link span {
    font-size: 18px;
    margin-right: 2px;
}

.hp-contact-thanks .text a.top-link {
    display: inline-block;
    color: #f27200;
    margin: 40px 0 0;
    text-decoration: underline;
}

.hp-contact-thanks .text a.top-link:hover {
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .hp-contact-container {
        padding-top: 24%;
    }

    .hp-contact-title {
        max-width: initial;
        font-size: 22px;
        margin: 0 0 13.1% 12%;
    }

    .hp .hp-contact-title .sp {
        display: none !important;
    }

    .hp-contact-title .small {
        font-size: 12px;
    }

    .hp-contact-title::before,
    .hp-contact-title::after {
        content: "";
        position: absolute;
        width: 75px;
        height: 24px;
    }

    .hp-contact-title::before {
        top: -18%;
        left: -10%;
    }

    .hp-contact-title::after {
        bottom: -30%;
        right: -12%;
    }

    .tel-link {
        pointer-events: auto;
        cursor: pointer;
    }
}

@media screen and (max-width: 480px) {
    .contactTxt1 {
        text-align: left;
    }

    .hp-contact-thanks {
        padding: 5% 2.865% 15%;
    }

    .hp-contact-thanks .title {
        font-size: 20px;
        margin: 0 0 40px;
    }

    .hp-contact-thanks .text a.tel-link {
        font-size: 20px;
    }

    .hp-contact-thanks .text a.tel-link span {
        font-size: 16px;
    }

    .hp-contact-thanks .text a.top-link {
        margin: 30px 0 0;
        text-decoration: underline;
    }
}
