/* ============ LoLドラフト計算機 デザインシステム ============ */
:root {
  --bg: #060b16;
  --bg-2: #0a1224;
  --panel: rgba(15, 24, 46, .72);
  --panel-solid: #0e1730;
  --panel-2: rgba(22, 34, 62, .85);
  --line: rgba(140, 160, 210, .14);
  --line-strong: rgba(212, 182, 118, .35);
  --gold: #d4b676;
  --gold-bright: #ecd9a8;
  --gold-dim: #97824f;
  --text: #eef1f7;
  --muted: #9aa7bf;
  --good: #43d9a3;
  --bad: #ff6b6b;
  --ad: #ff9a4c;
  --ap: #5aa9ff;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --tr: .18s cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(90, 169, 255, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(212, 182, 118, .07), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 400px);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", -apple-system, sans-serif;
  line-height: 1.75;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(212, 182, 118, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #223256; border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 12, 24, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
header.site .wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.logo {
  font-size: 1.15rem; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 55%, #a8863f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: none;
}
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; transition: var(--tr);
}
nav a:hover { color: var(--gold-bright); background: rgba(212, 182, 118, .1); }

/* ---------- 見出し・本文 ---------- */
h1 {
  font-size: 1.7rem; font-weight: 800; letter-spacing: .01em;
  margin: 30px 0 8px; line-height: 1.35;
}
h2 {
  font-size: 1.12rem; font-weight: 700; letter-spacing: .04em;
  margin: 40px 0 14px; padding-left: 14px; position: relative;
}
h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 1.1em; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
}
h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--gold); font-weight: 700; }
p.lead { color: var(--muted); font-size: .95rem; margin-bottom: 10px; max-width: 62em; }
ul { margin: 8px 0 8px 1.5em; }
li { margin: 5px 0; }
a { color: var(--ap); }

/* ---------- ヒーロー(トップページ) ---------- */
.hero { padding: 58px 0 20px; text-align: left; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 10px;
  background: linear-gradient(120deg, #fff, var(--gold-bright) 50%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 1.02rem; max-width: 44em; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: 11px 22px; border-radius: 999px; transition: var(--tr); letter-spacing: .02em;
}
.btn.primary {
  color: #21180a;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  box-shadow: 0 4px 18px rgba(212, 182, 118, .3);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(212, 182, 118, .42); }
.btn.ghost { color: var(--text); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: rgba(212, 182, 118, .08); transform: translateY(-2px); }

/* ---------- パネル・カード共通 ---------- */
.lane-row, .build-box, #analysis, .hints, .draft-status, .team {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lane-row { padding: 16px 18px; margin: 14px 0; transition: var(--tr); }
.lane-row:hover { border-color: rgba(212, 182, 118, .28); }
.lane-row .picker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lane-label {
  min-width: 6.5em; font-weight: 800; letter-spacing: .03em;
  color: var(--gold); font-size: .95rem;
}
input.champ-input {
  background: rgba(6, 11, 22, .8);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-s);
  padding: 9px 13px;
  font-size: .98rem;
  width: 230px;
  transition: var(--tr);
}
input.champ-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 182, 118, .15);
}
.pick-field { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.pick-field input.champ-input { width: 195px; }
.pick-field input.ally { border-style: dashed; }
button.clear {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .85rem;
  font-family: inherit; transition: var(--tr);
}
button.clear:hover { color: var(--bad); border-color: var(--bad); background: rgba(255, 107, 107, .07); }

/* 候補カード */
.suggestions { margin-top: 14px; display: grid; gap: 9px; }
.card {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  transition: var(--tr);
}
.card:hover { border-color: var(--line-strong); transform: translateX(3px); }
.card img {
  width: 46px; height: 46px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); flex: none;
}
.card .name { font-weight: 700; font-size: 1.02rem; }
.card .name a { color: var(--text); text-decoration: none; transition: var(--tr); }
.card .name a:hover { color: var(--gold-bright); }
.card .reason { color: var(--muted); font-size: .9rem; margin-top: 1px; }
.none { color: var(--muted); font-size: .9rem; }
.syn-note { font-size: .85rem; margin-top: 5px; }
.syn-note.good { color: var(--good); }
.syn-note.bad { color: var(--bad); }

/* バッジ */
.badge {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .03em;
  border-radius: 999px; padding: 2px 10px; margin-left: 9px; vertical-align: 2px;
  border: 1px solid transparent;
}
.badge.r2 { background: rgba(67, 217, 163, .16); color: var(--good); border-color: rgba(67, 217, 163, .4); }
.badge.r1 { background: rgba(67, 217, 163, .08); color: var(--good); border-color: rgba(67, 217, 163, .22); }
.badge.r0 { background: rgba(154, 167, 191, .1); color: var(--muted); border-color: rgba(154, 167, 191, .25); }
.badge.rm1 { background: rgba(255, 107, 107, .08); color: var(--bad); border-color: rgba(255, 107, 107, .25); }
.badge.rm2 { background: rgba(255, 107, 107, .16); color: var(--bad); border-color: rgba(255, 107, 107, .45); }

/* 分析パネル・メーター */
#analysis { border-color: var(--line-strong); padding: 18px 20px; margin: 24px 0; box-shadow: var(--shadow); }
#analysis ul { margin: 8px 0 0 1.4em; }
.meter {
  display: flex; height: 12px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line); margin: 10px 0 5px; max-width: 440px;
}
.meter .ad { background: linear-gradient(90deg, #ffb066, var(--ad)); }
.meter .ap { background: linear-gradient(90deg, var(--ap), #7dbcff); }
.meter-note { font-size: .85rem; color: var(--muted); }

/* ---------- テーブル ---------- */
table.matchups { width: 100%; border-collapse: collapse; margin: 12px 0 28px; font-size: .95rem; }
table.matchups th, table.matchups td {
  border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
table.matchups th {
  color: var(--gold-dim); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
table.matchups tr { transition: background var(--tr); }
table.matchups tbody tr:hover, table.matchups tr:hover { background: rgba(212, 182, 118, .04); }
table.matchups td.opp { white-space: nowrap; font-weight: 600; }
table.matchups td.opp img {
  width: 30px; height: 30px; border-radius: 7px; vertical-align: middle;
  margin-right: 9px; border: 1px solid var(--line);
}
table.matchups td.opp a { color: var(--text); text-decoration: none; transition: var(--tr); }
table.matchups td.opp a:hover { color: var(--gold-bright); }
table.matchups td.rs { white-space: nowrap; }
table.matchups td.rs .badge { margin-left: 0; }
table.matchups td.why { color: var(--muted); font-size: .9rem; }
table.skills td.opp { white-space: normal; font-weight: 700; }

/* ---------- チャンピオングリッド ---------- */
.champ-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 9px; margin: 14px 0 26px;
}
.champ-grid a, .draft-grid button.grid-champ {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 7px 10px; color: var(--text); text-decoration: none; font-size: .9rem;
  transition: var(--tr); cursor: pointer; font-family: inherit;
}
.champ-grid a:hover, .draft-grid button.grid-champ:hover:not(:disabled) {
  border-color: var(--gold); transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.champ-grid img, .draft-grid button.grid-champ img { width: 34px; height: 34px; border-radius: 7px; }
.draft-grid button.grid-champ.used { opacity: .28; filter: grayscale(1); cursor: default; }

/* ---------- チャンピオンページ ---------- */
.champ-hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin: 26px 0 6px; min-height: 240px;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center 22%;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.champ-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 22, .1) 20%, rgba(6, 11, 22, .88) 85%),
              linear-gradient(90deg, rgba(6, 11, 22, .55), transparent 55%);
}
.champ-hero .hero-inner { position: relative; padding: 22px 26px; display: flex; align-items: center; gap: 18px; }
.champ-hero img.face {
  width: 72px; height: 72px; border-radius: var(--radius-s);
  border: 2px solid var(--gold); box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.champ-hero h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2.1rem); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.champ-hero .title { color: var(--gold-bright); font-size: .95rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

p.lore { color: var(--muted); font-size: .95rem; max-width: 66em; }
.build-box { padding: 16px 20px; margin: 10px 0; }
.build-box p { margin: 6px 0; }
.skill-order {
  color: var(--gold-bright); font-weight: 800; font-size: 1.08rem; letter-spacing: .06em;
}
.item {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(120deg, rgba(212, 182, 118, .14), rgba(212, 182, 118, .05));
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px 13px 3px 5px; margin: 3px 2px; font-size: .9rem; font-weight: 600;
}
.item img {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.item.alt { background: none; border-color: var(--line); color: var(--muted); font-weight: 500; }
.item.alt img { border-color: var(--line); opacity: .85; }

/* スキルテーブルのアイコン */
td.sk { white-space: nowrap; position: relative; width: 56px; }
td.sk img {
  width: 42px; height: 42px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); display: block;
}
td.sk .skey {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(6, 11, 22, .92); color: var(--gold-bright);
  font-size: .68rem; font-weight: 800; line-height: 1;
  padding: 2px 5px; border-radius: 5px; border: 1px solid var(--line-strong);
}
.why { color: var(--muted); font-size: .92rem; }
.disclaim { color: var(--muted); font-size: .78rem; margin: 6px 0 0; opacity: .8; }
.combo {
  background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--radius-s);
  padding: 11px 16px; margin: 10px 0;
  transition: var(--tr);
}
.combo:hover { border-color: var(--line-strong); border-left-color: var(--gold-bright); }
.combo-seq { font-weight: 700; letter-spacing: .01em; }

/* ---------- 対面(vs)ページ ---------- */
.vs-head { display: flex; align-items: center; gap: 22px; margin: 34px 0 6px; }
.vs-head img {
  width: 84px; height: 84px; border-radius: var(--radius);
  border: 2px solid var(--gold); box-shadow: var(--shadow);
  transition: var(--tr);
}
.vs-head a:hover img { transform: translateY(-3px); }
.vs-mark {
  font-weight: 800; font-size: 1.3rem; letter-spacing: .1em;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vs-link {
  font-size: .82rem; white-space: nowrap; text-decoration: none;
  color: var(--gold); font-weight: 600;
}
.vs-link:hover { color: var(--gold-bright); text-decoration: underline; }

/* ---------- ドラフト練習 ---------- */
.draft-status {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-color: var(--line-strong);
  padding: 14px 18px; margin: 18px 0;
}
#turn-indicator { font-size: 1.04rem; }
#turn-indicator .dot, .hints .dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px;
  box-shadow: 0 0 8px currentColor;
}
.dot.blue { background: var(--ap); color: var(--ap); }
.dot.red { background: var(--bad); color: var(--bad); }
.draft-controls { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
#timer { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold-bright); font-size: 1.05rem; }
#timer.expired { color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.draft-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 18px; }
.team { padding: 14px 16px; }
.team.blue { border-top: 3px solid var(--ap); }
.team.red { border-top: 3px solid var(--bad); }
.team h2 { border: none; padding: 0; margin: 0 0 10px; font-size: 1rem; }
.team h2::before { display: none; }
.bans { display: flex; gap: 7px; margin-bottom: 12px; }
.slot.ban {
  width: 36px; height: 36px; border: 1px dashed var(--line); border-radius: 7px; overflow: hidden;
  transition: var(--tr);
}
.slot.ban img { width: 100%; height: 100%; filter: grayscale(1) brightness(.55); }
.picks { display: grid; gap: 7px; }
.slot.pick {
  display: flex; align-items: center; gap: 11px; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 5px 12px; background: rgba(6, 11, 22, .5);
  transition: var(--tr); font-weight: 600;
}
.slot.pick img { width: 38px; height: 38px; border-radius: 7px; }
.slot.pick .empty { color: rgba(154, 167, 191, .35); }
.slot.current {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(212, 182, 118, .35);
  animation: glow 1.6s ease-in-out infinite;
}
@keyframes glow {
  50% { box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(212, 182, 118, .55); }
}
.hints { border-color: var(--line-strong); padding: 16px 18px; margin: 0 0 18px; }
.hint-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.hint-card {
  display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 11px;
  align-items: center; text-align: left; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 9px 12px; color: var(--text); font-family: inherit; transition: var(--tr);
}
.hint-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.hint-card img { width: 38px; height: 38px; border-radius: 7px; grid-row: span 2; }
.hint-name { font-weight: 700; font-size: .95rem; }
.hint-notes { font-size: .77rem; color: var(--muted); }
.grid-tools { margin: 8px 0 12px; }
#turn-indicator.done { color: var(--good); font-weight: 700; }

/* ---------- フッター ---------- */
footer.site {
  margin-top: 64px; padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .78rem; line-height: 1.9;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .draft-teams { grid-template-columns: 1fr; }
  input.champ-input, .pick-field input.champ-input { width: 100%; }
  .pick-field { flex: 1 1 100%; }
  .lane-label { min-width: 0; }
  .champ-hero { min-height: 170px; }
  .champ-hero img.face { width: 56px; height: 56px; }
  .hero { padding: 36px 0 10px; }
}
