@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Montserrat:wght@800&family=Noto+Serif+JP:wght@400;700&family=Roboto+Condensed:wght@700&display=swap");

:root {
  --paper: #f7f4ef;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --muted: #5f696d;
  --line: #ded7cc;
  --accent: #9b2f2f;
  --blue: #315f72;
  --gold: #b58b45;
  --ink-rgb: 31, 42, 46;
  --accent-rgb: 155, 47, 47;
  --blue-rgb: 49, 95, 114;
  --gold-rgb: 181, 139, 69;
  --shadow: 0 18px 40px rgba(31, 42, 46, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 239, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 248px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 76px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 44px;
  align-items: end;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  margin: 0 0 20px;
  max-width: 820px;
}

.home-page .hero h1 {
  font-family: "Merriweather", "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.home-page h2,
.home-page .category-intro h3,
.home-page .book-info h3,
.home-page .choice h3,
.home-page .faq summary {
  font-family: "Merriweather", "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.home-page [lang="ja"] .book-info h3 {
  font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  margin: 0 0 16px;
}

h3 {
  font-size: 1.18rem;
  margin: 0 0 10px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 720px;
  margin: 0;
}

.home-page {
  color: rgba(var(--ink-rgb), 0.92);
}

.home-page h1,
.home-page h2,
.home-page .book-info h3,
.home-page .choice h3,
.home-page .faq summary,
.home-page .site-footer strong {
  color: rgba(var(--ink-rgb), 1);
}

.home-page .nav-links {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: rgba(var(--ink-rgb), 0.5);
}

.home-page .eyebrow {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: rgba(var(--accent-rgb), 0.76);
}

.home-page .choice span {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.home-page .lead {
  font-family: "Merriweather", "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: rgba(var(--ink-rgb), 0.58);
}

.home-page .hero-panel,
.home-page .section-head p,
.home-page .choice p,
.home-page .split > div > p,
.home-page .plain-list,
.home-page .detail-block p,
.home-page .faq p,
.home-page .site-footer span {
  font-family: "Merriweather", "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.home-page .hero-panel,
.home-page .section-head p,
.home-page .choice p,
.home-page .split > div > p,
.home-page .plain-list,
.home-page .detail-block p,
.home-page .faq p,
.home-page .site-footer {
  color: rgba(var(--ink-rgb), 0.56);
}

.home-page .book-info p {
  font-family: "Merriweather", "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: rgba(var(--ink-rgb), 0.68);
}

.home-page .hero-panel strong {
  color: rgba(var(--ink-rgb), 1);
}

.home-page .tag {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: rgba(var(--blue-rgb), 0.7);
}

.home-page .meta {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.home-page .tag-language,
.home-page .meta,
.home-page .choice span {
  color: rgba(var(--accent-rgb), 1);
}

.home-page .tag-topic {
  color: rgba(var(--gold-rgb), 0.74);
}

.hero-panel {
  border-left: 4px solid var(--gold);
  padding: 22px 0 22px 24px;
  color: var(--muted);
}

.hero-panel strong {
  color: var(--ink);
}

.section {
  padding: 62px 0;
}

.section-muted {
  background: #ebe5da;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 650px;
  color: var(--muted);
  margin: 0;
}

.catalog-group {
  margin-top: 36px;
}

.catalog-group:first-of-type {
  margin-top: 0;
}

.category-intro {
  margin-bottom: 18px;
}

.category-intro h3 {
  font-size: 1.45rem;
}

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

.book-grid-featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(31, 42, 46, 0.03);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(155, 47, 47, 0.28);
}

.book-card a {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  text-decoration: none;
}

.cover-wrap {
  background: #e7ded2;
  padding: 26px 22px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cover-wrap img {
  width: min(210px, 82%);
  height: auto;
  max-height: none;
  box-shadow: 0 18px 26px rgba(31, 42, 46, 0.22);
}

.book-info {
  padding: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-row .tag {
  margin-bottom: 0;
}

.tag-language {
  color: var(--accent);
}

.tag-topic {
  color: var(--gold);
}

.tag-new {
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
}

.home-page .tag-new {
  color: #fff;
}

.book-info p {
  color: var(--muted);
  margin: 0 0 16px;
}

.meta {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
}

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

.choice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.choice span {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.88rem;
}

.choice p {
  color: var(--muted);
  margin: 8px 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: start;
}

.plain-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-blocks {
  display: grid;
  gap: 24px;
}

.detail-block {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.detail-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-block p {
  color: var(--muted);
  margin: 0;
}

.detail-block .plain-list {
  margin-top: 12px;
}

.series-kicker {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.book-hero {
  padding: 56px 0 68px;
}

.book-hero-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.book-cover-large {
  background: #e7ded2;
  border-radius: 8px;
  padding: 28px;
}

.book-cover-large img {
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  max-height: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--accent);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-secondary {
  color: var(--accent);
}

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

.fact {
  border-top: 3px solid var(--gold);
  background: var(--surface);
  padding: 18px;
}

.fact strong {
  display: block;
}

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

h1,
h2,
h3,
.lead,
.hero-panel,
.section-head p,
.book-info p,
.choice p,
.split > div > p,
.plain-list,
.detail-block p,
.faq p,
.site-footer span,
.fact span {
  font-family: "Merriweather", "Noto Serif JP", Georgia, "Times New Roman", serif;
}

h1,
h2,
h3,
.faq summary,
.site-footer strong,
.fact strong {
  font-family: "Merriweather", "Noto Serif JP", Georgia, "Times New Roman", serif;
  font-weight: 700;
}

[lang="ja"] .book-info h3,
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
}

.eyebrow,
.choice span {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.nav-links,
.tag,
.meta,
.button {
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.025em;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-grid,
  .split,
  .book-hero-grid {
    grid-template-columns: 1fr;
  }

  .book-grid,
  .chooser,
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-hero-grid {
    gap: 32px;
  }

  .book-cover-large {
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .container,
  .nav {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-top: 46px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .book-grid,
  .book-grid-featured,
  .chooser,
  .facts {
    grid-template-columns: 1fr;
  }

  .cover-wrap img {
    width: min(190px, 78%);
  }
}
