@charset "UTF-8";

/* 全体設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #FFEB3B;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    word-break: break-word;
}

.event-page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2%;
}

/* ヒーロー */
.event-hero {
    background-color: #FFFF00;
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 4%;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 6px 6px 0px #000000;
}

.hero-logo img {
    width: 40%;
    max-width: 160px;
    min-width: 100px;
    height: auto;
    margin-bottom: 12px;
}

.event-label {
    display: inline-block;
    background-color: #000000;
    color: #FFFF00;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.event-hero h1 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    color: #000000;
    font-weight: 900;
    margin-bottom: 12px;
}

.event-date {
    margin: 16px 0;
}

.event-date strong {
    display: block;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    color: #D50000;
}

.flyer-link {
    display: inline-block;
    max-width: 100%;
    background-color: #000000;
    color: #FFFF00;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.3);
}

/* グリッド・カード */
.event-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-section {
    background-color: #FFEE58;
    border: 3px solid #000000;
    border-radius: 12px;
    padding: 4%;
    box-shadow: 6px 6px 0px #000000;
}

.event-section h2 {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    color: #000000;
    font-weight: 900;
    border-bottom: 3px solid #000000;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

/* テーブル */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, 
.info-table td {
    padding: 12px 8px;
    border-bottom: 2px solid #000000;
    text-align: left;
}

.info-table th {
    width: 30%;
    background-color: #FFFF00;
    font-weight: bold;
}

/* リスト */
.event-list {
    list-style: none;
}

.event-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 2px dashed #000000;
    font-weight: bold;
}

.event-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    font-weight: 900;
}

.event-list .sub-text {
    display: block;
    font-size: 0.9em;
    font-weight: normal;
    margin-top: 2px;
}

/* 出店セクション */
.vendor-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vendor-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 10px;
    padding: 12px;
}

.vendor-img {
    flex: 0 0 25%;
    max-width: 90px;
}

.vendor-img img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 2px solid #000000;
    display: block;
    cursor: pointer;
}

.vendor-info {
    flex: 1;
    min-width: 0;
}

.vendor-info h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: 4px;
}

.vendor-menu {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333333;
    line-height: 1.4;
}

/* チャリティー */
.event-section.charity {
    background-color: #000000;
    color: #FFFFFF;
}

.event-section.charity h2 {
    color: #FFFF00;
    border-bottom-color: #FFFF00;
}

/* 黒背景内のリンク色を見やすい黄色に固定指定 */
.event-section.charity a {
    color: #FFFF00 !important;
    font-weight: bold;
    text-decoration: underline;
}

.charity-wrapper {
    display: flex;
    gap: 16px;
    align-items: center;
}

.charity-content {
    flex: 1;
    min-width: 0;
}

.charity-img {
    flex: 0 0 30%;
    max-width: 120px;
}

.charity-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #FFFF00;
    cursor: pointer;
}

.charity-org {
    font-size: 0.85rem;
    color: #FFEB3B;
    font-weight: bold;
}

.charity-lead {
    font-size: 1.05rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 4px 0;
}

.charity-desc {
    font-size: 0.85rem;
}

.charity-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #555555;
    font-size: 0.8rem;
}

.charity-info strong {
    color: #FFFF00;
}

/* 主催・問い合わせ */
.organizer-box {
    text-align: center;
}

.organizer-box img {
    width: 30%;
    max-width: 120px;
    height: auto;
    margin-bottom: 8px;
}

.organizer-name .nobreak {
    display: inline-block;
}

.event-footer {
    text-align: center;
    padding: 24px 0;
    font-size: clamp(0.75rem, 3.5vw, 0.85rem);
    font-weight: bold;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 4%;
}

.modal-content {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid #FFFF00;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    color: #FFFF00;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* スマホ最適化 (600px以下) */
@media (max-width: 600px) {
    .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
        display: block;
        width: 100%;
    }

    .info-table tr {
        border-bottom: 2px solid #000000;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .info-table th {
        background-color: transparent;
        padding: 2px 0;
        border-bottom: none;
        font-size: 0.85rem;
        color: #555555;
    }

    .info-table td {
        padding: 0 0 4px 0;
        border-bottom: none;
        font-weight: bold;
    }

    .vendor-card {
        flex-direction: row;
        align-items: center;
    }

    .vendor-img {
        flex: 0 0 70px;
    }
}
