/* 表（まちのメディア）の紙面。タブロイド紙の組み方: 大きな題字と「耳」、極太の見出し、黒ベタの小見出し、段と罫線。
   色・書体は tokens.css の変数だけを使う。差し色は号の季節色。 */
body.is-front { letter-spacing: .04em; line-break: strict; -webkit-font-smoothing: antialiased; }
.page--front { max-width: 72rem; padding-top: 0; padding-bottom: var(--space-6); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.page--front > * + * { margin-top: 0; }
.page--front p { max-width: 40em; }
.page--front h1, .page--front h2, .page--front h3 { font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: balance; margin: 0; }

/* ── 題字 ── */
.tb-mast { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); padding-top: env(safe-area-inset-top, 0px); }
.tb-mast__line { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; font-size: var(--text-xs); border-bottom: var(--rule-thin); }
.tb-mast__line a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.tb-mast__by { display: none; }
.tb-mast__plate { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "name name" "no fact"; align-items: stretch; gap: 8px; padding: 14px 0 10px; }
.tb-name { grid-area: name; display: grid; justify-items: center; gap: 4px; text-decoration: none; text-align: center; }
.tb-name__main { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.2rem + 7vw, 5.5rem); line-height: 1.05; letter-spacing: .02em; font-feature-settings: "palt"; white-space: nowrap; }
.tb-name__sub { font-size: var(--text-xs); font-weight: 700; letter-spacing: .2em; }
.tb-ear { margin: 0; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 6px 10px; border: 1px solid var(--color-ink); font-size: var(--text-xs); font-weight: 700; line-height: 1.3; text-decoration: none; max-width: none !important; }
.tb-ear--no { grid-area: no; background: var(--color-ink); color: var(--color-ink-contrast); flex-wrap: wrap; min-width: 84px; }
.tb-ear--no b { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; margin: 0 2px; }
.tb-ear--no small { flex-basis: 100%; text-align: center; font-size: var(--text-xs); font-weight: 500; }
.tb-ear--no .tb-ear__prep { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 900; line-height: 1.25; text-align: center; margin: 0; }
.tb-ear--fact { grid-area: fact; flex-wrap: wrap; column-gap: 4px; }
.tb-ear--fact b { font-size: var(--text-lg); font-weight: 900; color: var(--color-season); line-height: 1.1; }
.tb-ear--fact svg { flex: none; display: block; width: 100%; height: 5px; margin-top: 4px; }
.tb-ear__m { fill: var(--color-season); } .tb-ear__t { fill: var(--color-ink); }
.tb-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 4px solid var(--color-ink); border-bottom: 1px solid var(--color-ink); }
.tb-nav a { display: grid; place-items: center; min-height: var(--tap-min); font-weight: 900; font-size: var(--text-sm); text-decoration: none; border-left: var(--rule-thin); }
.tb-nav a:first-child { border-left: 0; }
.tb-nav a[aria-current] { background: var(--color-ink); color: var(--color-ink-contrast); }

/* ── 見出しの部品 ── */
.tb-slug { display: inline-block; align-self: start; justify-self: start; padding: 3px 8px 2px; background: var(--color-ink); color: var(--color-ink-contrast); font-size: var(--text-xs); font-weight: 900; line-height: 1.4; letter-spacing: .08em; }
.tb-slug--season { background: var(--color-season); color: var(--color-season-contrast); font-size: var(--text-sm); padding: 4px 10px 3px; }
.tb-date { font-size: var(--text-xs); color: var(--color-text-muted); }
.tb-kicker { display: flex; align-items: center; gap: 10px; margin: 0; }
.tb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-bottom: 3px solid var(--color-ink); font-size: var(--text-md); }
.tb-head span { display: inline-block; padding: 5px 12px 4px; background: var(--color-ink); color: var(--color-ink-contrast); font-weight: 900; letter-spacing: .1em; }
.tb-head a { font-size: var(--text-xs); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.tb-sec { margin-top: var(--space-5) !important; }
.tb-sec > * + * { margin-top: 12px; }
.tb-note { font-size: 0.9375rem; color: var(--color-text-muted); line-height: 1.8; }

/* ── 一面 ── */
.tb-front { display: grid; gap: 0; padding-top: 20px; }
.tb-lead a { display: grid; gap: 12px; text-decoration: none; }
.tb-lead { display: grid; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--color-ink); }
.tb-lead__title { font-family: var(--font-body); font-weight: 900; font-size: clamp(2rem, 1.1rem + 4.6vw, 4.25rem); line-height: 1.16; letter-spacing: 0; }
.tb-lead__title > span { display: inline-block; } /* 文節の途中で折り返さない */
.tb-lead__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tb-lead__deck { margin: 0; font-size: 1.0625rem; line-height: 1.9; font-weight: 500; max-width: 38em !important; }
.tb-feature { display: flex; align-items: stretch; margin: 0 0 18px !important; max-width: none !important; border: 1px solid var(--color-season); font-weight: 900; line-height: 1.4; }
.tb-feature span { display: grid; place-items: center; padding: 6px 10px; background: var(--color-season); color: var(--color-season-contrast); font-size: var(--text-xs); white-space: nowrap; }
.tb-feature b { padding: 6px 12px; font-size: var(--text-lg); color: var(--color-season); }
.tb-more { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; font-size: var(--text-sm); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tb-lead--prep { padding-top: 4px; }
.tb-columns { display: grid; gap: 16px; }
.tb-columns > div { padding-top: 12px; border-top: var(--rule-thin); }
.tb-columns > div:first-child { border-top: 0; padding-top: 0; }
.tb-columns h3 { font-size: var(--text-lg); font-weight: 900; line-height: 1.4; margin-bottom: 4px; }
.tb-columns p { font-size: 0.9375rem; line-height: 1.9; }

/* 記事の並び */
.tb-items { list-style: none; margin: 0; padding: 0; display: grid; }
.tb-items > li { border-bottom: var(--rule-thin); }
.tb-item { display: grid; gap: 12px; padding: 14px 0; text-decoration: none; }
.tb-item--photo { grid-template-columns: 1fr 104px; align-items: start; }
.tb-item__text { display: grid; gap: 5px; min-width: 0; }
.tb-item__title { font-weight: 900; font-size: 1.3125rem; line-height: 1.35; font-feature-settings: "palt"; letter-spacing: .01em; }
.tb-item__lead { font-size: 0.9375rem; line-height: 1.75; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tb-item__img { display: block; width: 104px; height: 104px; object-fit: cover; }

/* 右の段: 催し・商店街案内・囲み */
.tb-events { list-style: none; margin: 0; padding: 0; display: grid; }
.tb-event { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: var(--rule-thin); }
.tb-event__day { display: grid; justify-items: center; padding: 5px 0 4px; background: var(--color-season); color: var(--color-season-contrast); font-size: var(--text-xs); font-weight: 700; line-height: 1.2; }
.tb-event__day b { font-size: 1.75rem; font-weight: 900; line-height: 1; }
.tb-event__text { display: grid; gap: 2px; min-width: 0; }
.tb-event__text b { font-weight: 900; font-size: var(--text-lg); line-height: 1.4; }
.tb-event__body { font-size: 0.9375rem; line-height: 1.8; margin-top: 4px; }
.tb-dir { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.tb-dir--one { grid-template-columns: 1fr; }
.tb-dir li { border-bottom: var(--rule-thin); }
.tb-dir a { display: grid; gap: 0; padding: 9px 0; text-decoration: none; line-height: 1.4; min-height: 44px; align-content: center; }
.tb-dir b { font-weight: 900; }
.tb-dir span { font-size: var(--text-xs); color: var(--color-text-muted); }
.tb-box { margin-top: var(--space-5) !important; padding: 14px 16px 16px; border: 3px double var(--color-ink); background: var(--color-surface); display: grid; gap: 8px; }
.tb-box h2 { font-size: var(--text-lg); font-weight: 900; }
.tb-box p { font-size: 0.9375rem; line-height: 1.8; }
.tb-box__links a, .tb-back a, .tb-empty a { display: inline-flex; align-items: center; min-height: 44px; }
.tb-box__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 700; }
.tb-box--notice { border-color: var(--color-season); }
.tb-box--notice h2 { color: var(--color-season); }
.tb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min); padding: 0 20px; background: var(--color-ink); color: var(--color-ink-contrast); font-weight: 900; text-decoration: none; }

/* ── 下の面: 面の名前・絞り込み・空のとき ── */
.tb-pagehead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; padding: 18px 0 10px; border-bottom: 3px solid var(--color-ink); }
.tb-pagehead h1 { font-family: var(--font-body); font-weight: 900; font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); line-height: 1.15; }
.tb-pagehead p { font-size: var(--text-sm); font-weight: 700; }
.tb-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 4px; }
.tb-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--color-ink); font-size: var(--text-sm); font-weight: 700; text-decoration: none; }
.tb-filter a[aria-current] { background: var(--color-ink); color: var(--color-ink-contrast); }
.tb-empty { display: grid; justify-items: start; gap: 10px; padding: 28px 0 8px; }
.tb-empty__big { font-weight: 900; font-size: clamp(1.75rem, 1.2rem + 3vw, 3rem); line-height: 1.2; }
.tb-empty a { font-weight: 900; }

/* ── 記事・店のページ ── */
.tb-article { padding-top: 20px; }
.tb-article__head { display: grid; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--color-ink); }
.tb-byline { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding-top: 10px; border-top: var(--rule-thin); font-size: var(--text-sm); font-weight: 700; max-width: none !important; }
.tb-photo { margin: 0; }
.tb-photo img { display: block; width: 100%; height: auto; }
.tb-photo figcaption { margin-top: 6px; padding-left: 8px; border-left: 3px solid var(--color-ink); font-size: var(--text-xs); line-height: 1.6; color: var(--color-text-muted); }
.tb-photo--lead { margin-top: 16px; }
.tb-article__grid { display: grid; gap: 0; margin-top: 20px; }
.tb-body { font-size: 1.0625rem; line-height: 2; overflow-wrap: anywhere; }
.tb-body > p { margin: 0 0 1.5em; }
.tb-body > p:first-child::first-letter { float: left; font-weight: 900; font-size: 3.4em; line-height: 1; padding: 4px 8px 0 0; color: var(--color-season); }
.tb-body--plain > p:first-child::first-letter { float: none; font-size: inherit; font-weight: inherit; padding: 0; color: inherit; }
.tb-body .tb-photo { margin: 0 0 1.5em; }
.tb-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-gallery .tb-photo { margin: 0; }
.tb-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.tb-info { margin: 0; }
.tb-info > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: var(--rule-thin); }
.tb-info dt { font-size: var(--text-sm); font-weight: 900; }
.tb-info dd { margin: 0; font-size: 0.9375rem; line-height: 1.8; }
.tb-back { margin-top: var(--space-4) !important; font-weight: 900; }

/* 商店街案内 */
.tb-shops { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.tb-shop { display: grid; gap: 6px; text-decoration: none; }
.tb-shop__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tb-shop__img--none { display: grid; place-items: center; background: var(--color-fill-town); font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--color-text-muted); }
.tb-shop__name { font-weight: 900; font-size: 1.125rem; line-height: 1.35; padding-bottom: 8px; border-bottom: 1px solid var(--color-ink); }

/* 団体について */
.tb-fee { font-weight: 700; }
.tb-fee b { font-size: 2rem; font-weight: 900; margin: 0 2px; }
.tb-ratio { max-width: 40rem; }

/* ── 奥付 ── */
.tb-foot { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
.tb-foot > * { margin: 0; }
.tb-foot__name { padding-top: 16px; border-top: 4px solid var(--color-ink); font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); }
.tb-foot__by { margin-top: 4px; font-size: var(--text-xs); line-height: 1.8; color: var(--color-text-muted); }
.tb-foot__nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 10px; padding-top: 6px; border-top: var(--rule-thin); font-size: var(--text-sm); font-weight: 700; }
.tb-foot__nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── 広い画面: 段を増やし、縦の罫線で区切る ── */
@media (min-width: 720px) {
  .tb-mast__by { display: inline; }
  .tb-mast__plate { grid-template-columns: 9.5rem 1fr 9.5rem; grid-template-areas: "no name fact"; gap: 20px; padding: 18px 0 14px; }
  .tb-ear { flex-direction: column; gap: 0; text-align: center; }
  .tb-ear--no { flex-direction: row; }
  .tb-ear--fact b { font-size: var(--text-xl); }
  .tb-nav a { font-size: var(--text-md); }
  .tb-columns { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .tb-columns--two { grid-template-columns: repeat(2, 1fr); max-width: 52rem; }
  .tb-columns > div { padding: 0 20px; border-top: 0; border-left: var(--rule-thin); }
  .tb-columns > div:first-child { padding-left: 0; border-left: 0; }
  .tb-items--wide .tb-items { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .tb-shops { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .tb-events--wide { max-width: 44rem; }
  .tb-event { grid-template-columns: 76px 1fr; }
}
@media (min-width: 1000px) {
  .tb-front, .tb-article__grid { grid-template-columns: minmax(0, 1fr) 19rem; column-gap: 0; }
  .tb-front > .tb-main, .tb-article__grid > .tb-body { padding-right: 32px; border-right: 1px solid var(--color-ink); }
  .tb-front > .tb-rail, .tb-article__grid > .tb-rail { padding-left: 28px; }
  .tb-rail > .tb-sec:first-child { margin-top: 0 !important; }
  .tb-lead a { grid-template-columns: 1fr; }
  .tb-items { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .tb-shops { grid-template-columns: repeat(4, 1fr); }
  .tb-body { max-width: 40em; }
}
.tb-photo--lead img { max-height: 72vh; object-fit: cover; }
.tb-box--join { max-width: 40rem; }
