/* ==========================================================
   灰泥屋書院 — haidoroya.com
   1ページ縦スクロール。装飾より文字組み。
   ========================================================== */

:root {
  --paper: #f7f4ed;
  --ink: #2a2723;
  --sub: #6f6a60;
  --line: #ddd6c8;
  --accent: #8a4a33;
  --serif: "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN",
           "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN",
          "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: 41rem;
  padding: 0 clamp(20px, 5.5vw, 40px) 48px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body { font-size: 18px; }
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(138, 74, 51, 0.5);
}

a:hover { text-decoration-color: currentColor; }

::selection { background: #e7ddc9; }

/* ---------- header ---------- */

.site-head {
  padding: clamp(56px, 12vw, 96px) 0 0;
  text-align: center;
}

.site-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1.4;
}

.tagline {
  margin: 14px 0 0;
  font-size: 13.5px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--sub);
}

.lede {
  margin: 44px 0 0;
  text-align: left;
}

/* ---------- sections ---------- */

main section {
  margin-top: clamp(64px, 12vw, 96px);
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 7vw, 52px);
}

h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.group-label {
  margin: 52px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--sub);
}

.group-note {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--sub);
  line-height: 1.85;
}

/* ---------- book entries ---------- */

.book {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px 24px;
  align-items: start;
  margin-top: 34px;
}

@media (max-width: 420px) {
  .book { grid-template-columns: 88px 1fr; gap: 14px 16px; }
}

.book img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(42, 39, 35, 0.10);
}

.book h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.book .credit {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--sub);
  letter-spacing: 0.06em;
}

.book .blurb {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.85;
}

.book .buy {
  margin: 10px 0 0;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.book .buy .sep {
  margin: 0 0.6em;
  color: var(--line);
}

/* ---------- podcast ---------- */

.pod-name {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.pod-links {
  margin: 14px 0 0;
  font-size: 14.5px;
}

.pod-links .sep {
  margin: 0 0.7em;
  color: var(--line);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: clamp(72px, 14vw, 110px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  text-align: center;
  color: var(--sub);
  font-size: 12.5px;
  letter-spacing: 0.14em;
}

.site-foot .seal {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
}

.outlets {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px dotted var(--line);
}

.buy + .buy {
  margin-top: 4px;
}

.buy a,
.pod-links a {
  white-space: nowrap;
}

/* ---------- book detail pages ---------- */

.book h4 a {
  color: inherit;
  text-decoration-color: rgba(42, 39, 35, 0.3);
}

.book h4 a:hover { text-decoration-color: currentColor; }

.site-head.sub {
  padding-top: 30px;
  text-align: left;
}

.site-head.sub .home { margin: 0; }

.site-head.sub .home a {
  color: var(--sub);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.22em;
}

.site-head.sub .home a:hover { color: var(--ink); }

.book-head { margin-top: 44px; }

.book-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.book-head .credit {
  margin: 10px 0 0;
  color: var(--sub);
  font-size: 13.5px;
  letter-spacing: 0.06em;
}

.book-head .intro { margin: 22px 0 0; }

.book-head .buy {
  margin: 16px 0 0;
  font-size: 13.5px;
}

.book-head .buy .sep {
  margin: 0 0.6em;
  color: var(--line);
}

.aplus { margin-top: 60px; }

.aplus img {
  width: 100%;
  height: auto;
  display: block;
}

.aplus .mod { margin-top: 52px; }

.aplus h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.aplus .mod > p {
  margin: 10px 0 0;
  font-size: 15.5px;
}

.aplus .trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 26px;
}

@media (max-width: 640px) {
  .aplus .trio { grid-template-columns: 1fr; }
}

.aplus .trio h3 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.aplus .trio p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
}

.backlink {
  margin-top: 68px;
  font-size: 14px;
}

.aplus ul {
  margin: 12px 0 0;
  padding-left: 1.5em;
  font-size: 15.5px;
}

.aplus ul li { margin-top: 4px; }

.aplus .submod {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.7;
}

.cmp th, .cmp td {
  border: 1px solid var(--line);
  padding: 8px 7px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.cmp thead th {
  font-family: var(--serif);
  font-weight: 600;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
}

.cmp thead th img {
  width: 100%;
  max-width: 96px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
}

.cmp thead th a {
  color: inherit;
  text-decoration: none;
}

.cmp thead th a:hover { text-decoration: underline; }

.cmp tbody th {
  font-size: 12px;
  color: var(--sub);
  white-space: nowrap;
  font-weight: 500;
}

.cmp { table-layout: fixed; }

.cmp thead th:first-child { width: 5.5em; }

.site-head .wordmark {
  margin: 0;
}

.site-head .wordmark img {
  width: min(100%, 580px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.book-head h1 rt {
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0.06em;
}
