/* ══════════════════════════════════════
   NPB チケット発売日検索  共通スタイル
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:   #2563eb;
  --accent-d: #1d4ed8;
  --bg:       #f4f6f8;
  --card:     #ffffff;
  --border:   #e2e8f0;
  --text:     #1a1a1a;
  --muted:    #64748b;
  --light:    #94a3b8;
  --radius:   12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ─── ページ幅 ─── */
.page { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.page-wide { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

/* ─── ヘッダー ─── */
.site-header { margin-bottom: 1.5rem; }
.site-logo   { font-size: 22px; font-weight: 900; color: var(--text); }
.site-logo span { color: var(--accent); }
.site-sub    { font-size: 12px; color: var(--muted); margin-top: 3px; }

.breadcrumb  { font-size: 12px; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─── カード ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* ─── 説明帯 ─── */
.desc-band {
  font-size: 12px;
  color: #444;
  line-height: 1.7;
  padding: 9px 13px;
  background: var(--card);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  margin-bottom: 1rem;
}

/* ─── 広告プレースホルダー ─── */
.ad-placeholder {
  background: #e8edf2;
  border: 1px dashed #b0bec5;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #90a4ae;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ─── タブ ─── */
.tab-bar { display: flex; gap: 6px; margin-bottom: 1rem; }
.tab-btn {
  flex: 1;
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── 入力 ─── */
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; }
input[type="date"],
input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s;
}
input[type="date"]:focus,
input[type="text"]:focus { outline: none; border-color: var(--accent); background: #fff; }

.btn-primary {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-d); }

/* ─── 結果カード ─── */
.result-empty {
  text-align: center;
  padding: 2rem;
  color: var(--light);
  font-size: 14px;
}
.result-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.result-item:last-child { border-bottom: none; }
.result-item-left  { flex: 1; }
.result-item-right { text-align: right; flex-shrink: 0; }

.result-date  { font-size: 14px; font-weight: 700; color: var(--text); }
.result-meta  { font-size: 12px; color: var(--muted); margin-top: 3px; }
.result-label { font-size: 11px; color: var(--muted); }
.result-value { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ─── チームバッジ ─── */
.team-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  margin-left: 6px;
}

/* ─── フッター ─── */
.footer {
  margin-top: 2.5rem;
  font-size: 11px;
  color: var(--light);
  text-align: center;
}
.footer-disclaimer {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  background: #f1f5f9;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   index.html 用
   ══════════════════════════════════════ */
.index-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.index-hero h1 { font-size: 26px; font-weight: 900; }
.index-hero h1 span { color: var(--accent); }
.index-hero p  { font-size: 13px; color: var(--muted); margin-top: 8px; }

.league-section { margin-bottom: 1.5rem; }
.league-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.team-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}
.team-card .team-icon { font-size: 28px; }
.team-card .team-name { font-size: 13px; font-weight: 700; color: var(--text); }
.team-card .team-en   { font-size: 10px; color: var(--light); }

/* ─── team.html 用 チームヘッダー ─── */
.team-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}
.team-header .team-icon-lg { font-size: 40px; }
.team-header-text h1        { font-size: 20px; font-weight: 800; }
.team-header-text p         { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ─── レスポンシブ ─── */
@media (max-width: 540px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .team-card { padding: 12px 6px; }
  .team-card .team-icon { font-size: 22px; }
  .team-card .team-name { font-size: 11px; }
  .tab-bar { flex-direction: row; }
  .index-hero h1 { font-size: 20px; }
  .result-item { flex-direction: column; gap: 4px; }
  .result-item-right { text-align: left; }
}
