* {
  box-sizing: border-box;
}

body main.site-main.politician-page {
  max-width: 1320px !important;
  padding-left: 10px;
  padding-right: 10px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #222;
  background: #f7f7f7;
}

a {
  color: inherit;
  text-decoration: none;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 5px 12px;
  display: grid;
  grid-template-areas:
    "logo search toggle"
    "nav nav nav";
  gap: 0px 5px;
  align-items: center;
}

.nav-toggle {
  grid-area: toggle;
  justify-self: end;
}


.page-container,
.article-container,
.tool-container {
  background: #fff;
  padding: 32px;
  border-radius: 14px;
}

h1 {
  font-size: 30px;
  line-height: 1.3;
  margin-top: 0;
}

h2 {
  margin-top: 40px;
  font-size: 22px;
}

.lead {
  font-size: 17px;
  color: #555;
}

.breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #333;
}

.ad-box {
  margin: 32px 0;
  padding: 16px;
  background: #f2f2f2;
  text-align: center;
}

.affiliate-box {
  margin: 40px 0;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
}

.affiliate-label {
  font-weight: 700;
  margin-bottom: 12px;
}

.affiliate-button {
  display: inline-block;
  padding: 12px 24px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
}

.related-links {
  margin-top: 40px;
}

.related-links ul {
  padding-left: 20px;
}

/* ---------------- Footer ---------------- */

.site-footer {

  margin-top: 60px;

  background: #ffffff;

  border-top: 3px solid #10b981;

  box-shadow: 0 -4px 18px rgba(0, 0, 0, .04);

}

.footer-inner {

  max-width: 1320px;

  margin: auto;

  padding: 40px 18px;

  display: grid;

  gap: 40px;

}

.footer-brand {

  max-width: 460px;

}

.footer-logo {

  font-family: "Inter", sans-serif;

  font-size: 26px;

  font-weight: 900;

  letter-spacing: .08em;

  background: linear-gradient(90deg,
      #065f46,
      #059669,
      #10b981);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;

}

.footer-description {
  color: #5b6770;
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-copyright {
  color: #7b8790;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;

}

.footer-column h4 {
  color: #065f46;
  font-size: 15px;
  margin-bottom: 12px;

}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;

}

.footer-column a {
  text-decoration: none;
  color: #4b5563;
  transition: .2s;
  font-size: 14px;

}

.footer-column a:hover {
  color: #10b981;
  padding-left: 5px;

}

@media(max-width:900px) {

  .footer-inner {
    grid-template-columns: 1fr;
  }

}

@media(min-width:900px) {

  .footer-inner {
    grid-template-columns: 420px 1fr;
    align-items: flex-start;
  }

}

@media(max-width:650px) {

  .footer-links {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-logo {
    font-size: 22px;
  }

}

/* ヘッダースタイル */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: -bottom 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid #10b981;
}

.site-logo {
  font-family: "Inter", sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  background: linear-gradient(90deg,
      #065f46,
      #059669,
      #10b981);

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  transition: .25s;
  position: relative;
  display: inline-block;
}

.site-logo:hover {

  filter: brightness(1.08);

  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.site-nav a:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* ヘッダー・ナビのスタイル */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #0f172a;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: 0.25s ease;
}

/* タブレット以下 */
@media (max-width: 768px) {
  .header-inner {
    position: relative;
    padding: 14px 16px;
  }

  .site-logo {
    font-size: 22px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    justify-content: flex-start;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
  }

  .site-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

.politician-hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
}

.politician-photo img,
.no-photo {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f5f9;
}

.no-photo {
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 13px;
}

.politician-main-info h1 {
  margin: 0;
  font-size: 24px;
}

.politician-kana {
  margin: 4px 0 8px;
  color: #64748b;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.info-badge {
  background: #e5e7eb;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.info-badge.leader {
  background: #fef3c7;
}

.info-badge.cabinet {
  background: #dbeafe;
}

.intro-text {
  line-height: 1.7;
  margin: 10px 0 0;
}

.vote-card,
.info-section,
.comment-section {
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.vote-card h2,
.info-section h2,
.comment-section h2 {
  margin-top: 0;
  font-size: 18px;
}

.vote-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vote-buttons button,
.comment-section button {
  border: 0;
  border-radius: 10px;
  padding: 14px 8px;
  font-weight: 700;
  font-size: 14px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.vote-buttons button:nth-child(2) {
  background: #64748b;
}

.vote-buttons button:nth-child(3) {
  background: #ef4444;
}

.vote-message {
  color: #2563eb;
  font-weight: 700;
}

.vote-chart-wrap {
  display: grid;
  place-items: center;
  margin-top: 12px;
}

.vote-legend {
  display: flex;
  gap: 12px;
  font-size: 14px;
  font-weight: bold;
  color: #475569;
}

.politician-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%);
  border: 1px solid #d8eee4;
  box-shadow: 0 8px 24px rgba(15, 118, 82, .06);
}

.primary-role-badge {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 8px;
  padding: 5px 11px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
  font-weight: 800;
  font-size: 14px;
}

.compact-status-box {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.compact-status-box div {
  background: #ffffff;
  border: 1px solid #cdeede;
  border-radius: 10px;
  padding: 7px 5px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(15, 118, 82, .05);
}

.compact-status-box span {
  display: block;
  color: #047857;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.compact-status-box strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 12px;
  line-height: 1.25;
}

.info-section {
  background: #ffffff;
  border: 1px solid #d8eee4;
  box-shadow: 0 6px 18px rgba(15, 118, 82, .04);
}

.info-section h2 {
  border-left: 4px solid #10b981;
  padding-left: 9px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.info-table div {
  display: block;
  padding: 10px;
  border: 1px solid #e5f4ed;
  border-radius: 10px;
  background: #fbfefc;
}

.info-table span {
  display: block;
  margin-bottom: 4px;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.info-table strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.vote-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .06);
}

.vote-card h2 {
  color: #1e3a8a;
}

.role-item {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

.history-item {
  background: #fbfefc;
  border: 1px solid #e5f4ed;
  border-radius: 10px;
  padding: 10px;
}

@media (min-width: 560px) {
  .info-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .info-table {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.simple-list,
.source-list {
  padding-left: 20px;
  line-height: 1.8;
}

.comment-section textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box;
}

.comment-card {
  border-top: 1px solid #e5e7eb;
  padding: 12px 0;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.comment-card p {
  line-height: 1.7;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-actions button {
  background: #f1f5f9;
  color: #111827;
  padding: 7px 9px;
  font-size: 12px;
}

@media (min-width: 720px) {
  .politician-hero {
    grid-template-columns: 140px 1fr;
  }

  .politician-photo img,
  .no-photo {
    width: 140px;
    height: 176px;
  }

  .politician-main-info h1 {
    font-size: 30px;
  }
}

.site-main {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0px;
  box-sizing: border-box;
}

/* 議員ページ */

.politician-page {
  max-width: 1280px;
}

.politician-hero {
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 14px;
}

.politician-main-info h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.leader-mini-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.role-list,
.history-list {
  display: grid;
  gap: 8px;
}

.role-item {
  padding: 9px 10px;
  border-radius: 9px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  font-weight: 700;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}

.history-item span {
  color: #64748b;
  font-size: 13px;
}

.vote-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, .45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.vote-popup[hidden] {
  display: none;
}

.vote-popup-inner {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}

.vote-popup-inner strong {
  font-size: 20px;
}

.vote-popup-inner button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

@media (min-width: 720px) {
  .site-main {
    padding: 20px;
  }

  .politician-hero {
    grid-template-columns: 180px 1fr;
    gap: 22px;
    padding: 22px;
  }

  .politician-photo img,
  .no-photo {
    width: 180px;
    height: 226px;
  }

  .compact-status-box {
    grid-template-columns: 1fr;
  }
}

.current-status-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.current-status-strip div {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 5px 14px rgba(15, 118, 82, .06);
}

.current-status-strip span {
  display: block;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.current-status-strip strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
}

@media (min-width: 720px) {
  .current-status-strip {
    gap: 12px;
  }

  .current-status-strip strong {
    font-size: 16px;
  }
}

.politician-support-rate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin-top: 10px;
  padding: 10px 14px;

  background: linear-gradient(135deg,
      #ecfdf5 0%,
      #d1fae5 100%);

  border: 1px solid #a7f3d0;
  border-radius: 12px;
}

.support-rate-label {
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.support-rate-value {
  color: #047857;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.support-rate-value small {
  margin-left: 2px;
  font-size: 15px;
  font-weight: 800;
}

.vote-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 14px;
  padding-bottom: 12px;

  border-bottom: 1px solid #d8eee4;
}

.vote-chart-title {
  display: block;

  color: #064e3b;
  font-size: 17px;
  font-weight: 900;
}

.vote-chart-heading>div:first-child small {
  display: block;

  margin-top: 2px;

  color: #64748b;
  font-size: 11px;
}

.vote-chart-support {
  display: flex;
  align-items: baseline;
  gap: 7px;

  padding: 7px 12px;

  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
}

.vote-chart-support>span {
  color: #065f46;
  font-size: 12px;
  font-weight: 800;
}

.vote-chart-support strong {
  color: #047857;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.vote-chart-support strong small {
  margin-left: 1px;

  font-size: 13px;
}

/* 政治家一覧ページ */

.list-page {
  max-width: 1320px !important;
  width: 100%;
  padding: 12px;
}

.list-header {
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%);
  border: 1px solid #d8eee4;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.list-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.list-header p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.7;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cdeede;
  color: #065f46;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

.tab-nav a.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.politician-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.politician-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  background: #ffffff;
  border: 1px solid #e5f4ed;
  border-radius: 12px;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 4px 12px rgba(15, 118, 82, .04);
}

.politician-card:hover {
  border-color: #10b981;
}

.card-image img,
.card-image .no-photo.small {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 9px;
}

.card-image .no-photo.small {
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 10px;
}

.card-body {
  min-width: 0;
}

.card-body strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.card-body .national {
  background-color: #10b981;
  color: white;
  border-radius: 5px;
  padding: 2px;
  margin-left: 2px;
}

.card-body span {
  display: inline-block;
  margin-top: 3px;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.card-body small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.mini-label {
  display: inline-block !important;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e !important;
  font-size: 10px !important;
}

.party-section {
  margin-top: 18px;
}

.party-section h2 {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid #10b981;
  font-size: 20px;
}

.leader-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.leader-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(146, 64, 14, .07);
}

.leader-card img,
.leader-card .no-photo.small {
  width: 76px;
  height: 94px;
  object-fit: cover;
  border-radius: 10px;
}

.leader-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.leader-card strong {
  display: block;
  font-size: 19px;
}

.leader-card small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

@media (min-width: 560px) {
  .politician-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .politician-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .politician-card {
    grid-template-columns: 64px 1fr;
  }

  .card-image img,
  .card-image .no-photo.small {
    width: 64px;
    height: 80px;
  }
}

@media (min-width: 1180px) {
  .politician-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.party-link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.party-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid #d8eee4;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  color: #111827;
}

.party-link-card strong {
  font-size: 16px;
}

.party-link-card span {
  color: #047857;
  font-weight: 800;
}

.kana-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0 2px;
  margin-top: 8px;
}

.kana-nav a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cdeede;
  color: #065f46;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

.kana-nav a.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

@media (min-width: 560px) {
  .party-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .party-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 内閣一覧 */
.cabinet-prime-section {
  margin-bottom: 18px;
}

.cabinet-prime-section h2 {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid #10b981;
  font-size: 20px;
}

.prime-minister-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(146, 64, 14, .08);
}

.prime-photo img,
.prime-photo .no-photo.small {
  width: 104px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

.prime-info strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.25;
}

.prime-info small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-weight: 700;
}

.cabinet-card small {
  color: #475569;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .prime-minister-card {
    grid-template-columns: 140px 1fr;
  }

  .prime-photo img,
  .prime-photo .no-photo.small {
    width: 140px;
    height: 176px;
  }

  .prime-info strong {
    font-size: 34px;
  }
}

/* トップページ */
.home-vote-hero {
  display: grid;
  gap: 16px;
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid #d8eee4;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, .16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 10px 28px rgba(15, 118, 82, .08);
}

.home-vote-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  font-weight: 900;
}

.home-vote-text h1 {
  margin: 10px 0 8px;
  color: #064e3b;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: .02em;
}

.home-vote-text p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
  font-weight: 700;
}

.home-vote-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #cdeede;
}

.home-vote-photo img,
.home-vote-photo .no-photo {
  width: 76px;
  height: 94px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.home-vote-profile {
  min-width: 0;
}

.home-vote-profile strong {
  display: block;
  color: #064e3b;
  font-size: 20px;
  font-weight: 900;
}

.home-vote-profile span,
.home-vote-profile em {
  display: inline-flex;
  margin-top: 5px;
  margin-right: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.home-vote-action {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.home-vote-action p {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.home-vote-action a {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669, #10b981);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(16, 185, 129, .24);
}

@media (min-width: 760px) {
  .home-vote-hero {
    grid-template-columns: 1fr 360px;
    align-items: center;
    padding: 24px;
  }

  .home-vote-card {
    grid-template-columns: 92px 1fr;
  }

  .home-vote-photo img,
  .home-vote-photo .no-photo {
    width: 92px;
    height: 116px;
  }
}

.home-page {
  max-width: 1320px !important;
}

.home-intro,
.home-section,
.home-party-block {
  background: #ffffff;
  border: 1px solid #d8eee4;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(15, 118, 82, .04);
}

.home-intro {
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%);
}

.home-intro h1 {
  margin: 0 0 10px;
  font-size: 20px;
}

.home-intro p,
.section-lead,
.home-party-heading p {
  color: #475569;
  line-height: 1.8;
  margin: 0 0 10px;
}

.home-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.home-quick-links a,
.home-action-card a,
.home-party-heading a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
}

.home-section h2 {
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 4px solid #10b981;
  font-size: 22px;
}

.home-action-card {
  margin-top: 10px;
}

.home-party-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.home-party-heading h3 {
  margin: 0 0 4px;
  font-size: 21px;
}

@media (min-width: 720px) {

  .home-intro,
  .home-section,
  .home-party-block {
    padding: 20px;
  }

  .home-quick-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-party-heading {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* 検索ページ */
.global-search-form {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 0px;
  width: 100%;
  max-width: 520px;
  margin: 8px auto;
}

.global-search-form input,
.page-search-form input {
  width: 100%;
  height: 40px;
  padding: 9px 10px;
  border: 1px solid #cdeede;
  font-size: 14px;
  box-sizing: border-box;
}

.global-search-form button,
.page-search-form button {
  width: 60px;
  height: 40px;
  padding: 5;
  border: 0;
  background: #10b981;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.page-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 640px;
  margin: 12px 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 22px 0;
}

.pagination a {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cdeede;
  color: #065f46;
  text-decoration: none;
  font-weight: 700;
}

.pagination a.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* 選挙区ページ */
.constituency-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.constituency-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid #d8eee4;
  background: #ffffff;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 4px 12px rgba(15, 118, 82, .04);
}

.constituency-link-card strong {
  font-size: 14px;
  color: #064e3b;
}

.constituency-link-card span {
  flex: 0 0 auto;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.constituency-link-card:hover {
  border-color: #10b981;
  background: #f7fcfa;
}

.constituency-link-card.proportional {
  border-color: #dbeafe;
}

.constituency-link-card.proportional strong {
  color: #1e3a8a;
}

.constituency-link-card.proportional span {
  color: #2563eb;
}

@media (min-width: 560px) {
  .constituency-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .constituency-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .global-search-form {
    display: flex;
  }

  .constituency-link-grid.block-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.constituency-section h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.section-sub-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 800;
}

/* アンケートポップアップ */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
}

.profile-modal[hidden] {
  display: none;
}

.profile-modal-inner {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  border-top: 5px solid #10b981;
}

.profile-modal-inner h2 {
  margin: 0 0 8px;
  color: #064e3b;
  font-size: 21px;
}

.profile-modal-inner p {
  color: #475569;
  line-height: 1.7;
  font-size: 14px;
}

.profile-modal-inner label {
  display: block;
  margin-top: 14px;
  font-weight: 800;
  color: #111827;
}

.profile-modal-inner select {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #b7e4cf;
  border-radius: 10px;
  box-sizing: border-box;
}

.profile-modal-inner button {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: 0;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.modal-locked {
  overflow: hidden;
}

/* 選挙ページ */
.election-list {
  display: grid;
  gap: 10px;
}

.election-list-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d8eee4;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  text-decoration: none;
}

.election-list-card strong {
  display: block;
  color: #064e3b;
  font-size: 16px;
}

.election-list-card span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.election-list-card em {
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 900;
  color: #047857;
}

.election-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.election-meta-grid div {
  background: #fff;
  border: 1px solid #d8eee4;
  border-radius: 12px;
  padding: 10px;
}

.election-meta-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.election-meta-grid strong {
  display: block;
  margin-top: 3px;
  color: #064e3b;
  font-size: 14px;
}

.party-summary-wrap {
  display: grid;
  gap: 16px;
}

.party-summary-list {
  display: grid;
  gap: 8px;
}

.party-summary-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d8eee4;
  border-radius: 12px;
  background: #fff;
}

.party-rank {
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.party-summary-row strong {
  color: #111827;
}

.party-summary-row em {
  font-style: normal;
  font-weight: 900;
  color: #064e3b;
}

.party-pie-card {
  background: #fff;
  border: 1px solid #d8eee4;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  place-items: center;
}

.election-winner-table-wrap {
  overflow-x: auto;
}

.election-winner-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: #fff;
}

.election-winner-table th,
.election-winner-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 7px;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.election-winner-table th {
  color: #065f46;
  background: #f0fdf4;
  white-space: nowrap;
}

.election-winner-table td small {
  display: block;
  color: #64748b;
  font-size: 11px;
}

.election-winner-table a {
  color: #064e3b;
  text-decoration: none;
}

@media (min-width: 760px) {
  .election-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .party-summary-wrap {
    grid-template-columns: 1fr 330px;
    align-items: start;
  }
}

.election-detail-header+.home-section {
  margin-top: 18px;
}

.constituency-section h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  color: #064e3b;
  font-size: 17px;
}

.constituency-section {
  margin-top: 18px;
}

/* about.phpなど */
.static-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 14px;
}

.static-article {
  background: #ffffff;
  border: 1px solid #d8eee4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 118, 82, .05);
}

.static-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8eee4;
}

.static-header h1 {
  margin: 0 0 10px;
  color: #064e3b;
  font-size: 28px;
}

.static-header p,
.static-article p {
  color: #334155;
  line-height: 1.9;
  font-size: 15px;
}

.static-article h2 {
  margin-top: 28px;
  color: #065f46;
  font-size: 20px;
  border-left: 5px solid #10b981;
  padding-left: 10px;
}

.static-link-box a {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 999px;
  background: #10b981;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

/* ランキングページ */
.ranking-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ranking-nav a {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid #d8eee4;
  background: #ffffff;
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ranking-nav a.active {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 58px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d8eee4;
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 4px 14px rgba(15, 118, 82, .04);
}

.ranking-item:hover {
  border-color: #10b981;
  background: #f7fcfa;
}

.ranking-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
  font-size: 15px;
}

.ranking-rank.rank-1 {
  background: #fef3c7;
  color: #92400e;
}

.ranking-rank.rank-2 {
  background: #e5e7eb;
  color: #374151;
}

.ranking-rank.rank-3 {
  background: #ffedd5;
  color: #9a3412;
}

.ranking-thumb img,
.ranking-thumb .no-photo {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.ranking-body {
  min-width: 0;
}

.ranking-name {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.ranking-name strong {
  color: #064e3b;
  font-size: 15px;
}

.ranking-name span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.ranking-meta {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.ranking-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.ranking-counts span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.ranking-score {
  text-align: right;
  min-width: 72px;
}

.ranking-score strong {
  display: block;
  color: #047857;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.ranking-score span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .ranking-item {
    grid-template-columns: 34px 48px 1fr;
    gap: 8px;
    padding: 8px;
  }

  .ranking-thumb img,
  .ranking-thumb .no-photo {
    width: 48px;
    height: 60px;
  }

  .ranking-score {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    padding-top: 4px;
    border-top: 1px solid #eef2f7;
  }

  .ranking-score strong {
    font-size: 18px;
  }

  .ranking-counts span {
    font-size: 10px;
    padding: 2px 5px;
  }
}

.ranking-explain {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #d8eee4;
  border-radius: 14px;
  background: #f7fcfa;
}

.ranking-explain p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.8;
}

.ranking-explain p+p {
  margin-top: 5px;
}

/* サイトマップ */
.sitemap-list {
  margin: 12px 0 0;
  padding-left: 1.2em;
  line-height: 1.9;
}

.sitemap-list a {
  color: #065f46;
  font-weight: 700;
  text-decoration: none;
}

.sitemap-list a:hover {
  color: #10b981;
  text-decoration: underline;
}

.sitemap-columns {
  columns: 2;
  column-gap: 28px;
}

@media (min-width: 900px) {
  .sitemap-columns {
    columns: 3;
  }
}

@media (max-width: 560px) {
  .sitemap-columns {
    columns: 1;
  }
}