

#header-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#header-area img {
    width: 100%;
    height: auto;
    display: block;
}

.registration-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.registration-area > .title {
    font-size: 3.2em;
    font-weight: bold;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.registration-area > .title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #e74c3c;
}

.tab-container {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    gap: 15px;
    border-bottom: 3px solid #e9ecef;
    margin-bottom: 30px;
    padding-bottom: 0;
}

.tab-btn {
    padding: 18px 35px;
    font-size: 1.4em;
    font-weight: bold;
    color: #495057;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    color: #667eea;
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    border-bottom-color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
    z-index: 1;
}

.tab-content {
    min-height: 200px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contents {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
}

.section {
    margin-bottom: 50px;
}

.section:last-of-type {
    margin-bottom: 0;
}

.section > .title {
    font-size: 2.3em;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid #3498db;
    position: relative;
}

.title-sub {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #95a5a6;
}

.title-sub p {
    font-size: 1.4em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

.title-sub p:last-child {
    margin-bottom: 0;
}

.tables-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.tables-area table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tables-area table:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tables-area thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tables-area thead th {
    color: #fff;
    font-size: 1.7em;
    font-weight: bold;
    padding: 18px 15px;
    text-align: center;
    letter-spacing: 1px;
}

.tables-area tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.tables-area tbody tr:last-child {
    border-bottom: none;
}

.tables-area tbody tr:hover {
    background-color: #f8f9fa;
}

.tables-area tbody td {
    padding: 15px;
    font-size: 1.3em;
    color: #495057;
    line-height: 1.6;
}

.tables-area tbody td:first-child {
    font-weight: 600;
    color: #3498db;
    width: 35%;
    text-align: center;
    background: #f0f7ff;
    border-right: 2px solid #e9ecef;
}

.tables-area tbody td:last-child {
    color: #212121;
}

.tables-area tbody td .sub-title {
    display: block;
    font-size: 1.1em;
    color: #6c757d;
    margin-top: 8px;
    line-height: 1.6;
    font-weight: normal;
}

.contents > a,
.registration-btn {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    padding: 18px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.contents > a::before,
.registration-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contents > a:hover::before,
.registration-btn:hover::before {
    width: 300px;
    height: 300px;
}

.contents > a:hover,
.registration-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.contents > a:active,
.registration-btn:active {
    transform: translateY(-1px);
}


@media (max-width: 768px) {
    #header-area {
        padding: 0 15px;
    }

    .registration-area {
        margin: 20px auto;
        padding: 0 15px;
    }

    .registration-area > .title {
        font-size: 2.3em;
        margin-bottom: 30px;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        padding: 14px 20px;
        font-size: 1.2em;
        flex: 1;
        min-width: calc(33.333% - 6px);
    }

    .contents {
        padding: 25px 20px;
    }

    .section > .title {
        font-size: 1.9em;
    }

    .title-sub {
        padding: 15px 20px;
    }

    .title-sub p {
        font-size: 1.3em;
    }

    .tables-area {
        flex-direction: column;
        gap: 20px;
    }

    .tables-area table {
        min-width: 100%;
    }

    .contents > a {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .registration-area > .title {
        font-size: 1.9em;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 1.1em;
        min-width: calc(33.333% - 6px);
    }

    .section > .title {
        font-size: 1.7em;
    }

    .tables-area thead th {
        font-size: 1.4em;
        padding: 15px 10px;
    }

    .tables-area tbody td {
        padding: 12px 10px;
        font-size: 1.2em;
    }

    .tables-area tbody td .sub-title {
        font-size: 1em;
        margin-top: 6px;
    }

    .contents > a {
        font-size: 1.3em;
        padding: 15px 25px;
    }
}

/* 참가신청 레이어 팝업 */
.registration-layer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.layer-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.registration-layer-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.layer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
}

.layer-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
}

.layer-close {
    background: none;
    border: none;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.layer-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.registration-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1em;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select {
    background: #fff;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-label span {
    font-size: 1.1em;
    color: #495057;
}

.radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.radio-label .time-count {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: normal;
    margin-left: 5px;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f7ff;
}

.radio-label.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.radio-label.disabled:hover {
    border-color: #d0d0d0;
    background: #f5f5f5;
}

.radio-label.disabled input[type="radio"] {
    cursor: not-allowed;
}

.radio-label.disabled span {
    color: #999;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-submit,
.btn-cancel {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    flex: 1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-cancel {
    background: #6c757d;
    color: #fff;
    min-width: 100px;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3);
}

.btn-cancel:active {
    transform: translateY(0);
}

/* 반응형 - 레이어 팝업 */
@media (max-width: 768px) {
    .registration-layer-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .layer-header {
        padding: 20px;
    }

    .layer-header h2 {
        font-size: 1.5em;
    }

    .registration-form {
        padding: 20px;
    }

    .form-group label {
        font-size: 1.1em;
    }

    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group select {
        font-size: 1em;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
    }
}
