/*
Theme Name: Retirement Agency Database
Theme URI: https://dohkenkyo-recruit.jp/
Author: Self
Description: Retirement agency database theme.
Version: 1.0.6
Text Domain: retirement-agency-db
*/

:root {
  --ra-ink: #10233f;
  --ra-muted: #5d718c;
  --ra-line: #cfe2f8;
  --ra-soft: #f3f9ff;
  --ra-panel: #ffffff;
  --ra-teal: #0b66d8;
  --ra-teal-dark: #06459b;
  --ra-green: #1b76d1;
  --ra-amber: #b7791f;
  --ra-red: #b42318;
  --ra-max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ra-ink);
  background: #edf6ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.75;
}

body.single-retirement_agency {
  padding-bottom: 92px;
}

a {
  color: var(--ra-teal-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.ra-site-header {
  border-bottom: 1px solid var(--ra-line);
  background: #fff;
}

.ra-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--ra-max);
  margin: 0 auto;
  padding: 18px;
}

.ra-brand {
  min-width: 0;
}

.ra-site-title {
  color: var(--ra-ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.ra-site-desc {
  margin: 0;
  color: var(--ra-muted);
  font-size: 13px;
  font-weight: 700;
}

.ra-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.ra-header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--ra-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ra-header-nav a:hover {
  background: var(--ra-soft);
}

.ra-header-nav .ra-header-cta {
  margin-left: 6px;
  background: var(--ra-teal);
  color: #fff;
}

.ra-header-nav .ra-header-cta:hover {
  background: var(--ra-teal-dark);
  color: #fff;
}

.ra-menu-toggle,
.ra-menu-close {
  border: 1px solid var(--ra-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ra-ink);
}

.ra-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.ra-menu-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.ra-drawer-head,
.ra-menu-backdrop {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ra-container {
  max-width: var(--ra-max);
  margin: 0 auto;
  padding: 0 18px 48px;
}

.ra-page-shell {
  padding: 26px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: var(--ra-panel);
}

.ra-page-shell h1 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.35;
}

.ra-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 43, .08);
}

.ra-kicker,
.ra-section-kicker,
.ra-side-title {
  margin: 0 0 8px;
  color: var(--ra-teal);
  font-size: 13px;
  font-weight: 800;
}

.ra-hero h1,
.ra-section-title {
  margin: 0;
  font-size: 29px;
  line-height: 1.35;
}

.ra-catch {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.ra-summary {
  margin: 12px 0 0;
  color: var(--ra-muted);
}

.ra-trust-note {
  margin: 14px 0 0;
  color: var(--ra-muted);
  font-size: 13px;
}

.ra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ra-primary-cta,
.ra-secondary-cta,
.ra-side-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.ra-primary-cta,
.ra-side-cta {
  background: var(--ra-teal);
  color: #fff;
}

.ra-primary-cta:hover,
.ra-side-cta:hover {
  background: var(--ra-teal-dark);
  color: #fff;
}

.ra-secondary-cta {
  border: 1px solid var(--ra-line);
  background: #fff;
  color: var(--ra-ink);
}

.ra-ranking-action {
  display: grid;
  gap: 8px;
}

.ra-ranking-action .ra-primary-cta,
.ra-ranking-action .ra-secondary-cta {
  width: 100%;
}

.ra-ranking-cv-cta {
  box-shadow: 0 10px 18px rgba(6, 69, 155, .14);
}

.ra-hero-panel,
.ra-panel {
  padding: 18px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: var(--ra-soft);
}

.ra-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 33, 43, .08);
}

.ra-home-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.35;
}

.ra-home-copy p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ra-muted);
  font-weight: 600;
}

.ra-home-panel ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.ra-home-panel li + li {
  margin-top: 8px;
}

.ra-section-lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ra-muted);
  font-weight: 600;
}

.ra-ranking-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ra-ranking-card {
  display: grid;
  grid-template-columns: 54px 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-ranking-card[hidden] {
  display: none !important;
}

.ra-rank {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ra-teal);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.ra-ranking-thumb {
  display: block;
  width: 112px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-ranking-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ra-ranking-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--ra-muted);
  font-size: 11px;
  font-weight: 900;
}

.ra-ranking-type {
  margin: 0 0 3px;
  color: var(--ra-muted);
  font-size: 13px;
  font-weight: 800;
}

.ra-ranking-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.ra-ranking-body h3 a {
  color: var(--ra-ink);
  text-decoration: none;
}

.ra-ranking-body p {
  margin: 8px 0 0;
  color: var(--ra-muted);
}

.ra-mini-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ra-mini-specs span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ra-line);
  border-radius: 6px;
  background: var(--ra-soft);
  font-size: 13px;
  font-weight: 800;
}

.ra-more-link {
  margin: 18px 0 0;
}

.ra-more-link a {
  font-weight: 900;
}

.ra-intent-links,
.ra-ranking-criteria {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ra-intent-grid a {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--ra-text);
  text-decoration: none;
}

.ra-intent-grid a:hover {
  border-color: var(--ra-blue);
  background: #dbeafe;
}

.ra-intent-grid a.is-active {
  border-color: var(--ra-blue);
  background: #dbeafe;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .14);
}

.ra-intent-grid strong {
  color: var(--ra-blue-dark);
  font-size: 16px;
}

.ra-intent-grid span {
  color: var(--ra-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ra-ranking-criteria {
  background: #f8fbff;
}

.ra-ranking-criteria h3 {
  margin: 0 0 14px;
  color: var(--ra-blue-dark);
  font-size: 18px;
}

.ra-ranking-criteria ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ra-ranking-criteria li {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-ranking-criteria strong {
  color: var(--ra-blue-dark);
}

.ra-ranking-criteria span {
  color: var(--ra-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ra-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.ra-finder,
.ra-columns {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ra-section-head-row > p {
  max-width: 420px;
  margin: 0;
  color: var(--ra-muted);
  font-weight: 700;
}

.ra-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ra-filter-grid label {
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: var(--ra-soft);
  font-weight: 800;
}

.ra-filter-grid label span {
  color: var(--ra-muted);
  font-size: 13px;
}

.ra-filter-grid select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--ra-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ra-ink);
  font: inherit;
}

.ra-filter-grid .ra-check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ra-filter-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ra-teal);
}

.ra-filter-result,
.ra-filter-empty {
  margin: 14px 0 0;
  color: var(--ra-muted);
  font-weight: 800;
}

.ra-filter-empty {
  padding: 14px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: var(--ra-soft);
}

.ra-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ra-column-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.ra-column-topics span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--ra-blue-dark);
  font-size: 13px;
  font-weight: 800;
}

.ra-column-card {
  overflow: hidden;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-column-card > div {
  padding: 14px;
}

.ra-column-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ra-soft);
}

.ra-column-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ra-column-date {
  margin: 0 0 6px;
  color: var(--ra-muted);
  font-size: 13px;
  font-weight: 800;
}

.ra-column-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.ra-column-card h3 a {
  color: var(--ra-ink);
  text-decoration: none;
}

.ra-column-card p {
  margin: 9px 0 0;
  color: var(--ra-muted);
}

.ra-archive-description {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ra-muted);
  font-weight: 700;
}

.ra-archive-lead {
  max-width: 860px;
  margin: 10px 0 18px;
  color: var(--ra-muted);
  font-weight: 700;
}

.ra-archive-intent {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.ra-archive-intent a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ra-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ra-blue-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.ra-archive-intent a:hover {
  border-color: var(--ra-teal);
  background: var(--ra-soft);
}

.ra-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.ra-archive-card {
  overflow: hidden;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-archive-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--ra-line);
  background: var(--ra-soft);
  text-decoration: none;
}

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

.ra-agency-archive-card .ra-archive-thumb {
  background: #fff;
}

.ra-agency-archive-card .ra-archive-thumb img {
  object-fit: contain;
}

.ra-archive-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--ra-muted);
  font-size: 12px;
  font-weight: 900;
}

.ra-archive-card-body {
  padding: 15px;
}

.ra-archive-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.ra-archive-card h2 a {
  color: var(--ra-ink);
  text-decoration: none;
}

.ra-archive-card p {
  margin: 9px 0 0;
  color: var(--ra-muted);
}

.ra-archive-price {
  color: var(--ra-blue-dark) !important;
  font-weight: 900;
}

.ra-related-block {
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--ra-line);
}

.ra-related-head {
  margin-bottom: 14px;
}

.ra-related-head h2 {
  margin: 0;
  color: var(--ra-ink);
  font-size: 22px;
  line-height: 1.45;
}

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

.ra-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  color: var(--ra-ink);
  text-decoration: none;
}

.ra-related-card:hover {
  border-color: var(--ra-teal);
  box-shadow: 0 10px 24px rgba(11, 102, 216, .12);
  transform: translateY(-1px);
}

.ra-related-card span {
  font-weight: 900;
  line-height: 1.55;
}

.ra-related-card small {
  color: var(--ra-muted);
  font-weight: 800;
  line-height: 1.45;
}

.ra-related-card-with-thumb {
  padding: 0;
  overflow: hidden;
}

.ra-related-card-with-thumb > span:not(.ra-related-thumb),
.ra-related-card-with-thumb > small {
  padding-right: 16px;
  padding-left: 16px;
}

.ra-related-card-with-thumb > span:not(.ra-related-thumb) {
  padding-top: 4px;
}

.ra-related-card-with-thumb > small {
  padding-bottom: 16px;
}

.ra-related-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--ra-line);
  background: var(--ra-soft);
}

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

.ra-related-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--ra-muted);
  font-size: 12px;
  font-weight: 900;
}

.ra-price-label {
  color: var(--ra-muted);
  font-size: 13px;
  font-weight: 800;
}

.ra-price {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
}

.ra-hero-panel dl {
  margin: 16px 0 0;
}

.ra-hero-panel dl div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--ra-line);
}

.ra-hero-panel dt,
.ra-hero-panel dd {
  margin: 0;
  font-size: 14px;
}

.ra-hero-panel dt {
  color: var(--ra-muted);
  font-weight: 800;
}

.ra-facts {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ra-badge {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--ra-line);
  border-left: 5px solid #7c8b99;
  border-radius: 8px;
  background: #fff;
}

.ra-badge span {
  display: block;
  color: var(--ra-muted);
  font-size: 13px;
  font-weight: 800;
}

.ra-badge strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.45;
}

.ra-badge.is-good { border-left-color: var(--ra-green); }
.ra-badge.is-caution { border-left-color: var(--ra-red); }
.ra-badge.is-price { border-left-color: var(--ra-amber); }
.ra-badge.is-operator { border-left-color: var(--ra-teal); }

.ra-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ra-source-row a,
.ra-source-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ra-line);
  border-radius: 6px;
  background: var(--ra-soft);
  color: var(--ra-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ra-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 22px;
  align-items: start;
}

.ra-article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-article .lead {
  margin-top: 0;
  padding: 18px 20px;
  border-left: 5px solid var(--ra-teal);
  border-radius: 6px;
  background: var(--ra-soft);
  color: var(--ra-ink);
  font-weight: 700;
}

.ra-article .agency-eyecatch {
  display: block;
  width: min(100%, 600px);
  height: auto;
  margin: 0 auto 26px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 33, 43, .12);
}

.agency-eyecatch-main {
  display: block;
  width: min(100%, 600px);
  height: auto;
  margin: 0 auto 22px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 33, 43, .12);
}

.ra-article h2 {
  margin-top: 36px;
  padding: 12px 0 12px 16px;
  border-left: 5px solid var(--ra-teal);
  font-size: 23px;
  line-height: 1.45;
}

.ra-article h3 {
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ra-line);
  font-size: 18px;
}

.agency-info-table {
  width: 100%;
  margin: 16px 0 28px;
  border: 1px solid var(--ra-line);
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}

.agency-info-table th,
.agency-info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ra-line);
  vertical-align: top;
}

.agency-info-table th {
  width: 180px;
  background: var(--ra-soft);
  font-weight: 900;
}

.agency-info-table tr:last-child th,
.agency-info-table tr:last-child td {
  border-bottom: 0;
}

.ra-bottom-cta {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: var(--ra-soft);
}

.ra-bottom-cta p {
  margin: 0 0 14px;
  color: var(--ra-muted);
  font-weight: 800;
}

.ra-bottom-cta .ra-cv-cta {
  min-width: 240px;
  box-shadow: 0 12px 24px rgba(6, 69, 155, .18);
}

.ra-floating-cv {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 950;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.ra-floating-cv a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  background: linear-gradient(135deg, #0b66d8, #06459b);
  color: #fff;
  box-shadow: 0 18px 38px rgba(6, 69, 155, .28);
  text-align: center;
  text-decoration: none;
  pointer-events: auto;
}

.ra-floating-cv span {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.ra-floating-cv small {
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.ra-floating-cv a:hover {
  background: linear-gradient(135deg, #1575ef, #063f8b);
  color: #fff;
}

.ra-side {
  position: sticky;
  top: 22px;
}

.ra-post-meta {
  margin: -8px 0 18px;
  color: var(--ra-muted);
  font-size: 14px;
  font-weight: 800;
}

.ra-post-eyecatch {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: var(--ra-soft);
}

.ra-post-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
}

.ra-side-box {
  padding: 16px;
  border: 1px solid var(--ra-line);
  border-radius: 8px;
  background: #fff;
}

.ra-side-box + .ra-side-box {
  margin-top: 14px;
}

.ra-side-box a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--ra-ink);
  font-weight: 800;
  text-decoration: none;
}

.ra-side-box a:hover {
  background: var(--ra-soft);
}

.ra-side-box .ra-side-cta {
  margin-top: 10px;
  color: #fff;
}

.ra-site-footer {
  border-top: 1px solid var(--ra-line);
  background: #fff;
}

.ra-footer-inner {
  max-width: var(--ra-max);
  margin: 0 auto;
  padding: 18px;
  color: var(--ra-muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  body.ra-menu-open {
    overflow: hidden;
  }

  .ra-menu-toggle {
    display: inline-block;
  }

  .ra-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    background: rgba(23, 33, 43, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }

  .ra-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .ra-header-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1001;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    align-content: stretch;
    width: min(86vw, 340px);
    height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    padding: 18px;
    border-left: 1px solid var(--ra-line);
    border-radius: 0;
    background: #fff;
    box-shadow: -20px 0 40px rgba(23, 33, 43, .18);
    opacity: 0;
    transform: translate3d(104%, 0, 0);
    transition: transform .28s ease, opacity .28s ease;
    pointer-events: none;
    overflow-y: auto;
  }

  .ra-header-nav.is-open {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .ra-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ra-line);
    font-weight: 900;
  }

  .ra-menu-close {
    width: 38px;
    height: 38px;
    font-size: 24px;
    line-height: 1;
  }

  .ra-header-nav a {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--ra-line);
    border-radius: 0;
    background: transparent;
  }

  .ra-header-nav .ra-header-cta {
    justify-content: center;
    margin: 16px 0 0;
    border-bottom: 0;
    border-radius: 6px;
    background: var(--ra-teal);
  }

  .ra-hero,
  .ra-layout,
  .ra-home-hero {
    grid-template-columns: 1fr;
  }

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

  .ra-home-grid {
    grid-template-columns: 1fr;
  }

  .ra-section-head-row {
    display: grid;
  }

  .ra-filter-grid,
  .ra-intent-grid,
  .ra-ranking-criteria ul,
  .ra-column-grid,
  .ra-archive-grid,
  .ra-related-grid {
    grid-template-columns: 1fr;
  }

  .ra-side {
    position: static;
  }
}

@media (max-width: 600px) {
  .ra-container {
    padding: 0 12px 36px;
  }

  .ra-hero,
  .ra-home-hero,
  .ra-finder,
  .ra-columns,
  .ra-facts,
  .ra-article,
  .ra-page-shell {
    padding: 16px;
  }

  .ra-hero h1,
  .ra-home-copy h1,
  .ra-section-title {
    font-size: 23px;
  }

  .ra-badge-grid {
    grid-template-columns: 1fr;
  }

  .ra-actions {
    display: grid;
  }

  .ra-primary-cta,
  .ra-secondary-cta {
    width: 100%;
  }

  .ra-ranking-card {
    display: block;
  }

  .ra-ranking-thumb {
    width: 82px;
  }

  .ra-ranking-action {
    grid-column: 1 / -1;
  }

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

  .agency-info-table th {
    border-bottom: 0;
  }

  .agency-info-table td {
    padding-top: 0;
  }
}

.herohero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 22px;
}

.ra-panel {
	background: #fff;
	margin-bottom: 22px;
}

.main-page-img {
	background-color: #fff;
	margin-top: 22px;
	padding: 1em;
}

@media (max-width: 600px) {
.pc {
	display: none;
}
}

@media (min-width: 600px) {
.sp {
	display: none;
}
}

@media (max-width: 600px) {
  body.single-retirement_agency {
    padding-bottom: 82px;
  }

  .ra-floating-cv {
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .ra-floating-cv a {
    min-height: 58px;
    padding: 10px 14px;
    flex-direction: column;
    gap: 3px;
  }

  .ra-floating-cv span {
    font-size: 16px;
  }
}


@media (max-width: 600px) {
.ra-ranking-card {
	display: block;
}
.ra-ranking-thumb {
	width: auto;
	border: none;
}
.ra-ranking-action {
	margin-top: 10px;
}
}
