:root {
  color-scheme: light;
  --bg: #11161d;
  --page: #f1f3f0;
  --surface: #fbfaf5;
  --surface-soft: #e9efe9;
  --text: #17191d;
  --text-inverse: #f8f6ed;
  --muted: #68707a;
  --muted-inverse: #aeb8c2;
  --line: #d7d6ce;
  --line-dark: rgba(248, 246, 237, 0.16);
  --blue: #1f6feb;
  --blue-dark: #1558b0;
  --green: #0b7f6f;
  --gold: #c7a64b;
  --yellow: #d5a63a;
  --shadow: 0 18px 48px rgba(13, 18, 25, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(29, 111, 235, 0.18), transparent 32%),
    linear-gradient(180deg, #11161d 0%, #171b22 38%, var(--page) 38%, var(--page) 100%);
  color: var(--text);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(17, 22, 29, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand span,
.eyebrow,
.section-kicker,
.meta-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  color: var(--text-inverse);
  font-size: 17px;
}

.top-nav {
  display: flex;
  gap: 4px;
}

.top-nav a {
  border-radius: 6px;
  color: var(--muted-inverse);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.top-nav a:hover {
  background: rgba(248, 246, 237, 0.08);
  color: var(--text-inverse);
}

.template-page {
  display: grid;
  gap: 28px;
  overflow-x: clip;
}

.hero {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(380px, 0.86fr);
  gap: clamp(28px, 4vw, 48px);
  padding: clamp(34px, 5vw, 68px) clamp(18px, 4vw, 52px) 28px;
  color: var(--text-inverse);
}

@media (min-width: 1100px) {
  .hero {
    gap: clamp(48px, 6vw, 110px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    padding-inline: max(clamp(72px, 7vw, 120px), calc((100vw - 1500px) / 2));
  }
}

.hero-main {
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 820px;
}

.hero-share-slot {
  justify-self: center;
  width: min(100%, 460px);
}

.breadcrumb {
  color: var(--muted-inverse);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

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

h1 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: 0;
  line-height: 1.08;
}

.lead {
  color: #d2d8dd;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.85;
  max-width: 760px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-group {
  display: grid;
  gap: 7px;
}

.action-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #11161d;
}

.button.primary:hover {
  background: #d8bb64;
}

.button.secondary {
  background: rgba(248, 246, 237, 0.08);
  border-color: rgba(248, 246, 237, 0.24);
  color: var(--text-inverse);
}

.button.secondary:hover {
  border-color: var(--gold);
}

.hero-card {
  align-self: start;
  background: rgba(251, 250, 245, 0.96);
  border: 1px solid rgba(248, 246, 237, 0.24);
  border-radius: 8px;
  color: var(--text);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.hero-image {
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  object-fit: cover;
  width: 100%;
}

.score-ring {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--gold) 0 82%, #ece4c8 82% 100%);
  border-radius: 50%;
  display: grid;
  justify-self: start;
  place-items: center;
  width: 112px;
}

.score-ring strong {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: grid;
  font-size: 28px;
  height: 84px;
  place-items: center;
  width: 84px;
}

.quick-stats {
  display: grid;
  gap: 10px;
}

.quick-stat {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
}

.quick-stat span {
  color: var(--muted);
}

.quick-stat strong {
  text-align: right;
}

.content-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  padding: 0 clamp(18px, 4vw, 52px) 56px;
}

.content-main {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.side-rail {
  align-content: start;
  align-self: start;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 86px;
}

.section,
.rail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(13, 18, 25, 0.06);
}

.section {
  padding: clamp(20px, 3vw, 30px);
  min-width: 0;
}

.section-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
  line-height: 1.22;
}

.section-intro {
  color: var(--muted);
  line-height: 1.8;
}

.compare-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.compare-card {
  align-items: center;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 16px;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  padding: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  min-width: 0;
}

.compare-card:hover {
  border-color: rgba(202, 163, 74, 0.68);
  box-shadow: 0 12px 28px rgba(16, 20, 27, 0.1);
  transform: translateY(-1px);
}

.compare-card img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: contain;
  padding: 6px;
}

.compare-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.compare-copy h3 {
  font-size: 17px;
  line-height: 1.35;
}

.compare-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.stars {
  color: var(--yellow);
  font-size: 14px;
  white-space: nowrap;
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.feature-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.feature-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.feature-copy {
  display: grid;
  gap: 8px;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: 16px;
}

.feature-copy h3 {
  font-size: 18px;
}

.feature-copy p,
.product-body {
  color: #43474d;
  line-height: 1.82;
}

.feature-body {
  min-height: 0;
}

.feature-body.is-collapsed {
  display: -webkit-box;
  max-height: 12.74em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.text-toggle {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  justify-self: start;
  margin-top: 4px;
  padding: 10px 0 0;
}

.text-toggle:hover {
  color: #075d52;
}

.recommend-box {
  background: #eef2ed;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding: 16px;
}

.recommend-box img {
  aspect-ratio: 16 / 11;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

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

.check-list li {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 20px minmax(0, 1fr);
  line-height: 1.55;
}

.check-list li::before {
  background: #dceee9;
  border-radius: 50%;
  color: var(--green);
  content: "✓";
  display: grid;
  font-size: 12px;
  font-weight: 900;
  height: 20px;
  place-items: center;
  width: 20px;
}

.product-list {
  display: grid;
  gap: 18px;
}

.product-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 20px;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 18px;
  scroll-margin-top: 90px;
  min-width: 0;
}

.product-media {
  align-content: start;
  display: grid;
  gap: 12px;
}

.product-media img {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  padding: 14px;
  width: 100%;
}

.product-index {
  background: #11161d;
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  padding: 5px 10px;
}

.product-copy {
  display: grid;
  gap: 12px;
}

.product-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.product-title-row h3 {
  font-size: 23px;
  line-height: 1.35;
}

.product-brand {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.link-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
}

.link-button--amazon {
  background: #252c3a;
  border-color: #252c3a;
  color: #fff;
}

.link-button--rakuten {
  background: #b71f14;
  border-color: #b71f14;
  color: #fff;
}

.link-button--yahoo {
  background: #f17732;
  border-color: #f17732;
  color: #fff;
}

.link-button:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.rail-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.rail-panel h3 {
  font-size: 16px;
  margin: 0;
}

.rail-cta {
  background: rgba(245, 239, 224, 0.95);
  color: #15171b;
}

.ad-panel {
  background: linear-gradient(135deg, rgba(11, 123, 111, 0.16), rgba(202, 163, 74, 0.12));
}

.ad-box {
  align-items: center;
  border: 1px dashed rgba(245, 239, 224, 0.32);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  min-height: 112px;
}

.ad-box--display {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border-style: solid;
  color: inherit;
  display: block;
  min-height: 250px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.ad-box--display .adsbygoogle {
  display: block;
  min-height: 250px;
  width: 100%;
}

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

.toc-list a,
.related-list a {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.collection-card {
  background: var(--surface-soft);
  border: 1px solid #d8ded5;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.collection-card strong {
  line-height: 1.45;
}

.collection-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.link-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 16px;
  text-decoration: none;
}

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

.link-card strong {
  color: var(--green);
  line-height: 1.45;
}

.link-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#links .link-card.has-image {
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.16), rgba(9, 10, 13, 0.68)),
    linear-gradient(90deg, rgba(12, 16, 19, 0.42), rgba(12, 16, 19, 0.12)),
    var(--card-image) center / cover;
  border-color: rgba(255, 250, 238, 0.18);
  box-shadow: 0 18px 36px rgba(10, 12, 16, 0.18);
  min-height: 176px;
  overflow: hidden;
  position: relative;
}

#links .link-card.has-image::after {
  background:
    linear-gradient(135deg, rgba(202, 162, 75, 0.12), transparent 48%),
    linear-gradient(90deg, rgba(21, 91, 82, 0.1), transparent 62%),
    linear-gradient(0deg, rgba(255, 250, 238, 0.04), transparent 54%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

#links .link-card.has-image span,
#links .link-card.has-image strong,
#links .link-card.has-image small {
  position: relative;
  z-index: 1;
}

#links .link-card.has-image span,
#links .link-card.has-image small {
  color: rgba(255, 250, 238, 0.84);
}

#links .link-card.has-image strong {
  color: #fffaf0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.58);
}

.loading-view,
.error-view {
  padding: 42px clamp(18px, 4vw, 52px);
}

@media (max-width: 1040px) {
  .hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero-share-slot {
    justify-self: stretch;
    width: 100%;
  }

  .side-rail {
    position: static;
  }
}

@media (min-width: 1041px) {
  .hero-main {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .hero-card {
    align-self: center;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: 460px;
    width: 100%;
  }

  .hero-share-slot {
    grid-column: 2;
    grid-row: 2;
    margin-top: -10px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

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

  .top-nav {
    overflow-x: auto;
    width: 100%;
  }

  .hero {
    padding-top: 28px;
  }

  .ad-panel {
    display: none;
  }

  .recommend-box,
  .product-card {
    grid-template-columns: 1fr;
  }

  .compare-grid {
    display: grid;
    grid-auto-columns: minmax(230px, calc(100% - 34px));
    grid-auto-flow: column;
    grid-template-columns: none;
    margin-inline: calc(clamp(20px, 3vw, 30px) * -1);
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px clamp(20px, 3vw, 30px) 16px;
    scroll-padding-inline: clamp(20px, 3vw, 30px);
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    width: calc(100% + (clamp(20px, 3vw, 30px) * 2));
  }

  .compare-grid::-webkit-scrollbar {
    display: none;
  }

  .compare-card {
    align-content: start;
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 172px;
    width: 100%;
    scroll-snap-align: start;
  }

  .compare-card .stars {
    grid-column: 2;
    justify-self: start;
  }

  .compare-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .feature-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    max-width: 260px;
  }

  .product-title-row {
    display: grid;
  }
}
