:root {
  --bg: #fbf1e4;
  --bg-2: #fff9f1;
  --ink: #4a3426;
  --ink-soft: #7a6152;
  --line: #e7d3bd;
  --pink: #e8649a;
  --pink-soft: #fbe1ea;
  --green: #7fae4a;
  --green-soft: #e9f2dc;
  --btn: #ff9900;
  --btn-ink: #3a2410;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  font-weight: 500;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* 下書きの目印（公開前に消す） */
.draft {
  background: #4a3426; color: #fff; text-align: center;
  font-size: .8rem; padding: 6px 16px; letter-spacing: .05em;
}

/* ヒーロー */
.hero { padding: 48px 0 32px; text-align: center; background: radial-gradient(circle at 50% 0, #fff6ea 0, var(--bg) 70%); }
.ribbon {
  display: inline-block; background: var(--pink); color: #fff;
  border-radius: 999px; padding: 2px 18px; font-size: .9rem; font-weight: 700; letter-spacing: .1em;
}
.hero .for { font-weight: 900; color: var(--ink); font-size: 1.05rem; margin: 0 0 8px; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 900; line-height: 1.4; margin: 12px 0 8px; }
.hero p { color: var(--ink-soft); margin: 0; }

/* 保存のしかた */
.howto {
  background: #fff; border: 2px solid var(--line); border-radius: 20px;
  padding: 16px 20px; margin: 24px auto 0; max-width: 560px; text-align: left; font-size: .92rem;
}
.howto b { display: block; margin-bottom: 4px; }
.howto ol { margin: 0; padding-left: 1.4em; }

/* 本ごとのかたまり */
.book { padding: 48px 0; }
.book:nth-of-type(even) { background: var(--bg-2); }
.book-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.book-head img { width: 72px; border-radius: 4px; box-shadow: 0 6px 16px rgba(74,52,38,.2); flex-shrink: 0; }
.book-head h2 { font-size: clamp(1.15rem, 4vw, 1.5rem); font-weight: 900; line-height: 1.4; margin: 0; }
.book-head small { display: block; font-size: .8rem; color: var(--ink-soft); font-weight: 700; }

.walls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 560px; margin: 0 auto; }
.wall { text-align: center; }
.wall img {
  border-radius: 22px; border: 4px solid #fff;
  box-shadow: 0 10px 24px rgba(74,52,38,.18);
  margin-bottom: 14px; width: 100%;
  aspect-ratio: 1170 / 2532; object-fit: cover;
}
.save {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  background: var(--btn); color: var(--btn-ink); border: 0; cursor: pointer;
  font-family: inherit; font-weight: 900; font-size: 1rem; text-decoration: none;
  padding: 12px 8px; border-radius: 999px;
  box-shadow: 0 4px 0 #c77700;
  transition: transform .1s, box-shadow .1s;
}
.save:hover, .save:active { transform: translateY(2px); box-shadow: 0 2px 0 #c77700; }

footer { padding: 40px 0 56px; text-align: center; font-size: .85rem; color: var(--ink-soft); }
footer a { color: var(--ink); font-weight: 700; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 16px; }

@media (max-width: 380px) {
  .walls { gap: 12px; }
  .save { font-size: .9rem; }
}
