@charset "UTF-8";

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f2f4fa;
    color: #333333;
    line-height: 1.6;
    padding: 0px 0px 40px 0px;
}

.kv-box{
    width:100%;
    max-width:1000px;
    margin:0 auto 20px auto;
}
.kv-box img{width:100%;height:auto;display:block;}

/* ==========================================================================
   Form Container
   ========================================================================== */
.form-box {
    width:95%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: transparent;
}

.form-box h2 {
    color: #1e2a4a;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.form-box > p {
    text-align: center;
    font-size: 14px;
    color: #444444;
    margin-bottom: 35px;
}
.form-box > .user-code{letter-spacing:0.1em;}
/* ==========================================================================
   Form Table Layout
   ========================================================================== */
#event-form table {
    width: 100%;
    border-collapse: collapse;
}

#event-form tr {
    border-bottom: none;
}

#event-form th,
#event-form td {
    padding: 12px 10px;
    vertical-align: middle;
}

#event-form th {
    width: 260px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    line-height: 1.5;
}

#event-form th small {
    font-size: 12px;
    font-weight: normal;
    color: #666666;
    display: inline-block;
}

#event-form td {
    width: auto;
}

/* Badges */
.badge-required {
    display: inline-block;
    background-color: #e63946;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.badge-optional {
    display: inline-block;
    background-color: #8d99ae;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1;
}

/* ==========================================================================
   Form Inputs & Controls
   ========================================================================== */
input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 320px;
    max-width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #444444;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 14px;
    color: #333333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"].long {
    width: 100%;
    max-width: 640px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    border-color: #1e2a4a;
    box-shadow: 0 0 0 2px rgba(30, 42, 74, 0.15);
}

/* Checkbox & Radio Option Groups */
.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
}

.option-item {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #444444;
    background-color: #ffffff;
    margin-right: 6px;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.option-item input[type="radio"] {
    border-radius: 50%;
}

.option-item input[type="checkbox"] {
    border-radius: 3px;
}

.option-item input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #1e2a4a;
}

.option-item input[type="radio"]:checked::before {
    transform: scale(1);
}

.option-item input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #1e2a4a;
}

.option-item input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.option-item label {
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    user-select: none;
}

/* Disabled State for Consultation Details */
.consultation-details-row.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.consultation-details-row.disabled th,
.consultation-details-row.disabled label {
    color: #999999;
}

.option-item input:disabled {
    background-color: #e9ecef;
    border-color: #cccccc;
    cursor: not-allowed;
}

.option-item input:disabled + label {
    color: #999999;
    cursor: not-allowed;
}

input[type="text"]:disabled {
    background-color: #e9ecef;
    border-color: #cccccc;
    color: #999999;
    cursor: not-allowed;
}

.option-item-other {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 585px;
}

#consultation_details_other {
    margin-top: 0;
    margin-left: 4px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    height: 38px;
    padding: 6px 10px;
    font-size: 13px;
}

/* ==========================================================================
   Privacy Policy Section
   ========================================================================== */
.policy {
    margin-top: 30px;
}

.policy-title {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
    text-align: center;
}

.policy-box {
    background-color: #ffffff;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 16px;
    font-size: 12px;
    line-height: 1.7;
    color: #333333;
    max-height: 140px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* ==========================================================================
   Submission & Agreement Check
   ========================================================================== */
.submit-check {
    margin-top: 25px;
    text-align: center;
}

.submit-check > div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.submit-check input[type="checkbox"]#check {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #444444;
    border-radius: 3px;
    background-color: #ffffff;
    cursor: pointer;
    display: grid;
    place-content: center;
}

.submit-check input[type="checkbox"]#check::before {
    content: "";
    width: 10px;
    height: 10px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #1e2a4a;
}

.submit-check input[type="checkbox"]#check:checked::before {
    transform: scale(1);
}

.submit-check label[for="check"] {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    cursor: pointer;
}

.recaptcha, .check {
    font-size: 12px;
    color: #666666;
    margin-bottom: 25px;
}

#event-form td .check {
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.6;
}

.recaptcha a, .check a {
    color: #1e2a4a;
    text-decoration: underline;
}

.notice {
    font-size: 14px;
    color: #333333;
    margin-bottom: 25px;
    text-align: center;
}

/* Submit Button */
#submit {
    display: inline-block;
    width: 280px;
    height: 48px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background-color: #7b8089;
    cursor: not-allowed;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#submit:not(:disabled) {
    background-color: #2E2C80;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(46, 44, 128, 0.3);
}

#submit:not(:disabled):hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(46, 44, 128, 0.4);
}

/* Custom Error Message */
.custom-error-msg {
    color: #e60000;
    font-size: 13px;
    margin-top: 6px;
}

/* Error Page Box */
.error-message-box {
    background-color: #ffffff;
    border: 1px solid #e60000;
    border-radius: 6px;
    padding: 30px 20px;
    margin-top: 20px;
    text-align: center;
    color: #333333;
    line-height: 1.8;
}

.error-message-box p {
    margin: 0;
}

/* ==========================================================================
   Closed / Capacity Full Notice
   ========================================================================== */
.closed-box {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    max-width: 680px;
    margin: 30px auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.closed-box h3 {
    color: #e63946;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.closed-box p {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 16px;
}

.closed-box .closed-contact {
    font-size: 14px;
    color: #666666;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    margin-bottom: 0;
}

.closed-box .closed-contact a {
    color: #1e2a4a;
    font-weight: 700;
    text-decoration: underline;
}

/* ==========================================================================
   Floating Modal Window (会員番号確認用)
   ========================================================================== */
.modal-open-link {
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 16px;
    box-sizing: border-box;
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    padding: 0;
    box-sizing: border-box;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.is-active .modal-window {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, transform 0.2s;
    outline: none;
    z-index: 100;
    padding: 0;
}

.modal-close-btn:hover {
    background-color: #f1f5f9;
    transform: scale(1.05);
}

.modal-close-btn img {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.modal-body {
    text-align: center;
    padding: 44px 16px 20px;
    overflow-y: auto;
    max-height: 90vh;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.modal-note {
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    line-height: 1.6;
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 768px){
    .form-box h2 {
        font-size: 20px;
    }

    .form-box > p {
        font-size: 13px;
        margin-bottom: 25px;
    }

    #event-form table,
    #event-form tbody,
    #event-form tr,
    #event-form th,
    #event-form td {
        display: block;
        width: 100%;
    }

    #event-form tr {
        margin-bottom: 16px;
    }

    #event-form th {
        width: 100%;
        padding: 8px 0 4px;
    }

    #event-form td {
        width: 100%;
        padding: 4px 0 8px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="text"].long {
        width: 100%;
    }

    .option-item-other {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        align-items: center;
    }

    #consultation_details_other {
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .option-group {
        gap: 10px 16px;
    }

    #submit {
        width: 100%;
        max-width: 300px;
    }
    .form-box > .user-code{
        font-size:15px;
        letter-spacing: 0.1em;
    }
    .modal-note {
        font-size: 13px;
        margin-top: 12px;
        text-align: left;
    }
}
