:root {
  --paper: #fbf6ee;
  --ink: #312c27;
  --muted: #706962;
  --line: #e4d8c8;
  --green: #4d8a78;
  --green-dark: #2f6658;
  --amber: #e0a85a;
  --brick: #bd6a5a;
  --blue: #5d7894;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(30, 37, 40, 0.14);
  --header-bg: rgba(247, 243, 234, 0.92);
  --hero-bottom-glow: rgba(251, 246, 238, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

body.page-top {
  --paper: #ffffff;
  --line: #e7e2da;
  --header-bg: rgba(255, 255, 255, 0.94);
  --hero-bottom-glow: rgba(255, 255, 255, 0.22);
}

body.page-pet {
  --paper: #eef8fc;
  --line: #cfe4ec;
  --header-bg: rgba(238, 248, 252, 0.94);
  --hero-bottom-glow: rgba(238, 248, 252, 0.24);
}

body.page-outdoor {
  --paper: #eef8ef;
  --line: #cfe3d3;
  --header-bg: rgba(238, 248, 239, 0.94);
  --hero-bottom-glow: rgba(238, 248, 239, 0.24);
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(30, 37, 40, 0.1);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  font-size: 14px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(720px, 88vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #efe5d7;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 54, 49, 0.72), rgba(43, 54, 49, 0.28) 48%, rgba(43, 54, 49, 0.02)),
    linear-gradient(0deg, var(--hero-bottom-glow), transparent 34%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: clamp(42px, 8vw, 96px) clamp(22px, 7vw, 80px);
  color: var(--white);
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  line-height: 1.35;
}

.hero-copy p:not(.eyebrow) {
  max-width: 600px;
  font-size: clamp(16px, 2vw, 19px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--amber);
  color: #17120a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 0;
}

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

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 32px;
  align-items: center;
}

.notice,
.progress-box,
.guide-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.notice {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.intro-image {
  margin: 0;
}

.intro-image img,
.section-image img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-image img {
  aspect-ratio: 4 / 3;
}

.section-image {
  margin: 0 0 22px;
}

.section-image img {
  aspect-ratio: 16 / 9;
}

.home-check-visual {
  padding-top: 0;
}

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

.visual-step {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.step-illustration {
  display: grid;
  place-items: center;
  margin: 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff7ea;
}

.step-illustration svg {
  width: 64px;
  height: 64px;
}

.visual-step h3 {
  margin-bottom: 0;
  text-align: center;
}

.visual-step p {
  color: var(--muted);
  font-size: 15px;
}

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

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.category-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-card div {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.category-card h3,
.category-card p {
  margin: 0;
}

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

.category-card .button {
  width: max-content;
  margin-top: 6px;
}

.guide-card,
.article-card {
  padding: 20px;
}

.guide-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
}

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

.guide-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: auto;
  font-weight: 800;
}

.guide-card a::before {
  content: "";
  width: 18px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) 6px 6px / 8px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 11px / 8px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 6px 16px / 6px 1px no-repeat;
  box-shadow: inset 4px 0 0 rgba(47, 102, 88, 0.18);
}

.guide-card a::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

.label {
  width: max-content;
  margin-bottom: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(29, 111, 99, 0.11);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.compare-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

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

.compare-feeling {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.compare-bridge {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.compare-arrow {
  display: grid;
  place-items: center;
  margin: 2px 0 10px;
}

.compare-arrow::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid var(--amber);
}

.compare-reason {
  margin: 0 0 14px;
  padding: 12px 13px;
  border-radius: 6px;
  background: rgba(255, 247, 234, 0.78);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.compare-reason strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.compare-reason strong::before {
  content: "";
  width: 17px;
  height: 17px;
  background: var(--amber);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 21h6v-2H9v2Zm3-20C7.6 1 4 4.5 4 8.9c0 2.7 1.3 4.9 3.4 6.4.8.6 1.1 1.2 1.1 2V18h7v-.7c0-.8.3-1.5 1.1-2C18.7 13.8 20 11.6 20 8.9 20 4.5 16.4 1 12 1Zm3.4 12.7c-1.2.9-1.9 1.9-2.1 3.1h-2.6c-.2-1.2-.9-2.2-2.1-3.1C7 12.5 6 10.8 6 8.9 6 5.6 8.7 3 12 3s6 2.6 6 5.9c0 1.9-1 3.6-2.6 4.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.compare-card h3 {
  text-align: center;
}

.compare-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(77, 138, 120, 0.12);
  color: var(--green-dark);
  font-size: 12px;
}

.compare-check-label::before {
  content: "";
  width: 17px;
  height: 17px;
  background: var(--green-dark);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11.5c0-.8.7-1.5 1.5-1.5H12V8.7c0-.7.8-1.1 1.4-.7l6.2 4.1c.5.3.5 1.1 0 1.4l-6.2 4.1c-.6.4-1.4 0-1.4-.7V15.5H4.5c-.8 0-1.5-.7-1.5-1.5v-2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.compare-card h3 a {
  color: inherit;
}

.compare-card dl {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.compare-card dl div {
  display: grid;
  gap: 2px;
}

.compare-card dt {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.compare-card dd {
  margin: 0;
  color: var(--muted);
}

.compare-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 18px;
}

.compare-points span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff7ea;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.compare-card .button {
  margin-top: auto;
  width: 100%;
}

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

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

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

th {
  background: #e9e1d1;
  color: var(--ink);
  font-size: 14px;
}

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

.checklist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.check-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-panel label {
  display: flex;
  gap: 10px;
  min-height: 64px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.check-panel input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.progress-box {
  padding: 24px;
}

.progress-number {
  display: block;
  margin-bottom: 10px;
  color: var(--brick);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.recommend-box {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.recommend-title {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 900;
}

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

.recommend-link {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.recommend-link strong {
  color: var(--green-dark);
}

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

.source-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 48px);
  background: #172321;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-footer p {
  max-width: 980px;
}

.article-hero {
  padding: clamp(56px, 8vw, 100px) clamp(18px, 7vw, 80px);
  background: #172321;
  color: var(--white);
}

.article-hero > * {
  max-width: 900px;
}

.article-meta {
  color: rgba(255, 255, 255, 0.7);
}

.article-body {
  width: min(940px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 78px) 0;
}

.article-body h2 {
  margin-top: 48px;
}

.article-body h3 {
  margin-top: 28px;
}

.article-visual {
  margin: 0 0 30px;
}

.article-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.article-card h3 {
  margin-bottom: 8px;
}

.article-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #fff7ea;
}

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

.article-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.article-compare-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.article-compare-card h3 {
  margin: 0;
}

.article-compare-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.article-compare-card div {
  display: grid;
  gap: 2px;
}

.article-compare-card dt {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.article-compare-card dd {
  margin: 0;
  color: var(--muted);
}

.article-compare-card .button {
  width: max-content;
  margin-top: auto;
}

.article-list,
.article-checklist {
  padding-left: 1.2em;
}

.article-list li,
.article-checklist li {
  margin: 8px 0;
}

.article-list a {
  font-weight: 800;
}

.mini-table {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mini-table table {
  min-width: 680px;
}

.affiliate-note {
  margin: 34px 0;
  padding: 18px;
  border: 1px solid rgba(189, 106, 90, 0.28);
  border-radius: 8px;
  background: rgba(224, 168, 90, 0.14);
}

.source-note {
  margin-top: 44px;
  padding: 18px;
  border-left: 5px solid var(--blue);
  background: rgba(43, 93, 125, 0.1);
}

.related-guides {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.related-guides h2 {
  margin-bottom: 18px;
}

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

.related-grid a {
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .guide-grid,
  .category-grid,
  .source-list,
  .visual-steps,
  .compare-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .checklist-layout {
    grid-template-columns: 1fr;
  }

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

  .article-compare-grid {
    grid-template-columns: 1fr;
  }

  .recommend-links {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero {
    min-height: 760px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(11, 22, 23, 0.78), rgba(11, 22, 23, 0.48));
  }

  .guide-grid,
  .category-grid,
  .source-list,
  .check-panel,
  .visual-steps,
  .compare-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
