/* === 共通スタイル === */
.contact-container {
    background-color: #e5f5ff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    width: 800px;
    margin: 50px auto;
}

.contact-title {
    text-align: center;
    font-size: 45px;
    margin-top: 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
}

.contact-form label {
    font-size: 20px;
    margin-top: 50px;
    display: block;
    color: #333;
}

.contact-form input {
    width: 400px;
    height: 40px;
    font-size: 20px;
    border: 2px solid #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
    margin-top: 5px;
}

.contact-form textarea {
    width: 500px;
    height: 200px;
    font-size: 20px;
    border: 2px solid #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
    margin-top: 5px;
    resize: none;
}

.contact-form button {
    color: white;
    font-size: 20px;
    width: 200px;
    height: 40px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background-color: #007bff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
    margin: 50px 0;
}

.contact-form button:hover {
    background-color: #005bff;
}

.contact-form .g-recaptcha {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.thanks-container {
    margin-top: 100px;
    text-align: center;
}

.thanks-title {
    font-size: 35px;
}

.thanks-text {
    font-size: 24px;
    margin-top: 15px;
}

.thanks-button button {
    color: #fff;
    font-size: 20px;
    width: 200px;
    height: 50px;
    cursor: pointer;
    background-color: #007bff;
    border: none;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 50px;
}

.thanks-button button:hover {
    background-color: #005bff;
    transform: scale(1.01);
}

/* === メディアクエリ === */
/* タブレット（768px〜1024px） */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .contact-container {
        width: 600px;
    }

    .contact-title {
        font-size: 40px;
        margin-top: 20px;
    }

    .contact-form label {
        font-size: 18px;
        margin-top: 30px;
    }

    .contact-form button {
        margin-bottom: 40px;
    }

    .contact-form .g-recaptcha {
        transform: scale(0.9);
        margin-top: 30px;
    }

    .thanks-container {
        margin-top: 80px;
    }

    .thanks-title {
        font-size: 25px;
    }

    .thanks-text {
        font-size: 20px;
    }

    .thanks-button button {
        font-size: 17px;
        width: 165px;
        height: 45px;
        border-radius: 17px;
        margin-top: 25px;
    }
}
/* スマホ（480px〜767px） */
@media screen and (min-width: 480px) and (max-width: 767px) {
    .contact-container {
        width: 400px;
        margin: 40px auto;
    }

    .contact-title {
        font-size: 28px;
        margin-top: 12px;
    }

    .contact-form label {
        font-size: 16px;
        margin-top: 20px;
    }

    .contact-form input {
        width: 310px;
        height: 35px;
        font-size: 15px;
        margin-top: 2px;
    }
    
    .contact-form textarea {
        width: 350px;
        height: 140px;
        font-size: 15px;
        margin-top: 2px;
    }

    .contact-form button {
        font-size: 16px;
        width: 150px;
        height: 30px;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .contact-form .g-recaptcha {
        transform: scale(0.8);
        margin-top: 20px;
    }

    .thanks-container {
        margin-top: 60px;
    }

    .thanks-title {
        font-size: 25px;
    }

    .thanks-text {
        font-size: 20px;
        white-space: pre-line;
    }

    .thanks-button button {
        font-size: 17px;
        width: 165px;
        height: 45px;
        border-radius: 17px;
        margin-top: 25px;
    }
}
/* スマホ（〜479px） */
@media screen and (max-width: 479px) {
    .contact-container {
        width: 250px;
        margin: 30px auto;
    }

    .contact-title {
        font-size: 20px;
        margin-top: 12px;
    }

    .contact-form label {
        font-size: 12px;
        margin-top: 16px;
    }

    .contact-form input {
        width: 210px;
        height: 20px;
        font-size: 10px;
        margin-top: 2px;
    }
    
    .contact-form textarea {
        width: 250px;
        height: 100px;
        font-size: 10px;
        margin-top: 2px;
    }

    .contact-form button {
        font-size: 12px;
        width: 100px;
        height: 25px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .contact-form .g-recaptcha {
        transform: scale(0.6);
        margin-top: 15px;
    }

    .thanks-container {
        margin-top: 50px;
    }

    .thanks-title {
        font-size: 20px;
        white-space: pre-line;
    }
    
    .thanks-text {
        font-size: 15px;
        white-space: pre-line;
    }

    .thanks-button button {
        font-size: 13px;
        width: 125px;
        height: 35px;
        border-radius: 14px;
        margin-top: 20px;
    }
}