:root {
  --ink: #202124;
  --muted: #667085;
  --line: #d9e0e7;
  --paper: #fbfaf7;
  --white: #ffffff;
  --green: #0f5b4a;
  --green-2: #17483f;
  --blue: #2b5f8f;
  --gold: #b78a3b;
  --soft: #eef4f1;
  --shadow: 0 18px 45px rgba(30, 50, 70, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 224, 231, .8);
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 0;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #344054;
  font-size: 14px;
}

.nav-links a {
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

.button.secondary {
  background: var(--white);
  color: var(--green);
}

.hero {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background: #153c36;
  color: var(--white);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 32, 28, .9), rgba(10, 32, 28, .56) 48%, rgba(10, 32, 28, .18));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 54px;
}

.kicker {
  color: #d9c08c;
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
}

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

.search-panel {
  width: min(900px, 100%);
  margin-top: 64px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
}

.search-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
}

.field {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding: 48px 0;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-head h2 {
  margin-bottom: 6px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

.section-head p {
  max-width: 650px;
  color: var(--muted);
}

.band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(36, 54, 73, .06);
}

.card-body {
  padding: 22px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.card p {
  color: var(--muted);
}

.thumb {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-2);
  font-size: 12px;
  font-weight: 700;
}

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

.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.list-row h3 {
  margin-bottom: 2px;
  font-size: 18px;
}

.list-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 18px;
}

.avatar-photo {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.price {
  color: var(--green);
  font-weight: 800;
}

.form-shell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.form-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 700;
  font-size: 14px;
}

textarea.field {
  min-height: 126px;
  padding-top: 12px;
  resize: vertical;
}

.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: #5a4520;
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.feature-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: 25px;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.callout {
  padding: 26px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
}

.callout p {
  color: rgba(255, 255, 255, .84);
}

.callout .button.secondary {
  border-color: var(--white);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  line-height: 1;
}

.step h3 {
  margin-bottom: 4px;
}

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

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 600;
}

.check-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.footer {
  padding: 42px 0;
  background: #132d29;
  color: rgba(255, 255, 255, .78);
}

.footer a,
.footer strong {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.page-hero {
  padding: 64px 0 42px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero .lead {
  color: var(--muted);
}

.breadcrumbs {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  display: grid;
  gap: 28px;
  max-width: 820px;
}

.article-body h2 {
  margin: 18px 0 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
  font-size: clamp(22px, 3vw, 30px);
  scroll-margin-top: 88px;
}

.article-body h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.article-body p {
  color: #2c3640;
  font-size: 16px;
}

.article-body strong {
  background: linear-gradient(transparent 62%, #ffe4a5 62%);
  padding: 0 2px;
  font-weight: 700;
}

.article-body em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}

.article-body blockquote {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: var(--soft);
  color: #2c3640;
  border-radius: 0 6px 6px 0;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  color: #2c3640;
}

.article-body ul li,
.article-body ol li {
  margin: 6px 0;
}

.toc {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(36, 54, 73, .05);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-2);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  color: #2c3640;
}

.toc ol li {
  margin: 4px 0;
  font-size: 15px;
}

.toc a {
  border-bottom: 1px dotted var(--muted);
}

.toc a:hover {
  color: var(--green);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
}

.compare-table caption {
  padding: 10px 14px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

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

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

.compare-table thead th {
  background: var(--soft);
  font-weight: 700;
}

.compare-table .ok {
  color: var(--green);
  font-weight: 700;
}

.compare-table .ng {
  color: #b54040;
  font-weight: 700;
}

.figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.figure figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.diagram-box {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.diagram-box svg {
  width: 100%;
  height: auto;
}

.diagram-box .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.diagram-box .legend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}

.diagram-box .legend .lg-ok::before { background: var(--green); }
.diagram-box .legend .lg-ng::before { background: #b54040; }
.diagram-box .legend .lg-mid::before { background: var(--gold); }

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

.faq details {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq details[open] {
  box-shadow: 0 6px 18px rgba(36, 54, 73, .08);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "Q. ";
  color: var(--green);
  font-weight: 800;
}

.faq details[open] summary {
  margin-bottom: 8px;
}

.faq details p {
  margin: 0;
  color: #2c3640;
}

.faq details p::before {
  content: "A. ";
  color: var(--gold);
  font-weight: 800;
}

.callout-info {
  padding: 18px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--blue);
  background: #eef4fb;
  color: #1f3854;
}

.callout-warn {
  padding: 18px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: #5a4520;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green-2);
  font-size: 13px;
  font-weight: 700;
}

.split-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 860px) {
  .split-2col { grid-template-columns: 1fr; }
  .compare-table { display: block; overflow-x: auto; white-space: normal; }
}

@media (max-width: 860px) {
  .nav {
    align-items: start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 680px;
  }

  .search-grid,
  .grid-3,
  .grid-2,
  .split-feature,
  .filter-bar,
  .stat-strip,
  .form-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .list-row {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .profile-card {
    grid-template-columns: 96px 1fr;
  }

  .avatar-photo {
    width: 96px;
  }

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

@media (max-width: 520px) {
  .hero-inner {
    padding-top: 56px;
  }

  .hero-actions .button,
  .search-grid .button {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }
}
