@charset "UTF-8";
html,
body {
  font-family: "Noto Sans JP", -apple-system, system-ui, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-weight: 400;
}

:root {
  --search-bg: #f5f3ee;
  --search-card-bg: #ffffff;
  --search-main-text: #4c2f3b;
  --search-sub-text: #666666;
  --search-accent: #b85b62;
  --search-accent-dark: #aa4d53;
  --search-border-soft: #e6e1d7;
  --search-shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
  --search-base-text-dark: #212529;
}

body {
  background-color: var(--search-bg);
  color: var(--search-main-text);
}

/* 共通幅 */
.search-page__container,
.search-results-page__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* 地域SEO一覧ページは Bootstrap .container 配下なので、
   一覧部分だけ幅を少し絞る */
.search-results-list {
  max-width: 820px;
  margin: 0 auto;
}

/* ------------------------------
   検索トップ
------------------------------ */
.search-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.search-top__hero {
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-top__hero img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.03));
}
.search-top__form-section {
  margin-top: 4px;
}
.search-top__recommend {
  margin-top: 8px;
}
.search-top__section-title {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.search-top__seo-text {
  margin-top: 8px;
  text-align: center;
}

.search-top__seo-description {
  font-size: 12px;
  color: #777;
  margin: 0;
}

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

/* ------------------------------
   検索フォーム
------------------------------ */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--search-card-bg);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--search-shadow-soft);
}
.search-form__input-wrap {
  flex: 1;
}
.search-form__input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 8px 0;
  outline: none;
  color: var(--search-main-text);
}
.search-form__input::-moz-placeholder {
  color: #b7b1a6;
}
.search-form__input::placeholder {
  color: #b7b1a6;
}
.search-form__button {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--search-accent), var(--search-accent-dark));
  color: #fff;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.search-form__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.search-form__button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  opacity: 0.9;
}

/* ------------------------------
   トップのカード一覧
------------------------------ */
.search-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  align-items: stretch;
}
.search-card-list__item {
  flex: 0 1 calc(50% - 8px);
  max-width: 260px;
}

.search-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: var(--search-card-bg);
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--search-shadow-soft), inset 0 0 8px rgba(0, 0, 0, 0.03);
}
.search-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}
.search-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f2f0ed;
  border: 1px solid #e8e4df;
}
.search-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  display: block;
}
.search-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.search-card__name {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}
.search-card__meta {
  font-size: 12px;
  color: var(--search-sub-text);
  margin-top: auto;
}
.search-card__meta img {
  width: 1em;
  height: auto;
}

.search-top__popular-areas {
  margin-top: 32px;
}

.search-top__area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.search-top__area-links li {
  margin: 0;
}

.search-top__area-links a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-top__area-links a:hover {
  background: #f8f8f8;
  border-color: #cfcfcf;
  color: #111;
  text-decoration: none;
}

.search-top__area-links a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* ------------------------------
   検索結果ページ上部
------------------------------ */
.search-results-page__map {
  margin-bottom: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(230, 225, 215, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(76, 47, 59, 0.05);
}
.search-results-page__search-box {
  margin-bottom: 20px;
}
.search-results-page__keyword {
  margin: 12px 2px 0;
  font-size: 14px;
  color: var(--search-sub-text);
}
.search-results-page__map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  color: var(--search-sub-text);
  font-size: 13px;
  letter-spacing: 0.03em;
}

#map-container {
  display: block;
  width: 100%;
  height: 240px;
  background: #f3f1ed;
  border: 1px solid rgba(230, 225, 215, 0.95);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ------------------------------
   検索結果一覧
------------------------------ */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.search-results-list__empty {
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--search-shadow-soft);
  color: var(--search-sub-text);
}

.search-result-card {
  position: relative;
  display: block;
  padding: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--search-shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.search-result-card:hover, .search-result-card:focus, .search-result-card:active, .search-result-card:visited {
  text-decoration: none;
  color: inherit;
}
.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}
.search-result-card__head {
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.search-result-card__name {
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 8px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.search-result-card__rate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1.4;
  color: inherit;
}
.search-result-card__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 5px;
  margin: 0;
  line-height: 1.4;
  color: inherit;
}
.search-result-card__rating-label {
  font-size: 12px;
  color: #6f5b61;
}
.search-result-card__rating-score {
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  color: #5a3a45;
  letter-spacing: 0.01em;
}
.search-result-card__rating-count {
  font-size: 13px;
  line-height: 1.4;
  color: var(--search-sub-text);
}
.search-result-card__rating-empty {
  font-size: 13px;
  line-height: 1.5;
  color: var(--search-sub-text);
}
.search-result-card__body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.search-result-card__meta {
  flex: 1;
  min-width: 0;
}
.search-result-card__station, .search-result-card__address, .search-result-card__hours {
  font-size: 13px;
  color: #666;
  margin: 0 0 6px;
  line-height: 1.7;
}
.search-result-card__pin img {
  width: auto;
  height: 1.3em;
  vertical-align: -3px;
}
.search-result-card__review-box {
  background: #faf8f5;
  border-radius: 8px;
}
.search-result-card__thumb {
  width: 132px;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1efec;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.search-result-card__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.search-result-card.is-paid {
  border: 1px solid rgba(170, 77, 83, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(170, 77, 83, 0.18);
}
.search-result-card.is-paid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(135deg, var(--search-accent), var(--search-accent-dark));
}

.search-results-list > a.search-result-card,
.search-results-list > a.search-result-card:hover,
.search-results-list > a.search-result-card:focus,
.search-results-list > a.search-result-card:active,
.search-results-list > a.search-result-card:visited {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 767.98px) {
  .search-result-card {
    padding: 14px;
  }
  .search-result-card__head {
    margin-bottom: 10px;
  }
  .search-result-card__body {
    gap: 12px;
    align-items: flex-start;
  }
  .search-result-card__thumb {
    width: 96px;
  }
  .search-result-card__name {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .search-result-card__rating {
    gap: 3px 5px;
  }
  .search-result-card__rating-label {
    font-size: 11px;
  }
  .search-result-card__rating-score {
    font-size: 22px;
  }
  .search-result-card__rating-count, .search-result-card__rating-empty {
    font-size: 12px;
  }
  .search-result-card__station, .search-result-card__address, .search-result-card__hours {
    font-size: 12px;
    line-height: 1.6;
  }
}
/* ------------------------------
   マップ吹き出し
------------------------------ */
.search-map-popup {
  min-width: 160px;
  line-height: 1.55;
}
.search-map-popup__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.search-map-popup__name a {
  color: var(--search-main-text);
  text-decoration: none;
}
.search-map-popup__name a:hover {
  text-decoration: underline;
}
.search-map-popup__station, .search-map-popup__address {
  margin-top: 4px;
  font-size: 12px;
  color: var(--search-sub-text);
}
.search-map-popup__plan {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.search-map-popup__plan.is-paid {
  background: #f4dde0;
  color: #9c545b;
}
.search-map-popup__plan.is-free {
  background: #efefef;
  color: #6f7480;
}

/* ------------------------------
   フッター
------------------------------ */
.footer.footer-seo {
  background: #fff;
  border-top: 1px solid #e9e9e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.footer.footer-seo .footer-seo__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer.footer-seo .footer-seo__inner {
  padding: 14px 0 12px;
}

.footer.footer-seo .footer-seo__accordion {
  width: 100%;
}

.footer.footer-seo .footer-seo__toggle {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 32px 14px;
  border: 0;
  background: transparent;
  color: var(--search-base-text-dark);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.footer.footer-seo .footer-seo__toggle-label {
  display: inline-block;
  line-height: 1.5;
  text-align: center;
}

.footer.footer-seo .footer-seo__icon {
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
}

.footer.footer-seo .footer-seo__icon::before,
.footer.footer-seo .footer-seo__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #555;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.footer.footer-seo .footer-seo__icon::before {
  width: 14px;
  height: 1.5px;
}

.footer.footer-seo .footer-seo__icon::after {
  width: 1.5px;
  height: 14px;
}

.footer.footer-seo .footer-seo__content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.25s ease;
}

.footer.footer-seo .footer-seo__accordion.is-open .footer-seo__content,
.footer.footer-seo .footer-seo__accordion.is-mobile-open .footer-seo__content {
  grid-template-rows: 1fr;
}

.footer.footer-seo .footer-seo__accordion.is-open .footer-seo__icon::after,
.footer.footer-seo .footer-seo__accordion.is-mobile-open .footer-seo__icon::after {
  opacity: 0;
}

.footer.footer-seo .footer-seo__grid {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
}

.footer.footer-seo .footer-seo__accordion.is-open .footer-seo__grid,
.footer.footer-seo .footer-seo__accordion.is-mobile-open .footer-seo__grid {
  padding: 0 0 10px;
}

.footer.footer-seo .footer-area-links {
  min-width: 0;
  border-bottom: none;
}

.footer.footer-seo .footer-area-links__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  text-align: center;
}

.footer.footer-seo .footer-area-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.footer.footer-seo .footer-area-links__list li + li {
  margin-top: 6px;
}

.footer.footer-seo .footer-area-links__list a {
  color: #555;
  font-size: 13px;
  line-height: 1.75;
  text-decoration: none;
}

.footer.footer-seo .footer-area-links__list a:hover {
  color: #222;
  text-decoration: underline;
}

.footer.footer-seo .footer-seo__bottom {
  border-top: 1px solid #f0f0f0;
  margin-top: 12px;
  padding-top: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #666;
}

.footer.footer-seo .footer-seo__bottom a {
  color: var(--search-base-text-dark);
  text-decoration: none;
}

.footer.footer-seo .footer-seo__bottom a:hover {
  text-decoration: underline;
}

.footer.footer-seo .footer-seo__bottom span {
  display: inline-block;
  margin: 0 6px;
  color: #999;
}

/* ------------------------------
   レスポンシブ
------------------------------ */
@media (min-width: 768px) {
  .search-results-page__map {
    margin-bottom: 24px;
    padding: 10px;
    border-radius: 22px;
  }
  #map-container {
    height: 300px;
  }
}
@media (min-width: 900px) {
  .search-page__container,
  .search-results-page__container {
    padding-inline: 24px;
  }
}
@media (min-width: 1200px) {
  #map-container {
    height: 340px;
  }
}
@media (max-width: 991.98px) {
  .footer.footer-seo .footer-seo__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer.footer-seo .footer-seo__inner {
    padding: 12px 0 10px;
  }
  .footer.footer-seo .footer-seo__toggle {
    padding: 2px 32px 12px;
  }
  .footer.footer-seo .footer-seo__bottom {
    margin-top: 10px;
    padding-top: 10px;
  }
}
@media (max-width: 767.98px) {
  .search-top__popular-areas {
    margin-top: 24px;
  }
  .search-top__area-links {
    gap: 8px;
  }
  .search-top__area-links a {
    font-size: 13px;
    padding: 7px 12px;
  }
  .search-top__section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .search-top__recommend {
    margin-top: 4px;
  }
  .search-card-list {
    gap: 12px;
  }
  .search-card-list__item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  /* 1件だけのとき中央寄せ */
  .search-card-list > .search-card-list__item:only-child {
    flex: 0 1 100%;
    max-width: 420px;
    margin-inline: auto;
  }
  /* ⭐ ここが本命：一覧風レイアウト */
  .search-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 12px;
    padding: 12px;
  }
  .search-card__thumb {
    width: 96px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    margin-bottom: 2px;
  }
  .search-card__body {
    flex: 1;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .search-card__name {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .search-card__meta {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 6px;
  }
  .search-card .wv-font-lg2 {
    font-size: 14px !important;
    line-height: 1.4;
  }
  .search-result-card {
    padding: 14px;
  }
  .search-result-card__head {
    margin-bottom: 10px;
  }
  .search-result-card__body {
    gap: 12px;
    align-items: flex-start;
  }
  .search-result-card__thumb {
    width: 96px;
  }
  .search-result-card__name {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 6px;
  }
  .search-result-card__rating {
    gap: 3px 5px;
  }
  .search-result-card__rating-label {
    font-size: 11px;
  }
  .search-result-card__rating-score {
    font-size: 22px;
  }
  .search-result-card__rating-count, .search-result-card__rating-empty {
    font-size: 12px;
  }
  .search-result-card__station, .search-result-card__address, .search-result-card__hours {
    font-size: 12px;
    line-height: 1.6;
  }
}
/* =========================
   評価の主張を少し弱める
========================= */
.search-result-card {
  /* 評価ブロック */
}
.search-result-card__rating {
  gap: 4px 6px;
  line-height: 1.4;
}
.search-result-card {
  /* ラベル（総合評価） */
}
.search-result-card__rating-label {
  font-size: 11px;
  color: #7a6d72;
  font-weight: 400;
}
.search-result-card {
  /* 数字（ここが一番効く） */
}
.search-result-card__rating-score {
  font-size: 19px; /* ← 22 → 19 に落とす */
  font-weight: 600; /* ← 700 → 600 */
  color: #6a4b55; /* ← 少しだけ薄く */
  letter-spacing: 0.01em;
}
.search-result-card {
  /* 件数 */
}
.search-result-card__rating-count {
  font-size: 12px;
  color: #8a8084;
}
.search-result-card {
  /* 口コミなし */
}
.search-result-card__rating-empty {
  font-size: 12px;
  color: #8a8084;
}

/* スマホ用も軽く調整 */
@media (max-width: 767.98px) {
  .search-result-card__rating-label {
    font-size: 10px;
  }
  .search-result-card__rating-score {
    font-size: 17px;
  }
  .search-result-card__rating-count, .search-result-card__rating-empty {
    font-size: 11px;
  }
}
