:root {
  --bg: #07111f;
  --bg-soft: #0d1a2a;
  --panel: rgba(15, 31, 51, 0.92);
  --panel-strong: #12243a;
  --line: rgba(160, 188, 220, 0.18);
  --text: #eef6ff;
  --muted: #9fb2c8;
  --accent: #35d0ba;
  --accent-strong: #11bfa5;
  --blue: #56a8ff;
  --yellow: #f7c65f;
  --red: #ff6b76;
  --purple: #bb8cff;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(53, 208, 186, 0.11), transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(86, 168, 255, 0.12), transparent 30%),
    var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #03231e;
  background: linear-gradient(135deg, #67f5de, #35d0ba);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #c7d7e8;
  font-size: 0.9rem;
}

.header-nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 72px 0 58px;
}

.hero-inner,
.portal-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  align-items: center;
  gap: 54px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero-description {
  max-width: 720px;
  margin: 24px 0 0;
  color: #c4d4e5;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-note {
  max-width: 760px;
  margin-top: 24px;
  padding: 14px 17px;
  border: 1px solid rgba(247, 198, 95, 0.28);
  border-radius: 13px;
  color: #f7ddb0;
  background: rgba(247, 198, 95, 0.08);
  font-size: 0.83rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  min-height: 134px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(23, 47, 74, 0.96), rgba(13, 29, 47, 0.96));
  box-shadow: var(--shadow);
}

.summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-card strong {
  font-size: 2rem;
  line-height: 1;
}

.portal {
  padding: 38px 0 84px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.updated-at {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.search-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-main label,
.filter-field label {
  display: block;
  margin-bottom: 7px;
  color: #c7d7e8;
  font-size: 0.78rem;
  font-weight: 700;
}

.search-main input,
.filter-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(160, 188, 220, 0.25);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(4, 13, 24, 0.76);
}

.search-main input {
  padding: 0 16px;
  font-size: 1rem;
}

.filter-field select {
  padding: 0 38px 0 13px;
}

.search-main input:focus,
.filter-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 208, 186, 0.12);
}

.filter-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 13px;
}

.reset-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(160, 188, 220, 0.25);
  border-radius: 11px;
  color: #dce9f6;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.reset-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quick-filters {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-filter {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b9cce0;
  background: rgba(17, 35, 56, 0.68);
  cursor: pointer;
}

.quick-filter:hover,
.quick-filter.is-active {
  border-color: rgba(53, 208, 186, 0.66);
  color: #062a24;
  background: var(--accent);
}

.result-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.86rem;
}

.result-bar p {
  margin: 0;
}

.result-bar strong {
  color: var(--text);
  font-size: 1.15rem;
}

.state-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
}

.error-box {
  border-color: rgba(255, 107, 118, 0.38);
  color: #ffb5bb;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(18, 36, 58, 0.98), rgba(10, 24, 40, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 208, 186, 0.43);
}

.card-body {
  padding: 20px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-code {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.company-name {
  margin: 5px 0 0;
  min-height: 3.15em;
  font-size: 1.08rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.status-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-new {
  color: #062a24;
  background: var(--accent);
}

.status-expanded {
  color: #302000;
  background: var(--yellow);
}

.status-changed {
  color: #160a2e;
  background: var(--purple);
}

.status-resumed {
  color: #071d34;
  background: var(--blue);
}

.status-abolished {
  color: #34070a;
  background: var(--red);
}

.event-meta {
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.event-date {
  color: #e8f3ff;
  font-weight: 700;
}

.event-excerpt {
  margin: 17px 0 0;
  min-height: 7.6em;
  color: #b4c5d7;
  font-size: 0.82rem;
  line-height: 1.7;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.card-link {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: #cde0f2;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.025);
}

.card-link:hover {
  color: var(--accent);
  background: rgba(53, 208, 186, 0.06);
}

.source-note {
  margin-top: 42px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(13, 26, 42, 0.72);
}

.source-note h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.05rem;
}

.source-note p {
  margin: 7px 0 0;
  font-size: 0.82rem;
}

.site-footer {
  padding: 27px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(3, 10, 18, 0.64);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  font-size: 0.76rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reset-button {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 62px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    padding: 48px 0 34px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .summary-grid {
    gap: 10px;
  }

  .summary-card {
    min-height: 108px;
    padding: 17px;
  }

  .summary-card strong {
    font-size: 1.55rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .event-excerpt {
    min-height: auto;
  }

  .result-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* ===== Disclosure source display ===== */

.source-row {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.76rem;
}

.source-label {
  color: var(--muted);
}

.source-value {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce9f6;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
}

.source-value.is-tdnet {
  border-color: rgba(86, 168, 255, 0.44);
  color: #b9dcff;
  background: rgba(86, 168, 255, 0.11);
}

.source-value.is-edinet {
  border-color: rgba(53, 208, 186, 0.36);
  color: #9cebdd;
  background: rgba(53, 208, 186, 0.08);
}

.card-actions.has-source-link {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-actions.has-source-link .card-link + .card-link {
  border-left: 1px solid var(--line);
}

.card-link-source {
  color: #b9dcff;
}

.card-link-source:hover {
  color: #ffffff;
  background: rgba(86, 168, 255, 0.11);
}

@media (max-width: 520px) {
  .card-actions.has-source-link {
    grid-template-columns: 1fr;
  }

  .card-actions.has-source-link .card-link + .card-link {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* ===== Latest shareholder benefit IR ===== */

.latest-ir-section {
  padding: 14px 0 32px;
}

.latest-ir-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.latest-ir-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.latest-ir-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.latest-ir-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.latest-ir-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.latest-ir-card {
  min-width: 0;
  padding: 19px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(86, 168, 255, 0.28);
  border-radius: 17px;
  background:
    linear-gradient(
      150deg,
      rgba(19, 43, 70, 0.98),
      rgba(10, 25, 42, 0.98)
    );
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.17);
}

.latest-ir-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.latest-ir-date {
  color: #b9dcff;
  font-size: 0.76rem;
  font-weight: 700;
}

.latest-ir-code {
  margin: 16px 0 0;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.latest-ir-company {
  margin: 4px 0 0;
  font-size: 1.04rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.latest-ir-title {
  margin: 14px 0 18px;
  flex: 1;
  color: #b8c9db;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.latest-ir-link {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 168, 255, 0.34);
  border-radius: 10px;
  color: #c6e3ff;
  background: rgba(86, 168, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.latest-ir-link:hover {
  border-color: rgba(86, 168, 255, 0.72);
  color: #ffffff;
  background: rgba(86, 168, 255, 0.15);
}

@media (max-width: 960px) {
  .latest-ir-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .latest-ir-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .latest-ir-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Latest IR freshness ===== */

.latest-ir-date-group {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.latest-ir-age {
  padding: 2px 7px;
  border: 1px solid rgba(185, 220, 255, 0.2);
  border-radius: 999px;
  color: #a9bdd1;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.latest-ir-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.latest-ir-new {
  padding: 3px 8px;
  border: 1px solid rgba(255, 92, 112, 0.62);
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      rgba(255, 72, 96, 0.95),
      rgba(205, 31, 62, 0.95)
    );
  box-shadow:
    0 0 13px rgba(255, 72, 96, 0.24);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .latest-ir-top {
    align-items: flex-start;
  }

  .latest-ir-date-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .latest-ir-badges {
    max-width: 48%;
  }
}

/* ===== Today's shareholder benefit IR ===== */

.today-ir-section {
  padding: 18px 0 12px;
}

.today-ir-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 23px;
  border: 1px solid rgba(255, 92, 112, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(43, 22, 34, 0.98),
      rgba(19, 27, 43, 0.98)
    );
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2);
}

.today-ir-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.today-ir-heading h2 {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.today-ir-count {
  padding: 4px 10px;
  border: 1px solid rgba(255, 92, 112, 0.55);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 72, 96, 0.15);
  font-size: 0.72rem;
  font-weight: 900;
}

.today-ir-date {
  margin: 0;
  color: #c9aeba;
  font-size: 0.8rem;
  font-weight: 700;
}

.today-ir-list {
  display: grid;
  gap: 10px;
}

.today-ir-card {
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.today-ir-main {
  min-width: 0;
}

.today-ir-company-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.today-ir-new {
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #ff4860,
      #ca1d3c
    );
  box-shadow:
    0 0 13px rgba(255, 72, 96, 0.25);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.today-ir-code {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.today-ir-company {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.today-ir-title {
  margin: 8px 0 0;
  color: #b8c7d8;
  font-size: 0.8rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.today-ir-link {
  min-width: 154px;
  min-height: 42px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 92, 112, 0.4);
  border-radius: 10px;
  color: #ffd7de;
  background: rgba(255, 72, 96, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.today-ir-link:hover {
  color: #ffffff;
  border-color: rgba(255, 92, 112, 0.75);
  background: rgba(255, 72, 96, 0.16);
}

@media (max-width: 700px) {
  .today-ir-inner {
    padding: 18px;
  }

  .today-ir-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .today-ir-card {
    grid-template-columns: 1fr;
  }

  .today-ir-link {
    width: 100%;
  }
}

/* ===== Monthly shareholder benefit IR ===== */

.monthly-ir-section {
  padding: 14px 0 28px;
}

.monthly-ir-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 23px;
  border: 1px solid rgba(53, 208, 186, 0.25);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(15, 46, 52, 0.97),
      rgba(12, 27, 43, 0.98)
    );
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18);
}

.monthly-ir-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.monthly-ir-heading h2 {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.monthly-ir-total {
  padding: 4px 11px;
  border: 1px solid rgba(53, 208, 186, 0.45);
  border-radius: 999px;
  color: #b9fff2;
  background: rgba(53, 208, 186, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.monthly-ir-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.monthly-ir-stats {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.monthly-ir-stat {
  min-width: 0;
  padding: 17px 13px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.monthly-ir-stat-label {
  color: #b9c9d9;
  font-size: 0.75rem;
  font-weight: 800;
}

.monthly-ir-stat-value {
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
}

.monthly-ir-stat-unit {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.monthly-ir-stat.is-new {
  border-color: rgba(86, 168, 255, 0.3);
}

.monthly-ir-stat.is-expanded {
  border-color: rgba(53, 208, 186, 0.3);
}

.monthly-ir-stat.is-changed {
  border-color: rgba(255, 194, 88, 0.3);
}

.monthly-ir-stat.is-resumed {
  border-color: rgba(174, 121, 255, 0.32);
}

.monthly-ir-stat.is-abolished {
  border-color: rgba(255, 92, 112, 0.3);
}

.monthly-ir-empty {
  margin: 16px 0 0;
  padding: 13px 15px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 920px) {
  .monthly-ir-stats {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .monthly-ir-inner {
    padding: 18px;
  }

  .monthly-ir-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .monthly-ir-stats {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .monthly-ir-stats {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   高配当ランキング
   ========================================================= */

.dividend-ranking-section {
  padding: 56px 20px;
  background:
    linear-gradient(
      180deg,
      #fff8eb 0%,
      #ffffff 100%
    );
  border-top: 1px solid #f1dfbd;
  border-bottom: 1px solid #ead8b7;
}

.dividend-ranking-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dividend-ranking-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

.dividend-ranking-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  color: #182333;
}

.dividend-ranking-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #536072;
  font-size: 14px;
  white-space: nowrap;
}

.dividend-ranking-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid #e3b74f;
  border-radius: 999px;
  background: #fff5cf;
  color: #815d00;
  font-weight: 700;
}

.dividend-ranking-description {
  margin: 0 0 24px;
  color: #5c6675;
  line-height: 1.8;
}

.dividend-ranking-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2d5bd;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(65, 47, 16, 0.08);
}

.dividend-ranking-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.dividend-ranking-table th,
.dividend-ranking-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #eee7dc;
  text-align: right;
  vertical-align: middle;
}

.dividend-ranking-table th {
  background: #243044;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dividend-ranking-table th:nth-child(1),
.dividend-ranking-table th:nth-child(2),
.dividend-ranking-table th:nth-child(3) {
  text-align: left;
}

.dividend-ranking-table tbody tr:hover {
  background: #fffaf0;
}

.dividend-ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

.ranking-rank,
.ranking-code,
.ranking-name {
  text-align: left !important;
}

.ranking-rank {
  width: 72px;
}

.ranking-code {
  width: 88px;
  color: #647084;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ranking-name {
  min-width: 250px;
  color: #1b2638;
  font-weight: 700;
}

.ranking-price,
.ranking-dividend,
.ranking-period {
  color: #4a5668;
  font-variant-numeric: tabular-nums;
}

.ranking-yield {
  min-width: 120px;
  font-variant-numeric: tabular-nums;
}

.ranking-yield strong {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff0c2;
  color: #a24c00;
  font-size: 16px;
}

.ranking-medal,
.ranking-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ranking-gold {
  background: linear-gradient(145deg, #ffe78c, #dca72b);
  color: #674400;
}

.ranking-silver {
  background: linear-gradient(145deg, #f4f6f8, #aeb8c2);
  color: #44505d;
}

.ranking-bronze {
  background: linear-gradient(145deg, #efc19f, #b86d3f);
  color: #64351d;
}

.ranking-number {
  background: #eef1f5;
  color: #596576;
}

.dividend-ranking-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.dividend-ranking-toggle {
  min-width: 230px;
  padding: 12px 22px;
  border: 1px solid #c89119;
  border-radius: 999px;
  background: #ffffff;
  color: #765100;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dividend-ranking-toggle:hover {
  background: #8a5f00;
  color: #ffffff;
}

.dividend-ranking-state {
  padding: 26px;
  border: 1px solid #e4d7bf;
  border-radius: 14px;
  background: #ffffff;
  color: #5f6978;
  text-align: center;
}

.dividend-ranking-error {
  border-color: #efb9b9;
  background: #fff3f3;
  color: #a12b2b;
}

.dividend-ranking-note {
  margin: 18px 0 0;
  color: #6f7783;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .dividend-ranking-section {
    padding: 38px 14px;
  }

  .dividend-ranking-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .dividend-ranking-meta {
    width: 100%;
    justify-content: space-between;
  }

  .dividend-ranking-table {
    min-width: 660px;
  }

  .dividend-ranking-table th,
  .dividend-ranking-table td {
    padding: 12px 10px;
  }

  .ranking-name {
    min-width: 190px;
  }

  .ranking-period,
  .dividend-ranking-table th:last-child {
    display: none;
  }
}

/* 高配当ランキング位置修正 */
.dividend-ranking-section {
  width: 100%;
  box-sizing: border-box;
}

.dividend-ranking-inner {
  width: min(1140px, calc(100% - 40px));
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .dividend-ranking-inner {
    width: 100%;
    max-width: none;
  }
}

/* =========================================================
   高配当ランキング：既存ダークテーマへ統一
   ========================================================= */

.dividend-ranking-section {
  padding: 24px 20px 40px;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.dividend-ranking-inner {
  width: min(1140px, calc(100% - 40px));
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 22px;
  box-sizing: border-box;
  border: 1px solid rgba(28, 189, 171, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 39, 52, 0.96),
      rgba(9, 31, 48, 0.96)
    );
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18);
}

.dividend-ranking-heading {
  align-items: flex-end;
  margin-bottom: 8px;
}

.dividend-ranking-heading h2 {
  color: #f5f8fb;
  font-size: clamp(24px, 3vw, 32px);
}

.dividend-ranking-section .section-kicker {
  color: #2ee6cf;
}

.dividend-ranking-meta {
  color: #adc0d0;
}

.dividend-ranking-badge {
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid rgba(218, 171, 50, 0.55);
  background: rgba(150, 109, 11, 0.12);
  color: #f0c75e;
}

.dividend-ranking-description {
  margin-bottom: 18px;
  color: #9fb3c4;
}

.dividend-ranking-table-wrap {
  border: 1px solid rgba(75, 130, 157, 0.38);
  border-radius: 14px;
  background: rgba(7, 29, 43, 0.72);
  box-shadow: none;
}

.dividend-ranking-table th {
  background:
    linear-gradient(
      180deg,
      rgba(28, 63, 93, 0.98),
      rgba(20, 49, 75, 0.98)
    );
  color: #eff7ff;
  border-bottom-color: rgba(104, 155, 184, 0.34);
}

.dividend-ranking-table td {
  color: #d9e5ee;
  border-bottom-color: rgba(92, 132, 154, 0.24);
}

.dividend-ranking-table tbody tr:hover {
  background: rgba(32, 104, 121, 0.14);
}

.ranking-code,
.ranking-price,
.ranking-dividend,
.ranking-period {
  color: #b9c8d4;
}

.ranking-name {
  color: #f0f5f8;
}

.ranking-yield strong {
  background: rgba(202, 151, 25, 0.12);
  color: #f3c343;
}

.ranking-number {
  background: rgba(101, 130, 149, 0.18);
  color: #d6e3eb;
  border: 1px solid rgba(135, 166, 184, 0.48);
}

.ranking-gold {
  background:
    linear-gradient(
      145deg,
      #ffe88a,
      #d6a72d
    );
  color: #5d4100;
}

.ranking-silver {
  background:
    linear-gradient(
      145deg,
      #f1f5f7,
      #9caeba
    );
  color: #344653;
}

.ranking-bronze {
  background:
    linear-gradient(
      145deg,
      #efbc95,
      #b96838
    );
  color: #512d1b;
}

.dividend-ranking-state {
  padding: 24px;
  border: 1px dashed rgba(103, 151, 177, 0.36);
  background: rgba(15, 49, 66, 0.35);
  color: #9fb4c5;
}

.dividend-ranking-error {
  border-color: rgba(205, 82, 92, 0.55);
  background: rgba(116, 28, 39, 0.16);
  color: #f0a8ae;
}

.dividend-ranking-toggle {
  border: 1px solid rgba(226, 176, 49, 0.72);
  background: rgba(143, 103, 9, 0.12);
  color: #f0c760;
}

.dividend-ranking-toggle:hover {
  background: rgba(199, 147, 20, 0.9);
  color: #081c27;
}

.dividend-ranking-note {
  color: #879cab;
  text-align: center;
}

@media (max-width: 720px) {
  .dividend-ranking-section {
    padding: 18px 14px 30px;
  }

  .dividend-ranking-inner {
    width: 100%;
    max-width: none;
    padding: 20px 16px;
    border-radius: 16px;
  }
}


/* cleanup */
.source-row,
.card-actions{
    display:none!important;
    border:0!important;
    margin:0!important;
    padding:0!important;
}
