/* 漫画の「解説」ページ共通（本棚の上の段から飛ぶ先・2026-10-01） */
:root {
  --bg: #0b1510;
  --ink: #f4f1e8;
  --muted: #aebbb2;
  --accent: #8bc7a0;
  --paper: #fbf8f0;
  --paper-ink: #24302a;
  --paper-muted: #5f6b63;
  --green: #1f5f3b;
  --line: rgba(255,255,255,.12);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(69,116,84,.32), transparent 55%),
    linear-gradient(180deg, #101d16 0%, var(--bg) 70%);
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
.topnav {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: min(760px, 100%); margin: 0 auto; padding: 14px 16px 0;
}
.topnav a {
  color: var(--ink); text-decoration: none; font-size: .8rem; white-space: nowrap;
  border: 1px solid #4b5a51; border-radius: 999px; padding: 6px 12px;
}
.topnav a:hover, .topnav a:focus-visible { border-color: var(--accent); outline: none; }
.wrap { width: min(760px, 100%); margin: 0 auto; padding: 18px 16px 48px; }
.head {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 20px;
}
.head img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 10px 22px rgba(0,0,0,.45); }
.head .kicker { margin: 0 0 6px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .18em; }
.head h1 { margin: 0; font-size: clamp(1.3rem, 4.4vw, 1.9rem); line-height: 1.35; letter-spacing: .03em; }
.head .sub { margin: 6px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }

/* 本文＝紙のページ */
.paper {
  background: var(--paper); color: var(--paper-ink);
  border-radius: 14px; padding: clamp(20px, 5vw, 40px);
  box-shadow: 0 24px 50px rgba(0,0,0,.4);
  font-size: 1rem; line-height: 1.95;
}
.paper h2 {
  margin: 2.2em 0 .7em; padding-bottom: .35em; font-size: 1.18rem; line-height: 1.5;
  color: var(--green); border-bottom: 2px solid #d9e6dc;
}
.paper h2:first-child { margin-top: 0; }
.paper p { margin: 0 0 1em; }
.paper .hook {
  margin: 0 0 1.2em; padding: 14px 18px; border-left: 4px solid var(--green);
  background: #eef4ee; border-radius: 0 8px 8px 0; font-size: 1.02rem;
}
.paper ul { margin: 0 0 1em; padding-left: 1.3em; }
.paper li { margin: .25em 0; }
.paper .note { color: var(--paper-muted); font-size: .86rem; }
.paper .team { display: grid; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.team li { margin: 0; padding: 10px 14px; background: #f1ede2; border-radius: 8px; line-height: 1.7; }
.team b { color: var(--green); }

/* コツ・学びのカード */
.paper .tips { display: grid; gap: 14px; margin: 0 0 1.2em; padding: 0; list-style: none; counter-reset: tip; }
.tips li {
  position: relative; margin: 0; padding: 16px 18px 14px 58px;
  background: #fff; border: 1px solid #e3e0d4; border-radius: 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,.04);
}
.tips li::before {
  counter-increment: tip; content: counter(tip);
  position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-weight: 800; font-size: .95rem; line-height: 1;
}
.tips h3 { margin: 0 0 .35em; font-size: 1.03rem; line-height: 1.55; color: var(--paper-ink); }
.tips p { margin: 0 0 .5em; font-size: .95rem; line-height: 1.85; }
.tips p:last-child { margin-bottom: 0; }
.tips .from { color: var(--paper-muted); font-size: .82rem; }
/* 「自分の仕事なら」＝読んだ人が持ち帰る一言 */
.tips .yours {
  margin-top: .7em; padding: 9px 12px; border-radius: 8px; background: #eef4ee;
  font-size: .9rem; line-height: 1.75;
}
.tips .yours b { color: var(--green); }
/* 漫画の該当ページへ */
.tips .see { margin-top: .5em; font-size: .84rem; }
.tips .see a { color: var(--green); font-weight: 700; text-decoration: none; border-bottom: 1px solid #b9d3c0; }
.tips .see a:hover, .tips .see a:focus-visible { border-bottom-color: var(--green); outline: none; }
.nb { display: inline-block; }

.closing {
  margin: 1.6em 0 0; padding: 16px 18px; border-radius: 10px;
  background: #1f3a2a; color: #f4f1e8; font-weight: 700; line-height: 1.8; text-align: center;
}

/* 最後のボタン */
.cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 22px; }
/* 中の文字を1つの流れにする（flexにすると言葉のかたまりの間にすき間ができる） */
.cta a {
  display: block; text-align: center; line-height: 1.6; padding: 13px 14px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: .92rem;
  border: 1px solid #4b5a51; border-radius: 10px; background: rgba(255,255,255,.04);
}
.cta a.primary { background: var(--green); border-color: #2c7a4d; color: #fff; }
.cta a:hover, .cta a:focus-visible { border-color: var(--accent); outline: none; }
.cta a::after { content: "→"; margin-left: 8px; color: var(--accent); }
.cta a.primary::after { color: #d6eadc; }

@media (max-width: 520px) {
  .head { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .paper { font-size: .96rem; }
  /* スマホでは番号を見出しの横だけに置き、本文は全幅で読む */
  .tips li { padding: 14px; }
  .tips li::before { left: 14px; top: 14px; width: 28px; height: 28px; }
  .tips h3 { padding-left: 38px; min-height: 28px; }
}
