.prize-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 80px;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--main-blue);
}

.empty-text {
    text-align: center;
    color: #6b7280;
    margin-top: 2rem;
}

.empty-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}


/* ラリーカード */
.prize-container {
    background: #fff;
    border-radius: 14px;
    /* paddingはheaderとbodyで分けるため削除、もしくは調整 */
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-left: 6px solid var(--main-blue);
    overflow: hidden;
    /* 角丸からはみ出ないように */
    transition: transform 0.2s, box-shadow 0.2s;
}

.prize-header {
    padding: 20px;
    /* ここにパディングを移動 */
    display: flex;
    justify-content: space-between;
    /* タイトルと矢印を左右に配置 */
    align-items: center;
    cursor: pointer;
    /* 【重要】指マークにする */
    background-color: #fff;
    /* デフォルト背景 */
    transition: background-color 0.2s;
}

/* ラリーカード全体 */
.prize-container {
    background: #fff;
    border-radius: 14px;
    /* paddingはheaderとbodyで分けるため削除、もしくは調整 */
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border-left: 6px solid var(--main-blue);
    overflow: hidden;
    /* 角丸からはみ出ないように */
    transition: transform 0.2s, box-shadow 0.2s;
}

/* ヘッダー部分をボタンらしくする */
.prize-header {
    padding: 1rem;
    /* ここにパディングを移動 */
    display: flex;
    flex-direction: column;
    /* 縦並び */
    width: 100%;
    /* 横幅を親要素いっぱいにする（重要） */
    cursor: pointer;
    /* 【重要】指マークにする */
    background-color: #fff;
    /* デフォルト背景 */
    transition: background-color 0.2s;
}

/* ホバー時のフィードバック（PC用） */
.prize-header:hover {
    background-color: #f9fafb;
    /* 薄いグレーにして「押せる感」を出す */
}

/* タイトルエリア */
.prize-header-content h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: #111827;
}

.prize-period {
    font-size: 0.9rem;
    color: #6b7280;
}

.prize-toggle-icon {
    /* 上下のマージンは好みで調整、左右をautoにすることで中央に来ます */
    margin: 10px auto 0;

    /* 以下は元のまま */
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: fit-content;
    /* 中身の幅に合わせる（重要） */
}

/* 「景品を見る」の文字（スマホなどで幅が狭い場合は消しても良い） */
.toggle-text {
    font-size: 0.85rem;
}

/* 矢印（CSSで作るシェブロンアイコン） */
.toggle-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    /* 下向き矢印 */
    transition: transform 0.3s ease;
    margin-bottom: 2px;
    /* 微調整 */
}

/* 共通スタイル */
.status-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none;
    /* リンクの下線を消す */
    transition: all 0.2s;
    margin: 0.5rem auto;
}

/* 参加済み：落ち着いた青（枠線のみ） */
.status-badge.joined {
    background-color: #f0f9ff;
    color: #0288d1;
    border: 1px solid #0288d1;
    cursor: default;
}

/* 参加する：目立つ青（塗りつぶし） */
.status-badge.join-link {
    background-color: #0288d1;
    color: #ffffff;
    border: 1px solid #0288d1;
    box-shadow: 0 2px 4px rgba(2, 136, 209, 0.2);
}

/* ホバー時に少し色を濃く、浮き上がらせる */
.status-badge.join-link:hover {
    background-color: #0277bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(2, 136, 209, 0.3);
}

/* .prize-container に .is-open が付くと仮定 */
.prize-container.is-open .toggle-arrow {
    transform: rotate(225deg);
    /* 上向きにする */
}

.prize-container.is-open .toggle-text {
    display: none;
    /* 開いている時は「景品を見る」を消す、あるいは「閉じる」に変える */
}

/* コンテンツの表示 */
.prize-container.is-open .prize-body {
    display: block;
}

.prize-body {
    display: none;
    padding: 0 20px 20px;
    /* body側に下部余白を持たせる */
    margin-top: 0;
    /* マージンはpaddingで調整したので0に */
    border-top: 1px solid #f3f4f6;
    /* ヘッダーとの境界線 */
    padding-top: 20px;
}

/* その他のスタイルは既存のまま維持 */
.prize-list {
    /* ...既存通り... */
}

.spot-count {
    font-size: 0.95rem;
}

.prize-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.prize-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    padding-bottom: 1rem;
}

.prize-container:hover {
    transform: translateY(-4px);
}

/* 開いている状態 */
.prize-container.is-open .prize-body {
    display: block;
}


.prize-image-wrapper {
    position: relative;
}

.prize-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.prize-labels {
    display: flex;
    flex-direction: column;
    /* 縦に積む */
    gap: 4px;
    /* ラベル間隔 */
    position: absolute;
    left: 0.75rem;
    /* 画像左から少し内側 */
    bottom: 0.75rem;
    /* 画像下から少し上 */
}

.prize-labels .lottery-type,
.prize-labels .prize-type {
    display: inline-block;
    background: rgba(243, 244, 246, 0.9);
    /* 半透明の薄グレー */
    color: #6b7280;
    /* グレー文字 */
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    width: fit-content;
}


.prize-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.prize-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.prize-description {
    font-size: 0.875rem;
    color: #374151;
    max-height: 6rem;
    overflow-y: auto;
}

.prize-button {
    margin: 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 9999px;
    cursor: not-allowed;
    transition: background 0.2s;
}

.prize-button:disabled {
    margin: 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--disabled-color);
    color: #1c1c1c;
    /* 薄い文字色 */
    cursor: not-allowed;
    /* 背景色に馴染ませるため、少し透明度を下げるのも有効 */
    opacity: 0.7;
}

.lottery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.lottery-modal.hidden {
    display: none;
}

.lottery-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.lottery-modal-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lottery-video {
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    background-color: white;
}