:root {
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #dbe4ef;
  --paper: #ffffff;
  --bg: #f5f7fb;
  --cream: #fff9e8;
  --navy: #10233f;
  --blue: #245e9f;
  --blue-deep: #0d3e72;
  --yellow: #f6c945;
  --yellow-dark: #b97800;
  --green: #1d8f6f;
  --shadow: 0 16px 36px rgba(16, 35, 63, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.82;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

section[id] {
  scroll-margin-top: 76px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.global-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.global-nav a,
.header-cta,
.primary-button,
.secondary-button,
.official-link,
.site-footer a {
  text-decoration: none;
}

.header-cta,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #111827;
  background: var(--yellow);
  border: 1px solid #e2b933;
  border-radius: 7px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(246, 201, 69, 0.25);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  width: min(1160px, calc(100% - 36px));
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb span::before {
  content: ">";
  margin-right: 8px;
  color: #a3acba;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 48px);
  width: min(1160px, calc(100% - 36px));
  margin: 10px auto 0;
  padding: clamp(34px, 5vw, 54px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--yellow), #36a2c8 45%, var(--navy));
  content: "";
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow-dark);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  padding-left: 18px;
  border-left: 8px solid var(--yellow);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.24;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.32;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.45;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.article-meta span {
  padding: 4px 8px;
  color: #4d596a;
  background: #f1f4f8;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid rgba(246, 201, 69, 0.75);
  border-left: 5px solid var(--yellow);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
}

.summary-box {
  margin: 18px 0 0;
  padding: 20px 22px;
  background: #fff;
  border: 2px solid rgba(246, 201, 69, 0.85);
  border-radius: 8px;
}

.summary-box h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 22px;
}

.summary-box h2::before {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #111827;
  background: var(--yellow);
  border-radius: 999px;
  content: "1";
  font-size: 14px;
  font-weight: 900;
}

.summary-box p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-side {
  display: grid;
  gap: 12px;
}

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

.side-panel.is-accent {
  background: linear-gradient(135deg, #fff8d9, #fff);
  border-color: rgba(246, 201, 69, 0.95);
}

.side-panel h2 {
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: 19px;
}

.side-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.side-panel li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.side-panel li span {
  display: inline-grid;
  height: 24px;
  place-items: center;
  color: #111827;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.side-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.quick-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1160px, calc(100% - 36px));
  margin: 16px auto 0;
}

.quick-pick {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 146px;
  padding: 24px 22px 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.quick-pick:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 94, 159, 0.45);
  box-shadow: 0 14px 28px rgba(16, 35, 63, 0.1);
}

.quick-pick.is-featured {
  background: linear-gradient(135deg, #fff7d8, #fff);
  border-color: rgba(246, 201, 69, 0.95);
}

.quick-label {
  width: fit-content;
  padding: 4px 8px;
  color: #111827;
  background: var(--yellow);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
}

.quick-pick strong {
  font-size: 21px;
  line-height: 1.45;
}

.quick-pick small {
  color: var(--muted);
  font-size: 15px;
}

.quick-pick::after {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--blue);
  content: "詳しく見る";
  font-size: 12px;
  font-weight: 900;
}

.section {
  padding: clamp(58px, 6vw, 88px) clamp(18px, 5vw, 72px);
}

.section > .section-heading,
.section > .ranking-grid,
.section > .table-wrap,
.section > .usecase-grid,
.section > .intent-grid,
.section > .criteria-list,
.section > .update-list,
.section > .faq-list {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2 {
  padding-left: 14px;
  border-left: 6px solid var(--yellow);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.ranking-section,
.compare-section,
.faq-section {
  background: #eef3f8;
}

.guide-section,
.method-section,
.search-intent-section,
.update-policy-section {
  background: var(--bg);
}

.ranking-grid,
.usecase-grid,
.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vendor-card,
.usecase-grid article,
.intent-grid article,
.criteria-list,
.update-list,
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vendor-card {
  position: relative;
  overflow: hidden;
}

.vendor-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: #dbe5f0;
  content: "";
}

.vendor-card.featured {
  border-color: rgba(246, 201, 69, 0.95);
  box-shadow: 0 16px 34px rgba(16, 35, 63, 0.08);
}

.vendor-card.featured::before {
  background: linear-gradient(90deg, var(--yellow), #36a2c8);
}

.rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 12px;
  color: #111827;
  background: var(--yellow);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.vendor-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 26px;
  background: #f8fafc;
}

.vendor-body {
  padding: 30px;
}

.vendor-type {
  margin-bottom: 6px;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 900;
}

.qualitative-row {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qualitative-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.qualitative-row strong {
  color: var(--green);
  font-size: 15px;
}

.spec-list {
  display: grid;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-list div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.official-link {
  color: var(--blue-deep);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

th,
td {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: #fff;
  background: var(--blue-deep);
  font-size: 15px;
}

tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
}

tbody tr:first-child {
  background: #fffdf3;
}

tbody tr:first-child th {
  background: #fff9e8;
}

tbody tr:first-child th::after {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 6px;
  color: #111827;
  background: var(--yellow);
  border-radius: 4px;
  content: "注目";
  font-size: 11px;
  font-weight: 900;
}

td a {
  color: var(--blue-deep);
  font-weight: 900;
}

.usecase-grid article {
  padding: 32px;
  border-top: 5px solid var(--yellow);
}

.intent-grid article {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 30px;
  border-top: 5px solid #36a2c8;
}

.intent-grid article:first-child {
  border-top-color: var(--yellow);
}

.intent-grid span {
  width: fit-content;
  padding: 5px 10px;
  color: #111827;
  background: var(--cream);
  border: 1px solid rgba(246, 201, 69, 0.8);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
}

.intent-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.usecase-grid p,
.intent-grid p,
.criteria-list span,
.update-list span,
.faq-list p,
.cta-section p,
.site-footer p {
  color: var(--muted);
}

.criteria-list {
  display: grid;
  padding: 0;
  margin-top: 0;
  overflow: hidden;
  list-style: none;
  box-shadow: inset 5px 0 0 var(--yellow);
}

.update-list {
  display: grid;
  padding: 0;
  margin-top: 0;
  overflow: hidden;
  list-style: none;
}

.update-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.update-list li:last-child {
  border-bottom: 0;
}

.update-list strong {
  color: var(--blue-deep);
}

.criteria-list li {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.criteria-list li:last-child {
  border-bottom: 0;
}

.criteria-list strong {
  color: var(--navy);
}

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

summary {
  cursor: pointer;
  padding: 24px 26px;
  font-weight: 900;
}

details p {
  padding: 0 26px 26px;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  background: #13233a;
}

.cta-section > div {
  max-width: 820px;
}

.cta-section h2,
.cta-section p {
  color: #fff;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #d9e2ef;
  background: #0b1628;
}

.site-footer p {
  max-width: 820px;
  margin: 8px 0 0;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 900;
}

@media (max-width: 980px) {
  .global-nav {
    display: none;
  }

  .hero,
  .quick-picks,
  .ranking-grid,
  .usecase-grid,
  .intent-grid {
    grid-template-columns: 1fr;
  }

  .criteria-list li,
  .update-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .breadcrumb {
    display: none;
  }

  .hero,
  .quick-picks {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 20px 16px;
    margin-top: 12px;
  }

  h1 {
    margin-bottom: 12px;
    padding-left: 12px;
    border-left-width: 6px;
    font-size: 31px;
    line-height: 1.3;
  }

  .lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-meta {
    gap: 6px;
  }

  .article-meta span {
    font-size: 11px;
  }

  .article-meta span:nth-child(2) {
    display: none;
  }

  .notice {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
  }

  .summary-box,
  .hero-side {
    display: none;
  }

  .quick-picks {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .quick-pick {
    flex: 0 0 286px;
    min-height: 116px;
    padding: 18px 18px 32px;
  }

  .quick-pick strong {
    font-size: 17px;
  }

  .quick-pick small {
    font-size: 13px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .primary-button,
  .secondary-button,
  .header-cta {
    width: auto;
  }

  .cta-section,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .vendor-card img {
    height: 160px;
  }
}
