/* ========================================
   ぱちんこボーダー爆速表示 - カラーデザイン
   画像・Webフォント不使用、CSSのみ約7KB
   ======================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #fafafa;
  --bg-card:   #ffffff;
  --text:      #1a1a1a;
  --text-mid:  #4a4a4a;
  --text-soft: #7a7a7a;
  --border:    #e8e8e8;
  --border-soft: #f0f0f0;

  --brand:     #d23b3b;   /* メインアクセント (パチンコ赤) */
  --brand-deep:#a52525;
  --brand-soft:#fef3f3;
  --gold:      #c8a04a;   /* ★・1位 */
  --silver:    #9ca3a8;   /* 2位 */
  --bronze:    #b87a45;   /* 3位 */

  --spec-ama:    #2e8b57;
  --spec-light:  #1f7ad6;
  --spec-middle: #d97706;
  --spec-max:    #b91c1c;
  --spec-unk:    #888;
}

* , *::before , *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-soft);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.wrap { max-width: 600px; margin: 0 auto; background: var(--bg); }

/* ========== ヘッダー ========== */
.site-header {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 14px 14px 12px;
  border-bottom: 3px solid var(--brand-deep);
  position: relative;
}
.site-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.site-title a { color: #fff; }
.site-title::before {
  content: "▶";
  margin-right: 6px;
  font-size: 0.85em;
  color: var(--gold);
}

/* ========== 検索ボックス ========== */
.search-box {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.search-box input[type="search"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 16px;
  border-radius: 22px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input[type="search"]:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(210, 59, 59, 0.15);
}

/* ========== PVランキング ========== */
.ranking {
  background: linear-gradient(180deg, #fffdf6 0%, #fff8e8 100%);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 10px;
}
.ranking-title {
  font-size: 11px;
  margin: 0 0 6px;
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: 0.12em;
}
.ranking-title::before {
  content: "★";
  margin-right: 4px;
  color: var(--gold);
  font-size: 1.1em;
}
.ranking-list { list-style: none; margin: 0; padding: 0; }
.ranking-list li {
  border-bottom: 1px dotted #e0d6b8;
}
.ranking-list li:last-child { border-bottom: 0; }
.ranking-list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 5px 0;
  text-decoration: none;
  color: var(--text);
}
.r-rank {
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
  margin-right: 4px;
  font-weight: 800;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  color: #fff;
  background: var(--text-soft);
}
.ranking-list li:nth-child(1) .r-rank { background: var(--gold); }
.ranking-list li:nth-child(2) .r-rank { background: var(--silver); }
.ranking-list li:nth-child(3) .r-rank { background: var(--bronze); }
.r-name {
  flex: 1 1 auto;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.r-border {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 15px;
  padding-right: 8px;
  min-width: 48px;
  text-align: right;
  color: var(--brand-deep);
}
.r-arrow { flex: 0 0 auto; color: var(--text-soft); font-size: 16px; }

/* ========== フィルタ群 ========== */
.filters {
  border-bottom: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 13px;
  background: #fff;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  flex-wrap: wrap;
}
.filter-label {
  color: var(--text-mid);
  min-width: 54px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.chip {
  display: inline-block;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  border-radius: 16px;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.chip:active { background: var(--bg-soft); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(210,59,59,0.3);
}
.sort-select {
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  font-family: inherit;
}

/* ========== あいうえおタブ ========== */
.kana-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  background: #fff;
}
.kana-tabs .chip {
  flex: 0 0 auto;
  border: 0;
  border-right: 1px solid var(--border-soft);
  height: 42px;
  min-width: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0;
  color: var(--text-mid);
}
.kana-tabs .chip[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
  border-bottom: 2px solid var(--brand-deep);
}

/* ========== 機種一覧 ========== */
.machine-list { list-style: none; margin: 0; padding: 0; }
.machine-list li {
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
  position: relative;
}
.machine-list li:active { background: var(--bg-soft); }
.machine-list a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 10px 12px;
  color: var(--text);
}
.m-name {
  flex: 1 1 auto;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.m-border {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding-right: 8px;
  min-width: 60px;
  text-align: right;
  color: var(--brand-deep);
  font-size: 16px;
}
.m-arrow { flex: 0 0 auto; color: var(--text-soft); font-size: 18px; }

/* ★ マーク */
.real-mark { color: var(--gold); margin-right: 3px; }

/* スペック区分バッジ */
.spec-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 6px;
  color: #fff;
  vertical-align: middle;
  white-space: nowrap;
}
.spec-badge.ama    { background: var(--spec-ama);    }
.spec-badge.light  { background: var(--spec-light);  }
.spec-badge.middle { background: var(--spec-middle); }
.spec-badge.max    { background: var(--spec-max);    }
.spec-badge.unknown{ background: var(--spec-unk);    }

/* スペックタブの色付け */
#spec-tabs .chip[data-value="ama"][aria-pressed="true"]    { background: var(--spec-ama);    border-color: var(--spec-ama);    }
#spec-tabs .chip[data-value="light"][aria-pressed="true"]  { background: var(--spec-light);  border-color: var(--spec-light);  }
#spec-tabs .chip[data-value="middle"][aria-pressed="true"] { background: var(--spec-middle); border-color: var(--spec-middle); }
#spec-tabs .chip[data-value="max"][aria-pressed="true"]    { background: var(--spec-max);    border-color: var(--spec-max);    }

.empty-state {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}

/* ========== もっと見る ========== */
.show-more-wrap {
  padding: 16px 12px;
  text-align: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.show-more-btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  min-height: 46px;
  padding: 12px 16px;
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 23px;
  font-family: inherit;
  transition: background 0.1s;
}
.show-more-btn:active {
  background: var(--brand);
  color: #fff;
}

/* ========== フッター ========== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 12px 24px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.7;
  background: var(--bg-soft);
}
.site-footer p { margin: 0 0 4px; }

/* ========== 詳細ページ ========== */
.back-link {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
  background: #fff;
}
.machine-head {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.machine-head h1 {
  font-size: 19px;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--text);
  font-weight: 800;
}
.meta-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.meta-list li {
  display: flex;
  padding: 3px 0;
  color: var(--text);
}
.meta-list .k {
  color: var(--text-soft);
  min-width: 96px;
  font-weight: 600;
}
.meta-list .v { font-weight: 600; }

.border-group {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  background: #fff;
}
.border-group h2 {
  font-size: 14px;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--brand);
  color: var(--brand-deep);
  font-weight: 800;
}
.border-group dl { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.border-group .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px;
  border-bottom: 1px dotted var(--border);
}
.border-group .row:last-child { border-bottom: 0; }
.border-group .row.is-current {
  font-weight: 800;
  background: var(--brand-soft);
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 8px;
  padding-right: 8px;
  border-left: 3px solid var(--brand);
  border-radius: 4px;
  color: var(--brand-deep);
}
.border-group dt { margin: 0; }
.border-group dd { margin: 0; font-weight: 700; }

.note {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.7;
  background: var(--bg-soft);
}
.note p { margin: 0 0 2px; }

/* ========== sr-only ========== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
