/* Shared presentation for the hand-authored /ja/ SEO expansion pages. */
.seo-page {
  overflow-wrap: anywhere;
}

.ja-seo-path {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.ja-seo-path ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-seo-path li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.ja-seo-path li + li::before {
  content: ">";
  margin-right: 7px;
  color: #98a2b3;
}

.ja-seo-path a {
  color: var(--soft-hot);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.seo-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #f2dbe3;
  background: linear-gradient(135deg, #fff 0%, #fff8fb 62%, #f5f8ff 100%);
}

.seo-hero::after {
  position: absolute;
  right: -54px;
  bottom: -74px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(240, 98, 146, 0.08);
  content: "";
  pointer-events: none;
}

.seo-eyebrow {
  margin: 0 0 8px !important;
  color: #a61e4d;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.seo-lead {
  position: relative;
  z-index: 1;
  color: #475467;
  font-size: 15px !important;
  line-height: 1.85;
}

.seo-section > :last-child,
.seo-section .seo-card > :last-child,
.seo-note > :last-child {
  margin-bottom: 0;
}

.seo-section p,
.seo-section li,
.seo-definition dd,
.seo-table {
  line-height: 1.82;
}

.seo-section p + p {
  margin-top: 13px;
}

.seo-card-grid,
.seo-contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.seo-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e6e9f0;
  border-radius: 14px;
  background: #fff;
}

.seo-card h3 {
  margin: 0 0 8px;
  color: #273142;
  font-size: 17px;
}

.seo-card p {
  margin: 0;
  color: #536071;
}

.seo-checklist,
.seo-steps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none !important;
  counter-reset: seo-step;
}

.seo-checklist li,
.seo-steps li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 46px;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  background: #fff;
}

.seo-checklist li + li,
.seo-steps li + li {
  margin-top: 10px;
}

.seo-checklist li::before {
  position: absolute;
  top: 15px;
  left: 17px;
  color: #b4235a;
  content: "✓";
  font-weight: 900;
}

.seo-steps li {
  counter-increment: seo-step;
}

.seo-steps li::before {
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fce7f0;
  color: #9d174d;
  content: counter(seo-step);
  font-size: 12px;
  font-weight: 800;
}

.seo-steps strong {
  display: block;
  margin-bottom: 3px;
  color: #273142;
}

.seo-table-wrap {
  margin-top: 16px;
}

.seo-table {
  width: 100%;
  border: 1px solid #e6e9f0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  table-layout: fixed;
  overflow: hidden;
}

.seo-table th,
.seo-table td {
  padding: 12px 13px;
  border-right: 1px solid #e6e9f0;
  border-bottom: 1px solid #e6e9f0;
  text-align: left;
  vertical-align: top;
}

.seo-table th {
  background: #fff2f7;
  color: #831843;
  font-weight: 750;
}

.seo-table th:last-child,
.seo-table td:last-child {
  border-right: 0;
}

.seo-table tr:last-child td {
  border-bottom: 0;
}

.seo-definition {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr);
  gap: 0;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  background: #fff;
}

.seo-definition dt,
.seo-definition dd {
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid #e6e9f0;
}

.seo-definition dt {
  background: #fff8fb;
  color: #831843;
  font-weight: 750;
}

.seo-definition dt:last-of-type,
.seo-definition dd:last-of-type {
  border-bottom: 0;
}

.seo-note {
  margin-top: 14px;
  padding: 17px 19px;
  border-left: 4px solid #f06292;
  border-radius: 10px;
  background: #fff8fb;
}

.seo-faq-item + .seo-faq-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eceef2;
}

.seo-faq-item h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.seo-related .context-links {
  gap: 12px;
}

.seo-related .context-links a {
  box-shadow: none;
}

@media (max-width: 680px) {
  .seo-card-grid,
  .seo-contrast-grid {
    grid-template-columns: 1fr;
  }

  .ja-seo-path {
    font-size: 12px;
  }

  .seo-table {
    display: block;
    border: 0;
    background: transparent;
  }

  .seo-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

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

  .seo-table tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #e6e9f0;
    border-radius: 12px;
    background: #fff;
  }

  .seo-table td {
    display: grid;
    grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
    border-right: 0;
  }

  .seo-table td::before {
    color: #831843;
    content: attr(data-label);
    font-weight: 750;
  }

  .seo-definition {
    grid-template-columns: 1fr;
  }

  .seo-definition dt,
  .seo-definition dd {
    border-bottom: 0;
  }

  .seo-definition dd {
    padding-top: 4px;
    border-bottom: 1px solid #e6e9f0;
  }

  .seo-definition dd:last-of-type {
    border-bottom: 0;
  }
}

@media (max-width: 430px) {
  .seo-page {
    padding-right: 12px;
    padding-left: 12px;
  }

  .seo-hero,
  .seo-section {
    padding: 17px;
  }

  .seo-checklist li,
  .seo-steps li {
    padding-right: 12px;
  }
}
