:root {
  --ink: #17201b;
  --muted: #657169;
  --paper: #f7f5ef;
  --surface: #fffdfa;
  --line: #dfe3dc;
  --green: #176b4d;
  --green-dark: #0d4d36;
  --lime: #dff36a;
  --orange: #ef7e42;
  --shadow: 0 18px 50px rgba(31, 51, 39, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
button, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: rgba(247,245,239,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 1.25rem; }
.brand small { padding: 1px 6px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .6rem; letter-spacing: 0; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px 10px 10px 3px; background: var(--green); color: white; box-shadow: inset -5px 0 rgba(255,255,255,.12); }
.nav-links { display: flex; gap: 24px; align-items: center; font-weight: 700; font-size: .9rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--green); }
.ad-note { background: var(--ink); color: #fff; font-size: .78rem; text-align: center; padding: 6px 16px; }

.hero { padding: 76px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: "OFF"; position: absolute; right: -20px; top: 8px; color: rgba(23,107,77,.055); font-size: clamp(9rem, 23vw, 19rem); font-weight: 1000; line-height: 1; pointer-events: none; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: .8rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2.5rem, 6vw, 5.1rem); line-height: 1.08; letter-spacing: -.065em; }
h1 em { color: var(--green); font-style: normal; position: relative; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; height: 10px; border-radius: 99px; background: var(--lime); left: 0; right: 0; bottom: 3px; z-index: -1; }
.hero-copy { max-width: 690px; margin: 22px 0 30px; color: var(--muted); font-size: 1.05rem; }
.compact-intro { padding: 52px 0 8px; }
.compact-intro h1 { max-width: none; font-size: clamp(2rem, 4vw, 3.6rem); }
.intro-copy { max-width: 720px; margin: 12px 0 24px; color: var(--muted); }
.intro-copy a { color: var(--green); font-weight: 700; }
.list-title { max-width: none; font-size: clamp(2rem, 4vw, 3.4rem); }
.list-search { margin: -4px 0 28px; box-shadow: none; }
.search-box { position: relative; display: flex; max-width: 720px; padding: 8px; border: 1px solid var(--line); background: white; border-radius: 18px; box-shadow: var(--shadow); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 13px 16px; background: transparent; font-size: 1rem; }
.search-box button, .button { border: 0; border-radius: 12px; background: var(--green); color: white; font-weight: 800; padding: 13px 22px; cursor: pointer; text-decoration: none; display: inline-block; }
.search-box button:hover, .button:hover { background: var(--green-dark); }
.search-help { color: var(--muted); font-size: .78rem; margin: 12px 4px 0; }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.25; letter-spacing: -.04em; margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.notice { padding: 16px 18px; border: 1px solid #ead59b; background: #fff9df; border-radius: 12px; font-size: .88rem; margin-bottom: 22px; }
.results { display: grid; gap: 18px; }
.book-card { display: grid; grid-template-columns: 94px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 8px 28px rgba(31,51,39,.05); }
.book-cover { height: 126px; border-radius: 8px 12px 12px 8px; color: white; background: linear-gradient(145deg, var(--green), #2c9870); padding: 13px; display: flex; align-items: end; font-size: .74rem; font-weight: 900; line-height: 1.45; box-shadow: inset -7px 0 rgba(255,255,255,.12); }
.book-title { font-size: 1.3rem; font-weight: 900; letter-spacing: -.03em; margin: 0; }
.book-meta { color: var(--muted); font-size: .84rem; margin: 2px 0 14px; }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.offer { border-top: 1px solid var(--line); padding-top: 10px; }
.store { color: var(--muted); font-size: .76rem; font-weight: 700; }
.price { display: block; color: var(--green-dark); font-size: 1.3rem; line-height: 1.3; font-weight: 1000; }
.was { color: var(--muted); text-decoration: line-through; font-size: .73rem; }
.condition { font-size: .74rem; line-height: 1.45; }
.tag { display: inline-block; margin-left: 5px; padding: 2px 7px; background: #edf3ed; border-radius: 99px; font-size: .68rem; font-weight: 800; vertical-align: 2px; }
.tag.conditional { background: #fff0e8; color: #a84317; }
.discount-badge { display: inline-block; margin-left: 7px; padding: 2px 8px; border-radius: 6px; background: var(--orange); color: white; font-size: .72rem; font-weight: 900; vertical-align: 1px; }
.official-link { display: inline-block; margin-top: 7px; color: var(--green); font-weight: 800; font-size: .76rem; }
.empty { background: white; border: 1px dashed #bfc7c0; border-radius: 18px; padding: 40px; text-align: center; color: var(--muted); }

.feature-grid, .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature, .article-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 24px; }
.feature-num { color: var(--orange); font-weight: 1000; font-size: .8rem; }
.feature h3, .article-card h3 { margin: 7px 0; font-size: 1.08rem; }
.feature p, .article-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.article-card a { color: var(--green); font-weight: 800; font-size: .82rem; }

.page-hero { padding: 58px 0 32px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.prose { max-width: 780px; }
.prose h2 { margin: 48px 0 12px; font-size: 1.6rem; }
.prose h3 { margin: 30px 0 8px; }
.prose p, .prose li { color: #435047; }
.prose .lead { font-size: 1.15rem; color: var(--ink); }
.definition { border-left: 4px solid var(--lime); padding: 1px 0 1px 18px; }
.article-meta { color: var(--muted); font-size: .82rem; }
.fact-box { margin: 26px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fact-box strong { display: block; margin-bottom: 7px; }
.fact-box ul { margin-bottom: 0; }
.official-button { display: inline-block; margin: 12px 0; padding: 12px 18px; border-radius: 10px; color: white; background: var(--green); font-weight: 800; text-decoration: none; }
.official-button:hover { background: var(--green-dark); }
.blog-list { display: grid; gap: 18px; }
.blog-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; }
.blog-row:hover { border-color: var(--green); }
.blog-row .label { min-height: 110px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--green); font-weight: 900; text-align: center; padding: 12px; }
.blog-row h2 { font-size: 1.3rem; margin: 5px 0; }
.blog-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.policy-table th, .policy-table td { border-bottom: 1px solid var(--line); padding: 13px 10px; text-align: left; vertical-align: top; }
.policy-table th { color: var(--muted); }

.site-footer { margin-top: 64px; padding: 42px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; }
.footer-links a { color: var(--muted); }
.copyright { color: var(--muted); font-size: .75rem; margin-top: 24px; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .nav { min-height: 60px; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { padding-top: 48px; }
  .search-box button { padding-inline: 16px; }
  .section { padding: 40px 0; }
  .section-head, .footer-grid { align-items: start; flex-direction: column; }
  .book-card { grid-template-columns: 62px 1fr; gap: 14px; padding: 16px; }
  .book-cover { height: 90px; padding: 8px; font-size: .58rem; }
  .offers { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .feature-grid, .article-grid { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 1fr; }
  .blog-row .label { min-height: 70px; }
}
