/* サイト内検索（/search.html） */
.site-search-page {
  max-width: 48rem;
  margin-inline: auto;
}

.site-search-page h1 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.35;
  color: #5b5d5d;
}

.site-search-lead {
  margin: 0 0 0.9rem;
  color: var(--muted, #6b5e4e);
  font-size: 0.95rem;
  line-height: 1.65;
}

.site-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin: 0 0 0.85rem;
}

.site-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line, #e4d6c4);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #2b241c);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.site-search-form input[type="search"]:focus-visible {
  outline: 3px solid #84192B;
  outline-offset: 2px;
}

.site-search-submit {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid #84192B;
  border-radius: 999px;
  background: #84192B;
  color: #fffdf8;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.site-search-submit:hover,
.site-search-submit:focus-visible {
  background: #6c1323;
  border-color: #6c1323;
}

.site-search-submit:focus-visible {
  outline: 3px solid #84192B;
  outline-offset: 2px;
}

.site-search-status {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: var(--muted, #6b5e4e);
}

.site-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-search-item {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.85rem 0.8rem;
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #e4d6c4);
  border-radius: 12px;
}

.site-search-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0 0 0.25rem;
}

.site-search-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--theme-pale, #f0e6dc);
  color: var(--theme-ink, #5c2e1e);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}

.site-search-date {
  font-size: 0.82rem;
  color: var(--muted, #6b5e4e);
  font-variant-numeric: tabular-nums;
}

.site-search-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 700;
}

.site-search-title a {
  color: #84192B;
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-search-title a:hover,
.site-search-title a:focus-visible {
  text-decoration: underline;
}

.site-search-title a:focus-visible {
  outline: 3px solid #84192B;
  outline-offset: 2px;
  border-radius: 4px;
}

.site-search-snippet {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink, #2b241c);
}

.site-search-snippet mark {
  background: #f6e4c4;
  color: inherit;
  padding: 0 0.12em;
  border-radius: 2px;
}

.site-search-empty {
  margin: 0.4rem 0 0;
  padding: 0.8rem 0.9rem;
  background: var(--surface, #fffdf8);
  border: 1px dashed var(--line, #e4d6c4);
  border-radius: 12px;
  color: var(--muted, #6b5e4e);
  font-size: 0.95rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* テーマ色は豆知識一覧のラベルと同じ */
.site-search-pill[data-theme="wine"] { --theme-pale: #f3e4e8; --theme-ink: #6b1d2a; }
.site-search-pill[data-theme="sake"] { --theme-pale: #e6eaf6; --theme-ink: #2c3a7a; }
.site-search-pill[data-theme="whisky"] { --theme-pale: #f6e4c4; --theme-ink: #6e3d08; }
.site-search-pill[data-theme="shochu"] { --theme-pale: #e6f1e8; --theme-ink: #215a38; }
.site-search-pill[data-theme="cocktail"] { --theme-pale: #fde8e2; --theme-ink: #9a3a2a; }
.site-search-pill[data-theme="beer"] { --theme-pale: #f8f0dc; --theme-ink: #8a6a18; }
.site-search-pill[data-theme="osake"] { --theme-pale: #f0e6dc; --theme-ink: #5c2e1e; }
.site-search-pill[data-theme="fashion"] { --theme-pale: #f3e6ee; --theme-ink: #6a3a52; }
.site-search-pill[data-theme="ladies"] { --theme-pale: #f6e6ea; --theme-ink: #8a3a4a; }
.site-search-pill[data-theme="mens"] { --theme-pale: #e6eef6; --theme-ink: #3a5a8a; }
.site-search-pill[data-theme="kids"] { --theme-pale: #f8efe2; --theme-ink: #8a5a12; }
.site-search-pill[data-theme="perfume"] { --theme-pale: #f3e8f5; --theme-ink: #7a3a8a; }
.site-search-pill[data-theme="cosme"] { --theme-pale: #fbe8e4; --theme-ink: #8a3a3a; }
.site-search-pill[data-theme="blog"] { --theme-pale: #eee8e2; --theme-ink: #5b5d5d; }
.site-search-pill[data-theme="site"] { --theme-pale: #eee8e2; --theme-ink: #5b5d5d; }

@media (min-width: 1024px) {
  .site-search-page {
    max-width: 70rem;
  }
}

@media (max-width: 640px) {
  .site-search-page h1 {
    font-size: 1.2rem;
  }
  .site-search-form {
    flex-direction: column;
  }
  .site-search-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search-title a,
  .site-search-submit {
    transition: none;
  }
}
