/* ==========================================================
   CLL JAPAN — Search Page Styles (search.css)
   ========================================================== */

/* ----------------------------------------------------------
   1. デザイントークン（CSS Variables）
---------------------------------------------------------- */
:root {
  --bg-primary:     #080808;
  --bg-secondary:   #101010;
  --bg-card:        #141414;
  --bg-hover:       #1c1c1c;
  --accent:         #e50914;
  --accent-hover:   #ff2020;
  --accent-dim:     rgba(229, 9, 20, 0.15);
  --accent-blue:    #1a6be0;
  --text-primary:   #f0f0f0;
  --text-secondary: #999999;
  --text-muted:     #555555;
  --border:         #1e1e1e;
  --border-hover:   #333333;
  --gold:           #f5c518;
  --font-main:      'Noto Sans JP', 'Helvetica Neue', sans-serif;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --transition:     0.18s ease;
}

/* ----------------------------------------------------------
   2. ベーススタイル
---------------------------------------------------------- */
body {
  background:             var(--bg-primary);
  color:                  var(--text-primary);
  font-family:            var(--font-main);
  line-height:            1.7;
  -webkit-font-smoothing: antialiased;
}

/* WPデフォルト要素を非表示 */
.site-header,
.site-branding,
.entry-title,
.page-title { display: none !important; }

/* ----------------------------------------------------------
   3. ページ全体ラッパー
---------------------------------------------------------- */
#search-wrapper {
  max-width: 1280px;
  margin:    0 auto;
  padding:   0 16px 80px;
}

/* ----------------------------------------------------------
   4. 検索ヘッダー
---------------------------------------------------------- */
#search-header {
  padding:       12px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.search-label {
  font-size:      11px;
  font-weight:    700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  4px;
}
.search-heading {
  font-size:     22px;
  font-weight:   800;
  color:         var(--text-primary);
  line-height:   1.3;
  margin-bottom: 4px;
}
.search-heading em { color: var(--accent); font-style: normal; }
.search-count      { font-size: 12px; color: var(--text-muted); }

/* ----------------------------------------------------------
   5. 検索フォーム（ページ内）
---------------------------------------------------------- */
#search-form-wrap { margin-bottom: 12px; }

.search-form-inner {
  display:       flex;
  gap:           0;
  border:        1px solid var(--border-hover);
  border-radius: var(--radius-md);
  overflow:      hidden;
  background:    var(--bg-card);
}
.search-form-inner:focus-within { border-color: var(--accent); }

.search-input {
  flex:        1;
  background:  transparent;
  border:      none;
  outline:     none;
  padding:     13px 16px;
  font-size:   14px;
  color:       var(--text-primary);
  font-family: var(--font-main);
}
.search-input::placeholder { color: var(--text-muted); }

.search-submit {
  background:  var(--accent);
  border:      none;
  color:       #fff;
  font-size:   13px;
  font-weight: 700;
  padding:     0 20px;
  cursor:      pointer;
  transition:  background var(--transition);
  flex-shrink: 0;
  font-family: var(--font-main);
}
.search-submit:hover { background: var(--accent-hover); }

/* ----------------------------------------------------------
   6. 結果グリッド・記事カード
---------------------------------------------------------- */
/* #search-results-grid — DAY46: grid-2col に委譲 */

/* .search-card — DAY46: grid-2col方式に移行のため無効化 */

.search-card-thumb {
  width:        140px;
  flex-shrink:  0;
  aspect-ratio: 16 / 9;
  background:   #0d0d1a;
  overflow:     hidden;
}
.search-card-thumb img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: top;
}
.search-card-thumb-placeholder {
  width:           100%;
  height:          100%;
  background:      linear-gradient(135deg, #0d0d1a, #1a1a2e);
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.search-card-thumb-placeholder svg { opacity: .25; }

.search-card-body {
  padding:         14px 16px;
  flex:            1;
  min-width:       0;
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
}
.search-card-cat {
  font-size:      9px;
  font-weight:    700;
  color:          var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom:  6px;
}
.search-card-title {
  font-size:           13px;
  font-weight:         700;
  color:               var(--text-primary);
  line-height:         1.45;
  display:             -webkit-box;
  -webkit-line-clamp:  2;
  -webkit-box-orient:  vertical;
  overflow:            hidden;
  margin-bottom:       8px;
}
.search-card-excerpt {
  font-size:           11px;
  color:               var(--text-secondary);
  line-height:         1.6;
  display:             -webkit-box;
  -webkit-line-clamp:  2;
  -webkit-box-orient:  vertical;
  overflow:            hidden;
}
.search-card-meta { font-size: 10px; color: var(--text-muted); margin-top: 8px; }

/* ----------------------------------------------------------
   7. ゼロ件表示
---------------------------------------------------------- */
#search-noresult {
  text-align: center;
  padding:    60px 20px;
}
.noresult-icon      { font-size: 40px; margin-bottom: 16px; opacity: .4; }
.noresult-title     { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.noresult-desc      { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.noresult-suggest   { font-size: 12px; color: var(--text-muted); }
.noresult-suggest a { color: var(--accent); text-decoration: none; }

/* ----------------------------------------------------------
   8. ページネーション
---------------------------------------------------------- */
#search-pagination {
  display:         flex;
  justify-content: center;
  gap:             6px;
  margin-top:      32px;
  flex-wrap:       wrap;
}
.page-link {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  border-radius:   var(--radius-sm);
  background:      var(--bg-card);
  border:          1px solid var(--border);
  color:           var(--text-secondary);
  font-size:       13px;
  text-decoration: none;
  transition:      all var(--transition);
}
.page-link:hover,
.page-link.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-link.dots    { background: transparent; border-color: transparent; cursor: default; }

/* ----------------------------------------------------------
   9. フッター（single.phpと同一）
---------------------------------------------------------- */
#site-footer       { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 32px 16px 20px; }
.footer-inner      { display: flex; flex-direction: column; gap: 28px; }
.footer-logo img   { height: 28px; width: auto; margin-bottom: 10px; }
.footer-desc       { font-size: 11px; color: var(--text-muted); line-height: 1.8; max-width: 280px; }
.footer-cols       { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.footer-col-title  { font-size: 11px; font-weight: 700; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.footer-col-list   { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col-list a { font-size: 12px; color: var(--text-muted) !important; text-decoration: none; }
.footer-col-list a:hover  { color: var(--text-primary); }
.footer-disclaimer { font-size: 10px; color: var(--text-muted); line-height: 1.7; padding: 10px 12px; background: #0d0d0d; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 20px; }
.footer-bottom     { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.footer-copyright  { font-size: 10px; color: var(--text-muted); }
.footer-legal      { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a    { font-size: 10px; color: var(--text-muted); text-decoration: none; }

/* ----------------------------------------------------------
   10. レスポンシブ
---------------------------------------------------------- */
@media (min-width: 600px) {
  #search-results-grid { grid-template-columns: 1fr; }
  .search-card-thumb   { width: 180px; }
  .search-card-title   { font-size: 14px; }
}

@media (min-width: 768px) {
  #search-wrapper { padding: 0 24px 80px; }
  .search-heading { font-size: 26px; }
  #site-footer    { padding: 40px 40px 24px; }
  .footer-inner   { flex-direction: row; gap: 40px; align-items: flex-start; }
  .footer-brand   { flex-shrink: 0; width: 220px; }
  .footer-cols    { flex: 1; grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .footer-bottom  { flex-direction: row; justify-content: space-between; align-items: center; }
}
