html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  color: #1f1f1f;
  background: #ffffff;
  line-height: 1.55;
}

a {
  color: #0b4ea2;
  text-decoration: underline;
}

button {
  font: inherit;
}

.utility-bar,
.site-footer,
.page-shell,
.subpage-shell {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0 10px;
  border-bottom: 1px solid #b8c3d0;
  font-size: 0.94rem;
}

.utility-links,
.language-tools,
.station-links,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.language-tools button {
  border: 1px solid #6e7a87;
  background: #ffffff;
  padding: 3px 8px;
}

.page-shell,
.subpage-shell {
  padding: 14px 0 24px;
}

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.station-header {
  border-top: 2px solid #3c4f6a;
  border-bottom: 1px solid #b8c3d0;
  padding: 12px 0 10px;
}

.station-header h1,
.subpage-shell h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 700;
}

.station-kana {
  margin: 0 0 4px;
  color: #4f4f4f;
  font-size: 0.92rem;
}

.station-links {
  margin-top: 10px;
  font-size: 0.95rem;
}

.current {
  font-weight: 700;
  color: #1f1f1f;
}

.summary-panel,
.vote-layout,
.chooser-grid {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 14px;
}

.summary-panel,
.search-panel,
.plain-panel,
.vote-section,
.notice-section,
.chooser-section,
.table-section,
.search-section,
.faq-list article {
  border: 1px solid #b8c3d0;
  margin-top: 16px;
  padding: 14px;
  background: #ffffff;
}

.summary-figure {
  margin: 0;
}

.summary-figure img {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
}

.lead {
  margin-top: 0;
}

.mini-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
}

.mini-facts div,
.vote-consequence-box dl div {
  border: 1px solid #d4dae1;
  padding: 8px;
}

.mini-facts dt,
.vote-consequence-box dt {
  font-weight: 700;
}

.mini-facts dd,
.vote-consequence-box dd {
  margin: 6px 0 0;
}

.table-section h2,
.search-section h2,
.chooser-section h2,
.notice-section h2,
.vote-section h2,
.plain-panel h2,
.faq-list h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.service-table th,
.service-table td {
  border: 1px solid #c8d0d9;
  padding: 8px 9px;
  vertical-align: top;
}

.service-table thead th {
  background: #eef4fb;
  text-align: left;
}

.spam-row.is-held td {
  background: #f4f8fd;
}

.state-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid #7b8896;
  font-size: 0.78rem;
}

.inline-note,
.small-copy {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.search-panel,
.vote-layout {
  align-items: start;
}

.field-like {
  display: block;
  border: 1px solid #c8d0d9;
  padding: 10px;
  background: #f8f9fb;
}

.field-like span {
  display: block;
}

.field-value {
  margin-top: 5px;
  color: #555555;
}

.field-value.long {
  line-height: 1.8;
}

.popular-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.chooser-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chooser-card {
  border: 1px solid #d4dae1;
  padding: 10px;
}

.chooser-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.notice-list {
  margin: 0;
  padding-left: 20px;
}

.vote-layout {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.vote-widget-box button {
  width: 100%;
  border: 1px solid #4f5f74;
  background: #ffffff;
  padding: 10px 12px;
  text-align: left;
}

.vote-status,
.consequence-line {
  margin: 10px 0 0;
}

.standby-box {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #d4dae1;
  padding: 10px;
}

.standby-box img {
  display: block;
  width: 100%;
  height: auto;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list article p {
  margin: 0;
}

.site-footer {
  border-top: 1px solid #b8c3d0;
  padding: 14px 0 22px;
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .utility-bar,
  .summary-panel,
  .vote-layout,
  .chooser-grid,
  .mini-facts,
  .standby-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-table,
  .service-table thead,
  .service-table tbody,
  .service-table tr,
  .service-table th,
  .service-table td {
    display: block;
    width: 100%;
  }

  .service-table thead {
    position: absolute;
    left: -9999px;
  }

  .service-table tr {
    margin-bottom: 10px;
    border: 1px solid #c8d0d9;
  }

  .service-table td {
    border: none;
    border-top: 1px solid #e0e5eb;
  }

  .service-table td:first-child {
    border-top: none;
    font-weight: 700;
  }
}
