/* ------------------------------------------------------------------
 * 一覧表示（?view=list・list-view.php）
 *
 * **地図の style.css は読まない。** あちらは body を画面の高さに固定して地図で埋める作りで、
 * 縦に流れる一覧とは前提が逆。上の紺の帯は css/header.css（倉敷とことこと同じ）。
 * 1ページは1か月で、日付ごとの欄に並べる（倉敷市のイベントカレンダーの形・2026-12-03）。
 * ------------------------------------------------------------------ */

html {
    -webkit-text-size-adjust: 100%;
}

body.list-page {
    margin: 0;
    background: #f5f7fa;
    color: #0f192a;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

:lang(zh-Hans) body.list-page {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

:lang(zh-Hant) body.list-page {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

:lang(ko) body.list-page {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

.list a {
    color: #1a73e8;
}

.list {
    box-sizing: border-box;
    max-width: 860px;
    margin: 0 auto;
    padding: 16px 16px 48px;
}

.list__title {
    margin: 8px 0 12px;
    font-size: 20px;
    line-height: 1.4;
}

.list__lead {
    margin: 12px 0 16px;
    color: #4a5568;
    font-size: 13px;
}

/* 地図｜一覧の切り替え（倉敷市の「カレンダー表示｜一覧表示」と同じ形） */
.list-views {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid #0f192a;
    border-radius: 999px;
    background: #fff;
}

.list-views__item {
    padding: 7px 20px;
    color: #0f192a !important;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.list-views__item.is-current {
    background: #0f192a;
    color: #fff !important;
}

/* 地域のボタン。畳まずに出す（関係ある地域だけ見たい人がすぐ押せるように）。押すたびに足し引きするリンク */
.list-regions {
    margin: 0 0 12px;
}

.list-regions__title {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 6px;
    color: #0b6b4f;
    font-size: 14px;
}

.list-regions__title::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230b6b4f'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.list-regions__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.list .list-regions__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #0b6b4f;
    border-radius: 999px;
    background: #fff;
    color: #0b6b4f;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.list .list-regions__chip.is-current {
    background: #0b6b4f;
    color: #fff;
}

.list-regions__count {
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e3f2ec;
    color: #0b6b4f;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.list-regions__chip.is-current .list-regions__count {
    background: #fff;
}

.list .list-regions__all {
    display: inline-block;
    padding: 6px 4px;
    font-size: 13px;
}

/* 絞り込み。開け閉めは <details>（JS を持たない） */
.list-filter {
    margin: 0 0 20px;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    background: #fff;
}

.list-filter__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-weight: bold;
    cursor: pointer;
}

.list-filter__toggle::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f192a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E");
}

.list-filter__count {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1a73e8;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.list-filter__form {
    padding: 0 16px 16px;
}

.list-filter__label {
    display: block;
    margin: 4px 0 6px;
    padding: 0;
    color: #4a5568;
    font-size: 13px;
    font-weight: bold;
}

.list-filter__keyword {
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 9px 12px;
    border: 1px solid #c9d1dc;
    border-radius: 6px;
    font: inherit;
    font-size: 16px;
}

.list-filter__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
}

.list-filter__categories legend {
    width: 100%;
    margin-bottom: 6px;
}

.list-filter__chip {
    position: relative;
    cursor: pointer;
}

.list-filter__chip input {
    position: absolute;
    opacity: 0;
}

.list-filter__chip span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #c9d1dc;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
}

.list-filter__chip input:checked + span {
    border-color: #0f192a;
    background: #0f192a;
    color: #fff;
}

.list-filter__chip input:focus-visible + span {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.list-filter__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 16px 0 0;
}

.list-filter__apply {
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: #1a73e8;
    color: #fff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

/* 月の見出しと月送り */
.list__month {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.4;
}

.list-pager {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: bold;
}

.list-pager--bottom {
    margin: 24px 0 0;
}

.list-pager__prev,
.list-pager__next {
    padding: 6px 14px;
    border: 1px solid #c9d1dc;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
}

.list-pager__prev::before {
    content: "‹ ";
}

.list-pager__next {
    margin-left: auto;
}

.list-pager__next::after {
    content: " ›";
}

.list-pager__now {
    margin: 0 auto;
}

.list-pager .is-disabled {
    color: #a0aab8;
    border-color: #e3e7ee;
}

.list__empty {
    padding: 24px 16px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.list__empty-action {
    text-align: center;
}

/* 会期の長い催し（日付の欄のあとに1回だけ・開いたまま） */
.list-group {
    margin: 24px 0 20px;
}

.list-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 8px 14px;
    border-left: 4px solid #0f192a;
    background: #fff;
    font-size: 16px;
}

.list-group__count {
    min-width: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #e8eef7;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

.list-group__items {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 1日の欄。見出しは紺の帯で、スクロールしても上に残る */
.list-day {
    margin: 0 0 16px;
}

.list-day__title {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #0f192a;
    color: #fff;
    font-size: 16px;
}

.list-day.is-saturday .list-day__title {
    background: #1d4e89;
}

.list-day.is-sunday .list-day__title {
    background: #9b2c2c;
}

.list-day__badge {
    padding: 0 8px;
    border-radius: 999px;
    background: #fff;
    color: #0f192a;
    font-size: 12px;
    line-height: 20px;
}

/* 2週間より先の欄。「続きを見る」で開き、開いたらボタンは消す */
.list-more__toggle {
    display: block;
    width: fit-content;
    margin: 8px auto 16px;
    padding: 10px 28px;
    border: 1px solid #0f192a;
    border-radius: 999px;
    background: #fff;
    color: #0f192a;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.list-more__toggle::-webkit-details-marker {
    display: none;
}

.list-more__toggle::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 0 3px 10px;
    border-right: 2px solid #0f192a;
    border-bottom: 2px solid #0f192a;
    transform: rotate(45deg);
}

.list-more[open] > .list-more__toggle {
    display: none;
}

/* 1件 */
.list-item {
    display: flex;
    gap: 12px;
    margin: 0 0 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
}

.list-item__image {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    background: #eef1f5;
    object-fit: cover;
}

/* 会場マップの告知画像（縦長 4:5）。正方形に切ると店名の帯が落ちるので、縦長の枠で全体を見せる */
.list-item__image--portrait {
    height: 90px;
}

.list-item__body {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.list-item__period {
    margin: 0;
    color: #c2410c;
    font-size: 14px;
    font-weight: bold;
}

.list-item__name {
    margin: 2px 0 4px;
    font-size: 16px;
    line-height: 1.45;
}

.list-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0;
    color: #4a5568;
    font-size: 13px;
}

.list-item__category {
    padding: 0 8px;
    border-radius: 4px;
    background: #e8eef7;
    color: #0f192a;
    font-size: 12px;
    font-weight: bold;
    line-height: 22px;
}

/*
 * 地域。1件の一番上に1行で、ピンの印つきで出す（2026-12-03・戸井。全国マップなので、
 * どこの催しかを先に見せる）。押すとその地域だけの一覧へ
 */
.list-item__region {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0 0 2px;
    color: #0b6b4f;
    font-size: 14px;
    font-weight: bold;
}

.list-item__region::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230b6b4f'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.list .list-item__region a {
    color: inherit;
    text-decoration: none;
}

.list .list-item__region a:hover,
.list .list-item__region a:focus-visible {
    text-decoration: underline;
}

.list-item__when {
    margin: 2px 0 0;
    color: #4a5568;
    font-size: 13px;
}

.list-item__more {
    margin: 6px 0 0;
    font-size: 14px;
}

.list-item__more summary {
    color: #1a73e8;
    cursor: pointer;
}

.list-item__desc,
.list-item__link {
    margin: 6px 0 0;
}

.list-item__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 8px 0 0;
    font-size: 14px;
}

.list-item__action {
    font-weight: bold;
}

.list-item__note {
    color: #6b7280;
    font-size: 12px;
}

/* ページの下の案内（掲載条件・運営団体・情報提供。帯に並べないぶんここに置く） */
.list__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin: 32px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #e3e7ee;
    font-size: 14px;
    list-style: none;
}

@media (min-width: 768px) {
    .list-item__image {
        width: 96px;
        height: 96px;
    }

    .list-item__image--portrait {
        height: 120px;
    }

    .list__title {
        font-size: 24px;
    }

    .list__month {
        font-size: 22px;
    }
}
