@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --paper: #ebeae2;
  --paper-raised: #f5f4ee;
  --ink: #201f1b;
  --ink-soft: #6b6a60;
  --line: #d6d3c5;
  --stamp: #b8382a;
  --stamp-dark: #93291f;
  --stamp-soft: #ecd3ce;
  --denim: #2b3f5c;
  --denim-soft: #dde3ea;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--denim);
}

:focus-visible {
  outline: 3px solid var(--denim);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

.site-header__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-header__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--stamp);
  color: var(--paper-raised);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  transform: rotate(-6deg);
  box-shadow: 0 2px 0 var(--stamp-dark);
}

.site-header__word {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.site-header__word strong {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 500;
}

.site-header__word small {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.site-header__nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.site-header__nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--stamp);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
  margin-top: 56px;
}

.site-footer__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 13px;
}

.site-footer__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__links a:hover {
  color: var(--stamp);
}

.site-footer__disclosure {
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 14px;
}

.site-footer__copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0;
}

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 14px max(20px, calc((100% - 760px) / 2));
}

.masthead__crumb {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-decoration: none;
}

.masthead__crumb strong {
  color: var(--ink);
  font-weight: 500;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--stamp);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 42px);
  line-height: 1.35;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.hero__lede {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 0 20px;
}

.hero__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---- AI-generated article body (rendered from Markdown) ---- */

.article-body {
  padding: 40px 0 8px;
}

.article-body h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 500;
  margin: 44px 0 16px;
  padding-top: 4px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 12px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body strong {
  font-weight: 700;
  color: var(--denim);
  box-shadow: inset 0 -0.32em 0 var(--denim-soft);
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 1.4em;
}

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

.article-body li::marker {
  color: var(--stamp);
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.article-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 28px;
  font-size: 14px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.article-body th,
.article-body td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.article-body th {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}

.article-body tr:last-child td {
  border-bottom: none;
}

.article-body tr:hover td {
  background: var(--denim-soft);
}

.in-article-ad,
.display-ad {
  width: 100%;
  min-height: 250px;
  margin: 8px 0 32px;
  padding: 18px 0 4px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.display-ad {
  margin: 32px 0;
}

.ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 10px;
}

.disclosure {
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 14px 0;
  margin: 0 0 8px;
}

/* ---- Interactive comparison table (sortable / filterable) ---- */

.comparison-table-section {
  padding: 40px 0 0;
}

.comparison-table-section .product-section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--stamp);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.comparison-table-section h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 6px;
}

.comparison-table__hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.table-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.table-controls__select {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-raised);
  color: var(--ink);
}

.table-controls__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: auto;
}

.table-controls__empty {
  text-align: center;
  padding: 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-raised);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.comparison-table thead th {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  cursor: pointer;
  user-select: none;
}

.comparison-table thead th:hover {
  color: var(--ink);
}

.comparison-table th.is-numeric,
.comparison-table td.is-numeric {
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}

.comparison-table td.is-cta {
  text-align: center;
}

.comparison-table td.is-cta a {
  color: var(--stamp);
  font-weight: 700;
  text-decoration: none;
}

.comparison-table__product-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.comparison-table__product-link:hover span {
  text-decoration: underline;
}

.comparison-table__product-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: var(--denim-soft);
}

.sort-icon {
  color: var(--stamp);
  font-size: 10px;
}

/* ---- Product grid: "swing tag" cards ---- */

.product-section,
.related-section,
.faq-section {
  padding: 48px 0 0;
}

.related-section .guide-grid--related {
  padding-top: 8px;
}

.product-section__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--stamp);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.product-section h2,
.related-section h2,
.faq-section h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 18px;
}

.faq-item__question {
  padding: 14px 28px 14px 0;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  list-style: none;
}

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

.faq-item__question::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stamp);
  font-size: 18px;
  font-weight: 700;
}

.faq-item[open] .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  margin: 0;
  padding: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

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

@media (min-width: 620px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.price-tag {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px 10px 4px 4px;
  padding: 22px 16px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.price-tag::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink-soft);
}

.price-tag__rank {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--stamp);
  color: var(--paper-raised);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  box-shadow: 0 2px 0 var(--stamp-dark);
}

.price-tag--pick {
  border-color: var(--denim);
  box-shadow: 0 0 0 1px var(--denim);
}

.price-tag__pick-badge {
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 5px 10px 4px;
  background: var(--denim);
  color: var(--paper-raised);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(43, 63, 92, 0.5);
}

.price-tag__img-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 6px 0 14px 4px;
}

.price-tag__img-frame img {
  max-height: 100%;
  object-fit: contain;
}

.price-tag h3.price-tag__name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 10px 4px;
  min-height: 2.8em;
}

.price-tag__price {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 6px 4px;
}

.price-tag__rating {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 16px 4px;
}

.price-tag__rating .stars {
  color: var(--stamp);
  letter-spacing: -1px;
}

.price-tag__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 12px;
  background: var(--stamp);
  color: var(--paper-raised);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.price-tag__cta:hover {
  background: var(--stamp-dark);
}

@media (hover: hover) {
  .price-tag:hover {
    transform: rotate(-1deg) translateY(-3px);
    box-shadow: 0 10px 20px -8px rgba(32, 31, 27, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-tag,
  .price-tag__cta {
    transition: none;
  }
  .price-tag:hover {
    transform: none;
  }
}

/* ---- Guide index (/guide) ---- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 8px 0 0;
}

@media (min-width: 560px) {
  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .guide-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px 10px 4px 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-card__img-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 180px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.guide-card__img-frame img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.guide-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 18px;
  border-top: 3px solid var(--stamp);
}

.guide-card__name {
  font-family: 'Shippori Mincho', serif;
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.4;
  min-height: 2.8em;
}

.guide-card__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.guide-card__cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--stamp);
}

@media (hover: hover) {
  .guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(32, 31, 27, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card {
    transition: none;
  }
  .guide-card:hover {
    transform: none;
  }
}

.guide-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
