@charset "UTF-8";

/*====== header second ======*/

.header.second {
    position: static;
    background: #2b2b2b;
    padding: 25px 0;
}

.header.second .header-container {
    justify-content: right;
}

.header.second .nav-list {
    margin: 0;
}

.header.second .nav-item a {
    color: #fff;
}

/*====== contact hero ======*/

.contact-hero {
    background-image: url(../images/アセット\ 26@2x-100.jpg);
    padding: 35px 0 60px 0;
}

.contact-hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2b2b2b;
    margin: 0 0 0 310px;
}

.contact-title .star.left {
    top: 30%;
    animation: twist 5s ease-in-out infinite;
}

.contact-title h2 {
    font-family: "Raleway", sans-serif;
    font-size: clamp(50px, 10vw, 80px);
    font-weight: 900;
}

.contact-title p {
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 0 0 160px;
}

.hero-description {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    margin: 65px 0 0 0;
}

.circle-img {
    width: 100%;
    max-width: 280px;
    border-radius: 50%;
    margin: 0 0 0 50px;
}

.contact-form {
    background: #ededed;
    padding: 30px 0 80px 0;
}

.contact-form form {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 20px;

}

.contact-form label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.06em;
}

.contact-form .req {
    display: inline-block;
    font-size: 0.6rem;
    background: #a0a0a0;
    color: #fff;
    padding: 0 6px;
    margin: 0 0 0 10px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    grid-column: 2;
    width: 100%;
    max-width: 480px;
    padding: 10px;
    margin: 0 0 15px 0;
    border: none;
    background: #fff;
    box-sizing: border-box;
}

.contact-form textarea {
    padding: 40px 10px;
}

.checkbox-group {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 15px 10px;
    gap: 20px;
}

.checkbox-group label {
    font-size: 0.8rem;
    font-weight: 600;
}

.checkbox-group input {
    margin: 0 5px 0 0;
}

.checkbox-group input[type="checkbox"] {
    position: relative;
    appearance: none;
    width: 13px;
    height: 13px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
    transition: scale(1.15);
}

.checkbox-group input[type="checkbox"]::after {
    position: absolute;
    content: "✔";
    font-size: 14px;
    color: #2b2b2b;
    top: -3px;
    left: 1px;
    opacity: 0;
    transform: scale(0.5);
    transition: 0.25s ease
}

.checkbox-group input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

.form-submit {
    position: relative;
    overflow: hidden;
    grid-column: 1 / -1;
    margin: 0 0 0 100px;
    justify-self: center;
    padding: 15px 100px;
    border: none;
    border-radius: 999px;
    background: #2b2b2b;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 0;
}

.form-submit::before {
        position: absolute;
    content: "";
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.form-submit::after {
    position: absolute;
    content: "";
    left: 30%;
    right: 30%;
    bottom: 8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: center;
    pointer-events: none;
    z-index: 2;
}

.form-submit:hover {
    transform: translateY(-2px);
}

.form-submit:hover:before {
    opacity: 1;
}

.form-submit:hover::after {
    transform: scaleX(1);
}

@media (max-width: 1080px) {

    .contact-hero-container {
        margin: 0 0 0 50px;
    }

}

@media (max-width: 768px) {

    .contact-hero-container {
        display: grid;
        margin: 0 0 0 80px;
    }


    .contact-title .star.left {
        top: 25%;
    }

    .contact-title p {
        font-size: 0.7rem;
        margin: 0 0 0 100px;
    }

    .hero-description {
        font-size: 0.65rem;
        margin: 70px 70px 0 0;
    }

    .circle-img {
        width: 60%;
        margin: 50px 0 0 30px;
    }

    .contact-form form {
        width: 90%;
        display: block;
    }

    .contact-form label {
        margin: 15px 0;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        grid-column: auto;
        max-width: 100%;
        margin: 10px 0 20px 0;
    }

    .checkbox-group {
        grid-column: auto;
        display: block;
        margin: 10px 0 20px 0;
    }

    .checkbox-group label {
        font-size: 0.7rem;
    }

    .checkbox-group input {
        margin: 0 20px;
    }

    .checkbox-group input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }

    .checkbox-group input[type="checkbox"]::after {
        font-size: 13px;
    }

    .form-submit {
        margin: 20px 0 0 80px;
        padding: 15px 70px;
    }

}