:root {
  --text: #14171c;
  --sub: #646b75;
  --faint: #8b929c;
  --line: #e7e8eb;
  --bg: #ffffff;
  --panel: #f5f6f7;
  --link: #1d5fbf;
  --brand: #1f5c99;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / .04), 0 6px 20px rgb(16 24 40 / .06);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
}
a { color: var(--link); text-underline-offset: .2em; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow, .article { max-width: 720px; margin: 0 auto; }
.main { padding-top: 24px; padding-bottom: 56px; }

.local-bar { background: #fff4c2; color: #6b5300; font-size: .75rem; text-align: center; padding: 4px 16px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: baseline; gap: 14px; padding-top: 12px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
/* 札幌の碁盤の目をかたどったマーク */
.brand-mark { width: 18px; height: 18px; flex: none; }
.brand-mark rect { fill: var(--brand); }
.brand-mark path { stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.brand-name { font-size: 1.2rem; font-weight: 800; letter-spacing: .04em; }
.brand-tagline { margin: 0; font-size: .75rem; color: var(--sub); display: none; }
.global-nav { overflow-x: auto; scrollbar-width: none; }
.global-nav::-webkit-scrollbar { display: none; }
.nav-inner { display: flex; gap: 6px; padding-top: 4px; padding-bottom: 10px; white-space: nowrap; }
.nav-inner a {
  color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: var(--panel);
}
.nav-inner a:hover { background: #eceef0; }
.nav-inner .nav-today { background: var(--text); color: #fff; }
.nav-inner .nav-today:hover { background: #2b3038; }

/* 見出し */
.page-head { margin: 4px 0 18px; }
.page-kicker { margin: 0; font-size: .75rem; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.page-title { font-size: 1.6rem; line-height: 1.35; margin: 2px 0 4px; letter-spacing: .03em; }
.page-date { margin: 0; color: var(--sub); font-weight: 600; }
.page-lead { margin: 4px 0 0; color: var(--sub); font-size: .9rem; }
.section-title { font-size: 1.1rem; margin: 32px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--brand); }
.empty { color: var(--sub); }

/* チップ・札 */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; line-height: 1; color: var(--sub);
  padding: 5px 10px; border-radius: 999px; background: var(--panel); text-decoration: none;
}
.chip:hover { background: #eceef0; }
.chip-sm { padding: 3px 8px; font-size: .7rem; }
.chip-cat { background: var(--cat, var(--brand)); color: #fff; }
.chip-cat:hover { background: var(--cat, var(--brand)); opacity: .9; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.badge-open { background: #e3f4ea; color: #1d6b42; }
.badge-last { background: #fde7e3; color: #b42c16; }
.badge-soon { background: #e6eefc; color: #2051a3; }
.badge-ended { background: var(--panel); color: var(--faint); }
.badge-canceled { background: #14171c; color: #fff; }
.badge-article { background: #fff; color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }
.badge-state { background: #fff4c2; color: #6b5300; }

/* 記事カード */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.card a { display: flex; gap: 14px; padding: 12px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
/* 横並びのとき、画像の枠が文字の高さに引っぱられて縦に伸びないように align-self で止める */
.card-img { flex: none; align-self: flex-start; width: 120px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.card-img picture, .eyecatch picture { display: block; height: 100%; }
/* 写真の無い記事のサムネイル：カテゴリの色とアイコン */
.thumb-tile {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 85% 15%, rgb(255 255 255 / .18), transparent 45%),
    linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 55%, #000));
  color: #fff;
  container-type: size;
}
/* アイコンとカテゴリ名を、枠の高さに合わせた大きさで並べる */
.thumb-main { display: flex; flex-direction: column; align-items: center; gap: 6cqh; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .25)); }
.thumb-tile .icon.thumb-icon { width: auto; height: 26cqh; opacity: .95; }
.thumb-cat { font-size: 15cqh; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.thumb-area {
  position: absolute; left: 10px; bottom: 8px; max-width: calc(100% - 20px);
  font-size: .72rem; font-weight: 700; color: rgb(255 255 255 / .85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 719px) { .thumb-area { display: none; } }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card a:hover .card-img img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-title { font-size: .95rem; line-height: 1.5; margin: 0; font-weight: 700; }
.card a:hover .card-title { color: var(--link); }
.card-date { font-size: .75rem; color: var(--faint); }

/* きょうのイベント（トップ） */
.today-box { background: var(--panel); border-radius: var(--radius); padding: 18px 18px 14px; }
.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.today-date { margin: 0; font-size: 1.25rem; font-weight: 800; }
.today-more { font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.today-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.today-links .chip { background: #fff; }
/* トップの「毎年の行事・会場」 */
.guide-box { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.guide-more { font-size: .8rem; color: var(--sub); margin-left: 4px; }

/* 天気 */
.weather {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 4px 0 14px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.weather > div { background: #fff; padding: 10px 12px; min-width: 0; }
.weather p { margin: 0; }
.weather-head { font-size: .72rem; font-weight: 700; color: var(--sub); }
.weather-head span { font-weight: 400; color: var(--faint); margin-left: 4px; }
.weather-temp { font-size: 1.6rem; font-weight: 800; line-height: 1.3; font-feature-settings: "tnum" 1; }
.weather-temp small { font-size: .8rem; margin-left: 2px; color: var(--sub); }
.weather-text { font-size: .85rem; font-weight: 700; line-height: 1.5; margin: 2px 0 !important; }
.weather-sub { font-size: .75rem; color: var(--sub); }
.weather-source { grid-column: 1 / -1; background: #fff; padding: 6px 12px; font-size: .68rem; color: var(--faint); }
.weather-source a { color: var(--sub); }
@media (max-width: 480px) {
  .weather { grid-template-columns: 1fr 1fr; }
  .weather-now { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
}

/* イベント一覧 */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--panel); border-radius: 999px; margin-bottom: 16px; }
.tabs a { flex: 1; text-align: center; padding: 7px 0; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--sub); text-decoration: none; }
.tabs a[aria-current="page"] { background: #fff; color: var(--text); box-shadow: var(--shadow); }

/* 地図（/map/）。ピンは画像を使わず丸で描く。濃い紺はその期間にイベントがある会場 */
.tabs button { flex: 1; padding: 7px 0; border: 0; border-radius: 999px; background: none; font: inherit; font-size: .85rem; font-weight: 700; color: var(--sub); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.map-page .page-head { max-width: 720px; }
.map-layout { display: grid; gap: 16px; }
.map-box { position: relative; isolation: isolate; }
.map { height: 58vh; min-height: 320px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); z-index: 0; }
.map-locate {
  position: absolute; right: 10px; bottom: 26px; z-index: 500;
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--text); box-shadow: var(--shadow); cursor: pointer;
}
.leaflet-marker-icon.pin { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #b4bac2; border: 2px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.pin span { font-size: .75rem; font-weight: 800; color: #fff; line-height: 1; }
.leaflet-marker-icon.pin-on { background: var(--brand); }
.leaflet-marker-icon.pin-sel { background: #14171c; outline: 3px solid rgb(31 92 153 / .35); }
.map-panel { min-width: 0; }
.map-panel-head { margin-bottom: 10px; }
.map-panel-title { font-size: 1.15rem; margin: 0; line-height: 1.4; }
.map-panel-sub { margin: 2px 0 0; color: var(--sub); font-size: .85rem; font-weight: 600; }
.map-back { border: 0; background: none; padding: 0; margin-bottom: 4px; font: inherit; font-size: .8rem; color: var(--link); cursor: pointer; }
.map-group { margin-top: 14px; }
.map-group-title { margin: 0 0 4px; font-size: .95rem; }
.map-group-title button { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--brand); cursor: pointer; text-align: left; }
.map-group-title button:hover { text-decoration: underline; }
.map-group-count { margin-left: 8px; font-size: .8rem; font-weight: 700; color: var(--sub); }
/* 駐車場くらべ（/parking/） */
.pk-tool { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-bottom: 28px; }
.pk-q { margin: 0 0 8px; font-weight: 800; }
.pk-spend { margin-bottom: 10px; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.pk-member { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 12px; cursor: pointer; }
.pk-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pk-row { display: grid; grid-template-columns: 8.5em 1fr; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--panel); }
.pk-free { font-weight: 800; color: var(--brand); font-size: 1.05rem; }
.pk-row.is-none .pk-free { color: var(--faint); font-weight: 600; font-size: .85rem; }
.pk-name { font-weight: 700; color: var(--text); text-decoration: none; }
.pk-name:hover { text-decoration: underline; }
.pk-cond { display: block; font-size: .75rem; color: var(--sub); font-weight: 500; line-height: 1.4; }
.pk-hint { margin: 10px 0 0; font-size: .8rem; color: var(--sub); }
.pk-card { margin-top: 18px; }
.pk-card h3 { scroll-margin-top: 120px; }
.pk-src { font-size: .8rem; color: var(--sub); }
/* 年末年始の営業時間（/year-end/） */
.ye-wrap { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.ye-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .85rem; }
.ye-table th, .ye-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.ye-table thead th { background: var(--panel); font-size: .8rem; color: var(--sub); white-space: nowrap; }
.ye-table tbody th { font-weight: 700; width: 9em; }
.ye-table tbody th a { color: var(--text); }
.ye-table tr:last-child th, .ye-table tr:last-child td { border-bottom: 0; }
.ye-wait { color: var(--faint); }
/* 冬の札幌（/winter/） */
.wn-h { font-size: 1.05rem; margin: 0 0 10px; }
.wn-now, .wn-fc { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-bottom: 20px; }
.wn-now { background: #edf5fb; border-color: #d5e6f3; }
.wn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.wn-stats div { padding: 10px 12px; border-radius: var(--radius-sm); background: #fff; }
.wn-stats span { display: block; font-size: .75rem; font-weight: 700; color: var(--sub); }
.wn-stats strong { font-size: 1.6rem; font-weight: 800; color: #1f5c99; font-feature-settings: "tnum" 1; letter-spacing: 0; }
.wn-stats small { font-size: .8rem; margin-left: 2px; }
.wn-note { margin: 10px 0 0; font-size: .75rem; color: var(--sub); }
.wn-days { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.wn-days li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.wn-date { width: 10em; flex: none; font-size: .85rem; font-weight: 700; color: var(--sub); }
.wn-text { font-weight: 700; }
.wn-days .wx-icon, .wn-week .wx-icon { width: 1.3em; height: 1.3em; vertical-align: -0.2em; }
.wn-links { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.wn-links li { display: grid; grid-template-columns: 8em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.wn-link-label { font-weight: 800; font-size: .9rem; }
.wn-links small { display: block; color: var(--sub); font-size: .8rem; }

/* ごみの日（/gomi/） */
.wx-gomi { color: inherit; text-decoration: none; }
.wx-gomi[hidden] { display: none; }
.wx-gomi:hover .wx-text { text-decoration: underline; }
.gm-tool { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-bottom: 28px; }
.gm-q { display: block; font-weight: 800; margin-bottom: 6px; }
.gm-select { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.gm-result:empty { display: none; }
.gm-area-name { margin: 14px 0 8px; font-size: .9rem; color: var(--sub); }
.gm-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gm-day { padding: 12px; border-radius: var(--radius-sm); background: #e9f0f8; }
.gm-day.is-none { background: var(--panel); }
.gm-when { display: block; font-size: .75rem; font-weight: 700; color: var(--sub); }
.gm-what { display: block; font-size: 1.15rem; font-weight: 800; color: var(--brand); line-height: 1.4; }
.gm-day.is-none .gm-what { color: var(--faint); }
.gm-week, .gm-next { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; font-size: .9rem; }
.gm-week li, .gm-next li { display: grid; grid-template-columns: 7.5em 1fr; padding: 4px 2px; border-bottom: 1px solid var(--line); }
.gm-week li span, .gm-next li span { color: var(--sub); }
.gm-week li.is-none { color: var(--faint); }
.gm-next-head { margin: 14px 0 0; font-weight: 800; font-size: .9rem; }
.gm-rules th, .gm-rules td { white-space: nowrap; }
/* ごみの種類ごとの色とアイコン。見分けやすさのため、ここだけ色を分ける */
.gm-t1 { --gm: #d1512a; }   /* 燃やせるごみ */
.gm-t2 { --gm: #6b7280; }   /* 燃やせないごみ */
.gm-t8 { --gm: #2a78bd; }   /* びん・缶・ペット */
.gm-t9 { --gm: #17867f; }   /* 容器プラ */
.gm-t10 { --gm: #9a6b16; }  /* 雑がみ */
.gm-t11 { --gm: #4b8a2c; }  /* 枝・葉・草 */
.gm-ico { width: 1.1em; height: 1.1em; flex: none; color: var(--gm, currentColor); fill: currentColor; }
.gm-day[class*="gm-t"] { background: color-mix(in srgb, var(--gm) 10%, #fff); }
.gm-what { display: flex; align-items: center; gap: 8px; }
.gm-what .gm-ico { width: 1.6em; height: 1.6em; }
.gm-day[class*="gm-t"] .gm-what { color: var(--gm); }
.gm-kind { display: inline-flex; align-items: center; gap: 6px; }
.gm-week li[class*="gm-t"] .gm-kind, .gm-next li .gm-kind { color: var(--text); }
.gm-next li { grid-template-columns: 11em 1fr; }
.gm-rules thead th[class*="gm-t"] { color: var(--gm); }
.gm-rules thead .gm-ico { margin-right: 4px; vertical-align: -0.15em; }
.wx-gomi .gm-ico { width: 1.05em; height: 1.05em; }
.gm-filter { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.gm-ward-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 28px; }
.gm-ward-list a { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.gm-ward-list a:hover { border-color: var(--brand); }
.gm-ward-list strong { font-size: 1.1rem; }
.gm-ward-list span { font-size: .8rem; color: var(--sub); }
.gm-saved { padding: 12px 14px; border-radius: var(--radius-sm); background: #e9f0f8; font-size: .9rem; font-weight: 700; }
.gm-saved[hidden] { display: none; }
.gm-wards { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-area { margin: 6px 0; }
.gm-area summary { cursor: pointer; font-weight: 700; }
.guide-map { margin: 16px 0 8px; }
.guide-map-box { height: 200px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); z-index: 0; }
.guide-map figcaption { margin-top: 6px; font-size: .85rem; font-weight: 700; text-align: right; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 12px; font-size: .8rem; color: var(--sub); }
.map-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.map-legend-pin { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; border-radius: 50%; background: #b4bac2; border: 2px solid #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.map-legend-pin.is-on { width: 22px; height: 22px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; }
.map-evs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.map-ev { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.map-ev.is-canceled .map-ev-title { text-decoration: line-through; color: var(--faint); }
.map-ev-title { margin: 2px 0; font-weight: 700; line-height: 1.5; }
.map-ev-title a { color: var(--text); text-decoration: none; }
.map-ev-title a:hover { color: var(--link); text-decoration: underline; }
.map-ev-meta { margin: 0; font-size: .8rem; color: var(--sub); line-height: 1.6; }
.map-later { margin: 14px 0 6px; font-size: .85rem; font-weight: 700; color: var(--sub); }
.map-guide { margin: 14px 0 0; font-size: .9rem; font-weight: 700; }
.map-note { margin-top: 20px; font-size: .8rem; color: var(--faint); }
@media (min-width: 900px) {
  .map-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .map { height: 70vh; }
  .map-panel { max-height: 70vh; overflow-y: auto; padding-right: 4px; }
}
.ev-section { margin-top: 22px; }
.ev-heading { font-size: .95rem; margin: 0 0 8px; color: var(--sub); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ev-date {
  flex: none; width: 54px; height: 58px; border-radius: 10px; background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
}
.ev-md { font-weight: 800; font-size: 1rem; }
.ev-wd { font-size: .7rem; color: var(--sub); }
.ev-body { min-width: 0; flex: 1; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags:empty { display: none; }
.ev-title { margin: 4px 0 2px; font-weight: 700; line-height: 1.5; }
.ev-title a { color: var(--text); text-decoration: none; }
.ev-title a:hover { color: var(--link); text-decoration: underline; }
.ev-meta { list-style: none; margin: 0; padding: 0; font-size: .82rem; color: var(--sub); }
.ev-note { margin: 4px 0 0; font-size: .85rem; }
.ev-source { margin: 8px 0 0; font-size: .72rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ev-source a:not(.chip) { color: var(--sub); }
.ev.is-canceled .ev-title, .ev.is-canceled .ev-meta { text-decoration: line-through; color: var(--faint); }
.ev-list-compact .ev { padding: 12px; }

/* アイコン（Font Awesome の形を埋め込み。上下にはみ出す形があるので切らない） */
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -0.125em; overflow: visible; }

/* 天気の帯（全ページ、ヘッダーの下） */
.wx-bar { --wx-bg: #f1f3f6; --wx-ink: #3c4450; --wx-accent: #6b7684; background: var(--wx-bg); color: var(--wx-ink); border-bottom: 1px solid rgb(0 0 0 / .05); }
.wx-tone-sun { --wx-bg: #fff7e3; --wx-accent: #d98b0b; }
.wx-tone-cloud { --wx-bg: #f1f3f6; --wx-accent: #6b7684; }
.wx-tone-rain { --wx-bg: #e9f1fb; --wx-accent: #2f6db5; }
.wx-tone-snow { --wx-bg: #edf5fb; --wx-accent: #3a8cc4; }
.wx-inner { display: flex; align-items: center; gap: 18px; min-height: 40px; font-size: .8rem; white-space: nowrap; overflow: hidden; }
.wx-now, .wx-day { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wx-label { font-size: .7rem; font-weight: 700; color: var(--wx-accent); }
.wx-temp { font-size: 1.05rem; font-weight: 800; font-feature-settings: "tnum" 1; letter-spacing: 0; }
.wx-temp small { font-size: .7rem; font-weight: 600; margin-left: 1px; }
.wx-icon { width: 1.15em; height: 1.15em; }
.wx-icon.wx-sun { color: #e59a0b; }
.wx-icon.wx-cloud { color: #7d8794; }
.wx-icon.wx-rain { color: #2f6db5; }
.wx-icon.wx-snow { color: #3a8cc4; }
.wx-text { font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 16em; }
.wx-pop { display: inline-flex; align-items: center; gap: 3px; color: var(--wx-accent); font-weight: 700; }
.wx-pop .icon { width: .9em; height: .9em; }
.wx-sub { color: #6b7380; }
.wx-day + .wx-day, .wx-now + .wx-day { padding-left: 18px; border-left: 1px solid rgb(0 0 0 / .08); }
.wx-source { margin-left: auto; font-size: .68rem; color: #8a929c; text-decoration: none; }
.wx-source:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .wx-inner { gap: 12px; }
  .wx-hide-sp { display: none; }
  .wx-now + .wx-day { padding-left: 12px; }
  .wx-text { max-width: 9em; }
}

/* 共有ボタン：本文下は枠つき、タイトル下は小さな列 */
.share {
  margin: 36px 0 8px; padding: 18px 20px;
  border-radius: var(--radius); background: linear-gradient(135deg, #f3f6fa, #f7f5f1);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.share-label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 800; }
.share-label .icon { color: var(--brand); }
.share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: none; font: inherit; font-size: .82rem; font-weight: 700; color: #fff;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgb(16 24 40 / .15); }
.share-x { background: #0f1419; }
.share-fb { background: #1877f2; }
.share-fb .icon { width: 12px; }
.share-line { background: #06c755; }
.share-line .icon { width: 22px; height: 22px; }
.share-copy, .share-native { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.share .share-copy:has(.share-copy-text) { border-radius: 999px; padding: 0 16px; }
.share-copy .icon-check { display: none; color: #1d6b42; }
.share-copy.is-done .icon-check { display: inline-block; }
.share-copy.is-done .icon-link { display: none; }
.share-btn[hidden] { display: none; }

.share-compact { margin: 12px 0 0; padding: 0; background: none; justify-content: flex-start; }
.share-compact .share-buttons { gap: 6px; }
.share-compact .share-btn { min-width: 32px; height: 32px; }
.share-compact .share-btn .icon { width: 14px; height: 14px; }
.share-compact .share-fb .icon { width: 9px; }
.share-compact .share-line .icon { width: 17px; height: 17px; }
.share-compact .share-btn:hover { transform: none; box-shadow: none; opacity: .85; }

/* まとめページ */
.checked-top { margin: 10px 0 0; font-size: .78rem; color: var(--sub); padding: 6px 10px; background: var(--panel); border-radius: var(--radius-sm); }
.guide-section { margin: 28px 0; }
.guide-link {
  display: flex; align-items: center; gap: 10px; margin: 24px 0 0; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 700;
}
.guide-link:hover { border-color: var(--brand); }
.guide-link-label { flex: none; font-size: .7rem; color: #fff; background: var(--brand); border-radius: 6px; padding: 3px 8px; }
.chip-guide { background: #e8eef6; color: var(--brand); }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-list a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 700; }
.guide-list a:hover { border-color: var(--brand); }

/* 注意書き */
.notice {
  margin: 20px 0; padding: 12px 14px 12px 40px; position: relative;
  font-size: .8rem; line-height: 1.7; color: var(--sub);
  background: #fbfaf6; border: 1px solid #ece7d8; border-radius: var(--radius-sm);
}
.notice::before {
  content: "!"; position: absolute; left: 14px; top: 13px;
  width: 16px; height: 16px; border-radius: 50%; background: #c7a447; color: #fff;
  font-size: .7rem; font-weight: 800; line-height: 16px; text-align: center;
}

/* 記事 */
.state-banner { background: #fff4c2; color: #6b5300; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .85rem; }
.breadcrumb { display: flex; gap: 8px; font-size: .75rem; color: var(--faint); margin-bottom: 12px; }
.breadcrumb a { color: var(--sub); text-decoration: none; }
.article-title { font-size: 1.55rem; line-height: 1.45; margin: 12px 0 8px; letter-spacing: .03em; }
.article-dates { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; font-size: .8rem; color: var(--faint); }
.eyecatch { margin: 20px 0; }
.eyecatch img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); }
.eyecatch figcaption { font-size: .72rem; color: var(--faint); text-align: right; margin-top: 4px; }

.event-box {
  display: grid; grid-template-columns: 4.5em 1fr; gap: 8px 14px; margin: 0 0 24px;
  padding: 16px 18px; border-radius: var(--radius); background: var(--panel);
}
.event-box dt { font-size: .8rem; font-weight: 700; color: var(--sub); padding-top: 2px; }
.event-box dd { margin: 0; font-weight: 600; }
.event-box.is-canceled { background: #fde7e3; }

.article-body { font-size: 1.02rem; }
.article-body h2 { font-size: 1.25rem; line-height: 1.5; margin: 2.2em 0 .7em; padding-left: 12px; border-left: 4px solid var(--brand); }
.article-body h3 { font-size: 1.08rem; margin: 1.8em 0 .5em; }
.article-body p { margin: 0 0 1.2em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body li + li { margin-top: .3em; }
.article-body blockquote { margin: 1.2em 0; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--panel); color: var(--sub); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.article-body table { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums; }
/* 記事の中の図（app/lib/charts.php）。SVG の幅はスマホの幅に合わせた360単位なので、広げすぎると文字が大きくなる */
.chart { margin: 1.4em 0; max-width: 480px; }
.chart figcaption { font-size: .85rem; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.chart svg { display: block; width: 100%; height: auto; font-family: inherit; font-variant-numeric: tabular-nums; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { font-size: 11px; fill: var(--sub); }
/* 文字に白いふちを付け、「きょう」の線が文字の上を通っても読めるようにする */
.chart-label { font-size: 13px; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.chart-period { font-size: 12px; font-weight: 400; fill: var(--sub); }
/* 開催中はサイトの紺より少し明るくする（面積が大きいと紺は重たく見える） */
.chart-bar { fill: #2b6cb0; }
.chart-bar.is-upcoming { fill: #a9c1db; }
.chart-bar.is-ended { fill: #c9ccd1; }
.chart-bar.is-paused { fill: #a9c1db; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px; font-size: .75rem; color: var(--sub); }
.chart-key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; background: #2b6cb0; }
.chart-key.is-upcoming::before { background: #a9c1db; }
.chart-key.is-ended::before { background: #c9ccd1; }
.chart-key.is-paused::before { background: #a9c1db; }
.chart-key.is-break::before { background: repeating-linear-gradient(45deg, #9aa0a8 0 2px, #fff 2px 4px); box-shadow: inset 0 0 0 1px #9aa0a8; }
.chart-note { margin: 6px 0 0; font-size: .78rem; color: var(--sub); }
.chart-today { stroke: #C8452C; stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart-today-label { font-size: 10px; font-weight: 700; fill: #C8452C; }
.article-body th, .article-body td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-body tr:last-child td { border-bottom: none; }
.article-body th { background: var(--panel); white-space: nowrap; font-size: .85rem; }

.checked-top a { color: inherit; }
/* 冒頭の「出典」から飛んだとき、すぐ上の注意書きも目に入るよう少し上で止める */
.sources { margin-top: 8px; font-size: .82rem; scroll-margin-top: 120px; }
.sources h2 { font-size: .85rem; color: var(--sub); margin: 0 0 6px; }
.sources ul { padding-left: 1.2em; margin: 0; }
.sources .checked { color: var(--faint); }
.more-events { margin: 28px 0 0; }
.related { margin-top: 48px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 28px 0; }
.pager span { color: var(--sub); font-size: .85rem; }

/* ボタン */
.btn-primary, .btn-secondary {
  display: inline-block; font: inherit; font-size: .9rem; font-weight: 700; text-align: center; text-decoration: none;
  padding: 11px 24px; border-radius: 999px; cursor: pointer;
}
.btn-primary { background: var(--text); color: #fff; border: none; }
.btn-primary:hover { background: #2b3038; }
.btn-primary:disabled { background: #c3c7cd; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-secondary:hover { border-color: #cfd3d8; }

/* お問い合わせ */
.form-errors { background: #fde7e3; color: #8a1c12; border-radius: var(--radius-sm); padding: 10px 16px; margin: 12px 0; font-size: .9rem; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.contact-form { display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 700; font-size: .9rem; }
.field-label em { font-style: normal; font-size: .65rem; color: var(--brand); border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.field-note { font-size: .75rem; color: var(--faint); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; font: inherit; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  transition: background .15s, border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; background: #fff; border-color: var(--link); box-shadow: 0 0 0 3px rgb(29 95 191 / .15); }
.check { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn-primary { align-self: flex-start; }
.contact-notes { font-size: .8rem; color: var(--sub); padding-left: 1.2em; }
.confirm-list { display: grid; gap: 4px; background: var(--panel); border-radius: var(--radius); padding: 16px 18px; }
.confirm-list dt { font-weight: 700; font-size: .8rem; color: var(--sub); margin-top: 10px; }
.confirm-list dt:first-child { margin-top: 0; }
.confirm-list dd { margin: 0; word-break: break-word; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }

/* フッター */
.site-footer { background: var(--panel); padding: 36px 0 24px; font-size: .85rem; }
.brand-footer .brand-name { font-size: 1.05rem; }
.footer-lead { color: var(--sub); margin: 4px 0 20px; font-size: .8rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 4px; }
.footer-cols nav:nth-child(2) { grid-row: span 2; }
.footer-head { margin: 0 0 4px; font-weight: 700; font-size: .75rem; color: var(--faint); letter-spacing: .06em; }
.footer-cols a { color: var(--text); text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.copyright { color: var(--faint); margin: 28px 0 0; font-size: .75rem; }

@media (min-width: 720px) {
  .brand-tagline { display: block; }
  .main { padding-top: 32px; }
  .page-title { font-size: 1.9rem; }
  .article-title { font-size: 1.9rem; }

  .cards { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
  .card a { flex-direction: column; gap: 10px; padding: 0; border: none; }
  .card-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
  .card-title { font-size: 1rem; }
  .cards-feature .card:first-child { grid-column: span 2; grid-row: span 2; }
  .cards-feature .card:first-child .card-title { font-size: 1.35rem; }

  .footer-cols { grid-template-columns: 1fr 2fr 1fr; }
  .footer-cols nav:nth-child(2) { grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; align-content: start; column-gap: 20px; }
  .footer-cols nav:nth-child(2) .footer-head { grid-column: span 2; }
}
