/**
 * 公開サイト用シェル（案A）
 * private_mode 時: サイドバー廃止・上部ナビ・フル幅メイン
 * magazine.css のあと、または layout.css のあとに読み込む
 */

.layout-public .app-sidebar,
.layout-public .app-mobile-header,
.layout-public .app-mobile-overlay {
  display: none !important;
}

.layout-public .app-main {
  margin-left: 0 !important;
  padding-top: 0 !important;
  min-height: 100vh;
}

.layout-public .app-main-inner {
  max-width: none;
  padding: 0;
}

/* ログイン等: 公開レイアウトでも中央寄せが効くように */
.layout-public .app-main-inner.page-center {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.layout-public .app-main-inner.page-center > * {
  width: 100%;
}

/* ----- 上部ナビ ----- */
.pub-topnav {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #0b1220;
  border-bottom: 1px solid #1e293b;
  color: #fff;
}

.pub-topnav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.pub-topnav-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  transition: transform 0.15s ease;
  background: #fff;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.15);
}
.pub-topnav-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  box-sizing: border-box;
}
.pub-topnav-wordmark {
  display: block;
  width: 128px;
  height: 22px;
  flex-shrink: 0;
  /* SVG currentColor → 白字に */
  filter: brightness(0) invert(1);
}
.pub-topnav-brand:hover .pub-topnav-brand-icon,
.pub-topnav-brand:hover .pub-topnav-logo {
  transform: scale(1.06);
}
.pub-topnav-brand:hover .pub-topnav-wordmark {
  opacity: 0.92;
}
.pub-topnav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pub-topnav-brand-name {
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.pub-topnav-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.5);
}

.pub-topnav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-left: auto;
}

.pub-topnav-links a,
.pub-topnav-links button {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: inherit;
}

.pub-topnav-links a:hover,
.pub-topnav-links button:hover,
.pub-topnav-links a.active {
  color: #fff;
}

.pub-topnav-links a.pub-topnav-external {
  color: #fff;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.8rem;
}

.pub-topnav-links a.pub-topnav-external:hover {
  border-color: #e30a17;
  background: rgba(227, 10, 23, 0.15);
}

.pub-topnav-links a.active {
  box-shadow: inset 0 -2px 0 #e30a17;
}

/* Grouped nav: desktop = flat core + "もっと"; mobile = labeled sections */
.pub-nav-group {
  display: contents;
}
.pub-nav-group-label {
  display: none;
}
.pub-nav-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pub-nav-more-summary {
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 0;
  user-select: none;
}
.pub-nav-more-summary::-webkit-details-marker { display: none; }
.pub-nav-more-summary::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}
.pub-nav-more[open] .pub-nav-more-summary::after { content: " ▴"; }
.pub-nav-more-summary:hover { color: #fff; }
.pub-nav-more-body {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 10px 12px 12px;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 1205;
  flex-direction: column;
  gap: 2px;
}
.pub-nav-more[open] .pub-nav-more-body {
  display: flex;
}
.pub-nav-more-body .pub-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pub-nav-more-body .pub-nav-group:first-child {
  border-top: 0;
  padding-top: 0;
}
.pub-nav-more-body .pub-nav-group-label {
  display: block;
  margin: 0 0 4px;
  padding: 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}
.pub-nav-more-body a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.pub-nav-more-body a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.pub-nav-group-account a.pub-topnav-external {
  margin-left: 4px;
}

/* Desktop: bar actions / drawer chrome hidden */
.pub-topnav-bar-actions { display: none; align-items: center; gap: 8px; margin-left: auto; }
.pub-topnav-quick {
  display: none;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(227, 10, 23, 0.85);
  min-height: 40px;
  align-items: center;
}
.pub-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.pub-menu-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.pub-menu-toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
body.pub-nav-open .pub-menu-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.pub-nav-open .pub-menu-toggle-icon span:nth-child(2) { opacity: 0; }
body.pub-nav-open .pub-menu-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.pub-nav-drawer-title { display: none; }
.pub-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0,0,0,.45);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .pub-topnav {
    flex-wrap: nowrap;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    gap: 8px;
  }
  .pub-topnav-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 118px);
  }
  .pub-topnav-brand-text {
    min-width: 0;
    overflow: hidden;
  }
  .pub-topnav-brand-sub { display: none; }
  .pub-topnav-brand-icon { width: 36px; height: 36px; }
  .pub-topnav-logo { width: 34px; height: 34px; border-radius: 8px; padding: 2px; }
  .pub-topnav-wordmark { width: 108px; height: 18px; }
  .pub-topnav-brand-name {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pub-topnav-bar-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    margin-left: 0;
    gap: 6px;
  }
  .pub-topnav-quick {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 12px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    line-height: 1;
    box-sizing: border-box;
  }
  .pub-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
  }

  .pub-nav-backdrop {
    display: block;
  }
  body:not(.pub-nav-open) .pub-nav-backdrop { display: none; }

  .pub-topnav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 88vw);
    height: 100dvh;
    margin: 0;
    z-index: 1200;
    flex: none;
    align-self: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    background: #0e0e0e;
    border-left: 1px solid rgba(255,255,255,.12);
    box-shadow: -12px 0 40px rgba(0,0,0,.35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(105%);
    transition: transform .22s ease;
    pointer-events: none;
  }
  body.pub-nav-open .pub-topnav-links {
    transform: translateX(0);
    pointer-events: auto;
  }
  body.pub-nav-open {
    overflow: hidden;
  }

  .pub-nav-drawer-title {
    display: block;
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
  }
  .pub-topnav-links a,
  .pub-topnav-links button {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 12px;
    font-size: 1rem;
    border-radius: 10px;
    text-align: left;
    width: 100%;
  }
  .pub-topnav-links a.pub-topnav-external {
    justify-content: center;
    margin-top: 4px;
    border-radius: 999px;
    width: auto;
    align-self: stretch;
  }
  .pub-topnav-links a.active {
    box-shadow: none;
    background: rgba(227, 10, 23, 0.28);
    color: #fff;
  }

  .pub-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .pub-nav-group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .pub-nav-group-label {
    display: block;
    margin: 0 0 4px;
    padding: 0 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
  }
  .pub-nav-more {
    display: block;
    position: static;
    width: 100%;
  }
  .pub-nav-more-summary {
    display: none;
  }
  .pub-nav-more-body {
    display: flex !important;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .pub-nav-more-body .pub-nav-group {
    border-top: 0;
    padding: 0 0 10px;
  }
  .pub-nav-more-body a {
    white-space: normal;
  }
  .pub-nav-group-account a.pub-topnav-external {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .pub-topnav {
    flex-wrap: nowrap;
    padding: 10px 12px;
  }
  .pub-topnav-links {
    width: min(320px, 88vw);
  }
}

/* ----- 公開トップ（案A） ----- */
.pub-home {
  --pub-ink: #141414;
  --pub-muted: #5c574f;
  --pub-line: #ddd6cb;
  --pub-paper: #faf8f4;
  --pub-surface: #fff;
  --pub-accent: #e30a17;
  --pub-accent-dark: #a00810;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 64px;
  color: var(--pub-ink);
}

html[data-theme="dark"] .pub-home {
  --pub-ink: #f3efe8;
  --pub-muted: #a39e96;
  --pub-line: #2e2e2e;
  --pub-paper: #0f0f0f;
  --pub-surface: #161616;
}

.pub-hero {
  padding: clamp(48px, 12vh, 96px) 0 28px;
  text-align: center;
}

.pub-hero-brand {
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--pub-ink);
}

.pub-hero-brand span {
  display: block;
  color: var(--pub-accent);
}

.pub-hero-lead {
  margin: 0 auto 8px;
  max-width: 28em;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--pub-muted);
}

.pub-hero-credit {
  margin: 0 auto 22px;
  max-width: 32em;
  font-size: 0.8125rem;
  color: var(--pub-muted);
}

.pub-hero-credit a {
  color: var(--pub-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--pub-line);
}

.pub-hero-credit a:hover {
  color: var(--pub-accent);
  border-bottom-color: var(--pub-accent);
}

.pub-search-row {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.pub-search-row input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  font-size: 1.0625rem;
  border: 2px solid var(--pub-ink);
  border-radius: 2px;
  background: var(--pub-surface);
  color: var(--pub-ink);
  font-family: inherit;
}

.pub-search-row input[type="text"]:focus {
  outline: none;
  border-color: var(--pub-accent);
  box-shadow: 0 0 0 3px rgba(227, 10, 23, 0.15);
}

.pub-search-row .btn-search {
  flex-shrink: 0;
  padding: 0 22px;
  background: var(--pub-accent);
  color: #fff;
  border: 2px solid var(--pub-accent);
  border-radius: 2px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.pub-search-row .btn-search:hover {
  background: var(--pub-accent-dark);
  border-color: var(--pub-accent-dark);
}

.pub-cc-seg {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 18px auto 0;
  border: 1px solid var(--pub-line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--pub-surface);
}

.pub-cc-seg a {
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pub-muted);
  border-right: 1px solid var(--pub-line);
}

.pub-cc-seg a:last-child {
  border-right: none;
}

.pub-cc-seg a.is-active {
  background: var(--pub-ink);
  color: #fff;
}

.pub-brand-seg {
  margin-top: 10px;
}

.pub-field-hint {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--pub-muted);
}

.pub-hot {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--pub-muted);
}

.pub-hot a {
  color: var(--pub-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--pub-line);
}

.pub-hot a:hover {
  border-bottom-color: var(--pub-accent);
  color: var(--pub-accent);
}

.pub-hot-sep {
  margin: 0 6px;
  color: var(--pub-line);
}

/* 結果エリア */
.pub-results {
  margin-top: 8px;
  padding-top: 8px;
}

.pub-results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--pub-muted);
}

.pub-results-meta strong {
  color: var(--pub-ink);
  font-size: 1.05rem;
}

.pub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pub-line);
  border-radius: 2px;
  background: var(--pub-surface);
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.pub-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pub-muted);
  border-bottom: 2px solid var(--pub-ink);
  background: var(--pub-paper);
  white-space: nowrap;
}

.pub-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--pub-line);
  vertical-align: middle;
}

.pub-table tbody tr:nth-child(even) td {
  background: rgba(10, 10, 10, 0.02);
}

html[data-theme="dark"] .pub-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

.pub-table tr:last-child td {
  border-bottom: none;
}

.pub-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.pub-table tbody tr:hover {
  background: rgba(227, 10, 23, 0.04);
}

.pub-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.pub-table .model-name {
  font-weight: 700;
  color: var(--pub-ink);
  text-decoration: none;
}

.pub-table .model-name:hover {
  color: var(--pub-accent);
}

.pub-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--pub-muted);
}

/* 折りたたみ */
.pub-disclosure {
  margin-top: 20px;
  border: 1px solid var(--pub-line);
  border-radius: 2px;
  background: var(--pub-surface);
}

.pub-disclosure + .pub-disclosure {
  margin-top: 12px;
}

.pub-disclosure > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.pub-disclosure > summary::-webkit-details-marker {
  display: none;
}

.pub-disclosure > summary::before {
  content: "▸";
  color: var(--pub-accent);
  font-size: 0.85em;
}

.pub-disclosure[open] > summary::before {
  content: "▾";
}

.pub-disclosure-body {
  padding: 0 16px 20px;
  border-top: 1px solid var(--pub-line);
}

.pub-disclosure .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 16px;
}

@media (min-width: 640px) {
  .pub-disclosure .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pub-disclosure label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--pub-muted);
}

.pub-disclosure input,
.pub-disclosure select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pub-line);
  border-radius: 2px;
  background: var(--pub-paper);
  color: var(--pub-ink);
  font-size: 0.9375rem;
  font-family: inherit;
  box-sizing: border-box;
}

.pub-disclosure .range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-disclosure .form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.pub-disclosure .btn-apply {
  background: var(--pub-ink);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
}

.pub-disclosure .btn-reset {
  background: transparent;
  color: var(--pub-muted);
  border: 1px solid var(--pub-line);
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  font-family: inherit;
}

.pub-chart-host {
  min-height: 280px;
  padding-top: 12px;
}

.pub-chart-note {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: var(--pub-muted, #5c574f);
  line-height: 1.5;
}

.pub-chart-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}

.pub-chart-filters .pub-cc-seg {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.pub-chart-filter-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pub-muted, #5c574f);
  margin-right: 4px;
  align-self: center;
}

.pub-chart-table-title {
  margin: 20px 0 10px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.pub-site-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--pub-muted);
  border-top: 1px solid var(--pub-line);
}
.pub-site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  color: var(--pub-ink);
}
.pub-site-footer-brand strong {
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.pub-site-footer-brand span {
  font-size: 0.75rem;
  color: var(--pub-muted);
}

.pub-site-footer-disclaimer {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--pub-muted);
  opacity: 0.9;
}

.pub-site-footer a {
  color: var(--pub-ink);
  font-weight: 600;
  text-decoration: none;
}

.pub-site-footer a:hover {
  color: var(--pub-accent);
}

/* ----- Motohub風・サイト横断リンク ----- */
.mp-site-explore {
  border-top: 1px solid var(--pub-line, #e5e7eb);
  background: var(--pub-paper, #faf8f4);
  margin-top: 32px;
  padding: 36px 16px 28px;
}
.mp-site-explore-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.mp-site-explore-block {
  margin-bottom: 22px;
}
.mp-site-explore-heading {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--pub-ink, #141414);
  letter-spacing: 0.02em;
}
.mp-site-explore-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 8px;
}
.mp-site-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eceae6;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mp-site-pill:hover {
  background: #fff;
  border-color: #d1cdc6;
  color: #111;
}
.mp-site-pill.is-active {
  background: #141414;
  color: #fff;
  border-color: #141414;
}
.mp-site-pill.is-active:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #fff;
}

/* 一覧・検索ページ上部の絞り込み（フッターと同型） */
.mp-browse-filters {
  margin: 8px 0 28px;
  text-align: center;
}
.mp-browse-filters--footer {
  margin: 0;
}
.mp-search-main > .mp-browse-filters {
  text-align: center;
  margin: 0 0 20px;
}

html[data-theme="dark"] .mp-site-pill.is-active {
  background: #f3efe8;
  color: #121212;
  border-color: #f3efe8;
}
html[data-theme="dark"] .mp-site-pill.is-active:hover {
  background: #fff;
  color: #111;
}
.mp-site-explore-links {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--pub-line, #ddd6cb);
}
.mp-site-explore-linkrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.mp-site-explore-linkrow a {
  color: var(--pub-muted, #5c574f);
  text-decoration: none;
  font-weight: 500;
}
.mp-site-explore-linkrow a:hover {
  color: var(--pub-accent, #e30a17);
  text-decoration: underline;
}
.mp-site-explore-linkrow-center {
  margin-top: 6px;
}

html[data-theme="dark"] .mp-site-explore {
  background: #121212;
  border-top-color: #2a2a2a;
}
html[data-theme="dark"] .mp-site-explore-heading {
  color: #f3efe8;
}
html[data-theme="dark"] .mp-site-pill {
  background: #1e1e1e;
  color: #e8e4dc;
  border-color: #333;
}
html[data-theme="dark"] .mp-site-pill:hover {
  background: #2a2a2a;
  border-color: #555;
  color: #fff;
}
html[data-theme="dark"] .mp-site-explore-links {
  border-top-color: #2a2a2a;
}
html[data-theme="dark"] .mp-site-explore-linkrow a {
  color: #a39e96;
}

@media (max-width: 720px) {
  .mp-site-explore {
    padding: 28px 12px max(24px, env(safe-area-inset-bottom));
  }
  .mp-site-pill {
    min-height: 40px;
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  .mp-site-explore-linkrow {
    gap: 8px 12px;
    justify-content: flex-start;
    text-align: left;
  }
  .mp-site-explore-linkrow-center {
    justify-content: center;
  }
}

.pub-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--pub-line);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--pub-muted);
}

.pub-footer a {
  color: var(--pub-ink);
}

/* autocomplete on public hero */
.pub-search-row .autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 72px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--pub-surface);
  border: 1px solid var(--pub-line);
  border-radius: 2px;
  z-index: 50;
  text-align: left;
}

.pub-search-row .autocomplete-dropdown.is-visible {
  display: block;
}

.pub-search-row .autocomplete-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--pub-line);
  font-size: 0.9375rem;
}

.pub-search-row .autocomplete-item:last-child {
  border-bottom: none;
}

.pub-search-row .autocomplete-item:hover,
.pub-search-row .autocomplete-item[aria-selected="true"] {
  background: rgba(227, 10, 23, 0.06);
  color: var(--pub-accent);
}
