:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --surface: #ffffff;
  --surface-2: #e9f1ed;
  --ink: #1f2730;
  --muted: #66717b;
  --line: #d6ddd7;
  --green: #0f755f;
  --green-dark: #094b3d;
  --clay: #b65f3d;
  --gold: #c89a32;
  --navy: #243c63;
  --shadow: 0 18px 48px rgba(22, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(233, 241, 237, 0.9), rgba(244, 241, 232, 0.26) 520px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(214, 221, 215, 0.82);
  background: rgba(244, 241, 232, 0.92);
  backdrop-filter: blur(14px);
}

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

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

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

.brand strong {
  font-size: 15px;
}

.brand small,
.header-nav,
.lead,
.section-heading > p,
.summary,
.meta-line,
.caution,
.notice p,
td,
.route-grid p,
.source-list span,
.site-footer {
  color: var(--muted);
}

.brand small {
  font-size: 12px;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.header-nav a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0 34px;
}

.label {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 800px;
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 17px;
}

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

.button,
.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

.button svg,
.segment svg,
.notice svg,
.search-box svg,
.route-grid svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button {
  padding: 10px 16px;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

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

.hero-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 39, 48, 0.12);
  border-radius: 8px;
  background: #101922;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  max-height: 360px;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 34px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 117, 95, 0.24);
  border-radius: 8px;
  background: rgba(233, 241, 237, 0.78);
}

.notice p {
  margin: 0;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eee6d8;
  color: var(--green-dark);
  font-size: 0.92em;
}

.comparison-section,
.article-section,
.route-section,
.promo-section,
.source-section {
  padding: 34px 0;
  scroll-margin-top: 92px;
}

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

.section-heading > p {
  max-width: 560px;
  margin: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

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

.segment {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
}

.segment.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 300px);
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

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

.service-card,
.article-card,
.route-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  padding: 18px;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--green-dark);
  font-weight: 900;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  background: #f0e7dc;
  color: #5d4c3b;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

.fit {
  margin: 0;
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 900;
}

.summary,
.meta-line,
.caution {
  margin: 0;
}

.meta-line,
.caution {
  font-size: 14px;
}

.meta-line strong {
  color: var(--ink);
}

.caution {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.service-card a {
  width: fit-content;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.article-card:hover {
  border-color: rgba(15, 117, 95, 0.46);
}

.article-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--green-dark);
}

.article-card-icon svg {
  width: 20px;
  height: 20px;
}

.article-card-kicker {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
}

.article-card strong {
  font-size: 19px;
  line-height: 1.35;
}

.article-card span:last-child {
  color: var(--muted);
}

.affiliate-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  margin: 0 0 34px;
  border: 1px dashed rgba(15, 117, 95, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.ad-slot.wide {
  margin: 22px 0 0;
}

.ad-slot span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0e7dc;
  color: #5d4c3b;
  font-size: 12px;
  font-weight: 900;
}

.ad-slot p {
  margin: 0;
}

.adsense-live {
  display: block;
  padding: 0;
  border-style: solid;
  background: transparent;
}

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

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

caption {
  padding: 14px 16px;
  text-align: left;
  color: var(--muted);
  font-weight: 800;
}

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

th {
  background: #f4f0e6;
  color: #4d565d;
  font-size: 13px;
}

td strong {
  color: var(--ink);
}

.route-grid article {
  padding: 18px;
}

.route-grid svg {
  color: var(--clay);
}

.route-grid p {
  margin: 10px 0 0;
}

.promo-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(182, 95, 61, 0.28);
  border-radius: 8px;
  background: #fff8ec;
}

.promo-copy {
  flex: 1 1 320px;
}

.promo-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.dmm-banner-slot {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: min(100%, 300px);
  min-height: 0;
  aspect-ratio: 300 / 250;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.dmm-banner-slot a,
.dmm-banner-slot img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.source-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.source-list a {
  color: var(--green-dark);
  font-weight: 800;
}

.source-list span {
  display: block;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-nav a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.legal-page {
  padding: 48px 0 68px;
}

.legal-article {
  width: min(820px, 100%);
}

.legal-article h1 {
  font-size: 36px;
}

.legal-article section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-article p,
.legal-article li {
  color: var(--muted);
}

.legal-article ul {
  padding-left: 1.2em;
}

.article-page {
  padding: 44px 0 68px;
}

.article-article {
  width: min(980px, 100%);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 760px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.article-meta span,
.toc-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--green-dark);
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 800;
}

.article-summary {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(15, 117, 95, 0.22);
  border-radius: 8px;
  background: rgba(233, 241, 237, 0.72);
  color: var(--green-dark);
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
  padding-top: 28px;
}

.article-body section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.article-body section:first-child {
  padding-top: 0;
}

.article-body p,
.article-body li,
.article-aside p {
  color: var(--muted);
}

.article-body ul,
.article-body ol {
  padding-left: 1.25em;
}

.article-body li + li {
  margin-top: 8px;
}

.article-callout,
.article-cta,
.article-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-callout,
.article-cta {
  margin: 18px 0;
  padding: 16px;
}

.article-callout strong,
.article-cta strong {
  display: block;
  margin-bottom: 6px;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.article-cta p {
  margin: 0;
}

.article-cta .affiliate-note {
  flex-basis: 100%;
  margin: 0;
}

.article-cta .affiliate-note[hidden] {
  display: none;
}

.article-aside {
  position: sticky;
  top: 94px;
  padding: 16px;
}

.toc-list,
.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list a {
  justify-content: flex-start;
  text-decoration: none;
}

.link-list a {
  color: var(--green-dark);
  font-weight: 800;
}

.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  main {
    width: min(100% - 28px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  h1 {
    font-size: 34px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 10px;
  }

  .service-grid,
  .route-grid,
  .article-card-grid,
  .article-hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .promo-panel {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .promo-copy {
    flex: 0 1 auto;
  }

  .segmented,
  .search-box {
    width: 100%;
  }

  .segment {
    flex: 1 1 130px;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 24px;
  }

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

  .hero-media {
    aspect-ratio: 16 / 11;
  }

  .hero-media img {
    object-position: center 62%;
  }

  .source-list li {
    display: block;
  }

  .source-list span {
    margin-top: 4px;
  }
}
