@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/ZenMaruGothic-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/ZenMaruGothic-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/ZenMaruGothic-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --paper: #FDFBF5;
  --ink: #33302B;
  --mikan: #EE6C2E;
  --line: rgba(51, 48, 43, .18);
  --photo-empty: #F1EAD8;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--mikan); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 24px 0 16px;
  margin-bottom: 48px;
}
header.site .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
header.site .name { font-size: 23px; font-weight: 700; color: var(--ink); }
header.site nav a { color: var(--ink); margin-left: 24px; font-weight: 500; }
header.site nav a.now { color: var(--mikan); }

h1 { font-size: 40px; line-height: 1.3; font-weight: 700; margin: 0 0 16px; }
h1.big { font-size: 54px; }
h2 { font-size: 30px; line-height: 1.3; font-weight: 700; margin: 64px 0 16px; }
h3 { font-size: 23px; line-height: 1.3; font-weight: 700; margin: 0 0 8px; }

.lede { font-size: 23px; line-height: 1.6; font-weight: 500; margin: 0 0 32px; }

.wave { display: block; margin: 8px 0 32px; }

section { margin-bottom: 64px; }

/* 本の表紙（装丁は全カテゴリー共通） */
.book {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.cover {
  width: 240px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
a.cover:hover { text-decoration: none; }
a.cover:hover .title { color: var(--mikan); }
.cover .band {
  background: var(--mikan);
  color: #FFF;
  font-weight: 700;
  font-size: 17px;
  padding: 8px 16px;
}
.cover .photo {
  background: var(--photo-empty);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-weight: 500;
}
.cover .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  padding: 16px 16px 24px;
}
.book .meta p { margin: 0 0 16px; }

/* これから育つ領域（棚にしない、言葉だけ） */
.growing { border-top: 1px solid var(--line); }
.growing div {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.growing .cat { font-weight: 700; width: 240px; flex: none; }
.growing p { margin: 0; }

/* 本の目次・カード一覧 */
.toc { border-top: 1px solid var(--line); }
.toc a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.toc a:hover { text-decoration: none; }
.toc a:hover .t { color: var(--mikan); }
.toc .t { font-size: 23px; font-weight: 700; }
.toc .d { font-weight: 500; white-space: nowrap; }

/* 実測表（カードの型） */
table.measure {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
table.measure th, table.measure td {
  text-align: left;
  vertical-align: top;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
table.measure th { font-weight: 700; width: 240px; }
table.measure .none { opacity: .55; }

/* 口座（著者ページ） */
.account { border-top: 1px solid var(--line); padding: 24px 0; }
.account:last-of-type { border-bottom: 1px solid var(--line); }
.account p { margin: 0; max-width: 640px; }

.photo-slot {
  background: var(--photo-empty);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-weight: 500;
  margin-bottom: 32px;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 32px 0 48px;
}
footer.site p { margin: 0 0 8px; }

@media (max-width: 640px) {
  h1.big { font-size: 40px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .book { flex-direction: column; }
  .growing div { flex-direction: column; gap: 8px; }
  .growing .cat { width: auto; }
  table.measure th { width: 128px; }
}
