@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800&family=Zen+Old+Mincho:wght@500;600;700&display=swap');

:root {
  --ink: #102638;
  --canvas: #eef2f3;
  --soft: #f6f9f8;
  --card: #ffffff;
  --teal: #137a78;
  --teal-pale: #dceeed;
  --coral: #b9513c;
  --graphite: #26333b;
  --muted: #61717a;
  --line: #bfcccf;
  --line-dark: #7c9199;
  --gold: #d6a439;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--graphite);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background-image: radial-gradient(rgba(16, 38, 56, .085) .55px, transparent .55px);
  background-size: 5px 5px;
}

* { box-sizing: border-box; }
a { color: inherit; }
img { max-width: 100%; }

.frame {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -120px;
  left: 16px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.masthead {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(124, 145, 153, .55);
  background: rgba(238, 242, 243, .94);
  backdrop-filter: blur(14px);
}

.masthead-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  font-family: "Zen Old Mincho", serif;
  font-size: 1.23rem;
  font-weight: 700;
  letter-spacing: -.055em;
  text-decoration: none;
}

.build-badge {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .09em;
}

.pr-disclosure {
  width: min(100% - 48px, 1180px);
  margin: 18px auto 0;
  padding: 10px 14px;
  border-left: 3px solid var(--teal);
  background: var(--card);
  color: #485c65;
  font-size: 14px;
  line-height: 1.65;
}

.hero,
.article-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.hero {
  padding: clamp(68px, 8vw, 112px) 0 clamp(60px, 7vw, 88px);
}

.article-hero {
  padding: clamp(62px, 7vw, 92px) 0 64px;
}

.hero-grid,
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: clamp(42px, 6vw, 72px);
  align-items: center;
}

.article-grid > *,
.hero-grid > * { min-width: 0; }

.eyebrow,
.note-label,
.guide-kicker,
.visual-kicker {
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.5;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
}

.eyebrow-icon .eyebrow-glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--card);
}

.eyebrow-icon .visual-icon {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  margin: 0 0 24px;
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(2.75rem, 5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.14;
}

h1 em {
  color: var(--teal);
  font-style: normal;
}

h2 {
  margin: 0 0 20px;
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.28;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.45;
}

.headline-lock {
  display: inline;
  white-space: normal;
}

.lede {
  max-width: 700px;
  margin: 0;
  color: #485c65;
  font-size: 1.08rem;
  line-height: 1.9;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font-size: .94rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}
.button-secondary:hover,
.button-secondary:focus-visible { color: #fff; }

.hero-note,
.quick-answer {
  padding: 22px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--card);
  box-shadow: 12px 14px 0 rgba(16, 38, 56, .07);
}

.hero-note strong {
  display: block;
  margin: 7px 0 9px;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.45;
}
.hero-note p { margin: 0; color: var(--muted); }

.quick-answer dl { margin: 14px 0 0; }
.quick-answer dl > div {
  display: grid;
  grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.quick-answer dt { color: var(--muted); font-size: .88rem; font-weight: 700; }
.quick-answer dd { margin: 0; color: var(--ink); font-size: .92rem; font-weight: 700; }

.service-context {
  margin-bottom: 18px;
}
.service-chip,
.service-heading {
  border-radius: 0 !important;
}
.service-logo-frame {
  border-radius: 0 !important;
  background: var(--card) !important;
  border-color: var(--line) !important;
}

.decision-strip {
  border: 0;
  background: var(--ink);
  color: #fff;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-grid > div {
  min-height: 132px;
  padding: 22px 24px;
  border-left: 1px solid rgba(255, 255, 255, .17);
}
.strip-grid > div:first-child { border-left: 0; }
.strip-grid span,
.strip-meta {
  color: #86cbc7 !important;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px !important;
}
.strip-grid strong { display: block; margin: 4px 0 3px; font-size: 1.08rem; }
.strip-grid small { display: block; color: #c7d4d8; font-size: 15px; line-height: 1.65; }

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.section-muted { background: var(--canvas); }
.section-sources { background: #e7efef; }

.split-heading {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(46px, 7vw, 92px);
  align-items: start;
}

.section-copy {
  max-width: 760px;
}
.section-copy > p { font-size: 1.02rem; line-height: 1.85; }

.buyer-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.buyer-guide-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  color: var(--graphite);
  text-decoration: none;
}

.buyer-guide-card:hover,
.buyer-guide-card:focus-visible {
  border-color: var(--teal);
  background: var(--soft);
}

.buyer-guide-card strong {
  color: var(--ink);
  font-size: 1.13rem;
  line-height: 1.45;
}

.buyer-guide-card > span:last-child {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.7;
}

.buyer-guide-card::after {
  content: "詳しく見る →";
  margin-top: auto;
  padding-top: 10px;
  color: var(--teal);
  font-size: .88rem;
  font-weight: 800;
}

.table-hint {
  display: none;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 18px;
  border-right: 1px solid #d7e0e2;
  border-bottom: 1px solid #d7e0e2;
  text-align: left;
  vertical-align: top;
  font-size: .94rem;
  line-height: 1.7;
}

th:last-child,
td:last-child { border-right: 0; }
tr:last-child th,
tr:last-child td { border-bottom: 0; }

thead th {
  background: #e8eef0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

tbody th {
  color: var(--ink);
  font-weight: 800;
}

td { color: #4d606a; }
td small { color: var(--muted); font-size: 15px; }

.compare-next-actions {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--soft);
}
.compare-next-actions p { margin: 0; }

.source-note {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.article-body {
  width: min(100% - 48px, 880px);
  max-width: 880px;
}

.frame.article-body {
  width: min(100% - 48px, 880px);
}

.article-body > p:not(.eyebrow):not(.source-note) {
  font-size: 1rem;
  line-height: 1.9;
}

.decision-list {
  display: grid;
  gap: 0;
  margin: 26px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.decision-list li {
  position: relative;
  padding: 18px 18px 18px 46px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.decision-list .decision-icon {
  position: absolute;
  top: 21px;
  left: 14px;
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.sources {
  display: grid;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: source;
}

.sources li {
  counter-increment: source;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.sources li:last-child { border-bottom: 1px solid var(--line); }
.sources li::before {
  content: counter(source, decimal-leading-zero);
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}
.sources a { color: var(--ink); font-weight: 800; text-underline-offset: 4px; }
.sources span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.sources .external-icon { width: 15px; height: 15px; }

.text-link {
  color: var(--teal);
  font-weight: 800;
  text-underline-offset: 4px;
}

.section-affiliate {
  background: var(--canvas) !important;
}

.section-affiliate h2 {
  max-width: 880px;
}

.affiliate-cta {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  gap: 16px !important;
  width: min(100%, 880px);
  padding: 24px !important;
  border: 1px solid var(--line-dark) !important;
  border-radius: 0 !important;
  background: var(--card) !important;
}

.affiliate-cta .affiliate-disclosure {
  width: 100%;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  text-align: left;
}

.affiliate-cta > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: min(100%, 380px);
  min-height: 50px !important;
  padding: 12px 20px !important;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--ink) !important;
  color: #fff !important;
  font-size: .95rem;
  font-weight: 800 !important;
  text-align: center;
  text-decoration: none !important;
}
.affiliate-cta > a:hover { border-color: var(--teal) !important; background: var(--teal) !important; }

.affiliate-cta > img[width="1"][height="1"] {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
}

.footer {
  padding: 38px 0 44px;
  background: var(--ink);
  color: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer .brand { color: #fff; }
.footer p { margin: 0; color: #c7d4d8; font-size: 15px; line-height: 1.7; }
.footer a { text-underline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .frame,
  .pr-disclosure,
  .article-body,
  .frame.article-body { width: min(100% - 28px, 1180px); }
  .masthead-inner { min-height: 66px; }
  .brand { font-size: 1.08rem; }
  .build-badge { font-size: 14px; letter-spacing: .04em; }
  .pr-disclosure { margin-top: 12px; }
  .hero,
  .article-hero { padding: 48px 0; }
  .hero-grid,
  .article-grid,
  .split-heading { grid-template-columns: 1fr; gap: 38px; }
  h1 { font-size: clamp(2.4rem, 10.4vw, 3.35rem); }
  h2 { font-size: clamp(1.95rem, 8vw, 2.8rem); }
  .lede { font-size: 1rem; }
  .hero-note,
  .quick-answer { box-shadow: 8px 9px 0 rgba(16, 38, 56, .07); }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid > div { min-height: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .17); }
  .strip-grid > div:first-child { border-top: 0; }
  .section { padding: 54px 0; }
  .buyer-guide-list { grid-template-columns: 1fr; }
  .buyer-guide-card { min-height: 0; }
  .table-hint { display: block; }
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button-row .button { width: 100%; }
  .affiliate-cta { padding: 20px !important; }
  .affiliate-cta > a { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .masthead-inner { gap: 12px; }
  .build-badge { max-width: 132px; text-align: right; }
  .quick-answer dl > div { grid-template-columns: 1fr; gap: 3px; }
  th, td { padding: 14px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
