/* ========================================
   Archive Salon — サロン一覧（Laravel版準拠）
   ======================================== */

/* ---- エリア検索（マップ＋ナビ） ---- */
.search-wrap {
  display: flex;
  border-bottom: 1px solid black;
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.search-wrap > div:first-of-type {
  width: 60%;
  position: relative;
  padding-right: 20px;
}

.search-wrap > div:last-of-type {
  width: 40%;
  min-height: 250px;
  position: relative;
}

.search-wrap > div:last-of-type ul {
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  bottom: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-wrap > div:last-of-type ul li {
  width: calc((100% - 10px) / 2);
  max-width: calc((100% - 10px) / 2);
}

.search-wrap > div:last-of-type ul li:not(:nth-of-type(2n)) {
  margin-right: 10px;
}

.search-wrap > div:last-of-type ul li a {
  display: block;
  text-align: center;
  border: 1px solid #a5a5a5;
  padding: 25px 2px;
  margin-bottom: 10px;
  background: #f8f8f8;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1rem;
  transition: all 0.2s;
}

.search-wrap > div:last-of-type ul li a:hover {
  border-color: black;
  background: black;
  color: white;
}

.search-wrap > div:last-of-type ul li:nth-of-type(odd) a {
  margin-left: auto;
}

/* map_jpn */
.map_jpn {
  position: relative;
}

.map_jpn img {
  width: 100%;
  height: auto;
}

.map_jpn a {
  position: absolute;
  display: block;
  height: 7%;
}

.map_jpn [href="#map_btn1"] { top: 22%; left: 48%; width: 24%; }
.map_jpn [href="#map_btn2"] { top: 61%; left: 83%; width: 15%; }
.map_jpn [href="#map_btn3"] { top: 43%; left: 44%; width: 20%; }
.map_jpn [href="#map_btn4"] { top: 80%; left: 54%; width: 15%; }
.map_jpn [href="#map_btn5"] { top: 57%; left: 21%; width: 20%; }
.map_jpn [href="#map_btn6"] { top: 93%; left: 17%; width: 20%; }

/* レスポンシブ: search-wrap */
@media (max-width: 767px) {
  .search-wrap {
    display: block;
  }

  .search-wrap > div:first-of-type {
    width: 100%;
    max-width: 500px;
    padding-right: 0;
    margin: auto;
  }

  .search-wrap > div:last-of-type {
    width: 100%;
    min-height: auto;
  }

  .search-wrap > div:last-of-type ul {
    position: static;
    margin-top: 30px;
  }

  .search-wrap > div:last-of-type ul li {
    width: calc((100% - 20px) / 3);
    max-width: calc((100% - 20px) / 3);
  }

  .search-wrap > div:last-of-type ul li:not(:nth-of-type(2n)) {
    margin-right: 0;
  }

  .search-wrap > div:last-of-type ul li:not(:nth-of-type(3n)) {
    margin-right: 10px;
  }

  .search-wrap > div:last-of-type ul li a {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 479px) {
  .search-wrap > div:last-of-type ul li {
    width: calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
  }

  .search-wrap > div:last-of-type ul li:not(:nth-of-type(3n)) {
    margin-right: 0;
  }

  .search-wrap > div:last-of-type ul li:not(:nth-of-type(2n)) {
    margin-right: 10px;
  }
}

/* no-salon-msg */
.no-salon-msg {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  padding: 20px 0;
}

/* ---- エリア・カテゴリフィルター ---- */

.area-nav,
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.area-nav li a,
.category-nav li a {
  display: inline-block;
  padding: 6px 16px;
  font-size: var(--text-sm);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.area-nav li a:hover,
.category-nav li a:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.area-nav li a.is-active,
.category-nav li a.is-active {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ---- セクション見出し ---- */
.header-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

/* ---- カテゴリバッジ（共通） ---- */
.category-area ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-area li {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--text-xs);
  color: var(--color-text-white);
}

/* ---- NEW SHOP セクション ---- */
.newShop-wrap {
  margin: 40px 0;
}

.newShop-wrap .slick-slide {
  padding: 0 5px;
}

.newShop-wrap .slick-slide a {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: none;
}

.newShop-wrap .slick-slide a:hover {
  border-bottom: none;
}

.newShop-wrap .slick-slide .category-area {
  min-height: 22px;
  margin-bottom: 5px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.newShop-wrap .slick-slide .img-wrap {
  margin-bottom: 10px;
}

.newShop-wrap .slick-slide .img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.newShop-wrap .slick-slide .name {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.newShop-wrap .slick-slide .text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 10px;
  line-height: 1.5;
}

.newShop-wrap .slick-slide .adress {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ---- RECOMMEND SHOP セクション ---- */
.recommendShop-wrap {
  margin: 40px 0;
}

.recommend-list {
  display: flex;
  flex-wrap: wrap;
}

.recommend-list .salon-card-horizontal {
  width: calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
}

.recommend-list .salon-card-horizontal:not(:nth-of-type(3n)) {
  margin-right: 20px;
}

.recommend-list .salon-card-horizontal:nth-of-type(n + 4) {
  margin-top: 20px;
}

/* salon-card-horizontal（おすすめサロンカード：PC縦並び / SP横並び） */
.salon-card-horizontal a {
  display: grid;
  grid-template-rows: max-content max-content max-content max-content;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: none;
}

.salon-card-horizontal a:hover {
  border-bottom: none;
}

.salon-card-horizontal a .category-area {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.salon-card-horizontal a .category-area ul {
  padding-bottom: 5px;
}

.salon-card-horizontal a .img-area {
  grid-row: 2 / 3;
  grid-column: 1 / 2;
  display: contents;
  margin: 20px 0;
  text-align: center;
}

.salon-card-horizontal a .img-area img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.salon-card-horizontal a .title {
  grid-row: 3 / 4;
  grid-column: 1 / 2;
  font-size: 1.25rem;
  margin: 10px 0;
}

.salon-card-horizontal a .info {
  grid-row: 4 / 5;
  grid-column: 1 / 2;
}

.salon-card-horizontal a .info .text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 10px;
  line-height: 1.5;
}

.salon-card-horizontal a .info .adress {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ---- エリア別サロン ---- */
.result-wrap {
  margin-top: 40px;
}

.result-wrap .header-title {
  text-align: left;
}

.area-salon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* salon-card-compact（エリア別コンパクトカード） */
.salon-card-compact {
  width: calc((100% - 60px) / 4);
}

.salon-card-compact > a {
  display: grid;
  grid-template-rows: max-content 1fr;
  grid-template-columns: 1fr;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: none;
}

.salon-card-compact > a:hover {
  border-bottom: none;
}

.salon-card-compact .img-area img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.salon-card-compact .category-area ul {
  margin-top: 5px;
  gap: 4px;
}

.salon-card-compact .info .name {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 8px 0 5px;
}

.salon-card-compact .info .adress {
  font-size: var(--text-xs);
  color: var(--color-text-light);
}

/* ---- ページネーション ---- */
.pagination-wrap .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 2px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.pagination-wrap .page-numbers:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.pagination-wrap .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

/* ---- レスポンシブ ---- */
@media (max-width: 991px) {
  .salon-card-compact {
    width: calc((100% - 40px) / 3);
  }
}

@media (max-width: 767px) {

  /* RECOMMEND SHOP: SP時は縦並び */
  .recommend-list .salon-card-horizontal {
    width: 100%;
    max-width: 100%;
    padding-bottom: 20px;
  }

  .recommend-list .salon-card-horizontal:not(:nth-of-type(3n)) {
    margin-right: 0;
  }

  .recommend-list .salon-card-horizontal:nth-of-type(n + 4) {
    margin-top: 0;
  }

  .recommend-list .salon-card-horizontal:nth-of-type(n + 2) {
    margin-top: 20px;
  }

  .recommend-list .salon-card-horizontal:not(:last-of-type) {
    border-bottom: 1px solid #efeff0;
  }

  /* salon-card-horizontal SP: 画像左 + コンテンツ右の2カラム */
  .salon-card-horizontal a {
    grid-template-rows: max-content max-content max-content;
    grid-template-columns: 130px 1fr;
  }

  .salon-card-horizontal a .category-area {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
  }

  .salon-card-horizontal a .title {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
    margin: 10px 0;
  }

  .salon-card-horizontal a .img-area {
    grid-row: 3 / 4;
    grid-column: 1 / 2;
    display: block;
  }

  .salon-card-horizontal a .info {
    grid-row: 3 / 4;
    grid-column: 2 / 3;
    padding-left: 10px;
  }

  .salon-card-horizontal a .info .adress {
    margin-top: 20px;
  }

  /* エリア別: SP時2列 */
  .salon-card-compact {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 479px) {
  .salon-card-compact {
    width: 100%;
  }
}
