/* 一覧ページ（gifts / fusion / theme-packs / achievements）専用のスタイル。
   ツール画面の style.css とは独立しており、ツール画面には読み込まれない。 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.6; color: #15171b; background: #fff; }
a { color: #8a5d08; }
a:focus-visible { outline: 2px solid #a06c0a; outline-offset: 2px; }

.lp-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 8px 16px; border-bottom: 1px solid #e3e6eb; }
.lp-site { font-size: 24px; font-weight: bold; line-height: 1.4; color: #15171b; text-decoration: none; }
.lp-lang { font-size: 0.9rem; white-space: nowrap; color: #646b79; }
.lp-lang a { text-decoration: none; }
.lp-lang a[aria-current] { color: #15171b; font-weight: bold; }

.lp-nav { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 8px 16px; border-bottom: 1px solid #e3e6eb; }
.lp-nav a { padding: 6px 12px; border: 1px solid #e3e6eb; border-radius: 999px; color: #646b79; font-size: 14px; line-height: 1.4; text-decoration: none; }
.lp-nav a[aria-current] { border-color: #a06c0a; color: #8a5d08; font-weight: bold; }

main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1 { margin: 8px 0 12px; font-size: 1.5rem; line-height: 1.3; }
h2 { margin: 32px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #e3e6eb; font-size: 1.2rem; line-height: 1.4; }
.lp-lead { margin: 0 0 12px; }
.lp-cta { margin: 0 0 8px; }
.lp-cta a { display: inline-block; padding: 8px 14px; border: 1px solid #a06c0a; border-radius: 8px; font-weight: bold; line-height: 1.4; text-decoration: none; }
.lp-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.lp-toc a { padding: 4px 10px; border: 1px solid #e3e6eb; border-radius: 999px; background: #f2f3f5; color: #15171b; font-size: 14px; line-height: 1.4; text-decoration: none; }
section, tr { scroll-margin-top: 8px; }

.lp-table-wrap { margin-top: 16px; overflow-x: auto; }
section .lp-table-wrap { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
th, td { padding: 6px 8px; border: 1px solid #e3e6eb; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
thead th { background: #f2f3f5; white-space: nowrap; }
tbody th { background: #fafafa; }
tr:target > * { background: #f6ecd6; }
.lp-num { text-align: right; white-space: nowrap; }

/* 出現階層のチップ。配色はツール画面（style.css）と同じ。 */
.floor-chip { display: inline; margin-inline-start: 0.2em; padding: 0 0.25em; border: 1px solid; border-radius: 3px; font-size: max(0.8em, 11px); font-weight: 500; line-height: 1; white-space: nowrap; }
.floor-chip--normal { color: #2e6b2a; background: #e4f2e1; border-color: #a9d3a2; }
.floor-chip--hard { color: #8a4b00; background: #fdebd2; border-color: #edbe80; }
.floor-chip--extreme { color: #5b3a9e; background: #ece4fa; border-color: #c2b0ea; }

.lp-footer { margin-top: 32px; padding: 12px 16px; background: #f4f4f4; color: #646b79; font-size: 14px; text-align: center; }
.lp-footer p { margin: 4px 0; }

@media (max-width: 600px) {
  .lp-site { font-size: 20px; }
  main { padding: 12px; }
  h1 { font-size: 1.3rem; }
  table { font-size: 13px; }
  th, td { padding: 5px 6px; }
  /* 列が極端に細くならないよう下限を決め、足りない分は表の枠内で横スクロールさせる */
  th:first-child, td:first-child { min-width: 8em; }
  th:last-child:not(:first-child), td:last-child:not(.lp-num) { min-width: 9em; }
}
