/* 西播磨の情報 — 地域の回覧板を思わせる、明るく読みやすい情報ポータル */
:root {
  --red: oklch(50% 0.16 150);
  --red-deep: oklch(40% 0.13 150);
  --green-bright: oklch(67% 0.19 145);
  --green-pale: oklch(96% 0.035 145);
  --gold: oklch(78% 0.15 82);
  --coral: oklch(63% 0.17 30);
  --ink: oklch(25% 0.025 150);
  --muted: oklch(43% 0.025 150);
  --line: oklch(83% 0.035 145);
  --line-soft: oklch(91% 0.022 145);
  --bg: oklch(96% 0.015 145);
  --panel: oklch(99% 0.006 145);
  --link: oklch(40% 0.14 245);
  --link-visited: oklch(40% 0.1 310);
  --accent-soft: var(--green-pale);
  --rank: oklch(60% 0.16 70);
  --ok: oklch(45% 0.14 150);
  --shadow: 0 2px 8px rgba(20, 76, 44, 0.08);
  --font: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-display: "Shippori Antique", "IBM Plex Sans JP", serif;
  --max: 1180px;
  --radius: 5px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, oklch(99% 0.008 145) 0, oklch(99% 0.008 145) 180px, var(--bg) 180px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.012) 2px,
      rgba(0, 0, 0, 0.012) 3px
    );
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--red);
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 24px));
  margin-inline: auto;
}

/* —— top utility —— */
.topbar {
  background: var(--green-pale);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--muted);
}

.topbar a {
  color: var(--muted);
  margin-left: 12px;
}

.topbar a:hover {
  color: var(--red);
}

/* —— masthead / search —— */
.masthead {
  background:
    radial-gradient(circle at 88% 20%, color-mix(in oklch, var(--gold) 20%, transparent) 0 70px, transparent 71px),
    oklch(99% 0.008 145);
  padding: 18px 0 15px;
}

.masthead-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 20px;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  min-width: 160px;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--red);
  line-height: 1.1;
}

.logo-mark span {
  color: var(--ink);
}

.logo-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.search-box {
  display: flex;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

.search-box input {
  flex: 1;
  border: 0;
  padding: 10px 12px;
  outline: none;
  min-width: 0;
}

.search-box button {
  border: 0;
  background: var(--red);
  color: oklch(99% 0.006 145);
  padding: 0 22px;
  cursor: pointer;
  font-weight: 700;
}

.search-box button:hover {
  background: var(--red-deep);
}

.mast-aside {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.mast-aside strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

/* —— service strip —— */
.services {
  background: var(--red-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}

.services-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  padding: 5px 0;
}

.services a {
  color: oklch(98% 0.01 145);
  padding: 7px 12px;
  border-right: 1px solid color-mix(in oklch, white 25%, transparent);
  font-size: 13px;
  white-space: nowrap;
}

.services a:last-child {
  border-right: 0;
}

.services a:hover {
  color: var(--ink);
  text-decoration: none;
  background: var(--gold);
}

.services a.hot {
  color: var(--ink);
  background: var(--gold);
  font-weight: 700;
}

/* —— seasonal one-point —— */
.seasonal-strip {
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--gold), oklch(91% 0.12 95) 45%, var(--green-pale));
  border-bottom: 1px solid color-mix(in oklch, var(--gold) 65%, var(--line));
}

.seasonal-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 7px;
}

.seasonal-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 55% 25% 55% 25%;
  color: oklch(98% 0.01 145);
  background: var(--red);
  font-size: 11px;
  font-weight: 800;
  transform: rotate(-8deg);
}

.seasonal-inner strong {
  color: var(--red-deep);
  font-size: 14px;
  white-space: nowrap;
}

.seasonal-inner > span:not(.seasonal-mark) {
  color: oklch(35% 0.04 145);
}

.seasonal-inner a {
  margin-left: auto;
  color: var(--red-deep);
  font-weight: 700;
  white-space: nowrap;
}

/* —— main grid —— */
.portal {
  padding: 14px 0 48px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 245px;
  gap: 12px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.panel-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 2px solid var(--green-bright);
  background: linear-gradient(180deg, var(--panel), var(--green-pale));
}

.panel-hd h2,
.panel-hd h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.panel-hd .more {
  font-size: 11px;
  color: var(--muted);
}

.panel-bd {
  padding: 8px 10px 10px;
}

/* left nav */
.side-nav .panel-bd {
  padding: 0;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a.is-active {
  background: var(--accent-soft);
  color: var(--red);
  font-weight: 700;
}

.side-nav .ico {
  width: 1.5em;
  height: 1.5em;
  display: inline-grid;
  place-items: center;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  border: 1px solid #f0b0b6;
  background: var(--accent-soft);
  flex-shrink: 0;
}

.side-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.side-cta {
  margin: 10px;
  display: block;
  text-align: center;
  background: var(--red);
  color: #fff !important;
  padding: 10px 8px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: var(--radius);
}

.side-cta:hover {
  background: var(--red-deep);
}

.side-note {
  margin: 0 10px 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* center topics */
.topics-main {
  display: grid;
  gap: 10px;
}

.pickup {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
}

.pickup-main {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pickup-main:hover {
  text-decoration: none;
}

.pickup-main .thumb {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #2a2a2a, #5a5a5a 45%, #e60012 140%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04) 0 6px,
      transparent 6px 12px
    );
  display: grid;
  place-items: end start;
  padding: 10px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pickup-main .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.65));
}

.pickup-main .thumb span {
  position: relative;
  z-index: 1;
  font-size: 11px;
  background: var(--red);
  padding: 2px 6px;
  font-weight: 700;
}

.pickup-main h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  line-height: 1.35;
  font-family: var(--font-display);
  font-weight: 700;
}

.pickup-main:hover h3 {
  color: var(--red);
}

.pickup-main p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pickup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-soft);
  padding-left: 12px;
}

.pickup-list li {
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}

.pickup-list li:last-child {
  border-bottom: 0;
}

.pickup-list a {
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  display: block;
}

.pickup-list a:hover {
  color: var(--red);
  text-decoration: none;
}

.pickup-list .meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.headline-list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.headline-list li:last-child {
  border-bottom: 0;
}

.headline-list .cat {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}

.headline-list a {
  color: var(--ink);
  font-size: 13px;
}

.headline-list a:hover {
  color: var(--red);
}

.headline-list time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.pin {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 0 4px;
  margin-right: 4px;
  font-weight: 700;
  vertical-align: 1px;
}

/* right column */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rank;
}

.rank-list li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rank-list li::before {
  content: counter(rank);
  font-weight: 800;
  color: var(--rank);
  font-size: 14px;
}

.rank-list li:nth-child(-n + 3)::before {
  color: var(--red);
}

.rank-list a {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.weather-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
}

.weather-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe08a, #ffb703 45%, #219ebc);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.12);
}

.weather-box strong {
  font-size: 20px;
  font-family: var(--font-display);
}

.weather-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.today-box {
  display: flex;
  align-items: center;
  gap: 11px;
}

.today-leaf {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 60% 28% 60% 28%;
  color: oklch(98% 0.01 145);
  background:
    linear-gradient(145deg, var(--green-bright), var(--red-deep));
  box-shadow: 0 4px 0 color-mix(in oklch, var(--red-deep) 28%, transparent);
  font-weight: 800;
}

.today-box strong {
  display: block;
  font-family: var(--font-display);
  color: var(--red-deep);
  font-size: 22px;
  line-height: 1.2;
}

.today-box span {
  color: var(--muted);
  font-weight: 600;
}

.today-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dotted var(--line);
  color: var(--muted);
  font-size: 12px;
}

.mini-sites {
  display: grid;
  gap: 8px;
}

.mini-site {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.mini-site:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mini-site:hover {
  text-decoration: none;
}

.mini-site .ph {
  width: 56px;
  height: 42px;
  background: #ddd
    linear-gradient(135deg, #ccc, #eee 40%, var(--red) 160%);
  object-fit: cover;
}

.mini-site strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.mini-site:hover strong {
  color: var(--red);
}

.mini-site span {
  font-size: 11px;
  color: var(--muted);
}

/* directory section */
.directory {
  margin-top: 14px;
}

.dir-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.chip:hover,
.chip.is-active {
  border-color: var(--red);
  color: var(--red);
  background: var(--accent-soft);
  font-weight: 700;
  text-decoration: none;
}

.page-trail {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.page-trail a {
  color: var(--muted);
}

.page-stack {
  display: grid;
  gap: 10px;
}

.home-menu {
  margin-bottom: 12px;
}

.home-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.home-menu-card {
  display: grid;
  gap: 4px;
  padding: 13px 14px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fafafa);
  text-decoration: none;
  color: inherit;
  min-height: 96px;
  transition: border-color 0.15s, transform 0.15s;
}

.home-menu-card:hover {
  border-color: var(--red);
  text-decoration: none;
  transform: translateY(-1px);
}

.home-menu-card strong {
  font-size: 18px;
  font-family: var(--font-display);
  color: var(--red);
}

.home-menu-card:nth-child(2) strong {
  color: oklch(48% 0.14 245);
}

.home-menu-card:nth-child(3) strong {
  color: oklch(52% 0.15 75);
}

.home-menu-card:nth-child(4) strong {
  color: var(--coral);
}

.menu-kana {
  width: fit-content;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--red-deep) !important;
  font-size: 9px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-menu-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.shops-layout {
  grid-template-columns: 180px minmax(0, 1fr);
}

@media (max-width: 960px) {
  .home-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shops-layout {
    grid-template-columns: 1fr;
  }

  .shops-layout .col-center {
    grid-column: auto !important;
  }
}

@media (max-width: 560px) {
  .home-menu-grid {
    grid-template-columns: 1fr;
  }
}

.dir-meta {
  font-size: 12px;
  color: var(--muted);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.site-card {
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.15s, transform 0.15s;
}

.site-card:hover {
  border-color: var(--red);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-card .visual {
  aspect-ratio: 16 / 10;
  background: #e8e8e8
    linear-gradient(135deg, #d0d0d0, #f2f2f2 50%, #ffd0d4);
  overflow: hidden;
  position: relative;
}

.site-card .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-card .badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
}

.site-card .badge.soon {
  background: #555;
}

.site-card .body {
  padding: 10px;
  display: grid;
  gap: 4px;
  flex: 1;
}

.site-card .ind {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}

.site-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.site-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.site-card .foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.site-card .foot em {
  font-style: normal;
  color: var(--link);
  font-weight: 600;
}

.site-card:hover .foot em {
  color: var(--red);
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* article page */
.article-page {
  background: var(--bg);
  padding: 16px 0 48px;
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 24px 28px;
  max-width: 760px;
  margin: 0 auto;
}

.article .cat {
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
}

.article h1 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
}

.article .meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.article .lead {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}

.article .body p {
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 1em;
}

.article-nav {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
}

/* footer */
.site-footer {
  background: #fff;
  border-top: 2px solid var(--red);
  padding: 22px 0 28px;
  font-size: 12px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.site-footer h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 4px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer .brand-line {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--red);
  margin: 0 0 6px;
}

/* —— trusted local links —— */
.local-links {
  margin-top: 14px;
}

.source-note {
  color: var(--muted);
  font-size: 11px;
}

.local-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.local-link-grid a {
  min-height: 110px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.local-link-grid a:hover {
  color: var(--red-deep);
  background: var(--green-pale);
  text-decoration: none;
  transform: translateY(-2px);
}

.local-link-label {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--red-deep);
  background: color-mix(in oklch, var(--green-bright) 18%, var(--panel));
  font-size: 10px;
  font-weight: 800;
}

.local-link-grid a:nth-child(2) .local-link-label {
  color: oklch(42% 0.12 65);
  background: color-mix(in oklch, var(--gold) 28%, var(--panel));
}

.local-link-grid a:nth-child(3) .local-link-label {
  color: oklch(42% 0.12 25);
  background: color-mix(in oklch, var(--coral) 15%, var(--panel));
}

.local-link-grid strong {
  font-size: 16px;
}

.local-link-grid small {
  color: var(--muted);
  font-size: 12px;
}

.copy {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .panel,
  .site-card {
    animation: rise 0.45s ease both;
  }

  .portal-grid > :nth-child(1) {
    animation-delay: 0.02s;
  }
  .portal-grid > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .portal-grid > :nth-child(3) {
    animation-delay: 0.14s;
  }

  .site-card:nth-child(1) {
    animation-delay: 0.05s;
  }
  .site-card:nth-child(2) {
    animation-delay: 0.1s;
  }
  .site-card:nth-child(3) {
    animation-delay: 0.15s;
  }
  .site-card:nth-child(4) {
    animation-delay: 0.2s;
  }
  .site-card:nth-child(5) {
    animation-delay: 0.25s;
  }
  .site-card:nth-child(6) {
    animation-delay: 0.3s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .logo-mark {
    animation: logoPulse 2.8s ease-in-out infinite;
  }

  @keyframes logoPulse {
    0%,
    100% {
      filter: none;
    }
    50% {
      filter: drop-shadow(0 0 0.4px rgba(230, 0, 18, 0.35));
    }
  }
}

/* responsive */
@media (max-width: 960px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    order: -1;
  }

  .side-nav .panel-bd {
    display: flex;
    flex-wrap: wrap;
  }

  .side-nav a {
    border: 0;
    padding: 6px 8px;
  }

  .side-count,
  .side-cta,
  .side-note {
    display: none;
  }

  .col-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .site-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .seasonal-inner {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .seasonal-inner > span:not(.seasonal-mark) {
    flex: 1;
    min-width: 200px;
  }

  .seasonal-inner a {
    width: 100%;
    margin-left: 36px;
  }

  .masthead-inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .logo {
    align-items: center;
    text-align: center;
  }

  .mast-aside {
    text-align: center;
  }

  .pickup {
    grid-template-columns: 1fr;
  }

  .pickup-list {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 8px;
  }

  .col-right {
    grid-template-columns: 1fr;
  }

  .site-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .local-link-grid {
    grid-template-columns: 1fr;
  }

  .headline-list li {
    grid-template-columns: 56px 1fr;
  }

  .headline-list time {
    grid-column: 2;
  }

  .services a {
    border-right: 0;
  }

  .board-layout {
    grid-template-columns: 1fr;
  }

  .board-form .form-row.two {
    grid-template-columns: 1fr;
  }

  .masthead-inner:has(.mast-board-lead) {
    grid-template-columns: 1fr;
  }
}

/* —— external wire —— */
.wire-note {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.wire-chips {
  margin-bottom: 6px;
}

.news-updated {
  margin: 8px 0 0;
  padding-top: 7px;
  border-top: 1px dotted var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.wire-list .ext {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

.wire-list time {
  white-space: normal;
  text-align: right;
  max-width: 9.5em;
}

.wire-empty {
  display: block !important;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.wire-empty code {
  font-size: 11px;
  background: #f0f0f0;
  padding: 1px 4px;
}

/* —— board —— */
.mast-board-lead {
  text-align: center;
  line-height: 1.4;
}

.mast-board-lead strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.mast-board-lead span {
  font-size: 12px;
  color: var(--muted);
}

.masthead-inner:has(.mast-board-lead) {
  grid-template-columns: auto 1fr auto;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 10px;
  align-items: start;
}

.board-main {
  display: grid;
  gap: 10px;
}

.board-side {
  display: grid;
  gap: 10px;
}

.board-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.board-post {
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--red);
  background: var(--panel);
  padding: 12px 12px 14px;
}

.board-post-hd h3 {
  margin: 4px 0 6px;
  font-size: 15px;
  line-height: 1.35;
  font-family: var(--font-display);
}

.board-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--accent-soft);
  padding: 1px 6px;
}

.board-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.board-seed {
  color: #fff;
  background: #444;
  padding: 0 5px;
  font-weight: 700;
}

.board-post-bd {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
}

.board-form {
  display: grid;
  gap: 10px;
}

.board-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.board-form label span {
  color: var(--muted);
}

.board-form input,
.board-form select,
.board-form textarea {
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.board-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.board-form input:focus,
.board-form select:focus,
.board-form textarea:focus {
  outline: 2px solid rgba(230, 0, 18, 0.25);
  border-color: var(--red);
}

.board-form .form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.btn-post {
  justify-self: start;
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  border-radius: var(--radius);
}

.btn-post:hover {
  background: var(--red-deep);
}

.post-flash {
  padding: 10px 12px;
  border: 1px solid var(--line);
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.55;
}

.post-flash p {
  margin: 0 0 4px;
}

.post-flash p:last-child {
  margin-bottom: 0;
}

.post-flash.is-ok {
  background: #f0fff4;
  border-color: #8fd6a8;
  color: var(--ok);
}

.post-flash.is-hold {
  background: #fff8e8;
  border-color: #f0c36a;
  color: #8a5a00;
}

.post-flash.is-block {
  background: var(--accent-soft);
  border-color: #f0a0a8;
  color: var(--red-deep);
}

.rules-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.65;
}

.rules-list li + li {
  margin-top: 6px;
}

.flow-steps {
  display: grid;
  gap: 8px;
  font-size: 12px;
}

.flow-steps div {
  display: grid;
  gap: 1px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--line);
}

.flow-steps div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.flow-steps strong {
  color: var(--red);
}

.flow-steps span {
  color: var(--muted);
}

.topic-ideas {
  margin: 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
}

.pending-note {
  margin: 0 0 8px;
  font-size: 12px;
  color: #8a5a00;
}

.pending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pending-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.pending-list li:last-child {
  border-bottom: 0;
}

.pending-list strong {
  display: block;
  margin-bottom: 2px;
}

.pending-list span {
  color: var(--muted);
  font-size: 11px;
}

.board-teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-teaser-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.board-teaser-list li:last-child {
  border-bottom: 0;
}

.board-teaser-list a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: block;
  line-height: 1.35;
}

.board-teaser-list a:hover {
  color: var(--red);
  text-decoration: none;
}

.board-teaser-list .meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
