.container {
    max-width: 90%;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
}

.header-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.8;
}

.form-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e1e5e9;
}

.form-group:last-of-type {
    border-bottom: none;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.form-label > p {
    display: flex;
    align-items: center;
    justify-content: left;
}

.required-badge {
    background-color: #4a90e2;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.optional-badge {
    background-color: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.address-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.address-prefix {
    font-size: 14px;
    padding: 12px 8px;
    white-space: nowrap;
}

.address-input {
    flex: 1;
    margin-bottom: 1em;
}

.checkbox-group {
    margin: 25px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid #e1e5e9;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.checkbox-text {
    font-size: 13px;
    line-height: 1.5;
}

.submit-button {
    background-color: #30376c;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #357abd;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 0px;
        max-width: 100%;
    }

    .address-group {
        flex-direction: column;
        gap: 5px;
    }

    .address-prefix {
        padding: 0 0 5px 0;
    }
}

/* メインコンテンツ */

main {
    width: 1100px;
    margin: 3em auto;
    padding: 30px;
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    color: #333;
    padding: 20px;
    max-width: 95%;
    box-sizing: border-box;
}

/* モバイル版レスポンシブ（480px以下） */
@media (max-width: 480px) {
    .header-text {
        font-size: 13px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input,
    .form-textarea {
        font-size: 13px;
        padding: 10px;
    }

    .submit-button {
        width: 100%;
        padding: 15px 20px;
    }
}
