:root { --sp-gap: 20px; }
.search-wrap { margin: 18px 0 40px; }
.search-head { padding: 14px 0 10px; border-bottom:1px solid var(--bwtv-color-border, #e6e6e6); }
.search-title { font-family: var(--bwtv-font); font-weight:900; margin:0; font-size: 28px; }
.search-term { color: var(--bwtv-color-primary, #fcc600); }
.search-meta { color: var(--bwtv-color-muted, #6d6d6d); margin-top: 6px; }
.search-form { display:flex; gap:10px; margin-top: 10px; }
.sp-input { flex:1; min-width:0; padding:10px 12px; border:1px solid #ddd; border-radius:8px; font-family: var(--bwtv-font); font-size:16px; }
.sp-btn { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:39px; padding:10px 14px; border:1px solid #ddd; border-radius:8px; background:#f8f8f8; cursor:pointer; font-family: var(--bwtv-font); }
.sp-btn:hover { background:#fff; border-color: var(--bwtv-color-primary, #fcc600); }

.search-layout { display:grid; grid-template-columns: 1fr 320px; gap: var(--sp-gap); align-items:start; margin-top: 18px; }
.search-main { min-width:0; }
.search-aside { min-width:0; }

.search-list { list-style:none; margin:0; padding:0; display:grid; gap: 16px; }
.sp-item { display:grid; grid-template-columns: 220px 1fr; gap:14px; align-items:start; border-bottom:1px solid var(--bwtv-color-border, #e6e6e6); padding-bottom:14px; }
.sp-thumb { display:block; position:relative; border-radius:8px; overflow:hidden; background:#eee; aspect-ratio: 16 / 9; color: transparent; font-size: 0; }
.sp-thumb.no-img { background:#efefef; }
.sp-img { width:100%; height:100%; object-fit:cover; display:block; }
.sp-type { display:inline-flex; width:max-content; max-width:100%; margin:0 0 6px; padding:3px 7px; border-radius:4px; background:#111; color:#fff; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.02em; }
.sp-title { font-size:20px; line-height:1.2; margin:0 0 6px; font-weight:900; }
.sp-title a { display:block; color:#000; text-decoration:none; }
.sp-title a:hover { color: var(--bwtv-color-primary, #fcc600); text-decoration: underline; }
.sp-subtitle { color:#222; font-size:14px; font-weight:700; margin:0 0 6px; }
.sp-meta { font-size:12px; color: var(--bwtv-color-muted, #6d6d6d); margin-bottom:6px; }
.sp-excerpt { color:#000; line-height:1.5; }
.sp-empty { color: var(--bwtv-color-muted, #6d6d6d); padding: 20px 4px; }

.sp-pagi { margin-top: 18px; }

@media (max-width: 1024px) {
  .search-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .search-wrap { margin-top: 14px; }
  .search-head { padding: 12px 0 10px; }
  .search-title { font-size: 25px; line-height: 1.08; }
  .search-meta { font-size: 14px; line-height: 1.35; }
  .search-form { gap: 8px; }
  .sp-btn { width: 46px; flex: 0 0 46px; padding: 0; font-size: 0; color:#111; }
  .sp-btn::before { content:""; width:18px; height:18px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; }
  .search-layout { margin-top: 16px; }
  .search-list { gap: 18px; }
  .sp-item { display:block; padding-bottom:18px; }
  .sp-thumb { width:100%; aspect-ratio:16 / 9; margin-bottom:12px; }
  .sp-type { margin-bottom:8px; }
  .sp-title { font-size:20px; line-height:1.16; margin-bottom:7px; }
  .sp-meta { font-size:13px; line-height:1.35; margin-bottom:7px; }
  .sp-excerpt { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; font-size:15px; line-height:1.5; color:#1f2933; }
}

@media (max-width: 380px) {
  .search-title { font-size: 24px; }
  .sp-title { font-size:19px; }
}
