﻿
.form-check-input-custom {
    display: none; /* 元のラジオボタンを隠す */
}


/* テキストエリアの修正 */
#message {
    min-height: 150px !important;
    font-size: 1rem !important;
    padding: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    resize: vertical !important;
}

.form-control {
    font-size: 1rem !important;
    padding: 0.75rem !important;
}

/* 送信ボタンの修正 */
#mailformpro .btn-gradient {
    background: linear-gradient(-45deg, #2c3e50, #465a70) !important;
    border: none !important;
    color: white !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    letter-spacing: normal !important;
    text-rendering: optimizeLegibility !important;
}

#mailformpro .btn-gradient:hover {
    background: linear-gradient(-45deg, #465a70, #2c3e50) !important;
    color: white !important;
    text-shadow: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

#mailformpro .btn-gradient:focus,
#mailformpro .btn-gradient:active {
    background: linear-gradient(-45deg, #2c3e50, #465a70) !important;
    color: white !important;
    text-shadow: none !important;
    outline: none !important;
    box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25) !important;
}

/* ボタン内のテキストを確実に単一表示 */
#mailformpro .btn-gradient::before,
#mailformpro .btn-gradient::after {
    display: none !important;
}

.form-control:focus {
    border-color: #2c3e50;
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

.required-badge {
    background-color: #dc3545;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 8px;
}


/* =================================================
お問い合わせ種別ボタンのスタイル
================================================== */
#mailformpro .form-check-label-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1rem;
    width: 100%;

    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- ボタンにマウスが乗った --- */
#mailformpro .form-check-label-custom:hover {
    border-color: #bdc3c7;
    background-color: #f8f9fa;
}

/* --- ボタンが選択された--- */
#mailformpro .form-check-label-custom:has(.form-check-input-custom:checked) {
    background: linear-gradient(-45deg, #2c3e50, #465a70) !important;
    color: white !important;
    border-color: #2c3e50 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px) !important;
}