/* ── リセット ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── ベース ─────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
               'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

/* ── ヘッダー（固定）────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e4e6ea;
  padding: 12px 16px 14px;
}
.site-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #444;
  margin-bottom: 10px;
}
.search-wrap {
  max-width: 520px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}
#search {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 2px solid #dde1e7;
  border-radius: 24px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
  outline: none;
  transition: border-color .15s, background .15s;
}
#search:focus {
  border-color: #6890F0;
  background: #fff;
}
#search::placeholder { color: #b0b8c4; }

/* ── メインエリア ────────────────────────────────────── */
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

/* ── ステータステキスト ──────────────────────────────── */
.status {
  text-align: center;
  color: #9aa3b0;
  padding: 48px 0;
  font-size: .95rem;
}
.status.error { color: #e05c5c; }

/* ── カード ─────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
}

/* ── カードヘッダー ──────────────────────────────────── */
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.poke-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
}

/* ── 効果セクション ──────────────────────────────────── */
.eff-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eff-section {}
.eff-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}
.eff-title.weak    { background: #fff0f0; color: #cc3333; }
.eff-title.resist  { background: #f0f4ff; color: #3355cc; }
.eff-title.immune  { background: #f0f0f0; color: #666;    }

/* ── バッジ行 ────────────────────────────────────────── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* ── タイプバッジ ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* ── 倍率チップ ──────────────────────────────────────── */
.mult {
  font-size: .72rem;
  font-weight: 800;
  background: rgba(0,0,0,.22);
  border-radius: 99px;
  padding: 1px 5px;
  letter-spacing: 0;
}
/* ×4 / ×¼ は強調 */
.mult--x {
  background: rgba(255,255,255,.35);
  outline: 1px solid rgba(255,255,255,.5);
}

/* ── 「─」（該当なし）────────────────────────────────── */
.none {
  color: #c0c8d4;
  font-size: .9rem;
}

/* ── 説明・タイプ別一覧（静的コンテンツ）──────────────── */
.info { margin: 8px 0 20px; }
.info h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 8px;
}
.info p, .info li { color: #444; font-size: .92rem; }
.info p + p { margin-top: 8px; }
.info ol, .info ul.plain { padding-left: 1.3em; }
.info li + li { margin-top: 4px; }
.info dt { font-weight: 700; font-size: .92rem; margin-top: 12px; }
.info dd { color: #444; font-size: .92rem; margin-top: 2px; }

.type-list { list-style: none; }
.type-row {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
}
.type-row + .type-row { margin-top: 0; }
.type-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.type-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.type-line + .type-line { margin-top: 6px; }
.type-line .eff-title {
  flex: 0 0 6.8em;
  text-align: center;
  white-space: nowrap;
  margin: 2px 0 0;
}

/* ── リンク ─────────────────────────────────────────── */
a { color: #3355cc; }
.site-title a { color: inherit; text-decoration: none; }
.poke-name a { color: inherit; text-decoration: none; }
.poke-name a::after { content: " ›"; color: #b0b8c4; font-weight: 400; }
.poke-name a:hover { text-decoration: underline; }

/* ── ポケモン別ページ ────────────────────────────────── */
.crumbs {
  font-size: .8rem;
  color: #9aa3b0;
  margin-bottom: 12px;
}
.crumbs a { color: #6b7686; }
.poke-meta {
  flex-basis: 100%;
  font-size: .8rem;
  color: #9aa3b0;
  margin-top: -6px;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 8px;
  font-size: .9rem;
}
.link-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px 12px;
  margin-top: 8px;
}
.link-list li { font-size: .92rem; }
.info .link-list li + li { margin-top: 0; }
.link-list .no {
  color: #9aa3b0;
  font-size: .78rem;
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}
.ad { margin: 16px 0; }
.site-footer {
  text-align: center;
  font-size: .8rem;
  color: #9aa3b0;
  padding: 0 12px 32px;
}
.site-footer a { color: #6b7686; margin: 0 6px; }
