/* ─── CAMPAIGN HERO ─── */
.cp-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px 24px;
  text-align: center;
}
.cp-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.cp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: .03em;
}
.cp-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-light);
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.cp-hero-title {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 6px;
  line-height: 1.2;
  color: var(--text);
}
.cp-hero-title span { color: var(--accent); }
.cp-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── STATS BAR ─── */
.cp-stats-bar {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.cp-stats-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.cp-stat {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.cp-stat:last-child { border-right: none; }
.cp-stat-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.cp-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── FILTER BAR ─── */
.cp-filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 56px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cp-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-end;
}
.cp-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cp-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cp-tab-group {
  display: flex;
  gap: 4px;
}

/* ─── TLD 検索（左端・大きめ） ─── */
.cp-filter-search {
  order: -1; /* 常に左端 */
}
.cp-input--large {
  height: 42px;
  font-size: 16px;
  min-width: 260px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.cp-input--large:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.cp-input--large::placeholder { color: var(--text-muted); }

.cp-select {
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s;
  min-width: 140px;
}
.cp-select:focus { outline: none; border-color: var(--accent); }

.cp-reset-btn {
  align-self: flex-end;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--red);
  border-radius: 8px;
  background: var(--red-light);
  color: var(--red);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.cp-reset-btn:hover { background: var(--red); color: #fff; transform: scale(1.02); }

/* ─── RESULT HEADER ─── */
.cp-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.cp-result-count {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

/* ─── CARD GRID ─── */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  min-height: 200px;
}

/* ─── CAMPAIGN CARD ─── */
.cp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cp-card--in {
  animation: cardIn .3s ease forwards;
}
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.cp-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.cp-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.cp-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px 9px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.cp-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}
.cp-registrar {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-cat-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.cp-cat-registration { background: var(--accent-light); color: var(--accent); }
.cp-cat-renewal      { background: var(--green-light);  color: var(--green); }
.cp-cat-transfer     { background: var(--orange-light); color: var(--orange); }
.cp-cat-restore      { background: #f5f5f5; color: var(--text-muted); }

/* ─── CARD BODY: TLD（左）と価格（右）を横並び ─── */
.cp-card-body {
  padding: 12px 14px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-tld-name {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -.5px;
  text-decoration: none;
  transition: opacity .15s;
  line-height: 1.2;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-tld-name:hover { opacity: .7; text-decoration: underline; }

.cp-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}
.cp-price {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: -.5px;
}
.cp-currency {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── INFINITE SCROLL ─── */
.cp-sentinel {
  height: 1px;
  margin-top: 20px;
}
.cp-loading-more {
  text-align: center;
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .cp-hero { padding: 20px 16px 18px; }
  .cp-stats-inner { flex-direction: column; }
  .cp-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 10px 16px; }
  .cp-stat:last-child { border-bottom: none; }
  .cp-filter-inner { padding: 12px 16px; gap: 10px 12px; }
  .cp-input--large { min-width: 0; width: 100%; }
  .cp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 400px) {
  .cp-grid { grid-template-columns: 1fr; }
}
