/* ============================================================
   GifuPedia - Wikipedia (Vector 2022) 準拠スタイルシート
   アクセントカラー: 逆神の赤 (#cc3333)
   ============================================================ */

:root {
  /* Wikipedia Vector 2022 カラーパレット */
  --color-link: #3366cc;
  --color-link-visited: #3366cc;
  --color-link-red: #cc3333;
  --color-accent: #cc3333; /* 逆神の赤 */
  --color-accent-soft: #fee7e6;
  --color-text: #202122;
  --color-text-muted: #54595d;
  --color-text-subtle: #72777d;
  --color-border: #a2a9b1;
  --color-border-light: #c8ccd1;
  --color-border-lighter: #eaecf0;
  --color-bg-base: #f8f9fa;
  --color-bg-content: #ffffff;
  --color-bg-infobox: #f8f9fa;
  --color-bg-infobox-header: #ccccff; /* Wikipedia標準人物インフォボックステーブル見出し色 */
  --color-bg-infobox-sub: #dcdcdc;
  --color-header-bg: #ffffff;
  --font-serif: 'Linux Libertine', 'Georgia', 'Times New Roman', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
  --max-content-width: 99em;
  --sidebar-width: 11.75rem;
  --header-height: 3.85rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg-base);
  color: var(--color-text);
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:visited {
  color: var(--color-link);
}
a.external {
  background-position: center right;
  background-repeat: no-repeat;
  padding-right: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233366cc' d='M6 1h5v5L8.8 3.8 5.4 7.2 4.8 6.6l3.4-3.4zM2 3h3v1H2v6h6V7h1v4H1V3z'/%3E%3C/svg%3E");
}

/* ============ スティッキーヘッダー ============ */
.mw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mw-header-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0.35rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.mw-sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border-light);
  border-radius: 2px;
  font-size: 1.1rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  color: var(--color-text);
}
.mw-header-wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.mw-header-wordmark:hover,
.mw-header-wordmark:visited {
  color: var(--color-text);
  text-decoration: none;
}
.mw-header-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}
.mw-header-wordmark-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.mw-header-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.mw-header-title span {
  color: var(--color-accent); /* 逆神の赤 */
  font-weight: bold;
}
.mw-header-tagline {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.mw-header-search {
  display: flex;
  flex: 1;
  max-width: 32rem;
  margin: 0 auto;
}
.mw-header-search input {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 2px 0 0 2px;
  font-size: 0.875rem;
  background: #fff;
}
.mw-header-search input:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 1px var(--color-link);
}
.mw-header-search button {
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--color-border);
  border-left: none;
  background: var(--color-bg-base);
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text);
}
.mw-header-search button:hover {
  background: var(--color-border-lighter);
}
.mw-header-links {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* ============ ページレイアウト ============ */
.mw-page {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}

/* ============ 左サイドバー ============ */
.mw-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 0.7rem 0.6rem 2rem 0.7rem;
  background: var(--color-bg-base);
  position: sticky;
  top: var(--header-height);
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  font-size: 0.8125rem;
}
.mw-portal {
  margin-bottom: 1.25rem;
}
.mw-portal h3 {
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--color-text-subtle);
  margin: 0 0 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border-lighter);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mw-portal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mw-portal li {
  padding: 0.2rem 0;
}
.mw-portal a {
  color: var(--color-link);
}
.mw-portal a.is-active,
.mw-portal a.is-active:visited {
  font-weight: bold;
  color: var(--color-text);
}
.mw-portal a.is-active:hover {
  text-decoration: none;
}
.mw-portal .disabled-link {
  color: var(--color-text-subtle);
  cursor: default;
}

/* ============ サイドバー支援導線 ============ */
.sidebar-support {
  color: var(--color-text);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.sidebar-support h3 {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
}
.sidebar-support-appeal {
  color: var(--color-accent);
  font-weight: 700;
}
.sidebar-support p {
  margin: 0.6rem 0 0;
}
.sidebar-support .sidebar-support-button {
  display: block;
  margin-top: 0.8rem;
  padding: 0.6rem 0.25rem;
  border: 1px solid var(--color-border-light);
  border-radius: 2px;
  background: var(--color-bg-content);
  color: var(--color-text);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.sidebar-support-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 700;
}
.sidebar-support-label svg {
  flex-shrink: 0;
}
.sidebar-support-amount {
  display: block;
  margin-top: 0.15rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
}
.sidebar-support .sidebar-support-button:hover {
  background: var(--color-border-lighter);
  text-decoration: none;
}
.sidebar-support-button:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}
.sidebar-support .sidebar-support-note {
  margin-top: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

/* ============ 本文エリア ============ */
.mw-content {
  flex: 1;
  min-width: 0;
  background: var(--color-bg-content);
  border-left: 1px solid var(--color-border-lighter);
  min-height: calc(100vh - var(--header-height));
}
.mw-content-inner {
  padding: 1.25rem 2.5rem 3.5rem;
  max-width: 66rem;
}

/* ============ Wikipedia Vector 2022 ページタブ ============ */
.mw-page-tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}
.mw-namespaces,
.mw-views {
  display: flex;
  gap: 0.25rem;
}
.mw-page-tabs a,
.mw-page-tabs span {
  display: block;
  padding: 0.35rem 0.75rem;
  color: var(--color-link);
  margin-bottom: -1px;
}
.mw-page-tabs a.selected {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-link);
  font-weight: bold;
}
.mw-page-tabs a.selected:hover {
  text-decoration: none;
}
.mw-page-tabs .disabled-tab {
  color: var(--color-text-subtle);
  cursor: default;
}

/* ============ 見出し・本文 ============ */
.mw-article-title {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 1.95rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.mw-body h2 {
  font-family: var(--font-serif);
  font-weight: normal;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem 0.85rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
.mw-headline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  min-width: 0;
}
.mw-heading-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  position: relative;
  top: -0.04em;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.25;
  padding: 0.18rem 0.62rem 0.18rem 0.46rem;
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  color: var(--color-text-muted);
  background: linear-gradient(#ffffff, var(--color-bg-base));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
.mw-heading-notice-icon {
  width: 0.78rem;
  height: 0.78rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
}
@media (max-width: 640px) {
  .mw-heading-notice {
    white-space: normal;
    max-width: 100%;
  }
}
.mw-editsection {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--color-text-muted);
}
.mw-editsection a {
  color: var(--color-link);
}
.mw-body h3 {
  font-size: 1.15rem;
  font-weight: bold;
  margin: 1.35rem 0 0.5rem;
}
.mw-body p {
  margin: 0.6rem 0;
}
.mw-body ul,
.mw-body ol {
  margin: 0.5rem 0;
  padding-left: 1.8rem;
}
.mw-body li {
  margin: 0.25rem 0;
}
.mw-body blockquote {
  margin: 1rem 0;
  padding: 0.6rem 1.25rem;
  border-left: 4px solid var(--color-border);
  background: var(--color-bg-base);
  color: var(--color-text);
}
.mw-body blockquote p {
  margin: 0.25rem 0;
}
.mw-body blockquote cite {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
  font-style: normal;
}

/* ============ 目次（Wikipedia風ボックス） ============ */
.mw-toc {
  display: inline-block;
  min-width: 14rem;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.8125rem;
}
.mw-toc .mw-toc-title {
  font-weight: bold;
  text-align: center;
  display: block;
  margin-bottom: 0.35rem;
}
.mw-toc ol {
  margin: 0;
  padding-left: 1.5rem;
}
.mw-toc li {
  margin: 0.15rem 0;
}

/* ============ インフォボックス（Wikipedia人物標準） ============ */
.infobox {
  float: right;
  clear: right;
  width: 22em;
  max-width: 100%;
  margin: 0 0 1.25rem 1.5rem;
  background: var(--color-bg-infobox);
  border: 1px solid var(--color-border);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.infobox-title {
  background: var(--color-bg-infobox-header); /* #ccccff */
  text-align: center;
  font-weight: bold;
  padding: 0.45rem 0.5rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.infobox-image {
  text-align: center;
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border-lighter);
}
.infobox-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border-light);
}
.infobox table {
  width: 100%;
  border-collapse: collapse;
}
.infobox th,
.infobox td {
  text-align: left;
  vertical-align: top;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--color-border-light);
}
.infobox th {
  width: 36%;
  background: var(--color-bg-base);
  font-weight: bold;
  white-space: nowrap;
}
.infobox th.infobox-section {
  width: auto;
  text-align: center;
  background: var(--color-bg-infobox-header);
}

/* ============ Wikipedia風テーブル (wikitable) ============ */
.wikitable {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-content);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  margin: 1rem 0;
}
.wikitable th,
.wikitable td {
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.wikitable th {
  background: #eaecf0;
  font-weight: bold;
  white-space: nowrap;
}
.wikitable tr:nth-child(even) td {
  background: #f8f9fa;
}
.wikitable .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ============ メッセージボックス（スタブ通知など） ============ */
.mw-message-box {
  display: flex;
  gap: 0.85rem;
  background: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.8125rem;
}
.mw-message-box-stub {
  background: #fcfcfc;
  border-left: 4px solid var(--color-border);
}
.mw-message-box-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.mw-message-box-text strong {
  display: block;
  margin-bottom: 0.2rem;
}
.mw-message-box-text p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ============ 確度・メタ表記 ============ */
.confidence-indicator {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: help;
  margin-left: 0.35rem;
}
.mw-category-tag {
  display: inline-block;
  background: #eaecf0;
  border: 1px solid var(--color-border-light);
  border-radius: 2px;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  color: var(--color-text);
  margin-right: 0.35rem;
}
.event-date {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  white-space: nowrap;
}
.event-date small {
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: normal;
}
.event-date--partial time,
.event-date--unknown {
  color: var(--color-text-muted);
}

/* ============ 公認 岐阜テッドメンバー一覧 ============ */
.gifuted-list {
  margin: 0.75rem 0 1.5rem;
}

.gifuted-member {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border-lighter);
}

.gifuted-member:last-child {
  border-bottom: 0;
}

.gifuted-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.gifuted-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gifuted-avatar-fallback svg {
  width: 28px;
  height: 28px;
}

.gifuted-member-body {
  min-width: 0;
  flex: 1;
}

.gifuted-member-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
}

.mw-body .gifuted-member-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.gifuted-member-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.gifuted-badge {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 0.05rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.gifuted-badge-direct {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.gifuted-badge-indirect {
  border-color: var(--color-border);
}

.gifuted-badge-anonymous {
  border-color: var(--color-border-light);
}

.gifuted-member-role {
  margin: 0.15rem 0 0.35rem !important;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.mw-body .gifuted-member-bio {
  margin: 0.2rem 0 0.45rem;
}

.mw-body .gifuted-member-evidence {
  margin: 0.35rem 0;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 3px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-style: normal;
}

.gifuted-member-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 0.35rem 0 0 !important;
  padding: 0 !important;
  list-style: none;
  font-size: 0.78rem;
}

.gifuted-member-sources li {
  margin: 0 !important;
}

@media (max-width: 640px) {
  .gifuted-avatar {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .gifuted-avatar-fallback svg {
    width: 22px;
    height: 22px;
  }

  .gifuted-member {
    gap: 0.7rem;
  }
}

/* ============ 岐阜暴威軍 Tier付き主要所属者 ============ */
.boui-gun-list {
  margin: 1rem 0 1.75rem;
}

.boui-tier-section {
  margin: 1.75rem 0 2.25rem;
}

.boui-tier-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border-light);
}

.boui-tier-heading h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.boui-tier-heading p {
  margin: 0.2rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.boui-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  flex: 0 0 auto;
  padding: 0.18rem 0.52rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  background: var(--color-bg-base);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.boui-tier-badge-0 {
  border-color: #c93b2b;
  color: #a82010;
  background: #fdf0ee;
}

.boui-tier-badge-1 {
  border-color: #d48806;
  color: #945700;
  background: #fef8e7;
}

.boui-tier-badge-2 {
  border-color: #5a83a8;
  color: #315f88;
  background: #eaf3fb;
}

.boui-tier-badge-3 {
  border-color: #7d799d;
  color: #555176;
  background: #f0eff8;
}

.boui-tier-badge-4 {
  border-color: #94a3b8;
  color: #475569;
  background: #f1f5f9;
}

.boui-tier-badge-5 {
  border-color: #cbd5e1;
  color: #64748b;
  background: #f8fafc;
}

.boui-tier-badge-icon {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boui-tier-badge-2 .boui-tier-badge-icon {
  fill: currentColor;
  stroke: none;
}

.boui-tier-label {
  margin-left: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.boui-tier-list {
  margin-top: 0.7rem;
}

.boui-member {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
  padding: 1rem;
  border: 1px solid var(--color-border-lighter);
  background: var(--color-bg-content);
}

.boui-member .gifuted-avatar {
  flex-basis: 64px;
  width: 64px;
  height: 64px;
}

.boui-member-body {
  min-width: 0;
  flex: 1;
}

.boui-member-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.boui-member-name {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.boui-member-role {
  margin: 0.25rem 0 0.45rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.boui-member-bio {
  margin: 0.4rem 0 0.55rem;
}

.boui-member-status {
  margin: 0.35rem 0 0;
  color: var(--color-text-subtle);
  font-size: 0.74rem;
}

.boui-member-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: flex-end;
  margin: 0.65rem 0 0.7rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--color-border-light);
  background: var(--color-bg-base);
}

.boui-member-snapshot > div {
  display: flex;
  flex-direction: column;
  min-width: 7.5rem;
}

.boui-snapshot-label {
  color: var(--color-text-subtle);
  font-size: 0.68rem;
}

.boui-member-snapshot strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.boui-member-snapshot small {
  width: 100%;
  color: var(--color-text-subtle);
  font-size: 0.68rem;
}

.boui-member-evidence {
  margin: 0.55rem 0;
  padding: 0.4rem 0 0.4rem 0.85rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
  font-style: normal;
}

.boui-member-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 0.55rem 0 0 !important;
  padding: 0 !important;
  list-style: none;
  font-size: 0.75rem;
}

.boui-member-sources li {
  margin: 0 !important;
}

.boui-tier-section-0 {
  margin: 0.65rem 0 1.15rem;
}

.boui-tier-section-0 .boui-tier-heading {
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.35rem;
}

.boui-tier-section-0 .boui-tier-heading > div {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.boui-tier-section-0 .boui-tier-heading p {
  margin: 0;
}

.boui-member-tier-0 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.75rem;
  border-color: var(--color-accent);
  background: linear-gradient(135deg, #fff7f7 0%, var(--color-bg-content) 75%);
  box-shadow: 0 1px 3px rgba(204, 51, 51, 0.05);
}

.boui-member-tier-0 .gifuted-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.boui-member-tier-0 .boui-member-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  min-width: 0;
  line-height: 1.35;
}

.boui-member-tier-0 .boui-member-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.boui-member-tier-0 .boui-member-role {
  margin: 0;
  color: var(--color-accent);
  font-size: 0.76rem;
  font-weight: 600;
}

.boui-member-tier-0 .boui-member-bio {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-subtle);
}

.boui-member-tier-0 .boui-member-source-link {
  margin-left: auto;
  font-size: 0.74rem;
  white-space: nowrap;
}

.boui-tier-list-1 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.boui-tier-list-1 .boui-member {
  display: block;
  margin: 0;
  padding: 1.05rem;
  border-color: #edd9b5;
  background: linear-gradient(180deg, #fffefb 0%, var(--color-bg-content) 45%);
}

.boui-tier-list-1 .boui-member-role {
  color: #ad6800;
}

.boui-tier-list-1 .gifuted-avatar {
  margin-bottom: 0.75rem;
  width: 72px;
  height: 72px;
}

.boui-tier-list-1 .boui-member-name {
  font-size: 1.18rem;
}

.boui-tier-list-2,
.boui-tier-list-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.boui-tier-list-2 .boui-member,
.boui-tier-list-3 .boui-member {
  margin: 0.5rem 0;
}

.boui-tier-list-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.boui-tier-list-5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.boui-member-tier-4,
.boui-member-tier-5 {
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.35rem 0;
  padding: 0.65rem 0;
  border-width: 0 0 1px;
  background: transparent;
}

.boui-member-tier-4 .gifuted-avatar,
.boui-member-tier-5 .gifuted-avatar {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
}

.boui-member-tier-4 .boui-member-role,
.boui-member-tier-4 .boui-member-status,
.boui-member-tier-4 .boui-member-sources,
.boui-member-tier-5 .boui-member-role,
.boui-member-tier-5 .boui-member-status,
.boui-member-tier-5 .boui-member-sources {
  display: none;
}

.boui-member-tier-4 .boui-member-bio,
.boui-member-tier-5 .boui-member-bio {
  margin: 0.25rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.boui-member-tier-4 .boui-member-name,
.boui-member-tier-5 .boui-member-name {
  font-size: 0.95rem;
}

@media (max-width: 840px) {
  .boui-tier-list-1,
  .boui-tier-list-2,
  .boui-tier-list-3,
  .boui-tier-list-4,
  .boui-tier-list-5 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .boui-member {
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .boui-member .gifuted-avatar {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .boui-member-tier-0 {
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
  }

  .boui-member-tier-0 .gifuted-avatar {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .boui-member-tier-0 .boui-member-name {
    font-size: 0.95rem;
  }

  .boui-member-snapshot > div {
    min-width: 6.2rem;
  }
}

/* ============ カテゴリフッター (catlinks) ============ */
.catlinks {
  border: 1px solid var(--color-border);
  background: var(--color-bg-base);
  padding: 0.5rem 0.85rem;
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  clear: both;
}
.mw-normal-catlinks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.catlinks-title {
  font-weight: bold;
}
.catlinks ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.catlinks li {
  margin: 0;
  padding: 0;
}
.catlinks li + li::before {
  content: '| ';
  color: var(--color-border);
  margin-right: 0.5rem;
}

/* ============ 脚注セクション ============ */
.mw-references-wrap {
  margin-top: 2rem;
  padding-top: 0.5rem;
}
.references {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.references ol {
  padding-left: 2rem;
}
.references li {
  margin: 0.35rem 0;
}
.mw-cite-backlink a {
  color: var(--color-link);
  font-weight: bold;
  text-decoration: none;
}
.reference-text a {
  word-break: break-all;
}

/* ============ フィルターフォーム ============ */
.filter-form {
  background: var(--color-bg-base);
  border: 1px solid var(--color-border-light);
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.8125rem;
}
.filter-form select,
.filter-form input {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 0.8125rem;
  background: #fff;
}
.filter-form button {
  padding: 0.3rem 0.9rem;
  background: var(--color-link);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.filter-form button:hover {
  background: #2a4b8d;
}

/* ============ ページネーション ============ */
.pagination {
  margin: 1.5rem 0;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  font-size: 0.8125rem;
}
.pagination a,
.pagination span {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-content);
  border-radius: 2px;
}
.pagination span.current {
  background: var(--color-link);
  color: #fff;
  border-color: var(--color-link);
}

/* ============ 記事メタ・更新日 ============ */
.article-meta-date {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border-lighter);
}

/* ============ フッター ============ */
.mw-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.mw-footer p {
  margin: 0.35rem 0;
}
.mw-footer-links {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.mw-footer-links a {
  color: var(--color-link);
}

/* ============ 検索結果 ============ */
.search-results-list {
  margin: 1rem 0;
}
.search-result-item {
  margin-bottom: 1.25rem;
}
.search-result-item .result-type {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  display: block;
}
.search-result-item h3 {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.05rem;
}
.search-result-item p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============ ユーティリティ ============ */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ============ レスポンシブ ============ */
@media (max-width: 1000px) {
  .mw-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    max-height: none;
    background: var(--color-bg-content);
    border-right: 1px solid var(--color-border-light);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    padding-top: calc(var(--header-height) + 1rem);
  }
  body.sidebar-open .mw-sidebar {
    transform: translateX(0);
  }
  .mw-sidebar-toggle {
    display: block;
  }
  .mw-content {
    border-left: none;
  }
  .mw-content-inner {
    padding: 1rem 1.25rem 2.5rem;
  }
  .infobox {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
  }
  .mw-header-links {
    display: none;
  }
}

/* ============ 岐阜年表：縦長タイムライン ============ */
.timeline-page {
  --timeline-red: #cc3333;
  --timeline-profile: #7b1fa2;
  --timeline-investment: #14863d;
  --timeline-streaming: #7e2aae;
  --timeline-event: #d71920;
  --timeline-media: #e85d04;
  --timeline-policy: #0b63ce;
}

.timeline-intro {
  max-width: 54rem;
  margin: 0.65rem 0 1rem !important;
  font-size: 0.9rem;
}

.timeline-card a:focus-visible {
  outline: 3px solid rgba(51, 102, 204, 0.35);
  outline-offset: 2px;
}

.timeline-stage {
  position: relative;
  overflow: hidden;
  margin: 0 -0.5rem;
  padding: 1.5rem 0.75rem 1.2rem;
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(162, 169, 177, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 169, 177, 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
}

.mw-body .timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -1.5rem;
  bottom: -1.4rem;
  left: calc(50% - 2px);
  width: 4px;
  border-radius: 2px;
  background: var(--timeline-red);
  box-shadow: 0 0 0 1px rgba(204, 51, 51, 0.06);
}

.timeline-year-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.timeline-year-marker {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 0.5rem;
}

.timeline-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem 0.35rem 1.1rem;
  background: #ffffff;
  border: 1.5px solid #202122;
  border-radius: 999px;
  box-shadow: 0 0 0 4px #ffffff, 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-year-badge:hover {
  transform: translateY(-1px);
  border-color: var(--timeline-red);
  box-shadow: 0 0 0 4px #ffffff, 0 4px 12px rgba(0, 0, 0, 0.12);
}

.timeline-year-text {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #202122;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timeline-year-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--color-accent-soft, #fee7e6);
  color: var(--timeline-red, #cc3333);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.timeline-events-branch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mw-body .timeline-item {
  --category-color: var(--timeline-event);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  margin: 0;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.timeline-item[data-category='profile'] { --category-color: var(--timeline-profile); }
.timeline-item[data-category='investment'] { --category-color: var(--timeline-investment); }
.timeline-item[data-category='streaming'] { --category-color: var(--timeline-streaming); }
.timeline-item[data-category='event'] { --category-color: var(--timeline-event); }
.timeline-item[data-category='media'] { --category-color: var(--timeline-media); }
.timeline-item[data-category='policy'] { --category-color: var(--timeline-policy); }

.mw-body .timeline-item--origin {
  margin-bottom: 7rem;
}

.timeline-node {
  grid-column: 2;
  grid-row: 1;
  z-index: 3;
  justify-self: center;
  align-self: start;
  margin-top: 1.95rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--category-color);
  background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 1px 3px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.timeline-item:hover .timeline-node {
  transform: scale(1.3);
  background-color: var(--category-color);
}

.timeline-elapsed {
  position: absolute;
  z-index: 4;
  top: calc(100% + 2.6rem);
  left: 50%;
  padding: 0.15rem 0.5rem;
  transform: translateX(-50%);
  background: #fff;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-elapsed::before,
.timeline-elapsed::after {
  content: '—';
  color: #111;
  margin: 0 0.3rem;
}

.timeline-card {
  position: relative;
  grid-row: 1;
  min-width: 0;
  min-height: 7.1rem;
  padding: 0.7rem 0.75rem 0.6rem;
  border: 2px solid #111;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.12);
}

.timeline-item--left .timeline-card {
  grid-column: 1;
  margin-right: 0.8rem;
  margin-left: 0;
}

.timeline-item--right .timeline-card {
  grid-column: 3;
  margin-left: 0.8rem;
  margin-right: 0;
}

.timeline-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 2.1rem;
  width: calc(0.8rem + 43px);
  height: 4px;
  background: var(--category-color, var(--timeline-red));
}

.timeline-item--left .timeline-card::before {
  right: calc(-0.8rem - 43px);
  left: auto;
}

.timeline-item--right .timeline-card::before {
  left: calc(-0.8rem - 43px);
  right: auto;
}

.timeline-card--illustrated {
  padding-right: 7.6rem;
}

.timeline-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.3rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.timeline-card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.48rem;
  border-radius: 3px;
  background: var(--category-color);
  color: #fff;
  font-weight: 800;
  line-height: 1;
}

.timeline-card-category svg {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.timeline-event-type {
  color: var(--category-color);
  font-weight: 700;
}

.mw-body .timeline-card-title {
  display: block;
  margin: 0 0 0.22rem;
  padding: 0;
  border: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.mw-body .timeline-card-summary {
  margin: 0;
  color: var(--color-text);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.timeline-illustration {
  position: absolute;
  top: 0.62rem;
  right: 0.55rem;
  display: block;
  width: 6.5rem;
  height: 5.6rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.timeline-illustration--baby {
  width: 6.6rem;
  height: 6.6rem;
  object-fit: contain;
}

.mw-body .timeline-quote {
  margin: 0.5rem 0 0;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-left: 3px solid var(--category-color);
  background: #f8f9fa;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.45;
}

.timeline-trading-data {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.72rem;
}

.timeline-profit-loss {
  display: inline-flex;
  padding: 0.17rem 0.42rem;
  border: 1px solid #ff8b8b;
  border-radius: 3px;
  background: #fffafa;
  color: #d71920;
  line-height: 1.25;
}


.timeline-card-links {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin-top: 0.55rem;
  padding-top: 0.42rem;
  border-top: 1px solid #c8ccd1;
  font-size: 0.69rem;
  line-height: 1.4;
}

.timeline-related-links,
.timeline-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  min-width: 0;
}

.timeline-source-links {
  justify-content: flex-end;
  flex: 0 1 auto;
}

.timeline-card-links a {
  white-space: nowrap;
}

.timeline-source-missing {
  flex: 0 0 auto;
  color: var(--color-text-subtle);
}

.timeline-ending {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--timeline-red);
}

.timeline-ending svg {
  width: 3.4rem;
  height: 2.8rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 7;
}

.timeline-ending strong {
  padding: 0.1rem 0.5rem;
  background: #fff;
  font-size: 0.88rem;
}

.timeline-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-height: 15rem;
  padding: 4.5rem 1rem;
  text-align: center;
}

.timeline-motion .timeline-list::before {
  transform-origin: top;
  animation: timeline-axis-reveal 1.1s ease-out both;
}

.timeline-motion .timeline-year-marker,
.timeline-motion .timeline-item,
.timeline-motion .timeline-ending {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.timeline-motion .timeline-year-marker.is-visible,
.timeline-motion .timeline-item.is-visible,
.timeline-motion .timeline-ending.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes timeline-axis-reveal {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (max-width: 760px) {
  .timeline-stage {
    margin-right: -1.25rem;
    margin-left: -1.25rem;
    padding: 1.25rem 0.8rem 1rem 0.45rem;
  }

  .mw-body .timeline-list {
    gap: 1.5rem;
  }

  .timeline-list::before {
    left: 2rem;
  }

  .timeline-year-section {
    gap: 0.85rem;
  }

  .timeline-year-marker {
    justify-content: flex-start;
    padding-left: 0.35rem;
    margin: 0.6rem 0 0.25rem;
  }

  .timeline-year-badge {
    padding: 0.25rem 0.75rem 0.25rem 0.85rem;
  }

  .timeline-year-text {
    font-size: 0.98rem;
  }

  .timeline-year-count {
    font-size: 0.68rem;
    padding: 0.1rem 0.42rem;
  }

  .mw-body .timeline-item {
    grid-template-columns: 4.2rem minmax(0, 1fr);
  }

  .timeline-node {
    grid-column: 1;
    margin-top: 1.7rem;
    width: 14px;
    height: 14px;
    border-width: 3px;
    box-shadow: 0 0 0 2px #fff;
  }

  .mw-body .timeline-item--origin {
    margin-bottom: 6rem;
  }

  .timeline-elapsed {
    top: calc(100% + 2.25rem);
    left: 2.1rem;
    transform: none;
  }

  .timeline-item--left .timeline-card,
  .timeline-item--right .timeline-card {
    grid-column: 2;
    margin-right: 0;
    margin-left: 0.4rem;
  }

  .timeline-item--left .timeline-card::before,
  .timeline-item--right .timeline-card::before {
    right: auto;
    left: -1.7rem;
    width: 1.7rem;
  }

  .timeline-card {
    padding: 0.65rem;
  }

  .timeline-card--illustrated {
    min-height: 7.4rem;
    padding-right: 5.8rem;
  }

  .timeline-illustration {
    top: 0.65rem;
    right: 0.35rem;
    width: 5rem;
    height: 4.5rem;
  }

  .timeline-illustration--baby {
    width: 5.1rem;
    height: 5.1rem;
  }

  .mw-body .timeline-card-title {
    font-size: 0.98rem;
  }

  .mw-body .timeline-card-summary {
    font-size: 0.75rem;
  }

  .timeline-card-links {
    flex-direction: column;
  }

  .timeline-source-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .timeline-card--illustrated {
    padding-right: 0.65rem;
    padding-bottom: 5rem;
  }

  .timeline-illustration {
    top: auto;
    right: 0.4rem;
    bottom: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-motion .timeline-list::before {
    animation: none;
  }

  .timeline-motion .timeline-item,
  .timeline-motion .timeline-ending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .timeline-item,
  .timeline-ending {
    break-inside: avoid;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============ メインページ（ポータル） ============ */
.mp-welcome {
  border: 1px solid var(--color-border);
  background: var(--color-bg-base);
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.25rem;
}
.mp-welcome-kicker {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem !important;
}
.mp-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}
.mp-box {
  border: 1px solid var(--color-border);
  margin: 0 0 1rem;
  background: #fff;
}
.mp-box h2 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  background: #eaecf0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.mp-box h2 a {
  font-weight: normal;
  font-size: 0.75rem;
  white-space: nowrap;
}
.mp-box-body {
  padding: 0.65rem 0.85rem 0.85rem;
}
.mp-box-body p:first-child {
  margin-top: 0;
}
.mp-featured {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.mp-featured img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--color-border-light);
  background: #fff;
}
.mp-featured-title {
  font-size: 1.05rem;
  font-weight: bold;
  margin: 0 0 0.35rem !important;
}
.mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mp-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border-lighter);
}
.mp-list li:last-child {
  border-bottom: none;
}
.mp-date {
  flex: 0 0 7.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}
.mp-box-body blockquote {
  margin: 0.5rem 0;
}

@media (max-width: 800px) {
  .mp-grid {
    grid-template-columns: 1fr;
  }
  .mp-date {
    flex-basis: 100%;
  }
}

/* ============================================================
   配信アーカイブ (Streams) - YouTubeサムネイル & 見やすいテーブル
   ============================================================ */
.streams-table td {
  vertical-align: top;
  padding: 0.75rem 0.65rem;
}

.stream-title-cell {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 260px;
}

.stream-thumb-link {
  display: block;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--color-border-light);
  background: #111;
  position: relative;
}

.stream-thumb-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.stream-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #181818;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* YouTube再生ボタンオーバーレイ */
.stream-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 25px;
  background: rgba(204, 0, 0, 0.88);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: none;
}

.stream-thumb-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 2px;
}

.stream-thumb-link:hover .stream-thumb-play {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.12);
}

/* YouTubeバッジ */
.stream-thumb-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* フォールバック用プレースホルダー */
.stream-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e24 0%, #2e3038 100%);
  color: #fff;
  gap: 4px;
}

.stream-thumb-fallback-icon {
  width: 34px;
  height: 24px;
  background: #cc0000;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-thumb-fallback-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 8px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 2px;
}

.stream-thumb-fallback-text {
  font-size: 0.6875rem;
  color: #ccc;
  font-weight: bold;
}

/* タイトルテキストリンク */
.stream-title-link {
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.45;
  text-decoration: none;
  display: inline;
  transition: color 0.15s ease;
}

.stream-title-link:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.stream-external-icon {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
