/* ============================================================
   イベント詳細ページ
   ============================================================ */

/* 画像エリア（バッジ重ね用） */
.single-event .event-hero {
    position: relative;
    margin: 20px 0;
}

/* 画像上のステータスバッジ */
.event-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.05em;
    z-index: 10;
}

.event-status-badge--open {
    background: #f80;
    color: #fff;
}

.event-status-badge--closed {
    background: rgba(0,0,0,0.55);
    color: #fff;
}

/* テーブル内のインラインバッジ */
.event-status-badge-inline {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 6px;
}

.event-status-badge-inline.event-status-badge--open {
    background: #fff3e0;
    color: #f80;
}

.event-status-badge-inline.event-status-badge--closed {
    background: #f5f5f5;
    color: #999;
}

/* アイキャッチ */
.single-event .event-eyecatch {
    margin: 0;
}

.single-event .event-eyecatch img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* スライダー */
.single-event .slider--event {
    margin: 20px 0 45px!important;
}

.single-event .slider--event li img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 見出し2 */
.single-event h2 {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 8px !important;
    margin: 55px 0 20px !important;
    font-size: 1.3em;
    font-weight: bold;
    color: #f80;
    border-bottom: 2px solid #f80 !important;
    display: flex;
    align-items: center;
}

.single-event h2 .material-icons-round {
    color: #f80;
    vertical-align: middle;
    margin-right: 4px;
}

/* h3 見出し（本文内） */
.single-event .event-body h3 {
    font-size: 1.05em;
    font-weight: bold;
    margin: 0 0 8px;
    padding: 0;
    color: #333;
}

/* 体験リスト */
.single-event .event-body .event-experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: exp-counter;
}

.single-event .event-body .event-experience-list > li {
    position: relative;
    padding: 20px 20px 20px 70px;
    margin-bottom: 16px;
    background: #fffbf5;
    border: 1px solid #f0e6d6;
    border-radius: 10px;
    counter-increment: exp-counter;
}

.single-event .event-body .event-experience-list > li::before {
    content: counter(exp-counter);
    position: absolute;
    left: 18px;
    top: 20px;
    width: 36px;
    height: 36px;
    background: #f80;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-event .event-body .event-experience-list h3 {
    margin: 0 0 6px;
}

.single-event .event-body .event-experience-list p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* 基本情報テーブル */
.single-event .event-info__table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    background: #fff;
    border: 1px solid #f0e6d6;
    border-radius: 10px;
}

.single-event .event-info__table th,
.single-event .event-info__table td {
    padding: 12px 16px;
    font-size: 14px;
    text-align: left;
    line-height: 1.6;
    border: none;
    border-bottom: 1px solid #f0e6d6;
    vertical-align: middle;
    background: #fff;
}

.single-event .event-info__table tr:last-child th,
.single-event .event-info__table tr:last-child td {
    border-bottom: none;
}

.single-event .event-info__table th {
    width: 130px;
    color: #8b6914;
    font-weight: normal;
    white-space: nowrap;
    font-size: 13px;
    background: #fffbf2;
}

.single-event .event-info__table td {
    color: #333;
}

.single-event .event-info__table th .material-icons-round {
    font-size: 17px;
    vertical-align: middle;
    margin-right: 4px;
    color: #f80;
}

/* 締切日 赤太字 */
.single-event .event-deadline {
    color: #d32f2f;
    font-weight: bold;
}

/* 本文 */
.single-event .event-body {
    margin: 0 0 32px;
    line-height: 2;
    font-size: 15px;
}

/* ============================================================
   申込セクション（articleの外）
   ============================================================ */

.event-apply-section {
    margin: 45px 0 0;
    padding: 40px 25px 45px;
    background: linear-gradient(135deg, #faf6ef, #f3ead8);
    border: 2px solid #c9a96e;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 16px rgba(160,120,60,0.12);
}

.event-apply-section h2 {
    background: none !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 25px !important;
    font-size: 1.3em;
    font-weight: bold;
    color: #8b6914;
    letter-spacing: 0.1em;
    display: block;
    text-align: center;
    justify-content: center;
}

.event-apply-section h2 .material-icons-round {
    color: #c9a96e;
}

.event-apply-message {
    font-size: 14px;
    color: #666;
    margin-top: 16px;
}

.event-apply-message a {
    color: #8b6914;
    font-weight: bold;
}

.event-apply-message--applied {
    color: #2e7d32;
    font-weight: bold;
    font-size: 16px;
}

/* キャンセルボタン */
.event-cancel-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #d63638;
    color: #d63638;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.event-cancel-btn:hover {
    background: #d63638;
    color: #fff;
}

/* フォーム */
.event-apply-section #form-event {
    max-width: 500px;
    margin: 20px auto 0;
    text-align: left;
}

.event-apply-section #form-event .form-item {
    margin-bottom: 16px;
}

.event-apply-section #form-event label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.event-apply-section #form-event input[type="text"],
.event-apply-section #form-event select,
.event-apply-section #form-event textarea {
    box-sizing: border-box;
    max-width: 100%;
}

.event-apply-section #form-event input[type="text"],
.event-apply-section #form-event select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
}

.event-apply-section #form-event input[type="text"][readonly] {
    background: #f5f5f5;
}

.event-apply-section #form-event select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.event-apply-section #form-event textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    background: #fff;
}

.event-apply-section #form-event .form-item--checkbox {
    margin-top: 12px;
}

.event-apply-section #form-event .form-item--checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.event-apply-section #form-event .form-item--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #8b6914;
}

.event-apply-section #form-event .form-item--submit {
    text-align: center;
    margin-top: 20px;
}

/* 申込完了オーバーレイ */
.event-applied-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-applied-overlay__inner {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.event-applied-overlay__icon .material-icons-round {
    font-size: 56px;
    color: #f80;
}

.event-applied-overlay__title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 12px 0 8px;
    color: #333;
}

.event-applied-overlay__text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px;
}

.event-applied-overlay__btn {
    min-width: 120px;
}

/* SP */
@media screen and (max-width: 600px) {
    .single-event .event-info__table tr,
    .single-event .event-info__table th,
    .single-event .event-info__table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .event-apply-section {
        padding: 28px 16px 32px;
    }
}
