MediaWiki:Common.css

2026年8月27日 (木) 00:00時点におけるMaintenance script (トーク | 投稿記録)による版 (トップページV1.1: 月別グリッドと祭りカード余白を修正)

注意: 保存後、変更を確認するにはブラウザーのキャッシュを消去する必要がある場合があります。

  • Firefox / Safari: Shift を押しながら 再読み込み をクリックするか、Ctrl-F5 または Ctrl-R を押してください (Mac では ⌘-R)
  • Google Chrome: Ctrl-Shift-R を押してください (Mac では ⌘-Shift-R)
  • Microsoft Edge: Ctrl を押しながら 最新の情報に更新 をクリックするか、Ctrl-F5 を押してください。
/* ここに記述した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:empty,
.page-メインページ
.mw-top-v1-festival-grid
.area-festival-item > p:has(> br:only-child) {
    display: none;
}

/* END matsuri-wiki TOP PAGE V1 */