編集の要約なし
各編集フォームを種類別に色分けし入力欄と操作ボタンのデザインを改善
3,254行目: 3,254行目:


/* === R17 Portal shared components END === */
/* === R17 Portal shared components END === */
/* === R20 Entity form theme START === */
/*
* Page Forms entity themes.
* Browsers without :has() retain the existing design.
*/
@supports selector(#pfForm:has(*)) {
    /*
    * Default Page Forms theme
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm {
        --r20-form-accent: #315d91;
        --r20-form-soft: #f2f7fc;
        --r20-form-border: #b9cde4;
        --r20-form-ring:
            rgba(49, 93, 145, 0.18);
        box-sizing: border-box;
        width: 100%;
        padding: clamp(16px, 3vw, 28px);
        border:
            1px solid var(--r20-form-border);
        border-top:
            6px solid var(--r20-form-accent);
        border-radius: 16px;
        background:
            linear-gradient(
                180deg,
                var(--r20-form-soft) 0,
                #fff 210px
            );
        box-shadow:
            0 10px 30px
            rgba(32, 33, 36, 0.07);
    }
    /*
    * Festival family
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="Festival[name]"]),
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalCalendar[year]"]
    ) {
        --r20-form-accent: #a63d2d;
        --r20-form-soft: #fff5f2;
        --r20-form-border: #e5b5aa;
        --r20-form-ring:
            rgba(166, 61, 45, 0.18);
    }
    /*
    * Venue and facility family
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="Venue[name]"]),
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalTemporaryFacility[facility_type]"]
    ) {
        --r20-form-accent: #176b57;
        --r20-form-soft: #f1faf6;
        --r20-form-border: #acd8cb;
        --r20-form-ring:
            rgba(23, 107, 87, 0.18);
    }
    /*
    * Stall and menu family
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="Stall[name]"]),
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalStallPlacement[stall_id]"]
    ),
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="StallMenuItem[name]"]
    ) {
        --r20-form-accent: #965800;
        --r20-form-soft: #fff8e8;
        --r20-form-border: #e4c78d;
        --r20-form-ring:
            rgba(150, 88, 0, 0.18);
    }
    /*
    * Master data family
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="Area[area_id]"]),
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalType[slug]"]
    ) {
        --r20-form-accent: #315d91;
        --r20-form-soft: #f2f7fc;
        --r20-form-border: #b9cde4;
        --r20-form-ring:
            rgba(49, 93, 145, 0.18);
    }
    /*
    * Test form
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="PFTest[name]"]) {
        --r20-form-accent: #5f6368;
        --r20-form-soft: #f6f7f8;
        --r20-form-border: #c8cbd0;
        --r20-form-ring:
            rgba(95, 99, 104, 0.18);
    }
    /*
    * Form identity label
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm::before {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        margin: 0 0 18px;
        padding: 5px 12px;
        border-radius: 999px;
        background: var(--r20-form-accent);
        color: #fff;
        font-size: 0.875rem;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0.02em;
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="Festival[name]"]
    )::before {
        content: "祭り情報の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalCalendar[year]"]
    )::before {
        content: "開催日程の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="Venue[name]"]
    )::before {
        content: "会場・開催場所の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalTemporaryFacility[facility_type]"]
    )::before {
        content: "臨時設備情報の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="Stall[name]"]
    )::before {
        content: "屋台・出店種類の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalStallPlacement[stall_id]"]
    )::before {
        content: "屋台・出店情報の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="StallMenuItem[name]"]
    )::before {
        content: "屋台商品の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="Area[area_id]"]
    )::before {
        content: "地域情報の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalType[slug]"]
    )::before {
        content: "祭り分類の編集";
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="PFTest[name]"]
    )::before {
        content: "テストフォーム";
    }
    /*
    * Fieldset and legend
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm > .mw-parser-output > fieldset {
        box-sizing: border-box;
        padding: clamp(14px, 2.5vw, 24px);
        border:
            1px solid var(--r20-form-border);
        border-radius: 12px;
        background:
            rgba(255, 255, 255, 0.96);
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    > .mw-parser-output
    > fieldset
    > legend {
        padding: 0 8px;
        color: var(--r20-form-accent);
        font-size: 1.05rem;
        font-weight: 700;
    }
    /*
    * Labels and table cells
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    .formtable > tbody > tr > th {
        padding: 11px 14px 11px 0;
        color: #303238;
        font-weight: 700;
        line-height: 1.5;
        text-align: left;
        vertical-align: top;
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    .formtable > tbody > tr > td {
        padding: 8px 0;
        vertical-align: top;
    }
    /*
    * Native input fields
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm textarea,
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    select:not(.select2-hidden-accessible) {
        min-height: 42px;
        box-sizing: border-box;
        padding: 8px 10px;
        border: 1px solid #a2a9b1;
        border-radius: 8px;
        background: #fff;
        color: #202122;
        transition:
            border-color 120ms ease,
            box-shadow 120ms ease;
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm textarea {
        min-height: 112px;
        resize: vertical;
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input:focus-visible,
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm textarea:focus-visible,
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm select:focus-visible {
        outline: 0;
        border-color: var(--r20-form-accent);
        box-shadow:
            0 0 0 3px var(--r20-form-ring);
    }
    /*
    * OOUI and Select2 fields
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm .oo-ui-inputWidget-input,
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm .select2-selection {
        min-height: 42px;
        border-radius: 8px;
    }
    /*
    * Help and introductory text
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm [class*="form-help"] {
        box-sizing: border-box;
        margin: 6px 0 10px;
        padding: 9px 11px;
        border-left:
            3px solid var(--r20-form-accent);
        border-radius: 0 7px 7px 0;
        background: var(--r20-form-soft);
        color: #54595d;
        font-size: 0.9rem;
        line-height: 1.65;
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm [class*="form-intro"] {
        box-sizing: border-box;
        margin: 0 0 18px;
        padding: 13px 15px;
        border:
            1px solid var(--r20-form-border);
        border-radius: 10px;
        background:
            rgba(255, 255, 255, 0.88);
        line-height: 1.75;
    }
    /*
    * Save and secondary actions
    */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input[name="wpSave"] {
        min-height: 43px;
        padding: 8px 16px;
        border:
            1px solid var(--r20-form-accent);
        border-radius: 8px;
        background: var(--r20-form-accent);
        color: #fff;
        font-weight: 700;
        cursor: pointer;
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input[name="wpSave"]:hover,
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input[name="wpSave"]:focus-visible {
        border-color: var(--r20-form-accent);
        background: var(--r20-form-accent);
        color: #fff;
        filter: brightness(0.92);
    }
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input:is(
        [name="wpPreview"],
        [name="wpDiff"]
    ) {
        min-height: 40px;
        margin: 4px 2px;
        padding: 7px 13px;
        border: 1px solid #a2a9b1;
        border-radius: 8px;
        background: #fff;
        color: #202122;
        cursor: pointer;
    }
    /*
    * Mobile spacing and actions
    */
    @media (max-width: 640px) {
        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm {
            padding: 13px;
            border-radius: 12px;
        }
        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm
        > .mw-parser-output
        > fieldset {
            padding: 12px;
            border-radius: 10px;
        }
        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm
        .formtable > tbody > tr > th {
            padding: 10px 0 4px;
        }
        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm
        .formtable > tbody > tr > td {
            padding: 0 0 12px;
        }
        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm input:is(
            [name="wpSave"],
            [name="wpPreview"],
            [name="wpDiff"]
        ) {
            display: block;
            width: 100%;
            min-height: 44px;
            box-sizing: border-box;
            margin: 8px 0;
        }
    }
}
/* === R20 Entity form theme END === */

2026年9月11日 (金) 22:41時点における版

/* ここに記述したCSSはすべての外装に反映されます */
.area-child-item {
    display: inline-block;
    margin: 0.25em 0.5em 0.25em 0;
    padding: 0.35em 0.65em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.area-child-item small {
    color: #666;
    margin-left: 0.25em;
}
/* =====================================
   Area 地域一覧
   ===================================== */

.area-child-item {
    display: inline-block;
    box-sizing: border-box;
    width: calc(25% - 12px);
    margin: 6px;
    padding: 10px 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fafafa;

    vertical-align: top;
}

.area-child-item a {
    font-weight: 600;
    text-decoration: none;
}

.area-child-item a:hover {
    text-decoration: underline;
}

/* タブレット */
@media screen and (max-width: 900px) {

    .area-child-item {
        width: calc(33.333% - 12px);
    }

}

/* スマートフォン */
@media screen and (max-width: 600px) {

    .area-child-item {
        width: calc(50% - 12px);
    }

}

/* 小型スマートフォン */
@media screen and (max-width: 400px) {

    .area-child-item {
        width: calc(100% - 12px);
    }

}

/* =====================================
   Festival 開催地域
   ===================================== */

.festival-areas {
    margin: 1em 0;
}

.festival-area-item {
    display: flex;
    align-items: center;
    gap: 0.6em;

    margin: 0.4em 0;
    padding: 0.65em 0.8em;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fafafa;
}

.festival-area-relation {
    display: inline-block;
    min-width: 5.5em;

    padding: 0.15em 0.5em;

    border: 1px solid #ccc;
    border-radius: 4px;

    font-size: 0.85em;
    text-align: center;
}

.festival-area-item a {
    font-weight: 600;
}

.festival-area-type {
    color: #666;
    font-size: 0.85em;
}

@media screen and (max-width: 600px) {

    .festival-area-item {
        flex-wrap: wrap;
    }

}

/* =====================================
   Festival パンくず
   ===================================== */

.festival-breadcrumb {
    margin: 0 0 1.2em;
    padding: 0.65em 0.8em;

    font-size: 0.9em;
    line-height: 1.7;

    background: #fafafa;
    border-radius: 6px;
}

.festival-breadcrumb a {
    white-space: nowrap;
}

.festival-breadcrumb p {
    display: inline;
    margin: 0;
    padding: 0;
}

.breadcrumb-separator {
    margin: 0 0.15em;
    color: #777;
}

/* ========================================
   屋台比較
   ======================================== */

.stall-compare-control {
    margin: 1em 0;
}

.stall-compare-button {
    display: inline-block;
    padding: 0.7em 1.2em;
    border: 1px solid #777;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4;
}

.stall-compare-button:hover {
    background: #f5f5f5;
}

.stall-compare-button-selected {
    border-width: 2px;
    font-weight: 700;
}

.stall-compare-message {
    display: inline-block;
    margin-left: 0.8em;
    font-size: 0.9em;
}

.stall-compare-message-error {
    font-weight: 700;
}

@media (max-width: 600px) {

    .stall-compare-button {
        width: 100%;
        box-sizing: border-box;
        padding: 0.85em 1em;
    }

    .stall-compare-message {
        display: block;
        margin: 0.5em 0 0;
    }

}

/* ========================================
   固定屋台比較トレイ
   ======================================== */

.stall-compare-tray {
    display: none;

    position: fixed;

    left: 50%;
    bottom: 16px;

    transform: translateX(-50%);

    width: min(760px, calc(100% - 32px));

    box-sizing: border-box;

    padding: 12px 16px;

    background: #fff;

    border: 1px solid #aaa;

    border-radius: 10px;

    box-shadow:
        0 4px 18px
        rgba(0, 0, 0, 0.18);

    z-index: 1000;
}


.stall-compare-tray-visible {
    display: block;
}


.stall-compare-tray-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;
}


.stall-compare-tray-title {
    font-size: 1em;
}


.stall-compare-tray-count {
    font-size: 0.9em;
}


.stall-compare-tray-items {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 10px;
}


.stall-compare-tray-item {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 5px 8px;

    border: 1px solid #ccc;

    border-radius: 6px;

    background: #fafafa;
}


.stall-compare-tray-item-name {
    font-weight: 600;
}


.stall-compare-tray-remove {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 18px;

    line-height: 1;
}


.stall-compare-tray-actions {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 10px;
}


.stall-compare-clear {
    padding: 7px 12px;

    border: 1px solid #aaa;

    border-radius: 6px;

    background: #fff;

    cursor: pointer;
}


.stall-compare-open {
    display: inline-block;

    padding: 8px 16px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 700;
}


.stall-compare-open-disabled {
    opacity: 0.45;

    cursor: default;

    pointer-events: none;
}


/* ========================================
   スマートフォン
   ======================================== */

@media (max-width: 600px) {

    .stall-compare-tray {
        left: 8px;
        right: 8px;
        bottom: 8px;

        width: auto;

        transform: none;

        padding: 10px;
    }


    .stall-compare-tray-items {
        display: block;
    }


    .stall-compare-tray-item {
        display: flex;

        justify-content: space-between;

        margin-bottom: 6px;
    }


    .stall-compare-tray-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .stall-compare-clear,
    .stall-compare-open {
        box-sizing: border-box;

        width: 100%;

        text-align: center;
    }

}


/* ========================================
   屋台比較ページ
   ======================================== */

.stall-compare-page {
    margin: 1em 0 5em;
}


.stall-compare-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 1em 0;
}


.stall-compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}


.stall-compare-table th,
.stall-compare-table td {
    padding: 10px 12px;
    border: 1px solid #ccc;
    vertical-align: top;
}


.stall-compare-table thead th {
    font-size: 1.05em;
    text-align: left;
}


.stall-compare-table tbody th {
    width: 130px;
    white-space: nowrap;
    text-align: left;
}


.stall-compare-table td {
    min-width: 180px;
}


.stall-compare-menu-list {
    display: grid;
    gap: 10px;
}


.stall-compare-menu-item {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}


.stall-compare-menu-name {
    display: block;
    margin-bottom: 4px;
}


.stall-compare-note {
    margin-top: 1em;
    font-size: 0.9em;
}


.stall-compare-page-message {
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
}


@media (max-width: 600px) {

    .stall-compare-page {
        margin-bottom: 8em;
    }


    .stall-compare-table-wrapper {
        -webkit-overflow-scrolling: touch;
    }


    .stall-compare-table {
        min-width: 720px;
    }


    .stall-compare-table th,
    .stall-compare-table td {
        padding: 8px;
    }

}

/* Placement比較:開催情報 */

.stall-compare-tray-item > div {
    min-width: 0;
}

.stall-compare-tray-item-context {
    margin-top: 2px;
    font-size: 0.8em;
    line-height: 1.3;
    opacity: 0.75;
}

/* ========================================
   地図popup 比較ボタン
   ======================================== */

.stall-map-compare-control {
    display: block;
    margin: 8px 0 5px;
}


.leaflet-popup-content
.stall-map-compare-control
.stall-compare-button {
    margin: 0;
}


.leaflet-popup-content
.stall-map-compare-control
.stall-compare-message {
    display: block;
    margin: 4px 0 0;
    font-size: 0.85em;
}

/* ========================================
   地図popup 比較リンク
   ======================================== */

.leaflet-popup-content
.stall-map-compare-link {
    display: inline-block;
    margin: 8px 0 4px;
    padding: 6px 10px;
    border: 1px solid #777;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.leaflet-popup-content
.stall-map-compare-link-selected {
    border-width: 2px;
    font-weight: 700;
}

/* ========================================
   屋台比較:最安値
   ======================================== */

.stall-compare-best-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 6px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.75em;
    line-height: 1.4;
    font-weight: 700;
    white-space: nowrap;
}

.stall-compare-best-price {
    font-weight: 700;
}

.stall-compare-best-unit-price {
    font-weight: 700;
}

.stall-compare-menu-price {
    font-weight: 600;
}

.stall-compare-menu-unit-price {
    font-weight: 600;
}

/* ========================================
   商品別比較サマリー
   ======================================== */

.stall-product-group-summary {
    margin: 0 0 24px;
}

.stall-product-group-summary-title {
    margin: 0 0 14px;
}

.stall-product-group-card {
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 1px solid #aaa;
    border-radius: 8px;
}

.stall-product-group-name {
    margin: 0 0 8px;
    font-size: 1.1em;
}

.stall-product-group-count {
    margin-bottom: 6px;
}

.stall-product-group-best {
    margin-top: 6px;
    font-size: 1.05em;
}

.stall-product-group-best-unit {
    margin-top: 4px;
    font-size: 1.05em;
}

.stall-product-group-label {
    font-weight: 600;
}

.stall-product-group-shop {
    margin-top: 3px;
}

.stall-product-group-notice {
    margin-top: 6px;
    font-size: 0.9em;
}

/* ========================================
   商品別比較サマリー:屋台リンク
   ======================================== */

.stall-product-group-stalls {
    margin-top: 4px;
}

.stall-product-group-stall-link {
    font-weight: 600;
    text-decoration: none;
}

.stall-product-group-stall-link:hover {
    text-decoration: underline;
}

.stall-product-group-shop
.stall-product-group-stall-link {
    font-weight: 700;
}

/* ========================================
   祭りページ:屋台検索
   ======================================== */

.festival-stall-search {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #aaa;
    border-radius: 8px;
}

.festival-stall-search-label {
    display: block;
    font-weight: 700;
}

.festival-stall-search-input {
    display: block;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 9px 11px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font: inherit;
}

.festival-stall-search-count {
    margin-top: 8px;
    font-size: 0.9em;
}

.festival-stall-search-input:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ========================================
   祭りページ:屋台検索フィルター
   ======================================== */

.festival-stall-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.festival-stall-filter {
    display: block;
    min-width: 180px;
}

.festival-stall-filter-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: 700;
}

.festival-stall-filter-select {
    width: 100%;
    min-width: 180px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font: inherit;
    background: inherit;
    color: inherit;
}

.festival-stall-filter-select:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ========================================
   検索結果0件
   ======================================== */

.festival-stall-search-empty {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #aaa;
    border-radius: 6px;
    font-weight: 600;
}


/* ========================================
   地図で見る
   ======================================== */

.festival-stall-map-view {
    margin-top: 8px;
}

.festival-stall-map-view-button {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #777;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.festival-stall-map-view-button:disabled {
    cursor: default;
    opacity: 0.65;
}

/* ========================================
   祭りページ:屋台エリア
   ======================================== */

.festival-stall-area-intro {
    margin: 0 0 16px;
    line-height: 1.7;
}


/* ========================================
   検索エリア
   ======================================== */

#festival-stall-search-anchor {
    margin: 18px 0 22px;
}

#festival-stall-search-anchor
.festival-stall-search {
    margin-bottom: 0;
}


/* ========================================
   共通パネル
   ======================================== */

.festival-stall-map-panel,
.festival-stall-list-panel {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #aaa;
    border-radius: 10px;
}


/* ========================================
   パネル見出し
   ======================================== */

.festival-stall-panel-heading {
    margin: 0 0 6px;
    font-size: 1.25em;
    font-weight: 700;
}

.festival-stall-panel-description {
    margin: 0 0 16px;
    line-height: 1.6;
}


/* ========================================
   地図
   ======================================== */

.festival-stall-map-panel {
    scroll-margin-top: 20px;
}


/* ========================================
   屋台一覧
   ======================================== */

.festival-stall-list {
    margin-top: 14px;
}

.festival-stall-search-card {
    margin-bottom: 16px;
}

.festival-stall-search-card:last-child {
    margin-bottom: 0;
}


/* ========================================
   スマートフォン
   ======================================== */

@media screen and (max-width: 700px) {

    .festival-stall-map-panel,
    .festival-stall-list-panel {
        padding: 12px;
        border-radius: 8px;
    }

    .festival-stall-panel-heading {
        font-size: 1.15em;
    }

}

/* ========================================
   Festival Stall Card
   compact
   ======================================== */

.festival-stall-card {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid #aaa;
    border-radius: 9px;
}


/* ヘッダー */

.festival-stall-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

.festival-stall-card-title {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.35;
    font-weight: 700;
}

.festival-stall-card-title a {
    text-decoration: none;
}

.festival-stall-card-category {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid #888;
    border-radius: 999px;
    font-size: 0.82em;
    line-height: 1.4;
    font-weight: 600;
}


/* ========================================
   基本情報
   ======================================== */

.festival-stall-card-details {
    display: grid;
    gap: 5px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

.festival-stall-card-info-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
}

.festival-stall-card-label {
    font-size: 0.88em;
    line-height: 1.55;
    font-weight: 700;
}

.festival-stall-card-value {
    min-width: 0;
    line-height: 1.55;
}

.festival-stall-card-product-row
.festival-stall-card-value {
    font-weight: 600;
}

.festival-stall-card-note {
    font-size: 0.9em;
    font-weight: 400;
}


/* ========================================
   情報状態
   ======================================== */

.festival-stall-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid #ddd;
}

.festival-stall-card-status {
    font-size: 0.82em;
    line-height: 1.5;
}


/* ========================================
   操作
   ======================================== */

.festival-stall-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
}

.festival-stall-card-actions
.stall-compare-control {
    margin: 0;
}

.festival-stall-card-actions
.festival-stall-map-view {
    margin: 0;
}


/* ========================================
   詳細
   ======================================== */

.festival-stall-card-detail-link {
    margin: 9px 0 0;
    font-size: 0.9em;
}

.festival-stall-card-detail-link a {
    text-decoration: none;
}


/* ========================================
   スマートフォン
   ======================================== */

@media screen and (max-width: 700px) {

    .festival-stall-card {
        padding: 12px;
    }

    .festival-stall-card-header {
        align-items: flex-start;
    }

    .festival-stall-card-info-row {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 7px;
    }

    .festival-stall-card-actions {
        gap: 6px;
    }

}

/* ========================================
   屋台検索:リセット
   ======================================== */

.festival-stall-search-reset {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 12px;
    border: 1px solid #777;
    border-radius: 6px;
    font: inherit;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}

.festival-stall-search-reset:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ========================================
   屋台情報:確認状態
   ======================================== */

.festival-stall-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid #ddd;
}

.festival-stall-status-badge {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.78em;
    line-height: 1.4;
    font-weight: 600;
}

.festival-stall-status-verified {
    font-weight: 700;
}

.festival-stall-status-partial,
.festival-stall-status-unverified,
.festival-stall-status-outdated,
.festival-stall-status-unknown {
    font-weight: 600;
}

.festival-stall-status-test,
.festival-stall-status-cancelled {
    border-width: 2px;
    font-weight: 700;
}

.festival-stall-position-text,
.festival-stall-position-accuracy {
    font-size: 0.82em;
}

.festival-stall-position-test {
    font-weight: 700;
}

/* ========================================
   屋台情報:最終確認日
   ======================================== */

.festival-stall-last-confirmed {
    font-size: 0.82em;
    white-space: nowrap;
}

.stall-last-confirmed-error {
	margin-top: 6px;
	color: #b32424;
	font-size: 0.875rem;
	font-weight: 600;
}

input[aria-invalid="true"] {
	border-color: #b32424;
}

/* FestivalStallPlacement - 既存候補警告 */
.stall-duplicate-warning {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #c8a44d;
	border-left: 4px solid #ac6600;
	border-radius: 4px;
	background: #fff9ea;
	line-height: 1.6;
}

.stall-duplicate-warning[hidden] {
	display: none !important;
}

.stall-duplicate-warning-title {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.stall-duplicate-warning-description {
	margin: 6px 0;
}

.stall-duplicate-warning-list {
	margin: 8px 0 8px 1.5em;
	padding: 0;
}

.stall-duplicate-warning-list li {
	margin: 4px 0;
}

.stall-duplicate-warning-list a {
	font-weight: 600;
}

.stall-duplicate-warning-footer {
	margin-top: 8px;
	font-size: 0.9em;
}

/* ========================================
   FestivalStallPlacement
   既存候補詳細カード
   ======================================== */

.stall-duplicate-candidate-list {
	display: grid;
	grid-template-columns:
		repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.stall-duplicate-candidate {
	box-sizing: border-box;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #c8a44d;
	border-radius: 6px;
	background: #fff;
}

.stall-duplicate-candidate-header {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #ddd;
	font-size: 1.05em;
}

.stall-duplicate-candidate-detail {
	display: grid;
	grid-template-columns:
		85px minmax(0, 1fr);
	gap: 8px;
	margin: 4px 0;
	line-height: 1.5;
}

.stall-duplicate-candidate-label {
	font-size: 0.9em;
	font-weight: 700;
}

.stall-duplicate-candidate-value {
	min-width: 0;
	overflow-wrap: anywhere;
}

.stall-duplicate-candidate-actions {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #ddd;
}

.stall-duplicate-candidate-actions a {
	display: inline-block;
	font-weight: 700;
	text-decoration: none;
}

.stall-duplicate-candidate-actions a:hover {
	text-decoration: underline;
}

@media screen and (max-width: 700px) {
	.stall-duplicate-candidate-list {
		grid-template-columns: 1fr;
	}

	.stall-duplicate-candidate-detail {
		grid-template-columns:
			72px minmax(0, 1fr);
	}
}

/* FestivalStallPlacement - 状態選択欄 */
#pfForm .stall-state-dropdown {
	width: 320px;
	max-width: 100%;
	box-sizing: border-box;
}

/* FestivalStallMenuOffering:提供単位 combobox の幅 */
.stall-serving-unit .oo-ui-comboBoxInputWidget {
    width: 240px !important;
    min-width: 240px !important;
}
/* BEGIN matsuri-wiki TOP PAGE V1
   PC + mobile responsive home page
------------------------------------------------------------ */

/* 489-A: base layout + hero */

.page-メインページ #firstHeading,
.page-メインページ .firstHeading {
    display: none;
}

.page-メインページ .content {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.page-メインページ .mw-parser-output {
    max-width: none;
}

.page-メインページ .mw-top-v1,
.page-メインページ .mw-top-v1 * {
    box-sizing: border-box;
}

.page-メインページ .mw-top-v1 {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.page-メインページ .mw-top-v1-hero {
    margin: 0 0 2rem;
    padding: 2rem;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #fff7ed 0%,
        #fffaf5 48%,
        #fff1f2 100%
    );
}

.page-メインページ .mw-top-v1-kicker {
    margin: 0 0 .45rem;
    color: #9a3412;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.page-メインページ .mw-top-v1-title {
    margin: 0;
    padding: 0;
    border: 0;
    color: #1d2939;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
}

.page-メインページ .mw-top-v1-lead {
    max-width: 760px;
    margin: .85rem 0 1.35rem;
    color: #475467;
    font-size: 1rem;
    line-height: 1.8;
}

/* 489-B: search + quick links */

.page-メインページ .mw-top-v1-search {
    width: 100%;
    max-width: 760px;
}

.page-メインページ .mw-top-v1-search .mw-inputbox-centered {
    text-align: left;
}

.page-メインページ .mw-top-v1-search .mw-inputbox-form {
    display: flex;
    align-items: stretch;
    gap: .65rem;
    width: 100%;
    margin: 0;
}

.page-メインページ .mw-top-v1-search .cdx-text-input {
    flex: 1 1 auto;
    min-width: 0;
}

.page-メインページ .mw-top-v1-search .mw-searchInput {
    width: 100%;
    min-height: 46px;
    padding: .65rem .85rem;
    border-radius: 9px;
    font-size: 1rem;
}

.page-メインページ .mw-top-v1-search br,
.page-メインページ .mw-top-v1-search input[name="fulltext"] {
    display: none;
}

.page-メインページ .mw-top-v1-search input[name="go"] {
    flex: 0 0 auto;
    min-width: 88px;
    min-height: 46px;
    padding: 0 1.2rem;
    border-color: #b42318;
    border-radius: 9px;
    background: #b42318;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.page-メインページ .mw-top-v1-search input[name="go"]:hover {
    border-color: #912018;
    background: #912018;
}

.page-メインページ .mw-top-v1-search input[name="go"]:focus {
    outline: 2px solid #fda29b;
    outline-offset: 2px;
}

.page-メインページ .mw-top-v1-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1rem;
}

.page-メインページ .mw-top-v1-quicklinks a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .45rem .8rem;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #7c2d12;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.page-メインページ .mw-top-v1-quicklinks a:hover {
    border-color: #fdba74;
    background: #fff;
    color: #9a3412;
}

/* 489-C1: section headings */

.page-メインページ .mw-top-v1-section {
    margin: 0 0 2.25rem;
}

.page-メインページ .mw-top-v1-section h2,
.page-メインページ .mw-top-v1-contribute h2 {
    margin: 0;
    padding: 0 0 .55rem;
    border-bottom: 2px solid #f2f4f7;
    color: #1d2939;
    font-size: 1.42rem;
    font-weight: 750;
    line-height: 1.4;
}

.page-メインページ .mw-top-v1-section-featured h2 {
    border-bottom-color: #fed7aa;
}

.page-メインページ .mw-top-v1-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1rem;
}

.page-メインページ .mw-top-v1-section-heading h2 {
    flex: 1 1 auto;
}

.page-メインページ .mw-top-v1-section-subtitle {
    margin-left: auto;
    color: #667085;
    font-size: .88rem;
    line-height: 1.5;
}

.page-メインページ .mw-top-v1-description {
    margin: .75rem 0 1rem;
    color: #667085;
    line-height: 1.7;
}

/* 489-C2: festival cards */

.page-メインページ .mw-top-v1-festival-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item:hover {
    border-color: #d0d5dd;
    box-shadow: 0 4px 12px rgba(16,24,40,.07);
    transform: translateY(-1px);
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item > p {
    margin: .35rem 0;
    line-height: 1.65;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item > p:first-child {
    margin-top: 0;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item > p:last-child {
    margin-bottom: 0;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item strong,
.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item b {
    font-size: 1.02rem;
    line-height: 1.5;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item a {
    color: #175cd3;
    font-weight: 700;
    text-decoration: none;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item a:hover {
    text-decoration: underline;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item ul {
    margin: .5rem 0 0;
    padding-left: 1.25rem;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item li {
    margin: .2rem 0;
    line-height: 1.55;
}

.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item hr {
    margin: .7rem 0;
    border: 0;
    border-top: 1px solid #eaecf0;
}

/* 489-D1: prefecture regions + chips */

.page-メインページ .mw-top-v1-region-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.page-メインページ .mw-top-v1-region {
    min-width: 0;
    padding: .9rem;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #fcfcfd;
}

.page-メインページ .mw-top-v1-region-name {
    margin-bottom: .6rem;
    color: #344054;
    font-size: .92rem;
    font-weight: 750;
    line-height: 1.4;
}

.page-メインページ .mw-top-v1-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.page-メインページ .mw-top-v1-chip-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .38rem .7rem;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #175cd3;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.page-メインページ .mw-top-v1-chip-list a:hover {
    border-color: #98a2b3;
    background: #f9fafb;
    color: #1849a9;
}

.page-メインページ .mw-top-v1-chip-list a:focus {
    outline: 2px solid #84adff;
    outline-offset: 2px;
}

/* 489-D2: months + genres */

.page-メインページ .mw-top-v1-month-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .55rem;
    margin-top: 1rem;
}

.page-メインページ .mw-top-v1-month-grid span {
    display: block;
    min-width: 0;
}

.page-メインページ .mw-top-v1-month-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .5rem;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #175cd3;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.page-メインページ .mw-top-v1-month-grid a:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.page-メインページ .mw-top-v1-month-grid a:focus {
    outline: 2px solid #fdb022;
    outline-offset: 2px;
}

.page-メインページ .mw-top-v1-genre-list {
    margin-top: 1rem;
}

.page-メインページ .mw-top-v1-genre-list a {
    min-height: 42px;
    padding-left: .9rem;
    padding-right: .9rem;
}

/* 489-D3: contribute card */

.page-メインページ .mw-top-v1-contribute {
    margin-top: 2.5rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #f9fafb;
}

.page-メインページ .mw-top-v1-contribute p {
    margin: .8rem 0 0;
    color: #475467;
    line-height: 1.75;
}

.page-メインページ .mw-top-v1-contribute a {
    font-weight: 700;
    text-decoration: none;
}

.page-メインページ .mw-top-v1-contribute a:hover {
    text-decoration: underline;
}

/* 489-E1: tablet responsive */

@media (max-width: 960px) {

    .page-メインページ .mw-top-v1-festival-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-メインページ .mw-top-v1-month-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 489-E2: mobile responsive */

@media (max-width: 720px) {

    .page-メインページ .mw-top-v1 {
        padding-bottom: 1rem;
    }

    .page-メインページ .mw-top-v1-hero {
        margin-left: -.25rem;
        margin-right: -.25rem;
        margin-bottom: 1.5rem;
        padding: 1.2rem 1rem;
        border-radius: 14px;
    }

    .page-メインページ .mw-top-v1-title {
        font-size: 1.65rem;
    }

    .page-メインページ .mw-top-v1-lead {
        margin-bottom: 1rem;
        font-size: .94rem;
        line-height: 1.7;
    }

    .page-メインページ .mw-top-v1-search .mw-inputbox-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .5rem;
    }

    .page-メインページ .mw-top-v1-search input[name="go"] {
        min-width: 72px;
        padding: 0 .9rem;
    }

    .page-メインページ .mw-top-v1-quicklinks {
        gap: .4rem;
    }

    .page-メインページ .mw-top-v1-quicklinks a {
        min-height: 38px;
        padding: .4rem .65rem;
        font-size: .84rem;
    }

    .page-メインページ .mw-top-v1-section {
        margin-bottom: 1.8rem;
    }

    .page-メインページ .mw-top-v1-section h2,
    .page-メインページ .mw-top-v1-contribute h2 {
        font-size: 1.25rem;
    }

    .page-メインページ .mw-top-v1-section-heading {
        display: block;
    }

    .page-メインページ .mw-top-v1-section-subtitle {
        margin-top: .45rem;
        margin-left: 0;
    }

    .page-メインページ .mw-top-v1-festival-grid,
    .page-メインページ .mw-top-v1-region-grid {
        grid-template-columns: 1fr;
    }

    .page-メインページ .mw-top-v1-festival-grid {
        gap: .65rem;
    }

    .page-メインページ
    .mw-top-v1-festival-grid
    .area-festival-item {
        padding: .9rem;
    }

    .page-メインページ .mw-top-v1-region {
        padding: .8rem;
    }

    .page-メインページ .mw-top-v1-month-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .45rem;
    }

    .page-メインページ .mw-top-v1-month-grid a {
        min-height: 42px;
        padding: .4rem;
    }

    .page-メインページ .mw-top-v1-chip-list a {
        min-height: 40px;
    }

    .page-メインページ .mw-top-v1-contribute {
        margin-top: 2rem;
        padding: 1rem;
    }
}

@media (max-width: 420px) {

    .page-メインページ .mw-top-v1-month-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* 491-B2: real-browser visual fixes */

/*
 * MediaWiki parser wraps the 12 month spans in one P.
 * display:contents lets each month span participate
 * directly in the existing CSS Grid.
 */
.page-メインページ .mw-top-v1-month-grid > p {
    display: contents;
}

/*
 * AreaFestivalDisplay leaves a trailing blank paragraph.
 * Hide only genuinely empty or BR-only paragraphs.
 */
.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item > p:last-child:empty,
.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item > p:last-child:has(> br:only-child) {
    display: none;
}

/* END matsuri-wiki TOP PAGE V1 */
/* BEGIN matsuri-wiki AREA PAGE V1 */

/* -------------------------------------
   Area page base
   ------------------------------------- */

.area-v1 {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    color: #101828;
}

.area-v1 *,
.area-v1 *::before,
.area-v1 *::after {
    box-sizing: border-box;
}

/* -------------------------------------
   Area information
   ------------------------------------- */

.area-v1 .area-v1-infobox {
    margin: 0 0 2rem;
}

.area-v1 .area-v1-infobox .wikitable {
    width: 100%;
    max-width: 720px;
    margin: 0;
    border: 1px solid #e4e7ec;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.area-v1 .area-v1-infobox .wikitable caption {
    padding: .9rem 1rem;
    border-bottom: 1px solid #e4e7ec;
    background: #f9fafb;
    color: #101828;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
}

.area-v1 .area-v1-infobox .wikitable th,
.area-v1 .area-v1-infobox .wikitable td {
    padding: .7rem .9rem;
    border: 0;
    border-bottom: 1px solid #eaecf0;
    vertical-align: top;
    line-height: 1.55;
}

.area-v1 .area-v1-infobox .wikitable tr:last-child th,
.area-v1 .area-v1-infobox .wikitable tr:last-child td {
    border-bottom: 0;
}

.area-v1 .area-v1-infobox .wikitable th {
    width: 34%;
    background: #f9fafb;
    color: #344054;
    font-weight: 600;
}

.area-v1 .area-v1-infobox .wikitable td {
    background: #fff;
}

.area-v1 .area-v1-infobox .wikitable td > p {
    margin: 0;
}

/* -------------------------------------
   Area headings
   ------------------------------------- */

.area-v1 > h2 {
    margin: 2rem 0 1rem;
    padding: 0 0 .65rem;
    border-bottom: 1px solid #e4e7ec;
    color: #101828;
    font-size: 1.35rem;
    line-height: 1.4;
}

.area-v1 > h3,
.area-v1 .area-v1-child-grid > h3,
.area-v1 .area-v1-child-grid > h2 {
    margin: 1.35rem 0 .75rem;
    color: #344054;
    line-height: 1.4;
}

/* -------------------------------------
   Festival cards
   ------------------------------------- */

.area-v1 .area-v1-festival-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin: 0 0 2rem;
}

.area-v1
.area-v1-festival-grid
.area-festival-item {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.area-v1
.area-v1-festival-grid
.area-festival-item > p {
    margin: .35rem 0;
    line-height: 1.65;
}

.area-v1
.area-v1-festival-grid
.area-festival-item > p:first-child {
    margin-top: 0;
}

.area-v1
.area-v1-festival-grid
.area-festival-item > p:last-child {
    margin-bottom: 0;
}

.area-v1
.area-v1-festival-grid
.area-festival-item b,
.area-v1
.area-v1-festival-grid
.area-festival-item strong {
    font-size: 1.02rem;
    line-height: 1.5;
}

.area-v1
.area-v1-festival-grid
.area-festival-item a {
    color: #175cd3;
    font-weight: 700;
    text-decoration: none;
}

.area-v1
.area-v1-festival-grid
.area-festival-item a:hover {
    text-decoration: underline;
}

/*
 * AreaFestivalDisplay currently leaves one trailing blank P.
 * This selector is restricted to last-child only, matching
 * the currently audited template output.
 */
.area-v1
.area-v1-festival-grid
.area-festival-item > p:last-child:empty,
.area-v1
.area-v1-festival-grid
.area-festival-item > p:last-child:has(> br:only-child) {
    display: none;
}

/* -------------------------------------
   Child-area grids
   ------------------------------------- */

.area-v1 .area-v1-child-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin: 0 0 1.5rem;
}

/*
 * Cargo/MediaWiki wraps every AreaChildDisplay in its own P.
 * display:contents makes the span itself participate in Grid.
 */
.area-v1 .area-v1-child-grid > p {
    display: contents;
}

.area-v1 .area-v1-child-grid > h2,
.area-v1 .area-v1-child-grid > h3 {
    grid-column: 1 / -1;
}

.area-v1
.area-v1-child-grid
.area-child-item {
    display: block;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: .7rem .8rem;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #fff;
    vertical-align: initial;
}

.area-v1
.area-v1-child-grid
.area-child-item a {
    display: block;
    color: #175cd3;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.area-v1
.area-v1-child-grid
.area-child-item a:hover {
    text-decoration: underline;
}

.area-v1
.area-v1-child-grid
.area-child-item small {
    display: block;
    margin: .25rem 0 0;
    color: #667085;
    line-height: 1.4;
}

/* -------------------------------------
   Tablet
   ------------------------------------- */

@media screen and (max-width: 900px) {

    .area-v1 .area-v1-festival-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .area-v1 .area-v1-child-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* -------------------------------------
   Smartphone
   ------------------------------------- */

@media screen and (max-width: 600px) {

    .area-v1 .area-v1-infobox {
        margin-bottom: 1.5rem;
    }

    .area-v1 .area-v1-infobox .wikitable {
        max-width: none;
        font-size: .94rem;
    }

    .area-v1 .area-v1-infobox .wikitable th,
    .area-v1 .area-v1-infobox .wikitable td {
        padding: .6rem .65rem;
    }

    .area-v1 .area-v1-infobox .wikitable th {
        width: 38%;
    }

    .area-v1 > h2 {
        margin-top: 1.6rem;
        font-size: 1.2rem;
    }

    .area-v1 .area-v1-festival-grid {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .area-v1 .area-v1-festival-grid .area-festival-item {
        padding: .9rem;
    }

    .area-v1 .area-v1-child-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    .area-v1
    .area-v1-child-grid
    .area-child-item {
        padding: .65rem .7rem;
    }

}


/*
 * Area V1 empty child-grid guard
 *
 * Cargo can leave the child-grid wrapper in the output even when
 * the query returns no AreaChildDisplay item.
 *
 * :empty handles genuinely empty wrappers.
 * :has() also handles wrappers containing whitespace/parser nodes,
 * while keeping every grid that contains a real area-child-item.
 */
.area-v1 .area-v1-child-grid:empty {
    display: none;
}

@supports selector(:has(*)) {
    .area-v1 .area-v1-child-grid:not(:has(.area-child-item)) {
        display: none;
    }
}

/* END matsuri-wiki AREA PAGE V1 */

/* BEGIN mainpage-register-r3 */
.page-メインページ .mw-top-v1-register {
    position: relative;
    overflow: hidden;
    padding: 36px;
    border: 1px solid #ead8c2;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf3 0%, #fffdf9 100%);
    box-shadow: 0 14px 40px rgba(83, 52, 28, 0.08);
}

.page-メインページ .mw-top-v1-register::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #c94732, #e69a3a, #c94732);
}

.page-メインページ .mw-top-v1-register-intro {
    position: relative;
    max-width: 780px;
    margin: 0 auto 30px;
    text-align: center;
}

.page-メインページ .mw-top-v1-register-kicker {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f8ead8;
    color: #8a4a28;
    font-size: 13px;
    font-weight: 700;
}

.page-メインページ .mw-top-v1-register h2 {
    margin: 0 0 12px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.35;
    color: #392b23;
}

.page-メインページ .mw-top-v1-register-lead {
    margin: 0;
    color: #66574d;
    font-size: 16px;
    line-height: 1.85;
}

.page-メインページ .mw-top-v1-register-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.page-メインページ .mw-top-v1-register-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid #eadfd3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(73, 48, 31, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.page-メインページ .mw-top-v1-register-card::before {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 14px;
    font-size: 21px;
    font-weight: 800;
}

.page-メインページ .mw-top-v1-register-card-festival::before {
    content: "\796D";
    background: #fbe9e5;
    color: #a53c2c;
}

.page-メインページ .mw-top-v1-register-card-venue::before {
    content: "\5834";
    background: #e9f1ed;
    color: #386451;
}

.page-メインページ .mw-top-v1-register-card-stall::before {
    content: "\5C4B";
    background: #ffe5bd;
    color: #9a511d;
}

.page-メインページ .mw-top-v1-register-card-stall {
    border-color: #e8ae65;
    background: linear-gradient(180deg, #fff8eb 0%, #fff 72%);
    box-shadow: 0 15px 34px rgba(166, 91, 31, 0.15);
    transform: translateY(-7px);
}

.page-メインページ .mw-top-v1-register-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #b84b2c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.page-メインページ .mw-top-v1-register-type {
    margin: 0 0 6px;
    color: #9a6a47;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
}

.page-メインページ .mw-top-v1-register-card h3 {
    margin: 0 0 10px;
    color: #382a22;
    font-size: 21px;
    line-height: 1.45;
}

.page-メインページ .mw-top-v1-register-copy {
    margin: 0 0 18px;
    color: #6a5b50;
    font-size: 14px;
    line-height: 1.75;
}
.page-メインページ .mw-top-v1-register .pfFormInput {
    margin-top: auto;
}

.page-メインページ .mw-top-v1-register .pfFormInput > p:first-child,
.page-メインページ .mw-top-v1-register .mw-empty-elt,
.page-メインページ .mw-top-v1-register .oo-ui-fieldsetLayout-header {
    display: none;
}

.page-メインページ .mw-top-v1-register .oo-ui-fieldsetLayout,
.page-メインページ .mw-top-v1-register .oo-ui-fieldsetLayout-group {
    margin: 0;
    padding: 0;
    border: 0;
}

.page-メインページ .mw-top-v1-register .oo-ui-horizontalLayout {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.page-メインページ .mw-top-v1-register .pfPageNameWithoutNamespace,
.page-メインページ .mw-top-v1-register .pfCreateOrEditButton {
    width: 100%;
    max-width: none;
}

.page-メインページ .mw-top-v1-register .pfPageNameWithoutNamespace input {
    box-sizing: border-box;
    width: 100%;
    min-height: 43px;
    border: 1px solid #d9c9ba;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

.page-メインページ .mw-top-v1-register .pfPageNameWithoutNamespace input:focus {
    border-color: #bd6c3c;
    box-shadow: 0 0 0 3px rgba(189, 108, 60, .14);
}

.page-メインページ .mw-top-v1-register .pfCreateOrEditButton button {
    box-sizing: border-box;
    width: 100%;
    min-height: 43px;
    border: 0;
    border-radius: 10px;
    background: #5b4638;
    color: #fff;
    font-weight: 700;
}

.page-メインページ .mw-top-v1-register-card-stall .pfCreateOrEditButton button {
    background: linear-gradient(135deg, #c8562d, #e18331);
    box-shadow: 0 7px 16px rgba(190, 83, 37, .20);
}

.page-メインページ .mw-top-v1-register-note {
    margin: 10px 0 0;
    color: #8a786b;
    font-size: 12px;
    line-height: 1.55;
}

.page-メインページ .mw-top-v1-register-footer {
    margin: 26px 0 0;
    text-align: center;
    color: #775c48;
    font-size: 14px;
    font-weight: 600;
}

@media (hover: hover) {
    .page-メインページ .mw-top-v1-register-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 32px rgba(73, 48, 31, .11);
    }

    .page-メインページ .mw-top-v1-register-card-stall:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 900px) {
    .page-メインページ .mw-top-v1-register-grid {
        grid-template-columns: 1fr;
    }

    .page-メインページ .mw-top-v1-register-card-stall {
        transform: none;
    }
}

@media (max-width: 600px) {
    .page-メインページ .mw-top-v1-register {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .page-メインページ .mw-top-v1-register-card {
        padding: 21px;
    }

    .page-メインページ .mw-top-v1-register h2 {
        font-size: 25px;
    }
}
/* END mainpage-register-r3 */

/* BEGIN stall-form-mobile-collapse-r4d */
/*
 * FestivalStallPlacement:
 * keep the native MediaWiki collapsible behavior,
 * but make the toggle easier to find/tap on narrow screens.
 */
@media (max-width: 640px) {
    .stall-form-details-summary .mw-collapsible-toggle {
        float: none !important;
        display: block !important;
        clear: both;
        width: 100%;
        box-sizing: border-box;
        min-height: 44px;
        margin: 0.6rem 0 0;
        text-align: center;
        white-space: nowrap;
    }
}
/* END stall-form-mobile-collapse-r4d */

/* BEGIN mainpage-register-r4c */
/*
 * Main Page:
 * festival-specific stall contribution CTA.
 */
.page-メインページ .mw-top-v1-register-action {
    margin: auto 0 0;
}

.page-メインページ .mw-top-v1-register-action a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 43px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #c8562d, #e18331);
    box-shadow: 0 7px 16px rgba(190, 83, 37, .20);
    color: #fff;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.page-メインページ .mw-top-v1-register-action a:visited {
    color: #fff;
}

.page-メインページ .mw-top-v1-register-action a:hover,
.page-メインページ .mw-top-v1-register-action a:focus {
    color: #fff;
    text-decoration: none;
}
/* END mainpage-register-r4c */
/* ========================================
   R8 Festival Stall Image
   ======================================== */

.festival-stall-card-image {
    width: 100%;
    margin: 0 0 10px;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.festival-stall-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.festival-stall-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.festival-stall-placement-image {
    max-width: 800px;
}

.festival-stall-placement-image img {
    width: 100%;
    height: auto;
}

@media screen and (max-width: 700px) {
    .festival-stall-card-image {
        margin-bottom: 9px;
        border-radius: 7px;
    }
}

/* === R10 RESPONSIVE UI START === */
@media screen and (max-width: 822px) {

    body.mw-special-FormEdit #pfForm,
    body.mw-special-FormEdit #pfForm > .mw-parser-output {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit
    #pfForm > .mw-parser-output > fieldset {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit #pfForm .mw-collapsible,
    body.mw-special-FormEdit #pfForm .mw-collapsible-content,
    body.mw-special-FormEdit #pfForm .inputSpan {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit #pfForm .inputSpan {
        display: block !important;
        width: 100% !important;
    }

    body.mw-special-FormEdit #pfForm .formtable {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit #pfForm .formtable > tbody,
    body.mw-special-FormEdit #pfForm .formtable > tbody > tr,
    body.mw-special-FormEdit #pfForm .formtable > tbody > tr > th,
    body.mw-special-FormEdit #pfForm .formtable > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit #pfForm .formtable > tbody > tr > th,
    body.mw-special-FormEdit #pfForm .formtable > tbody > tr > td {
        overflow-wrap: anywhere;
    }

    body.mw-special-FormEdit
    #pfForm input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),

    body.mw-special-FormEdit #pfForm textarea,

    body.mw-special-FormEdit
    #pfForm select:not(.select2-hidden-accessible) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit #pfForm .select2-container,
    body.mw-special-FormEdit #pfForm .select2-selection,
    body.mw-special-FormEdit #pfForm .select2-container-multi,
    body.mw-special-FormEdit #pfForm .select2-choices,
    body.mw-special-FormEdit #pfForm .select2-search,
    body.mw-special-FormEdit #pfForm .select2-search__field,
    body.mw-special-FormEdit #pfForm .select2-search-field,
    body.mw-special-FormEdit #pfForm .select2-input {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit #pfForm .select2-container,
    body.mw-special-FormEdit #pfForm .select2-selection,
    body.mw-special-FormEdit #pfForm .select2-container-multi,
    body.mw-special-FormEdit #pfForm .select2-choices {
        width: 100% !important;
    }

    body.mw-special-FormEdit #pfForm .select2-search__field,
    body.mw-special-FormEdit #pfForm .select2-input {
        width: 100% !important;
    }

    body.mw-special-FormEdit #pfForm .oo-ui-textInputWidget,
    body.mw-special-FormEdit #pfForm .oo-ui-dropdownInputWidget,
    body.mw-special-FormEdit #pfForm .oo-ui-comboBoxInputWidget {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit
    #pfForm .oo-ui-textInputWidget .oo-ui-inputWidget-input,

    body.mw-special-FormEdit
    #pfForm .oo-ui-dropdownInputWidget .oo-ui-inputWidget-input,

    body.mw-special-FormEdit
    #pfForm .oo-ui-comboBoxInputWidget .oo-ui-inputWidget-input {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.mw-special-FormEdit
    #pfForm #matsuri-placement-location-map,

    body.mw-special-FormEdit
    #pfForm #matsuri-venue-location-map {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

}

@media screen and (max-width: 767px) {

    body.skin-minerva.is-authenticated
    .minerva-header > .branding-box {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body.skin-minerva.is-authenticated
    .minerva-header > .branding-box > a {
        display: block !important;
        min-width: 0 !important;
        width: calc(100% - 5px) !important;
        max-width: calc(100% - 5px) !important;
        overflow: hidden !important;
    }

    body.skin-minerva.is-authenticated
    .minerva-header > .branding-box > a > span {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }
}
/* === R10 RESPONSIVE UI END === */

/* BEGIN action-formedit-responsive-r11
 * Page Forms can render normal page edits as action=formedit
 * without the mw-special-FormEdit body class.
 * Mirror the proven mobile width constraints for that route.
 */
@media (max-width: 600px) {

    body.action-formedit #pfForm,
    body.action-formedit #pfForm > .mw-parser-output,
    body.action-formedit #pfForm > .mw-parser-output > fieldset,
    body.action-formedit #pfForm .mw-collapsible,
    body.action-formedit #pfForm .mw-collapsible-content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.action-formedit #pfForm .formtable {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.action-formedit #pfForm .formtable > tbody,
    body.action-formedit #pfForm .formtable > tbody > tr,
    body.action-formedit #pfForm .formtable > tbody > tr > th,
    body.action-formedit #pfForm .formtable > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere;
    }

    body.action-formedit #pfForm input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
    body.action-formedit #pfForm textarea,
    body.action-formedit #pfForm select:not(.select2-hidden-accessible) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.action-formedit #pfForm .select2-container,
    body.action-formedit #pfForm .select2-selection,
    body.action-formedit #pfForm .select2-container-multi,
    body.action-formedit #pfForm .select2-search__field {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.action-formedit #pfForm .oo-ui-inputWidget,
    body.action-formedit #pfForm .oo-ui-textInputWidget,
    body.action-formedit #pfForm .oo-ui-dropdownInputWidget,
    body.action-formedit #pfForm .oo-ui-comboBoxInputWidget {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.action-formedit #pfForm .oo-ui-textInputWidget .oo-ui-inputWidget-input,
    body.action-formedit #pfForm .oo-ui-dropdownInputWidget select,
    body.action-formedit #pfForm .oo-ui-comboBoxInputWidget .oo-ui-inputWidget-input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* END action-formedit-responsive-r11 */
/* FESTIVAL_PAGE_PILOT_V1_START */

/*
 * Stage 1 opt-in festival page presentation.
 * Scope is emitted only when page_experience=v1.
 */

/* Hide legacy duplicate navigation / summary in pilot pages only. */
.festival-page-pilot-v1 #toc,
.festival-page-pilot-v1 #toc + h2,
.festival-page-pilot-v1 #toc + h2 + p {
    display: none;
}

/* The promoted highlight replaces the legacy 見どころ section visually. */
.festival-page-pilot-v1
h2:has(> .mw-headline#見どころ),
.festival-page-pilot-v1
h2:has(> .mw-headline#見どころ) + p {
    display: none;
}

/* Hero */
.festival-page-pilot-v1 .festival-pilot-v1-hero {
    box-sizing: border-box;
    margin: 1rem 0 1.25rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--border-color-base, #a2a9b1);
    border-radius: 12px;
    background: var(--background-color-neutral-subtle, #f8f9fa);
    color: var(--color-base, #202122);
}

.festival-page-pilot-v1 .festival-pilot-v1-eyebrow {
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-subtle, #54595d);
}

.festival-page-pilot-v1 .festival-pilot-v1-lead {
    font-size: 1.05rem;
    line-height: 1.8;
}

.festival-page-pilot-v1 .festival-pilot-v1-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.festival-page-pilot-v1 .festival-pilot-v1-badge {
    display: inline-block;
    box-sizing: border-box;
    padding: 0.28rem 0.62rem;
    border: 1px solid var(--border-color-progressive, #36c);
    border-radius: 999px;
    background: var(--background-color-progressive-subtle, #eaecf0);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Pilot navigation */
.festival-page-pilot-v1 .festival-pilot-v1-nav {
    box-sizing: border-box;
    margin: 1.25rem 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color-base, #a2a9b1);
    border-radius: 10px;
    background: var(--background-color-base, #fff);
}

.festival-page-pilot-v1 .festival-pilot-v1-nav-title {
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.festival-page-pilot-v1 .festival-pilot-v1-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.festival-page-pilot-v1 .festival-pilot-v1-nav-links a {
    display: inline-block;
    box-sizing: border-box;
    padding: 0.42rem 0.68rem;
    border-radius: 6px;
    background: var(--background-color-neutral-subtle, #f8f9fa);
    text-decoration: none;
}

.festival-page-pilot-v1 .festival-pilot-v1-nav-links a:hover,
.festival-page-pilot-v1 .festival-pilot-v1-nav-links a:focus {
    text-decoration: underline;
}

/* Promoted highlight */
.festival-page-pilot-v1 .festival-pilot-v1-highlight {
    box-sizing: border-box;
    margin: 0 0 1.35rem;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--border-color-progressive, #36c);
    background: var(--background-color-neutral-subtle, #f8f9fa);
    line-height: 1.75;
    scroll-margin-top: 1rem;
}

.festival-page-pilot-v1 .festival-pilot-v1-highlight-title {
    margin-bottom: 0.35rem;
    font-weight: 700;
}

/* Direct-answer stall introduction */
.festival-page-pilot-v1 .festival-pilot-v1-stall-question {
    margin: 0.8rem 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.festival-page-pilot-v1 .festival-pilot-v1-answer {
    box-sizing: border-box;
    margin: 0 0 1.2rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--border-color-progressive, #36c);
    background: var(--background-color-neutral-subtle, #f8f9fa);
    line-height: 1.75;
}

/* About this wiki */
.festival-page-pilot-v1 .festival-pilot-v1-about {
    box-sizing: border-box;
    margin: 2rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color-base, #a2a9b1);
    border-radius: 10px;
    background: var(--background-color-neutral-subtle, #f8f9fa);
    line-height: 1.7;
}

.festival-page-pilot-v1 .festival-pilot-v1-about-title {
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.festival-page-pilot-v1 .festival-pilot-v1-about p {
    margin: 0.45rem 0;
}

.festival-page-pilot-v1 .festival-pilot-v1-about-link {
    margin-top: 0.7rem;
    font-weight: 700;
}

/* Mobile */
@media (max-width: 600px) {

    .festival-page-pilot-v1 .festival-pilot-v1-hero {
        margin-top: 0.75rem;
        padding: 0.9rem;
    }

    .festival-page-pilot-v1 .festival-pilot-v1-lead {
        font-size: 1rem;
    }

    .festival-page-pilot-v1 .festival-pilot-v1-nav {
        padding: 0.8rem;
    }

    .festival-page-pilot-v1 .festival-pilot-v1-nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .festival-page-pilot-v1 .festival-pilot-v1-nav-links a {
        width: 100%;
        min-width: 0;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .festival-page-pilot-v1 .festival-pilot-v1-highlight,
    .festival-page-pilot-v1 .festival-pilot-v1-answer,
    .festival-page-pilot-v1 .festival-pilot-v1-about {
        padding: 0.8rem 0.9rem;
    }
}

@media (max-width: 380px) {

    .festival-page-pilot-v1 .festival-pilot-v1-nav-links {
        grid-template-columns: 1fr;
    }
}

/* FESTIVAL_PAGE_PILOT_V1_END */

/* === R14-05C Venue mobile table START === */

.venue-info-table {
    width: 100%;
    max-width: 100%;
}

@media screen and (max-width: 600px) {

    .venue-info-table {
        display: table !important;
        table-layout: fixed;
        overflow: visible !important;
    }

    .venue-info-table th {
        width: 6.5em;
        white-space: nowrap;
        vertical-align: top;
    }

    .venue-info-table td,
    .venue-info-table td a {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

/* === R14-05C Venue mobile table END === */
/* === R17 Portal shared components START === */

.r17-portal {
    max-width: 1120px;
    margin: 0 auto;
    color: #202122;
}

.r17-portal-hero {
    margin: 0 0 1.5rem;
    padding: 1.5rem;
    border: 1px solid #c8ccd1;
    border-radius: 12px;
    background:
        linear-gradient(
            135deg,
            #fff8e7 0%,
            #ffffff 62%,
            #eef6ff 100%
        );
}

.r17-portal-kicker {
    margin-bottom: 0.35rem;
    color: #8a4b08;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.r17-portal-summary {
    max-width: 52rem;
    margin: 0.55rem 0 0;
    color: #54595d;
    line-height: 1.75;
}

.r17-portal-stats,
.r17-directory-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0 1.5rem;
}

.r17-stat,
.r17-directory-card {
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid #c8ccd1;
    border-radius: 10px;
    background: #fff;
}

.r17-stat__value {
    display: block;
    color: #202122;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.r17-stat__label {
    display: block;
    margin-top: 0.3rem;
    color: #54595d;
    font-size: 0.88rem;
}

.r17-directory-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.r17-directory-card:hover,
.r17-directory-card:focus {
    border-color: #36c;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.r17-directory-card__title {
    color: #36c;
    font-size: 1.08rem;
    font-weight: 700;
}

.r17-directory-card__description {
    margin-top: 0.4rem;
    color: #54595d;
    font-size: 0.9rem;
    line-height: 1.55;
}

.r17-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0 1.5rem;
}

.r17-chip {
    display: inline-block;
    padding: 0.38rem 0.7rem;
    border: 1px solid #a2a9b1;
    border-radius: 999px;
    background: #fff;
    color: #36c;
    font-size: 0.88rem;
    text-decoration: none;
}

.r17-chip:hover,
.r17-chip:focus {
    border-color: #36c;
    background: #f0f6ff;
    text-decoration: none;
}

.r17-section {
    margin: 2rem 0;
    scroll-margin-top: 4rem;
}

.r17-section > h2 {
    margin-bottom: 0.9rem;
}

.r17-entity-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(235px, 1fr));
    gap: 0.75rem;
}

.r17-entity-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #c8ccd1;
    border-left: 4px solid #36c;
    border-radius: 8px;
    background: #fff;
}

.r17-entity-card__title {
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.r17-entity-card__kana {
    margin-top: 0.25rem;
    color: #72777d;
    font-size: 0.82rem;
}

.r17-entity-card__meta {
    margin-top: 0.45rem;
    color: #202122;
    font-size: 0.88rem;
    font-weight: 600;
}

.r17-entity-card__detail {
    margin-top: 0.3rem;
    color: #54595d;
    font-size: 0.84rem;
    line-height: 1.5;
}

.r17-empty-message,
.r17-editor-note {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    line-height: 1.6;
}

.r17-empty-message {
    border: 1px solid #c8ccd1;
    background: #f8f9fa;
    color: #54595d;
}

.r17-editor-note {
    border: 1px solid #fc3;
    border-left: 4px solid #ac6600;
    background: #fff8e7;
}

.r17-portal .cargoMoreResults {
    display: inline-block;
    margin-top: 0.8rem;
}

@media screen and (max-width: 600px) {
    .r17-portal-hero {
        padding: 1.1rem;
        border-radius: 8px;
    }

    .r17-portal-stats,
    .r17-directory-grid,
    .r17-entity-grid {
        grid-template-columns: 1fr;
    }

    .r17-entity-card {
        padding: 0.85rem;
    }
}

/* === R17 Portal shared components END === */


/* === R20 Entity form theme START === */
/*
 * Page Forms entity themes.
 * Browsers without :has() retain the existing design.
 */
@supports selector(#pfForm:has(*)) {

    /*
     * Default Page Forms theme
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm {
        --r20-form-accent: #315d91;
        --r20-form-soft: #f2f7fc;
        --r20-form-border: #b9cde4;
        --r20-form-ring:
            rgba(49, 93, 145, 0.18);

        box-sizing: border-box;
        width: 100%;
        padding: clamp(16px, 3vw, 28px);
        border:
            1px solid var(--r20-form-border);
        border-top:
            6px solid var(--r20-form-accent);
        border-radius: 16px;
        background:
            linear-gradient(
                180deg,
                var(--r20-form-soft) 0,
                #fff 210px
            );
        box-shadow:
            0 10px 30px
            rgba(32, 33, 36, 0.07);
    }

    /*
     * Festival family
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="Festival[name]"]),

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalCalendar[year]"]
    ) {
        --r20-form-accent: #a63d2d;
        --r20-form-soft: #fff5f2;
        --r20-form-border: #e5b5aa;
        --r20-form-ring:
            rgba(166, 61, 45, 0.18);
    }

    /*
     * Venue and facility family
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="Venue[name]"]),

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalTemporaryFacility[facility_type]"]
    ) {
        --r20-form-accent: #176b57;
        --r20-form-soft: #f1faf6;
        --r20-form-border: #acd8cb;
        --r20-form-ring:
            rgba(23, 107, 87, 0.18);
    }

    /*
     * Stall and menu family
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="Stall[name]"]),

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalStallPlacement[stall_id]"]
    ),

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="StallMenuItem[name]"]
    ) {
        --r20-form-accent: #965800;
        --r20-form-soft: #fff8e8;
        --r20-form-border: #e4c78d;
        --r20-form-ring:
            rgba(150, 88, 0, 0.18);
    }

    /*
     * Master data family
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="Area[area_id]"]),

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalType[slug]"]
    ) {
        --r20-form-accent: #315d91;
        --r20-form-soft: #f2f7fc;
        --r20-form-border: #b9cde4;
        --r20-form-ring:
            rgba(49, 93, 145, 0.18);
    }

    /*
     * Test form
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has([name="PFTest[name]"]) {
        --r20-form-accent: #5f6368;
        --r20-form-soft: #f6f7f8;
        --r20-form-border: #c8cbd0;
        --r20-form-ring:
            rgba(95, 99, 104, 0.18);
    }

    /*
     * Form identity label
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm::before {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        margin: 0 0 18px;
        padding: 5px 12px;
        border-radius: 999px;
        background: var(--r20-form-accent);
        color: #fff;
        font-size: 0.875rem;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0.02em;
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="Festival[name]"]
    )::before {
        content: "祭り情報の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalCalendar[year]"]
    )::before {
        content: "開催日程の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="Venue[name]"]
    )::before {
        content: "会場・開催場所の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalTemporaryFacility[facility_type]"]
    )::before {
        content: "臨時設備情報の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="Stall[name]"]
    )::before {
        content: "屋台・出店種類の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalStallPlacement[stall_id]"]
    )::before {
        content: "屋台・出店情報の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="StallMenuItem[name]"]
    )::before {
        content: "屋台商品の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="Area[area_id]"]
    )::before {
        content: "地域情報の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="FestivalType[slug]"]
    )::before {
        content: "祭り分類の編集";
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm:has(
        [name="PFTest[name]"]
    )::before {
        content: "テストフォーム";
    }

    /*
     * Fieldset and legend
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm > .mw-parser-output > fieldset {
        box-sizing: border-box;
        padding: clamp(14px, 2.5vw, 24px);
        border:
            1px solid var(--r20-form-border);
        border-radius: 12px;
        background:
            rgba(255, 255, 255, 0.96);
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    > .mw-parser-output
    > fieldset
    > legend {
        padding: 0 8px;
        color: var(--r20-form-accent);
        font-size: 1.05rem;
        font-weight: 700;
    }

    /*
     * Labels and table cells
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    .formtable > tbody > tr > th {
        padding: 11px 14px 11px 0;
        color: #303238;
        font-weight: 700;
        line-height: 1.5;
        text-align: left;
        vertical-align: top;
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    .formtable > tbody > tr > td {
        padding: 8px 0;
        vertical-align: top;
    }

    /*
     * Native input fields
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm textarea,

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm
    select:not(.select2-hidden-accessible) {
        min-height: 42px;
        box-sizing: border-box;
        padding: 8px 10px;
        border: 1px solid #a2a9b1;
        border-radius: 8px;
        background: #fff;
        color: #202122;
        transition:
            border-color 120ms ease,
            box-shadow 120ms ease;
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm textarea {
        min-height: 112px;
        resize: vertical;
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input:focus-visible,

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm textarea:focus-visible,

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm select:focus-visible {
        outline: 0;
        border-color: var(--r20-form-accent);
        box-shadow:
            0 0 0 3px var(--r20-form-ring);
    }

    /*
     * OOUI and Select2 fields
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm .oo-ui-inputWidget-input,

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm .select2-selection {
        min-height: 42px;
        border-radius: 8px;
    }

    /*
     * Help and introductory text
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm [class*="form-help"] {
        box-sizing: border-box;
        margin: 6px 0 10px;
        padding: 9px 11px;
        border-left:
            3px solid var(--r20-form-accent);
        border-radius: 0 7px 7px 0;
        background: var(--r20-form-soft);
        color: #54595d;
        font-size: 0.9rem;
        line-height: 1.65;
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm [class*="form-intro"] {
        box-sizing: border-box;
        margin: 0 0 18px;
        padding: 13px 15px;
        border:
            1px solid var(--r20-form-border);
        border-radius: 10px;
        background:
            rgba(255, 255, 255, 0.88);
        line-height: 1.75;
    }

    /*
     * Save and secondary actions
     */
    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input[name="wpSave"] {
        min-height: 43px;
        padding: 8px 16px;
        border:
            1px solid var(--r20-form-accent);
        border-radius: 8px;
        background: var(--r20-form-accent);
        color: #fff;
        font-weight: 700;
        cursor: pointer;
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input[name="wpSave"]:hover,

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input[name="wpSave"]:focus-visible {
        border-color: var(--r20-form-accent);
        background: var(--r20-form-accent);
        color: #fff;
        filter: brightness(0.92);
    }

    body:is(
        .mw-special-FormEdit,
        .action-formedit
    ) #pfForm input:is(
        [name="wpPreview"],
        [name="wpDiff"]
    ) {
        min-height: 40px;
        margin: 4px 2px;
        padding: 7px 13px;
        border: 1px solid #a2a9b1;
        border-radius: 8px;
        background: #fff;
        color: #202122;
        cursor: pointer;
    }

    /*
     * Mobile spacing and actions
     */
    @media (max-width: 640px) {
        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm {
            padding: 13px;
            border-radius: 12px;
        }

        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm
        > .mw-parser-output
        > fieldset {
            padding: 12px;
            border-radius: 10px;
        }

        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm
        .formtable > tbody > tr > th {
            padding: 10px 0 4px;
        }

        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm
        .formtable > tbody > tr > td {
            padding: 0 0 12px;
        }

        body:is(
            .mw-special-FormEdit,
            .action-formedit
        ) #pfForm input:is(
            [name="wpSave"],
            [name="wpPreview"],
            [name="wpDiff"]
        ) {
            display: block;
            width: 100%;
            min-height: 44px;
            box-sizing: border-box;
            margin: 8px 0;
        }
    }
}
/* === R20 Entity form theme END === */