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

:root {
  --paper: #fcfcfb;
  --ink: #1a1a18;
  --ink-70: rgba(26, 26, 24, 0.72);
  --ink-45: rgba(26, 26, 24, 0.5);
  --rule: #e3e2dd;
  --accent: #3f6b4a;
  --note: #f4f3ef;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.95;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  background: var(--paper);
  padding: 8px 12px;
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
}

.wordmark {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 12px;
}

.nav-toggle:active {
  transform: scale(0.97);
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.promise {
  background: var(--note);
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-70);
}

.promise p {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.prose {
  max-width: calc(34em + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.prose a,
.sources a {
  overflow-wrap: anywhere;
}

.page {
  padding: clamp(56px, 8vw, 96px) 0;
}

.hero {
  padding: 48px 0 40px;
}

.hero h1 {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.5;
  margin: 0 0 12px;
}

.tagline {
  margin: 0;
  color: var(--ink-70);
  font-size: 1.05rem;
}

h1,
h2,
h3 {
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.5;
  margin: 0 0 1.2em;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  margin: 2.4em 0 0.7em;
  padding-top: 0.2em;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 1.8em 0 0.5em;
}

p {
  margin: 0 0 1.15em;
}

.lead {
  color: var(--ink-70);
}

section {
  margin: 56px 0;
}

.know {
  margin-top: 48px;
}

.know h2,
.articles h2,
.glossary h2 {
  border-top: 0;
  padding-top: 0;
}

.know-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.know-list li {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}

.know-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.know-list strong {
  display: block;
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.know-list span {
  color: var(--ink-70);
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-list li {
  border-top: 1px solid var(--rule);
}

.article-list a {
  display: block;
  padding: 22px 0;
  text-decoration: none;
}

.article-list a:hover .article-title {
  color: var(--accent);
}

.article-title {
  display: block;
  font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
}

.article-sum {
  display: block;
  color: var(--ink-70);
  margin-top: 6px;
}

.article-date {
  display: block;
  color: var(--ink-45);
  font-size: 0.82rem;
  margin-top: 6px;
}

.tldr {
  background: var(--note);
  border: 1px solid var(--rule);
  padding: 20px 22px;
  margin: 0 0 32px;
}

.tldr h2 {
  font-size: 1.05rem;
  border: 0;
  margin: 0 0 10px;
  padding: 0;
}

.tldr ul {
  margin: 0;
  padding-left: 1.2em;
}

.tldr li + li {
  margin-top: 0.35em;
}

.toc {
  display: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0 20px;
  margin: 0 0 40px;
}

.toc.is-on {
  display: block;
}

.toc h2 {
  font-size: 1.05rem;
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
}

.toc a {
  text-decoration: none;
}

blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--note);
  border-left: 3px solid var(--accent);
}

blockquote p {
  margin: 0 0 0.6em;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-70);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.4em 0 1.8em;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.6;
}

th,
td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent);
  color: #f7faf7;
  font-weight: 500;
}

.sources ul,
.related ul {
  padding-left: 1.2em;
}

.sources li + li,
.related li + li {
  margin-top: 0.4em;
}

.amazon {
  margin-top: 64px;
  padding-top: 8px;
}

.pr {
  font-size: 0.82rem;
  color: var(--ink-70);
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #f7faf7;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: nowrap;
}

.btn:hover {
  color: #fff;
  filter: brightness(0.94);
}

.btn:active {
  transform: scale(0.97);
}

.updated {
  margin-top: 48px;
  color: var(--ink-45);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 48px;
  font-size: 0.88rem;
  color: var(--ink-70);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 12px 0 20px;
}

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

.foot-promise {
  margin: 0 0 16px;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    color: #fff;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  section {
    margin: 48px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    z-index: 20;
    padding: 12px 20px 16px;
  }

  .site-nav.is-open ul {
    flex-direction: column;
    gap: 10px;
  }

  .header-inner {
    position: relative;
  }

  .btn {
    white-space: normal;
    max-width: 100%;
  }

  th,
  td {
    padding: 8px 8px;
    font-size: 0.86rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161614;
    --ink: #ecece8;
    --ink-70: rgba(236, 236, 232, 0.72);
    --ink-45: rgba(236, 236, 232, 0.5);
    --rule: #2c2c28;
    --note: #1e1e1b;
  }

  th {
    color: #f4f7f4;
  }
}

/* 本文中盤のアフィリエイト導線(控えめ・読書を邪魔しない) */
.inline-amz {
  margin: 28px 0;
  padding: 14px 16px;
  background: var(--note, #F4F3EF);
  border-left: 2px solid var(--accent, #3F6B4A);
  font-size: 0.95em;
  line-height: 1.8;
}
.inline-amz a {
  font-weight: 600;
  white-space: nowrap;
}
.pr-mark {
  margin-left: 6px;
  font-size: 0.8em;
  color: var(--ink-45, rgba(26,26,24,.5));
}

/* ── 商品リンク(Amazon)──────────────────────── */
.prod-list { list-style: none; margin: 20px 0 24px; padding: 0; }
.prod-list li { margin: 0 0 12px; }

.prod {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--rule, #E3E2DD);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, background-color .18s ease;
}
.prod:hover { border-color: #E8A33D; background: #FFFDF8; }

.prod-name {
  display: block;
  font-weight: 700;
  font-size: 1.02em;
  line-height: 1.6;
  margin-bottom: 4px;
}
.prod-note {
  display: block;
  font-size: .88em;
  line-height: 1.75;
  color: var(--ink-45, rgba(26,26,24,.55));
  margin-bottom: 12px;
}
.prod-cta,
.btn-amz {
  display: inline-block;
  background: #FFA41C;
  border: 1px solid #E8901A;
  color: #111;
  font-weight: 700;
  font-size: .9em;
  line-height: 1;
  padding: 11px 20px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.prod:hover .prod-cta { background: #FA8900; }
.btn-amz:hover { background: #FA8900; }
.more { margin: 18px 0 14px; }
.amazon .pr {
  font-size: .82em;
  line-height: 1.8;
  color: var(--ink-45, rgba(26,26,24,.55));
}
@media (max-width: 560px) {
  .prod-cta, .btn-amz { display: block; text-align: center; white-space: normal; }
}

/* トップの品目導線 */
.amz-links { list-style: none; padding: 0; margin: 18px 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.amz-links a {
  display: block; padding: 14px 16px; border: 1px solid var(--rule,#E3E2DD);
  background:#fff; text-decoration: none; color: inherit; font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease;
}
.amz-links a:hover { border-color:#E8A33D; background:#FFFDF8; }
.amz-links a::after { content: " →"; color:#C9791A; }
.top-amz .pr { font-size:.82em; line-height:1.8; color: var(--ink-45, rgba(26,26,24,.55)); }

/* トップの品目リンクをボタン化(見落とし防止) */
.top-amz { margin-top: 8px; }
.amz-links a {
  background: #FFA41C;
  border: 1px solid #E8901A;
  color: #111;
  font-weight: 700;
  text-align: center;
  border-radius: 3px;
  padding: 15px 14px;
}
.amz-links a:hover { background: #FA8900; border-color:#E8901A; }
.amz-links a::after { content: " →"; color: #111; }

/* 記事末尾のAmazonボタン(agyが .btn-amz を使ったのでスタイルを定義) */
.btn-amz {
  display: inline-block;
  background: #FFA41C;
  border: 1px solid #E8901A;
  color: #111 !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  padding: 15px 28px;
  text-align: center;
}
.btn-amz:hover { background: #FA8900; }
.btn-amz::after { content: " →"; }
section.amazon { border-top: 1px solid var(--line, #e5e5e5); padding-top: 28px; margin-top: 36px; }
