/* Qiita Book のページ。Qiita の緑 1 色、白い紙、ほぼ黒の文字 */
:root {
  --ground: #F4F6F3; --card: #FFFFFF; --ink: #1F2328; --sub: #656D76; --line: #E3E6E8;
  --green: #55C500; --green-deep: #3E9A00; --green-soft: #E8F6D9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; line-height: 1.8; }
a { color: var(--green-deep); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
header { background: var(--card); border-bottom: 1px solid var(--line); }
.hbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.hbrand { display: flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; font-size: 18px; color: var(--ink); }
.hbrand img { border-radius: 8px; }
.hnav { display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.hnav a { text-decoration: none; color: var(--sub); }
.hnav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.hero { padding: 56px 0 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.3; margin: 0 0 16px; font-weight: 900; }
.hero p { color: var(--sub); margin: 0 0 20px; }
.hero .pill { display: inline-block; background: var(--green); color: #fff; font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: 13px; margin-bottom: 12px; }
.hero img.face { width: 100%; max-width: 320px; justify-self: center; border-radius: 72px; box-shadow: 0 20px 50px rgba(85, 197, 0, .25); }
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 800; padding: 14px 24px; border-radius: 16px; }
.note { font-size: 13px; color: var(--sub); margin-top: 10px; }
section { padding: 32px 0; }
section h2 { font-size: 26px; font-weight: 900; margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: 20px; padding: 18px; border: 1px solid var(--line); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--sub); font-size: 14px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shots figure { margin: 0; }
.shots img { width: 100%; border-radius: 24px; border: 1px solid var(--line); }
.shots figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; text-align: center; }
.wide figure { margin: 0; }
.wide img { width: 100%; border-radius: 24px; border: 1px solid var(--line); }
.wide figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; text-align: center; }
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.doc .en { color: var(--sub); letter-spacing: .12em; font-size: 12px; margin: 0; }
.doc h1 { margin: 4px 0; font-size: 30px; }
.doc .meta { color: var(--sub); font-size: 13px; margin: 0 0 20px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 16px; margin: 18px 0 6px; }
.lede, .callout { background: var(--card); border-radius: 16px; padding: 16px 18px; border: 1px solid var(--line); }
.callout { background: var(--green-soft); border-color: transparent; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { width: 30%; color: var(--sub); font-weight: 600; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--sub); font-size: 13px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--sub); }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1 { font-size: 30px; }
  .hero img.face { max-width: 200px; order: -1; border-radius: 48px; }
  .cards, .shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .cards { grid-template-columns: 1fr; } }
