/**
 * Event Detail Page Styles
 * イベント詳細ページ用スタイル
 * スマホファースト設計
 */

/* コンテナ */
.event-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* セクション共通 */
.event-detail-container section {
    margin-bottom: 30px;
}

.section-title {
    margin: 0 0 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    font-size: 1.1em;
    font-weight: 600;
}

/* イベント情報テーブル */
.event-info-table {
    width: 100%;
    border-collapse: collapse;
}

.event-info-table tr {
    border-bottom: 1px solid #e5e5e5;
}

.event-info-table tr:last-child {
    border-bottom: none;
}

.event-info-table th,
.event-info-table td {
    padding: 12px 8px;
    text-align: left;
    vertical-align: top;
}

.event-info-table th {
    width: 100px;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.event-info-table td {
    font-size: 15px;
}

.event-info-table a {
    color: #0066cc;
    text-decoration: underline;
}

/* パスワードフォーム */
.password-required {
    text-align: center;
    padding: 20px 0;
}

.password-required p {
    margin: 0 0 15px 0;
    color: #555;
}

.password-form-container {
    max-width: 320px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
}

.password-form .form-group {
    margin-bottom: 15px;
}

.password-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.password-form input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 0;
    -webkit-appearance: none;
}

.password-form input[type="text"]:focus {
    border-color: #666;
    outline: none;
}

/* 参加者リスト */
.participant-list {
    margin-bottom: 25px;
}

.participant-list h3 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

/* レスポンシブテーブル（スティッキーヘッダー対応） */
.responsive-table {
    position: relative;
    max-height: 400px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
}

.responsive-table table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

.responsive-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.responsive-table th {
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    text-align: left;
    white-space: nowrap;
}

.responsive-table td {
    padding: 10px 8px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.responsive-table tbody tr:last-child td {
    border-bottom: none;
}

.responsive-table .col-no {
    width: 35px;
    text-align: center;
    color: #888;
}

.responsive-table .col-class {
    width: 60px;
}

/* 受付セクション */
.application-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.application-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.application-item h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.accepting-period {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
}

.not-accepting {
    padding: 12px;
    background: #f5f5f5;
    color: #888;
    font-size: 14px;
    text-align: center;
}

/* ボタン */
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

/* 正会員・準会員用ボタン - メインカラー */
.btn-primary {
    background: var(--e-global-color-primary, #C8000D) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:visited {
    background: var(--e-global-color-primary, #C8000D) !important;
    opacity: 0.85;
    color: #fff !important;
}

/* ゲスト用ボタン - アクセントカラー */
.btn-secondary {
    background: var(--e-global-color-accent, #43B3F0) !important;
    color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary:visited {
    background: var(--e-global-color-accent, #43B3F0) !important;
    opacity: 0.85;
    color: #fff !important;
}

/* エラーメッセージ */
.event-error {
    padding: 15px;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    color: #cc0000;
    font-size: 14px;
}

/* デスクトップ対応 */
@media (min-width: 600px) {
    .event-detail-container {
        padding: 20px;
        font-size: 16px;
    }

    .section-title {
        font-size: 1.2em;
    }

    .event-info-table th {
        width: 120px;
    }

    .responsive-table {
        max-height: 500px;
    }

    .responsive-table th {
        font-size: 13px;
    }

    .responsive-table td {
        font-size: 15px;
    }

    .application-buttons {
        flex-direction: row;
        gap: 20px;
    }

    .application-item {
        flex: 1;
    }

    .btn {
        padding: 12px 20px;
    }
}
