/* ===================================
   📦 レイアウト全体
=================================== */
.shops-container {
  display: flex;
  gap: 20px;
  max-width: 100%;
  margin: 100px auto;
  padding: 40px 20px;
  box-sizing: border-box;
  height: 850px;
}

.shop-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #f7f7f7;
}

.shop-image-display {
  width: 100%;
  height: 100%;
}

.shop-image-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.shop-right {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  position: relative;
}

/* ===================================
   ページタイトル
=================================== */
.page-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

/* ===================================
   都道府県タブ（ALL含む）
=================================== */
:root {
  --key-color: #25448e;
  --key-text: #ffffff;
}

.pref-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  background: #fff;
  padding: 8px 4px;
  z-index: 5;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pref-tabs::-webkit-scrollbar {
  height: 6px;
}

.pref-tabs::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.pref-tabs button {
  white-space: nowrap;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: #333;
}

.pref-tabs button:hover {
  background: var(--key-color);
  color: var(--key-text);
  border-color: var(--key-color);
}

.pref-tabs button.active {
  background: var(--key-color);
  color: var(--key-text);
  border-color: var(--key-color);
}

/* ALLタブ特別カラー */
.pref-tabs button[data-target="all"] {
  background: #333;
  color: #fff;
  border-color: #333;
}
.pref-tabs button[data-target="all"].active {
  background: var(--key-color);
  border-color: var(--key-color);
  color: var(--key-text);
}

/* ===================================
   都道府県セクション
=================================== */
.shop-section {
  margin-bottom: 24px;
}

.pref-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  border-left: 4px solid var(--key-color);
  padding-left: 8px;
}

.pref-count {
  font-size: 0.9em;
  color: #666;
  margin-left: 6px;
}

/* ===================================
   店舗カード
=================================== */
.shop-item {
  position: relative;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  color: #333;
  background-color: #fff;
}

.shop-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.shop-item h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 6px 0;
}

/* 店舗ホバー時 */
.shop-item:hover {
  background-color: var(--key-color);
  color: var(--key-text);
  transform: translateY(-2px);
  border-color: var(--key-color);
}

/* 店舗ホバー時：内部テキスト統一 */
.shop-item:hover h3,
.shop-item:hover p,
.shop-item:hover a {
  color: var(--key-text) !important;
}

/* ===================================
   店舗タグ（HAIR / NAIL / EYE）
=================================== */
.shop-tags {
  display: flex;
  gap: 6px;
}

.shop-tag {
  background: #f1f5f9;
  color: #333;
  font-size: 0.8em;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* タグごとの色分け */
.shop-tag:contains("HAIR") {
  background: #fde8e8;
  border-color: #fca5a5;
  color: #b91c1c;
}
.shop-tag:contains("NAIL") {
  background: #f3e8ff;
  border-color: #c084fc;
  color: #6b21a8;
}
.shop-tag:contains("EYE") {
  background: #ecfccb;
  border-color: #a3e635;
  color: #3f6212;
}

/* ===================================
   店舗リンク（地図・外部サイト）
=================================== */
.shop-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.map-link {
  color: var(--key-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.map-link:hover {
  text-decoration: underline;
}

/* 外部リンクボタン */
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9em;
  color: var(--key-color);
  text-decoration: none;
  border: 1px solid var(--key-color);
  border-radius: 6px;
  padding: 4px 8px;
  transition: all 0.2s ease;
}

.external-link:hover,
.shop-item:hover .external-link {
  background: var(--key-color);
  color: var(--key-text);
  border-color: var(--key-text);
}

.external-link svg {
  stroke-width: 2px;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

/* ===================================
   スマホレイアウト
=================================== */
@media (max-width: 768px) {
  .shops-container {
    flex-direction: column;
    height: 80vh; /* 全体を画面の8割に固定 */
    overflow: hidden;
    padding: 0 10px;
  }

  .shop-left {
    flex: 0 0 40vh;
    height: 40vh;
    position: relative;
    overflow: hidden;
  }

  .shop-image-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .shop-right {
    flex: 1 1 40vh;
    height: 40vh;
    overflow-y: auto;
    padding: 16px 20px;
    box-sizing: border-box;
  }

  .pref-tabs {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 6px 0;
  }

  .shop-item {
    padding: 12px;
    margin-bottom: 10px;
    font-size: 0.95em;
  }

  .page-title {
    font-size: 1.3em;
    margin-bottom: 12px;
  }

  .shop-right::-webkit-scrollbar {
    width: 5px;
  }

  .shop-right::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }

  /* スマホ時はホバーエフェクト控えめ */
  .shop-item:hover {
    transform: none;
  }
}