/* Pickup card */
.pickup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}
.pickup:hover { box-shadow: var(--shadow-hover); }
.pickup-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.pickup-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin-bottom: 8px; line-height: 1.4;
}
.pickup-title a {
  color: inherit;
  text-decoration: none;
}
.pickup-title a:hover { color: var(--accent); }
.pickup-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* Tags (inline) */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11px; font-weight: 500;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tag-genre  { background: var(--accent-light); color: #1A6B9A; }
.tag-status { background: var(--teal-light);   color: #085041; }
.tag-format { background: var(--amber-light);  color: #633806; }
.tag-r18    { background: var(--red-light);    color: #791F1F; }
.tag-safe   { background: #E6F1FB;            color: #0C447C; }

/* Update scroll wrapper — 15行分の高さで縦スクロール */
.update-scroll {
  max-height: 585px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.update-scroll::-webkit-scrollbar { width: 6px; }
.update-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.update-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Update table */
.update-tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}
.update-tbl td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: baseline;
}
.update-tbl tr:last-child td { border-bottom: none; }
.update-tbl tr:hover { background: var(--accent-50); }
.update-date {
  width: 56px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.update-cat { width: 80px; }
.update-cat-label {
  font-size: 11px; font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-accent);
  color: var(--text-secondary);
  white-space: nowrap;
}
.new-badge {
  font-size: 10px; font-weight: 700;
  color: var(--coral);
  background: var(--coral-light);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-right: 6px;
}
.update-link { color: var(--text-primary); }
.update-link:hover { color: var(--accent); }
.update-pv {
  width: 70px;
  text-align: right;
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* PV Ranking — tabs */
.rank-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}
.rank-tab {
  appearance: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 9px 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  bottom: -1px;
  z-index: 0;
}
.rank-tab + .rank-tab { margin-left: -1px; }
.rank-tab:hover {
  color: var(--accent);
  background: var(--accent-50);
}
.rank-tab.is-active {
  color: var(--accent-dark);
  background: var(--bg-card);
  border-color: var(--border);
  font-weight: 700;
  z-index: 2;
}
.rank-panel {
  display: none;
}
.rank-panel.is-active { display: block; }

/* PV Ranking — accordion list */
.pv-ranking {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pv-item {
  border-bottom: 1px solid var(--border-light);
}
.pv-item:last-child { border-bottom: none; }
.pv-item[open] { background: var(--accent-50); }
.pv-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: var(--transition);
}
.pv-summary::-webkit-details-marker { display: none; }
.pv-summary::marker { content: ''; }
.pv-summary:hover { background: var(--accent-50); }
.pv-rank {
  width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.rank-gold .pv-rank { color: #BA7517; }
.rank-silver .pv-rank { color: #5A6978; }
.rank-bronze .pv-rank { color: #A0522D; }
.pv-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pv-quick {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pv-detail {
  padding: 8px 14px 12px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pv-detail-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-link);
}
.pv-detail-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.pv-detail-likes {
  color: #E05A6D;
  background: #FBEEF0;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

/* Works horizontal scroll */
.works-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.wk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.wk-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.wk-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wk-title a { color: inherit; text-decoration: none; }
.wk-title a:hover { color: var(--accent); }
.wk-meta { font-size: 11px; color: var(--text-tertiary); margin-top: 8px; }

/* Beginner guide */
.beginner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.beginner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5BB8E8, var(--accent));
}
.beg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.beg-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.beginner h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.beg-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Two-column card links */
.beg-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.beg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.beg-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* Yokocho card */
.beg-card--yokocho {
  background: linear-gradient(135deg, #FFF8F0, #FFECD2);
  border: 1px solid #F0D4A8;
}
.beg-card--yokocho:hover {
  box-shadow: 0 4px 14px rgba(220, 150, 60, 0.2);
}
.beg-card--yokocho .beg-card-title { color: #9A5B13; }
.beg-card--yokocho .beg-card-arrow { color: #C8842A; }

/* FANBOX card */
.beg-card--fanbox {
  background: linear-gradient(135deg, #FFF5F5, #FFE0E0);
  border: 1px solid #F0BABA;
}
.beg-card--fanbox:hover {
  box-shadow: 0 4px 14px rgba(193, 75, 75, 0.15);
}
.beg-card--fanbox .beg-card-title { color: #9A2E2E; }
.beg-card--fanbox .beg-card-arrow { color: #C14B4B; }

/* Card internals */
.beg-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.beg-card-body {
  flex: 1;
  min-width: 0;
}
.beg-card-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.beg-card-sub {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.beg-card-arrow {
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}
.beg-card:hover .beg-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Site category links */
.beg-cat-links {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.beg-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent-50);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}
.beg-cat-link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  text-decoration: none;
}
.beg-cat-icon { font-size: 14px; line-height: 1; }
.beg-cat-name { font-weight: 600; color: var(--accent-dark); }
.beg-cat-count { font-size: 11px; color: var(--text-tertiary); }

@media (max-width: 600px) {
  .beg-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================

/* Contribute banner */
.contribute {
  background: linear-gradient(135deg, #F0F8FF, #E8F4FD);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}
.contribute::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #5BB8E8, #7EC8E3);
}
.contribute:hover { box-shadow: var(--shadow-hover); }
.contribute-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  gap: 16px;
}
.contribute-text { flex: 1; min-width: 0; }
.contribute-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.contribute-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text-primary);
  line-height: 1.4;
}
.contribute-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.contribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contribute-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.contribute-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.contribute-btn--primary {
  background: var(--accent);
  color: #fff;
}
.contribute-btn--primary:hover {
  box-shadow: 0 4px 14px rgba(74, 156, 210, 0.4);
  color: #fff;
}
.contribute-btn--secondary {
  background: #fff;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
}
.contribute-btn--secondary:hover {
  background: var(--accent-50);
  box-shadow: 0 4px 14px rgba(74, 156, 210, 0.15);
}
.contribute-deco {
  font-size: 56px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.18;
  user-select: none;
  pointer-events: none;
}
@media (max-width: 600px) {
  .contribute-inner { padding: 20px; }
  .contribute-deco { display: none; }
  .contribute-actions { flex-direction: column; }
  .contribute-btn { justify-content: center; }
}
