/* 色・余白・サイズを定義します。検索・データ処理はapp.jsで管理します。 */
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; color: #202620; background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
main { width: min(100% - 40px, 760px); margin: 18px auto; }
h1 { margin: 0; font-size: 25px; line-height: 1.5; }
label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.search-row { display: flex; gap: 8px; max-width: 360px; }
input, button { font: inherit; }
input { flex: 1; width: 100%; min-width: 0; min-height: 34px; height: 34px; padding: 3px 10px; border: 1px solid #8d978d; border-radius: 5px; font-size: 16px; background: #fff; color: #202620; }
button { min-height: 34px; flex-shrink: 0; padding: 3px 14px; border: 1px solid #263e2b; border-radius: 5px; background: #263e2b; color: #fff; cursor: pointer; font-size: 15px; }
button:disabled { opacity: .5; cursor: wait; }
button.secondary { color: #394439; background: #fff; border-color: #8d978d; }
button.secondary:disabled { cursor: default; }
.field-label { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.week-dates { display: flex; gap: 4px; overflow-x: auto; padding: 4px 4px 8px; margin: -4px -4px 6px; }
.week-dates button { flex: 0 0 54px; min-height: 42px; padding: 3px 4px; font-size: 14px; white-space: nowrap; background: #fff; color: #394439; border-color: #a4ada4; line-height: 1.2; }
.week-dates button span { display: block; font-size: 12px; }
.week-dates button[aria-pressed="true"] { background: #263e2b; border-color: #263e2b; color: #fff; }
.week-dates .saturday { color: #2360a6; }
.week-dates .sunday { color: #b42335; }
.week-dates button[aria-pressed="true"] .saturday { color: #acd4ff; }
.week-dates button[aria-pressed="true"] .sunday { color: #ffbac4; }
a { color: #254f32; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #82a388; outline-offset: 3px; }
.hint { margin: 4px 0 9px; color: #697269; font-size: 12px; }
.hint:empty { display: none; }
#search-status { margin: 10px 0 6px; font-size: 14px; overflow-wrap: anywhere; }
#search-status.error { color: #a12f27; }
.event { padding: 8px 0; border-top: 1px solid #d9dfd9; overflow-wrap: anywhere; }
.event .event-date { margin: 0; font-size: 14px; font-weight: 700; }
.event-day { font-size: 14px; }
h2 { font-size: 16px; line-height: 1.4; margin: 2px 0; }
.event p { margin: 2px 0; font-size: 14px; }
.event .event-venue { font-size: 12px; }
.event dl { margin: 3px 0 0; }
.event dt { font-size: 12px; color: #687368; margin-top: 4px; }
.event dd { margin: 0; font-size: 12px; white-space: pre-wrap; }
.notice { border-left: 3px solid #c5a25a; padding: 3px 8px; background: #fff9ee; white-space: pre-wrap; }
.cancelled h2 { text-decoration: line-through; }
.cancelled .event-date { color: #a03129; }
/* タイトルは16px、日付・本文・時刻は14px。時刻は太字で強調します。 */
.event .event-schedule { margin: 1px 0 2px; font-size: 14px; font-variant-numeric: tabular-nums; }
.event-schedule strong { font-weight: 700; }
.event-open { font-weight: 400; }
.event-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 5px; margin-top: 3px; }
.calendar-link, .map-link, .event-share-x { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 30px; padding: 3px 8px; border: 1px solid #b3bdb3; border-radius: 5px; background: #fff; font-size: 13px; text-decoration: none; white-space: nowrap; }
.event-performers { line-height: 1.3; }
.calendar-link:hover, .map-link:hover, .event-share-x:hover { background: #f0f5f0; border-color: #263e2b; }
.event .event-share-note { margin-top: 3px; font-size: 12px; color: #697269; }
@media (max-width: 360px) {
  .event-actions { gap: 4px; }
  .calendar-link, .map-link, .event-share-x { padding-inline: 6px; }
}
/* スマホでは文字の読みやすさを保ちつつ、余白を小さくします。 */
@media (max-width: 600px) {
  main { width: calc(100% - 32px); margin: 14px auto; }
  h1 { font-size: 22px; }
  input { font-size: 16px; padding: 3px 10px; }
  button { padding: 3px 12px; }
  h2 { font-size: 16px; }
  .event { padding: 7px 0; }
}

.place-buttons { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.place-buttons button { min-height: 30px; padding: 3px 6px; font-size: 13px; background: #fff; color: #394439; border-color: #a4ada4; }
.place-buttons button[aria-pressed="true"] { background: #263e2b; color: #fff; border-color: #263e2b; }
.event dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.event dt { margin: 0; padding-top: 1px; }
.favorite-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 7px 0 5px; }
.favorite-heading .field-label { margin: 0; }
.favorite-heading button { min-height: 28px; padding: 2px 9px; font-size: 12px; }
/* 名前は1行に保ち、画面幅を超える場合だけ省略して解除ボタンの幅を確保します。 */
.favorites { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; }
.favorite-item { display: inline-flex; flex: none; width: max-content; max-width: 100%; }
.favorite-item button { min-height: 30px; background: #fff; color: #394439; border-color: #a4ada4; padding: 3px 9px; font-size: 13px; }
.favorite-item .favorite-search { flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; border-radius: 5px 0 0 5px; text-align: left; }
.favorite-item .favorite-remove { flex: none; width: 30px; padding: 3px 6px; border-left: 0; border-radius: 0 5px 5px 0; }
.favorite-item button:disabled { opacity: .5; }
/* 検索対象ごとに枠で区切り、お気に入りはグループの枠内に置きます。 */
.search-section { min-width: 0; margin: 0 0 7px; padding: 5px 9px 8px; border: 1px solid #d9dfd9; border-radius: 5px; }
.search-section legend { padding: 0 5px; font-size: 14px; font-weight: 700; }
.search-section .hint:last-child, .search-section .place-buttons { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.date-range { display: grid; grid-template-columns: minmax(105px, 1fr) minmax(105px, 1fr) auto; align-items: end; gap: 4px; max-width: 520px; overflow-x: auto; padding-bottom: 3px; }
.date-range-field { flex: 1; min-width: 0; }
.date-range-field label { font-size: 12px; font-weight: 400; margin-bottom: 3px; }
.date-range input { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 3px 4px; font-size: 13px; appearance: none; -webkit-appearance: none; }
.date-range input::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.date-range button { min-height: 34px; padding: 3px 7px; font-size: 12px; white-space: nowrap; }
.search-section legend button { margin-left: 5px; min-height: 24px; padding: 1px 8px; font-size: 12px; font-weight: 400; vertical-align: middle; }
.range-error { margin: 5px 0 0; color: #a12f27; font-size: 12px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; margin: 8px 0 6px; }
.results-toolbar #search-status { margin: 0; flex: 1 1 180px; }
.share-x[aria-disabled="true"] { opacity: .45; cursor: default; }
.favorite-item .favorite-search[aria-pressed="true"] { background: #263e2b; color: #fff; border-color: #263e2b; }
/* PCでは検索欄と同じ幅に収め、スマホでは画面幅に合わせて2等分します。 */
.search-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 360px; margin: 10px 0; }
.search-actions .reset-filters, .search-actions .share-x { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 40px; margin: 0; padding: 5px 8px; border: 1px solid #263e2b; border-radius: 5px; background: #263e2b; color: #fff; font-size: 15px; font-weight: 400; line-height: 1.45; text-decoration: none; white-space: nowrap; }
.search-actions .reset-filters:hover, .search-actions .share-x:hover { background: #36543b; }
.performer-link { display: inline-block; padding: 0; font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.performer-link:hover { text-decoration-style: solid; }
.page-footer { display: flex; justify-content: center; padding: 20px 0 28px; }
.page-footer button { min-height: 40px; padding: 5px 24px; }
/* 文字サイズを保ったまま、見出しを左に置き、検索欄の縦の余白を減らします。 */
main { margin-top: 10px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin-bottom: 6px; }
.site-title { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; line-height: 1.35; }
.site-title > span { min-width: 0; white-space: nowrap; overflow-wrap: normal; }
.site-icon { display: block; flex: 0 0 44px; width: 44px; height: 44px; object-fit: contain; }
.site-meta { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px 12px; }
.classic-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 10px; border: 1px solid #a4ada4; border-radius: 5px; background: #fff; font-size: 13px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.classic-link:hover { background: #f0f5f0; border-color: #263e2b; }
.site-updated { margin: 0; font-size: 12px; line-height: 1.5; color: #687368; white-space: nowrap; }
.search-section { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: start; gap: 4px; margin: 0 0 4px; padding: 5px 7px; border: 1px solid #d9dfd9; border-radius: 5px; }
.beta-badge { display: inline-block; margin-left: 3px; padding: 0 3px; border: 1px solid #a4ada4; border-radius: 3px; color: #687368; font-size: 10px; font-weight: 400; vertical-align: 1px; }
.section-label { padding-top: 5px; font-size: 14px; font-weight: 700; line-height: 1.45; white-space: nowrap; }
.section-controls { min-width: 0; }
.button-section { display: flex; flex-wrap: wrap; gap: 4px; }
.button-section .section-label { flex: 0 0 60px; align-self: center; padding-top: 0; }
.button-section .section-controls, .button-section .place-buttons { display: contents; }
#additional-place { flex: 0 0 76px; width: 76px; min-width: 0; max-width: 100%; min-height: 30px; padding: 3px 3px; font: inherit; font-size: 13px; color: #394439; background: #fff; border: 1px solid #a4ada4; border-radius: 5px; }
/* iPhoneのselect固有の高さを解除し、開催地ボタンと同じ寸法にそろえます。 */
#additional-place, #place-buttons button { height: 30px; min-height: 30px; margin: 0; line-height: 1.4; }
#additional-place { -webkit-appearance: none; appearance: none; padding: 3px 22px 3px 8px; cursor: pointer; background-image: url("assets/select-arrow.svg"); background-repeat: no-repeat; background-position: right 7px center; background-size: 10px 6px; }
#place-storage-status { flex-basis: 100%; margin: 2px 0 0; }
#additional-place:focus-visible { outline: 3px solid #82a388; outline-offset: 3px; }
.additional-places { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; max-width: 100%; }
.additional-places:empty { display: none; }
.additional-place-tag { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; border: 1px solid #263e2b; border-radius: 5px; color: #fff; background: #263e2b; font-size: 13px; }
.additional-place-tag > span { padding: 3px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.additional-place-tag button { min-height: 28px; padding: 2px 7px; border: 0; border-left: 1px solid #b4c4b4; border-radius: 0 4px 4px 0; color: #fff; background: transparent; font-size: 14px; }
.search-section:first-child .section-controls { display: contents; }
.search-section:first-child .week-dates, .search-section:first-child .date-range, .search-section:first-child .hint, .search-section:first-child .range-error { grid-column: 2; }
.week-dates { margin: 0 0 4px; padding: 0 0 3px; gap: 4px; }
.date-range { padding-bottom: 0; }
.place-buttons { margin: 0; gap: 4px; }
.place-buttons button { white-space: nowrap; line-height: 1.4; }
#category-buttons button { padding-inline: 4px; }
.group-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.search-row { flex: 1 1 250px; gap: 5px; min-width: 0; max-width: 350px; }
.favorite-heading { margin: 0; gap: 4px; }
.favorite-heading .field-label { white-space: nowrap; }
.favorites:not(:empty) { margin-top: 5px; }
.search-actions { margin: 6px 0; }
.results-toolbar { margin: 6px 0 4px; }
@media (max-width: 600px) {
  main { width: calc(100% - 20px); margin-top: 8px; }
  /* タイトルとリンクは同じ行、更新日時は下段にそろえて途中の改行を防ぎます。 */
  header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; margin-bottom: 8px; }
  .site-title { grid-column: 1; grid-row: 1; gap: 7px; font-size: clamp(18px, 5.2vw, 22px); }
  .site-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .site-meta { display: contents; }
  .classic-link { grid-column: 2; grid-row: 1; min-height: 32px; padding: 4px 8px; font-size: 12px; }
  .site-updated { grid-column: 1 / -1; grid-row: 2; justify-self: end; font-variant-numeric: tabular-nums; }
  .search-section { grid-template-columns: 56px minmax(0, 1fr); gap: 3px; padding: 4px 5px; }
  .group-main { gap: 4px; }
  .button-section .section-label { flex-basis: 56px; }
  #group-section .section-controls, .group-main { display: contents; }
  #group-section .favorite-heading, #group-section .favorites, #group-section .hint { grid-column: 1 / -1; }
  #group-section .search-row { grid-column: 2; }
  .search-row { flex-basis: 100%; max-width: none; }
  .date-range { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; max-width: 100%; }
  .search-section:first-child .date-range, .search-section:first-child .hint, .search-section:first-child .range-error { grid-column: 1 / -1; }
  .date-range input { font-size: 13px; padding-left: 2px; padding-right: 2px; }
  .search-actions { max-width: none; }
  .date-range-field { min-width: 0; width: 100%; }
  .date-range input { width: 100%; min-width: 0; max-width: 100%; }
}

/* 地方を開いたときだけ、その地方の県別ボタンを下段に表示します。 */
.button-section #prefecture-buttons { display: flex; flex: 0 0 100%; flex-wrap: wrap; gap: 4px; padding: 4px 0 0; }
.button-section #prefecture-buttons[data-expanded="false"] { display: contents; }
#prefecture-buttons button[hidden] { display: none; }
#place-buttons button[data-selection="partial"] { color: #263e2b; background: #e5eee6; border-color: #263e2b; border-style: dashed; }

/* 青系のコンパクトなデザイン。検索条件の順序・配置はそのまま保持します。 */
:root { color: #1e293b; background: #f5f7fa; }
body { background: #f5f7fa; }
main { width: min(100% - 32px, 960px); margin: 16px auto 80px; }
header { margin-bottom: 10px; }
h1 { color: #172b45; }
a { color: #2359b9; }
a:focus-visible, button:focus-visible, input:focus-visible, #additional-place:focus-visible { outline-color: #2563eb; }
input { color: #1e293b; background: #fff; border-color: #b8c6da; border-radius: 7px; }
input::placeholder { color: #475569; opacity: 1; }
button { background: #2563eb; border-color: #2563eb; border-radius: 7px; }
button.secondary, .week-dates button, .place-buttons button, .favorite-item button, #additional-place { color: #1e40af; background-color: #fff; border-color: #b8ccec; }
.week-dates button[aria-pressed="true"], .place-buttons button[aria-pressed="true"], .favorite-item .favorite-search[aria-pressed="true"], .additional-place-tag { background: #2563eb; border-color: #2563eb; color: #fff; }
#place-buttons button[data-selection="partial"] { color: #1e40af; background: #eff6ff; border-color: #2563eb; }
.additional-place-tag button { color: #fff; background: transparent; border-color: #93b9fb; }
.week-dates button[aria-pressed="true"] .saturday, .week-dates button[aria-pressed="true"] .sunday { color: #fff; }
#search-form { padding: 10px; border: 1px solid #e0e7f0; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px #152e5008; }
.search-section { margin-bottom: 6px; padding: 7px 8px; border: 1px solid #dce5f0; border-radius: 8px; background: #f8faff; }
.search-actions { margin-bottom: 0; }
.search-actions .reset-filters, .search-actions .share-x { background: #2563eb; border-color: #2563eb; border-radius: 7px; }
.search-actions .reset-filters:hover, .search-actions .share-x:hover { background: #1d4ed8; }
.classic-link { color: #1e40af; border-color: #b8ccec; border-radius: 7px; }
.classic-link:hover { background: #eff6ff; border-color: #2563eb; }
.hint, .site-updated, .event dt, .event .event-share-note, .beta-badge { color: #475569; }
.beta-badge { border-color: #b8c6da; }
.place-buttons button[aria-pressed="true"] .beta-badge { color: #fff; border-color: #bfd4fb; }
.results-toolbar { margin: 10px 2px 6px; }
.event { margin-bottom: 5px; padding: 8px 11px; background: #fff; border: 1px solid #e0e7f0; border-radius: 9px; box-shadow: 0 1px 5px #152e5005; }
.event .event-date, .event-day, .event .event-schedule { font-size: 14px; }
.event .event-date { color: #172b45; }
.event .event-schedule { margin: 0 0 2px; }
.event-open { color: #334155; }
.event h2 { margin: 1px 0; }
.event h2 a { text-decoration: none; }
.event h2 a:hover { text-decoration: underline; }
.event .event-venue { color: #334155; }
.event dl { grid-template-columns: 38px minmax(0, 1fr); gap: 1px 7px; margin: 3px 0; }
.event dd { min-width: 0; }
.event-performers { line-height: 1.5; }
.performer-link { color: #244c85; }
.notice { margin: 3px 0; padding: 2px 6px; background: #fff8eb; border-left: 2px solid #b28a38; color: #51401e; }
.event-actions { gap: 5px; margin-top: 4px; }
.calendar-link, .map-link, .event-share-x { color: #1e40af; background: #f8fbff; border-color: #b8ccec; font-size: 12px; }
.calendar-link:hover, .map-link:hover, .event-share-x:hover { background: #eff6ff; border-color: #2563eb; }
.page-footer { padding: 0; }
#back-to-top { position: fixed; right: 16px; bottom: 18px; z-index: 20; min-height: 44px; padding: 9px 13px; border-radius: 10px; box-shadow: 0 3px 12px #0f172a26; }
.cancelled .event-date { color: #a03129; }
@media (max-width: 600px) {
  main { width: calc(100% - 20px); margin-top: 8px; }
  #search-form { padding: 7px; border-radius: 10px; }
  .search-section { padding: 5px 6px; }
  .event { padding: 7px 9px; }
  #back-to-top { right: 12px; bottom: 12px; }
}
.design-test-label { margin: 0 0 8px; color: #334155; font-size: 12px; }


/* 公演の開催地・区分を小さな角丸ラベルで表示します。 */
.event .event-date { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; }
.event-tag { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid #dbe3ee; border-radius: 5px; background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 400; line-height: 1.4; }
.event-tag.place-tag { background: #eff6ff; border-color: #c8dcfa; color: #1e40af; }
.event-tag.status-tag { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }

/* 日付と開演時刻を同じ大きさの太字で強調します。 */
.event .event-day, .event .event-schedule strong { font-size: 18px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.event .event-date { margin-bottom: 1px; }
.event .event-schedule { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.event .event-open { font-size: 12px; font-weight: 400; }

/* 日付・時刻・開催地・区分を同じ行のカードとして並べます。 */
.event .event-date { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 5px; max-width: 100%; overflow-x: auto; padding-bottom: 4px; margin-bottom: 3px; }
.event .meta-card { flex: 0 0 auto; display: inline-flex; align-items: center; white-space: nowrap; padding: 4px 8px; border: 1px solid #dbe3ee; border-radius: 7px; background: #f8faff; color: #334155; }
.event .event-day.meta-card { color: #172b45; }
.event .event-schedule.meta-card { flex-wrap: nowrap; gap: 5px; margin: 0; }
.event .event-tag.place-tag { color: #1e40af; background: #eff6ff; border-color: #c8dcfa; }
.event .event-tag.status-tag { color: #9f1239; background: #fff1f2; border-color: #fecdd3; }

/* 日付・時刻・開催地・区分は囲みなしで1行に並べます。 */
.event .event-date { gap: 0 10px; padding: 0 0 3px; margin: 0 0 3px; border: 0; border-radius: 0; background: transparent; align-items: center; }
.event .event-date .meta-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.event .event-date .event-schedule { margin: 0; }
.event .event-date .event-tag { font-size: 12px; }
.event .event-date .event-tag.place-tag { color: #1e40af; background: transparent; }
.event .event-date .event-tag.status-tag { color: #9f1239; background: transparent; }

/* 上段は日付と開催地・区分、下段は時刻。行間を詰めます。 */
.event .event-date { flex-wrap: wrap; gap: 0 5px; overflow-x: visible; padding: 0; margin: 0 0 2px; }
.event .event-date .event-day { line-height: 1.25; }
.event .event-date .event-tag { padding: 1px 6px; border: 1px solid #dbe3ee; border-radius: 5px; background: #f1f5f9; line-height: 1.3; }
.event .event-date .event-tag.place-tag { background: #eff6ff; border-color: #c8dcfa; }
.event .event-date .event-tag.status-tag { background: #fff1f2; border-color: #fecdd3; }
.event .event-date .event-schedule { flex: 0 0 100%; min-width: 0; flex-wrap: wrap; gap: 0 5px; margin: 0; line-height: 1.25; }
.event .event-date .event-schedule strong { line-height: 1.25; }

/* 公演名は日付・時刻と同じ18px。補助ボタンは少し低くします。 */
.event h2 { font-size: 18px; line-height: 1.35; }
.calendar-link, .map-link, .event-share-x { min-height: 26px; padding: 2px 7px; line-height: 1.4; }
.search-actions .reset-filters, .search-actions .share-x { min-height: 34px; padding: 3px 8px; }

/* 時刻欄と公演名を細い線で区切ります。 */
.event .event-date { border-bottom: 1px solid #dbe3ee; padding-bottom: 4px; margin-bottom: 4px; }

/* アイコンをそのまま再読み込みボタンとして使います。 */
.reload-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: inherit; }
.reload-icon:hover { background: #eff6ff; }


/* サイト名から検索欄までの余白を詰めます。 */
header { margin-bottom: 4px; }
@media (max-width: 600px) {
  header { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .site-updated { grid-column: 1; justify-self: start; padding-left: 51px; margin-top: -3px; line-height: 1.2; }
}

/* グループ検索時に出す、公式X・スケジュール・特典会レギュへのリンク（1グループ1行） */
.group-links { display: grid; gap: 6px; margin: 0 0 8px; padding: 8px 10px; border: 1px solid #b8ccec; border-radius: 8px; background: #fff; font-size: 14px; }
.group-links[hidden] { display: none; }
.group-links-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.group-links-row + .group-links-row { padding-top: 6px; border-top: 1px solid #e2e8f0; }
.group-links-name { font-weight: 700; margin-right: 4px; overflow-wrap: anywhere; }
.group-link { display: inline-flex; align-items: center; min-height: 32px; padding: 3px 12px; border: 1px solid #b8ccec; border-radius: 7px; background: #f8fbff; color: #1e40af; font-size: 14px; text-decoration: none; white-space: nowrap; }
.group-link:hover { background: #eff6ff; border-color: #2563eb; }

/* 検索窓の標準の×は消し、検索ボタン右の「クリア」に一本化します。 */
#group-query::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
#clear-query:disabled { cursor: default; }
/* 検索とクリアのボタン幅を揃えます。 */
/* 検索ボタンの幅は従来と同じ56px。狭い画面では検索窓が細くなりすぎないよう、両方を少し縮めます。 */
#search-button, #clear-query { flex: 0 0 auto; width: 56px; padding-left: 0; padding-right: 0; }
@media (max-width: 400px) {
  #search-button, #clear-query { width: 46px; font-size: 14px; }
}
/* ☆登録ボタンの高さを検索ボタンに揃えます。 */
.favorite-heading #add-favorite { height: 34px; min-height: 34px; }
