:root {
  --bg: #fff3d6;
  --ink: #2b2b2b;
  --paper: #ffffff;
  --sub: #6b6252;
  --coral: #ff5a4d;
  --coral-dark: #e8453a;
  --rank-s: #ffe27a;
  --rank-a: #a8e6b8;
  --rank-b: #a9d4ff;
  --rank-c: #e4e0d8;
  --line: 2.5px solid #2b2b2b;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(#f0dcab 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font);
  min-height: 100vh;
}
header {
  width: 100%;
  background: var(--bg);
  border-bottom: var(--line);
  padding: 12px 24px;
  display: flex;
  align-items: center;
}
header .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
header .logo svg { width: 32px; height: 32px; }
header h1 { font-size: 19px; font-weight: 900; }

main { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; }
h2 { font-size: 28px; font-weight: 900; margin-bottom: 8px; line-height: 1.4; }
.lead { font-size: 15px; color: var(--sub); line-height: 1.9; margin-bottom: 28px; }
.updated { font-size: 13px; color: var(--sub); margin-bottom: 28px; }

section {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
section h3 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e3d3a4;
}
section p, section li { font-size: 14px; color: #4a4338; line-height: 1.9; }
section p + p { margin-top: 8px; }
section ul, section ol { padding-left: 22px; }
section li { margin-bottom: 4px; }
a { color: #1d6fd1; }

.rank-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 4px; }
.rank-cell { border: var(--line); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink); padding: 12px 6px 10px; text-align: center; }
.rank-cell img { display: block; width: 84px; height: 84px; margin: 0 auto 6px; padding: 4px; background: #fffaf0; border: 2px solid var(--ink); border-radius: 50%; }
.rank-cell b { display: block; font-size: 22px; font-weight: 900; line-height: 1.2; color: var(--ink); }
.rank-cell span { font-size: 13px; font-weight: 700; color: #4a4338; }
.rank-cell.s { background: var(--rank-s); }
.rank-cell.a { background: var(--rank-a); }
.rank-cell.b { background: var(--rank-b); }
.rank-cell.c { background: var(--rank-c); }

.faq dt { font-size: 14px; font-weight: 900; color: var(--ink); margin-top: 14px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { font-size: 14px; color: #4a4338; line-height: 1.9; margin-top: 2px; }

.cta-wrap { text-align: center; margin: 28px 0 8px; }
.cta {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  border: var(--line);
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
}

table.info { width: 100%; border-collapse: collapse; font-size: 14px; }
table.info th, table.info td { text-align: left; padding: 10px 8px; border-bottom: 2px solid #f0e4c2; vertical-align: top; line-height: 1.8; }
table.info th { width: 9em; color: var(--sub); font-weight: 700; }

footer { text-align: center; padding: 8px 16px 40px; font-size: 12px; color: var(--sub); line-height: 2; }
footer a { color: var(--sub); margin: 0 8px; white-space: nowrap; }

@media (max-width: 480px) {
  main { padding: 28px 16px 48px; }
  h2 { font-size: 23px; }
  section { padding: 18px; }
  .rank-row { gap: 6px; }
  .rank-cell { padding: 10px 2px 8px; border-radius: 14px; }
  .rank-cell img { width: 62px; height: 62px; padding: 3px; }
  table.info th { width: 7em; }
}
