:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #2b2a28;
  --muted: #6b6862;
  --line: #e6e2da;
  --accent: #3f7d6e;
  --accent-soft: #eaf3f0;
  --warm-soft: #fbf3e6;
  --cta: #d9774b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px; line-height: 1.9; letter-spacing: .02em;
}
a { color: var(--accent); }
img, video { max-width: 100%; height: auto; border-radius: 8px; }
figure { margin: 20px 0; }
figure img, figure video { display: block; width: 100%; height: auto; border-radius: 8px; }
figcaption { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.fig-portrait { max-width: 420px; margin-left: auto; margin-right: auto; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.photo-grid figure { margin: 0; }
.review-card { display: flex; gap: 14px; align-items: center; background: var(--warm-soft); border: 1px solid #f0dfc3; border-radius: 10px; padding: 12px; margin: 28px 0; text-decoration: none; color: var(--text); }
.review-card:hover { border-color: var(--cta); }
.review-card img { width: 96px; height: 96px; object-fit: cover; flex: none; }
.review-card .rc-label { display: block; font-size: 12px; color: var(--cta); font-weight: 700; }
.review-card .rc-title { display: block; font-weight: 700; line-height: 1.5; }
.review-card .rc-desc { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 2px; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid.tall img { aspect-ratio: 4 / 5; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 700; color: var(--text); text-decoration: none; font-size: 18px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

.crumbs { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.crumbs a { color: var(--muted); }

h1 { font-size: 26px; line-height: 1.5; margin: 24px 0 8px; }
h2 { font-size: 21px; line-height: 1.5; margin: 48px 0 16px; padding: 8px 12px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 4px; }
h3 { font-size: 18px; margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.meta, .small { font-size: 13px; color: var(--muted); }
.kv { display: block; width: 100%; height: auto; margin: 16px 0 0; border-radius: 8px; }
.lead { color: var(--muted); }

.pr { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; margin: 16px 0 0; display: inline-block; }

.usage, .box, .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 20px 0; }
.usage { background: var(--warm-soft); border-color: #f0dfc3; }
.usage ul { margin: 0; padding-left: 1.2em; }
.usage-list { margin: 0; }
.usage-list dt { margin-top: 8px; }
.usage-list dt:first-child { margin-top: 0; }
.usage-list dd { margin: 0; }
.box-title { font-weight: 700; margin: 0 0 4px; }
.box-conclusion { border: 2px solid var(--accent); }
.box-point { background: var(--accent-soft); border-color: transparent; }
.box-caution { background: #fdf1ee; border-color: #f3d3c8; }
.box p:last-child { margin-bottom: 0; }
.toc ul { margin: 0; padding-left: 1.2em; font-size: 15px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--accent-soft); white-space: nowrap; }
/* スマホで1マスが細くなりすぎないように。入りきらない分は横スクロール */
.body table th, .body table td { min-width: 5em; }
.body table td:first-child { min-width: 7.5em; font-weight: 700; }
.body table .nw { white-space: nowrap; }

.table-wrap { margin: 16px 0; }
.ptable { font-size: 14px; }
.ptable th, .ptable td { min-width: 6.5em; }
.ptable td:first-child { font-weight: 700; min-width: 10em; }
.ptable td.long { min-width: 15em; }
.table-wrap .small { margin-top: 4px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 0 6px; margin-top: 4px; }

.cta { text-align: center; margin: 28px 0; }
.cta-button { display: inline-block; background: var(--cta); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 28px; border-radius: 999px; max-width: 100%; }
.cta-button:hover { opacity: .9; }
.cta-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }

.related ul, .cards { list-style: none; padding: 0; }
.related { margin-top: 40px; }
.cards { margin: 12px 0; }
.cards li { margin: 0 0 12px; }
.cards .card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; color: var(--text); }
.cards .card img { width: 112px; height: 84px; object-fit: cover; flex: none; border-radius: 6px; }
.card-body { display: block; min-width: 0; }
.cards li a:hover { border-color: var(--accent); }
.card-title { display: block; font-weight: 700; }
.card-desc { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 2px; }
.hero { padding: 16px 0 8px; }
.hero-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.home-cat h2 a { color: inherit; text-decoration: none; }

.site-footer { margin-top: 64px; padding: 24px 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.note { margin-top: 32px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  table { font-size: 14px; }
  th, td { padding: 6px 7px; }
  h1 { font-size: 22px; }
  h2 { font-size: 19px; }
}
