:root {
  --ink: #18212f;
  --muted: #657184;
  --line: #dfe6ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --navy: #173b77;
  --teal: #0f766e;
  --amber: #c8791a;
  --berry: #a93f6a;
  --green: #3d7659;
  --shadow: 0 18px 48px rgba(25, 43, 70, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.09), transparent 34%),
    linear-gradient(315deg, rgba(200, 121, 26, 0.12), transparent 38%),
    #f4f7fa;
}

body,
button,
input {
  font: inherit;
}

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

.notice {
  padding: 9px 16px;
  color: #344256;
  background: #fff8e6;
  border-bottom: 1px solid #eed8a8;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 230, 238, 0.86);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #344256;
  font-size: 14px;
  font-weight: 800;
}

.main-nav a:hover {
  background: #eef5f5;
  color: var(--teal);
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - 98px);
  padding: 54px 0 34px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  color: #11243d;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #3f4c5d;
  font-size: 17px;
  line-height: 1.9;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 15px 34px rgba(15, 118, 110, 0.24);
}

.button.secondary {
  color: var(--teal);
  background: #fff;
  border-color: #b9d4d1;
}

.button.wide {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trust-row span,
.pill,
.service-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.trust-row span {
  color: #2e4550;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #d9e7e6;
}

.hero-visual {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-visual img {
  display: block;
  width: 100%;
  min-height: 460px;
  object-fit: cover;
}

.quick-compare {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 40px;
}

.quick-compare a {
  min-height: 110px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(25, 43, 70, 0.08);
}

.quick-compare strong,
.quick-compare span {
  display: block;
}

.quick-compare strong {
  font-size: 18px;
}

.quick-compare span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

section {
  padding: 54px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: #132743;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.section-heading.split > p {
  max-width: 460px;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.quiz-card,
.result-panel,
.table-card,
.guide-grid article,
.article-list,
.faq-list details,
.service-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(25, 43, 70, 0.08);
}

.quiz-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: #24344a;
  font-size: 18px;
  font-weight: 900;
}

.quiz-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px;
  color: #334155;
  background: #f7fafc;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}

.quiz-card label:has(input:checked) {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.quiz-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.result-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.pill {
  color: #fff;
  background: var(--berry);
}

.result-panel h3 {
  margin: 14px 0 0;
  font-size: 26px;
  line-height: 1.32;
}

.result-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.result-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 16px;
  background: #f6faf9;
  border: 1px solid #d7e9e7;
  border-radius: 8px;
}

.result-score span {
  color: var(--muted);
  font-weight: 800;
}

.result-score strong {
  color: var(--teal);
  font-size: 36px;
  font-weight: 900;
}

.result-services {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.result-services span {
  padding: 10px 12px;
  background: #f7fafc;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  font-weight: 850;
}

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

.service-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.service-card.featured {
  border-color: #7cc7c1;
  box-shadow: 0 18px 44px rgba(15, 118, 110, 0.16);
}

.service-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.service-head h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.score {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 36px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-weight: 900;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  color: #314155;
  background: #eef4f8;
}

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

.service-meta span {
  padding: 10px;
  color: #324256;
  background: #f7fafc;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.table-card {
  margin-top: 18px;
  overflow: hidden;
}

.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.table-heading h3 {
  margin: 0;
  font-size: 24px;
}

.table-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
}

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

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e7edf4;
  vertical-align: top;
}

th {
  color: #25354c;
  background: #f5f8fb;
  font-size: 13px;
}

td {
  color: #4b596b;
  line-height: 1.65;
}

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

.text-cta {
  color: var(--teal);
  font-weight: 900;
}

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

.guide-grid article {
  padding: 22px;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--amber);
  border-radius: 8px;
  font-weight: 900;
}

.guide-grid h3 {
  margin: 16px 0 10px;
  font-size: 22px;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  overflow: hidden;
}

.article-list a {
  min-height: 84px;
  padding: 20px;
  background: #fff;
  color: #24344a;
  font-size: 17px;
  font-weight: 900;
}

.article-list a:hover {
  color: var(--teal);
  background: #f7fbfb;
}

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

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: #223249;
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 30px clamp(18px, 5vw, 64px);
  color: #dbe8ee;
  background: #173042;
}

.site-footer strong {
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 6px 0 0;
  color: #bad0d9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 850;
}

@media (max-width: 1020px) {
  .hero,
  .diagnosis-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: block;
  }

  .quick-compare,
  .service-cards,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  main {
    width: min(100% - 24px, 1200px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual img {
    min-height: 320px;
  }

  .quick-compare,
  .service-cards,
  .guide-grid,
  .article-list {
    grid-template-columns: 1fr;
  }

  .service-meta {
    grid-template-columns: 1fr;
  }
}
