/* ===== Search Page ===== */
:root {
  --bg-cream:       #FAF7F2;
  --bg-beige:       #F5F0E8;
  --bg-greige:      #EBE6DE;
  --lavender:       #9B8BC4;
  --lavender-light: #B4A5D5;
  --lavender-pale:  #E8E3F3;
  --rose:           #D4A5A5;
  --rose-deep:      #C9989B;
  --rose-pale:      #F5EBEB;
  --coral:          #E8B4A8;
  --coral-deep:     #D9A093;
  --gold:           #D4AF87;
  --gold-deep:      #B8924A;
  --text-dark:      #4A3C31;
  --text-medium:    #6B5D52;
  --text-light:     #8C7B6D;
  --white:          #FFFFFF;
  --border:         #DDD5C8;
  --shadow:         rgba(74,60,49,0.08);
  --radius:         12px;
  --radius-sm:      8px;
}

/* ===== Page wrap ===== */
.search-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Breadcrumb ===== */
.search-breadcrumb {
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 16px 0;
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  text-align: left;
  justify-content: flex-start;
}
.search-breadcrumb a { color: var(--text-light); }
.search-breadcrumb a:hover { color: var(--lavender); }

/* ===== Page heading ===== */
.search-page-heading {
  padding: 16px 0 20px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 24px;
}
.search-page-heading h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.5;
}
.search-page-heading-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.search-page-heading-meta span {
  display: flex; align-items: center; gap: 3px;
}

/* ===== Section heading ===== */
.search-section-heading {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  line-height: 1.5;
}
.search-section-heading::before {
  content: '';
  width: 4px; height: 16px;
  background: var(--lavender);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== Search form ===== */
.search-block {
  margin-bottom: 28px;
}
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-input-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-light);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 23px;
  padding: 0 16px 0 38px;
  font-size: 14px;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--lavender-light);
  box-shadow: 0 0 0 3px rgba(155,139,196,0.1);
}
.search-input::placeholder { color: var(--text-light); }
.search-submit {
  height: 46px;
  padding: 0 20px;
  border-radius: 23px;
  background: var(--lavender);
  color: var(--white);
  border: none;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-submit:hover { background: #8A79B3; }

/* ===== Tag buttons ===== */
.tag-section {
  margin-bottom: 28px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-medium);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  line-height: 1;
}
.tag-btn:hover {
  border-color: var(--lavender-light);
  background: var(--lavender-pale);
  color: var(--lavender);
  text-decoration: none;
}
.tag-btn--jutsu {
  border-color: #E4DCEF;
  background: #F5F2FB;
  color: #7A69B0;
}
.tag-btn--jutsu:hover {
  border-color: var(--lavender);
  background: var(--lavender-pale);
  color: var(--lavender);
}

/* サービスボタン */
.tag-btn--service {
  border-color: #DCEAE0;
  background: #F2F8F4;
  color: #3D7A4F;
}
.tag-btn--service:hover, .tag-btn--service.active {
  border-color: #388E3C;
  background: #E8F5E9;
  color: #388E3C;
  font-weight: 700;
}

/* 性別ボタン */
.tag-btn--gender {
  border-color: #E0D8EC;
  background: #F7F4FC;
  color: #6B5D8A;
}
.tag-btn--gender:hover, .tag-btn--gender.active {
  border-color: var(--rose-deep);
  background: var(--rose-pale);
  color: var(--rose-deep);
  font-weight: 700;
}

/* 絞り込み解除 */
.tag-clear {
  margin-top: 10px;
  font-size: 12px;
}
.tag-clear a {
  color: var(--text-light);
  text-decoration: underline;
}
.tag-clear a:hover {
  color: var(--lavender);
}

/* ===== Divider ===== */
.search-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 28px 0;
}

/* ===== Sort bar ===== */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sort-label {
  font-size: 13px;
  color: var(--text-medium);
  font-weight: 600;
  white-space: nowrap;
}
.sort-select {
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7B6D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s;
}
.sort-select:focus { border-color: var(--lavender-light); }

.result-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
}
.result-count strong {
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  color: var(--text-dark);
  margin-right: 1px;
}

/* ===== Teller card ===== */
.teller-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teller-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.teller-card:hover {
  border-color: var(--lavender-light);
  box-shadow: 0 4px 20px rgba(74,60,49,0.10);
}

/* 上段 */
.card-top {
  padding: 14px 14px 10px;
  display: flex;
  gap: 12px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender-pale), var(--rose-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 名前行 */
.name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.teller-name {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.rating-block {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}
.rating-stars {
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
}
.rating-num {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  font-weight: 700;
  color: #B8924A;
  line-height: 1;
}

/* サービス・口コミ件数 */
.service-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.service-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
}
.sb-a { background: var(--lavender-pale); color: var(--lavender); }
.sb-b { background: var(--rose-pale); color: var(--rose-deep); }
.sb-c { background: #FFF8E1; color: #8B6914; }
.sb-d { background: #E8F5E9; color: #388E3C; }
.sb-e { background: #FFF3E0; color: #E65100; }

.review-count {
  font-size: 10px;
  color: var(--text-light);
}

/* 料金 */
.price {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.price-unit {
  font-size: 10px;
  font-weight: 400;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--text-light);
}

/* 占術タグ */
.jutsu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.jutsu-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--lavender-pale);
  color: var(--lavender);
  border: 1px solid #D2C9E8;
}

/* 区切り線 */
.card-divider {
  height: 1px;
  background: var(--bg-greige);
  margin: 0 14px;
}

/* 口コミセクション */
.card-review { padding: 10px 14px 14px; }
.review-section-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
}
.review-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}
.review-meta-stars { color: var(--gold); font-size: 12px; line-height: 1; }
.review-meta-score {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  font-weight: 700;
  color: #B8924A;
}
.review-meta-sep { color: var(--border); font-size: 11px; margin: 0 1px; }
.review-meta-name { font-size: 11px; font-weight: 700; color: var(--text-dark); }
.review-meta-attr { font-size: 11px; color: var(--text-light); }
.review-meta-date { font-size: 10px; color: var(--text-light); margin-left: auto; white-space: nowrap; }
.review-text {
  font-size: 12px;
  color: var(--text-medium);
  line-height: 1.8;
}

/* 詳細ボタン */
.card-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--lavender-light);
  color: var(--lavender);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.card-btn:hover {
  background: var(--lavender-pale);
  text-decoration: none;
}

/* ===== No results ===== */
.search-no-results {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-medium);
}
.search-no-results p {
  font-size: 15px;
  margin-bottom: 20px;
}
.search-no-results-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.search-no-results-links a {
  color: var(--lavender);
  font-weight: 600;
}

/* ===== Pagination override for search page ===== */
.search-pagination {
  margin-top: 28px;
}
.search-pagination .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.search-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-medium);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}
.search-pagination .page-btn:hover {
  border-color: var(--lavender-light);
  color: var(--lavender);
  text-decoration: none;
}
.search-pagination .page-btn.active {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--white);
  font-weight: 700;
}
.search-pagination .page-btn.disabled {
  opacity: 0.4;
  cursor: default;
}
.search-pagination .page-dots {
  color: var(--text-light);
  font-size: 13px;
  padding: 0 4px;
}

/* ===== Sticky CTA ===== */
.search-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.search-sticky-cta.visible {
  transform: translateY(0);
}
.search-sticky-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-sticky-cta-text {
  flex: 1;
  font-size: 11px;
  color: var(--text-medium);
  line-height: 1.4;
}
.search-sticky-cta-text strong {
  display: block;
  font-size: 12px;
  color: var(--text-dark);
}
.search-sticky-cta-btn {
  padding: 10px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: var(--white);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(232,180,168,0.4);
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 400px) {
  .teller-name { font-size: 14px; }
  .avatar { width: 48px; height: 48px; font-size: 18px; }
}
