/* ========================================
   signage-map.css
   マップ画面スタイル定義
   ======================================== */

/* 共通コンポーネント */
@import "../common/components/Button/Button.css?v=3.0.8";
@import "../common/components/Header/Header.css?v=3.0.8";

.map-container {
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  height: 100vh;
}

/* 背景装飾（チャート画面 .flow-main-area::after と同じ） */
.map-container::after {
  content: '';
  position: absolute;
  bottom: -3%;
  right: -14%;
  transform: rotate(9deg);
  width: 55vw;
  height: 55vw;
  max-width: 500px;
  max-height: 500px;
  background-image: url('https://web.ailesys.co.jp/wbmudigital/wp-content/uploads/2026/01/Group-258.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

/* タイトルエリア内 戻るボタン */
.map-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background-color: #b0b0b0;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.map-back-btn:active {
  transform: scale(0.95);
  background-color: #9a9a9a;
}

.map-back-btn svg {
  flex-shrink: 0;
}

/* 背景画像レイヤー（チャート画面と同じ） */
.map-bg-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.map-bg-image__player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px);
}

.map-bg-image__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* 背景より前面に出すための共通設定 */
#mapHeaderContainer,
.map-breadcrumb-container,
.map-title-area,
.map-filter-tabs,
.map-content,
.map-modal {
  position: relative;
  z-index: 1;
}

/* ヘッダー（共通コンポーネントを使用するため削除） */
/* .map-header, .map-header__left, .map-header__right は Header.css で定義された .signage-header 等を使用 */

/* パンくずリスト（ヘッダー下）- チャート画面と同じスタイル */
.map-breadcrumb-container {
  width: 100%;
  min-height: clamp(18px, 2.5vh, 26px);
  height: auto;
  display: flex;
  align-items: center;
  padding: 24px clamp(20px, 3vw, 40px);
  background: transparent;
  z-index: 90;
  flex-shrink: 0;
}

.map-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.map-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.map-breadcrumb__item::after {
  content: '›';
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.map-breadcrumb__item:last-child::after {
  display: none;
}

.map-breadcrumb__button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 4px 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.map-breadcrumb__button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.map-breadcrumb__button:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
  filter: brightness(0.85);
}

.map-breadcrumb__current {
  padding: 4px 8px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  pointer-events: none;
  font-family: 'Noto Sans JP', sans-serif;
}

/* タイトルエリア（タブ下） */
.map-title-area {
  width: 100%;
  padding: clamp(20px, 3vh, 32px) clamp(20px, 3vw, 40px);
  background: transparent;
  backdrop-filter: blur(10px);
  z-index: 90;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.map-title {
  flex: 1;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  letter-spacing: var(--swl-letter_spacing, .2px);
  margin: 0;
  padding: 0;
  border: none;
  line-height: 1.4;
  font-family: 'Noto Serif JP', serif;
  position: relative;
}

.map-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 26%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 1px solid #cbb1c9;
  border-radius: 50%;
}

/* カテゴリーフィルタタブ */
.map-filter-tabs {
  display: flex;
  gap: clamp(8px, 1.5vw, 16px);
  padding: clamp(12px, 2vh, 20px) clamp(20px, 3vw, 40px);
  background: transparent;
  backdrop-filter: blur(10px);
  z-index: 90;
  flex-shrink: 0;
}

.map-filter-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding: clamp(7px, 1vh, 11px) clamp(11px, 1.3vw, 16px);
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 1.2vh, 14px);
  color: #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.map-filter-tab__label {
  white-space: nowrap;
}

/* フィルタタブのカテゴリ別色設定 */
.map-filter-tab--all.map-filter-tab--active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: #667eea;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.map-filter-tab--winery.map-filter-tab--active {
  background: linear-gradient(135deg, #722F37 0%, #873b53 100%);
  color: #fff;
  border-color: #722F37;
  box-shadow: 0 4px 16px rgba(114, 47, 55, 0.3);
}

.map-filter-tab--vineyard.map-filter-tab--active {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: #fff;
  border-color: #27ae60;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.3);
}

.map-filter-tab--beer.map-filter-tab--active {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #fff;
  border-color: #f39c12;
  box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
}

.map-filter-tab:hover:not(.map-filter-tab--active) {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.map-filter-tab:active {
  transform: translateY(0) scale(0.95);
  filter: brightness(0.85);
}

/* コンテンツエリア - 2カラムレイアウト（地図70% / タグ30%） */
/* 共通スタイルを上書きし、Flexboxで残り高さを自動計算 */
.map-content {
  position: relative !important;
  top: auto !important;
  flex: 1;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

/* 左側: 地図エリア（70%） */
.map-frame-container {
  flex: 7;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.map-image {
  position: relative;
  top: -84px;
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transform: rotateX(40deg) scale(1.2);
}

.map-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  transform: scale(1.2);
  transform-origin: top center;
  margin-top: 40px; /* スケール拡大分の余白 */
  margin-bottom: 40px;
}

/* ピン配置コンテナ */
.map-pin-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none; /* ピン以外はクリック透過 */
}

/* ピン共通 */
.map-pin {
  position: absolute;
  width: 60px; /* サイズ調整 */
  height: auto;
  transform: translate(-50%, -100%); /* 座標をピンの先端に合わせる */
  background: transparent;
  border: none;
  /* cursor: pointer; */
  pointer-events: none; /* 画像の透明部分をクリック不可に */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  padding: 0;
}

/* フィルタによるピンの表示制御 */
.map-pin--hidden {
  opacity: 0.2;
  pointer-events: none;
}

.map-pin img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none; /* 画像自体もクリック不可に */
}

/* ピンのタッチ判定領域（疑似要素） */
.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 47%; /* ピン先端の位置に合わせて微調整 */
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: transparent;
  pointer-events: auto; /* ここだけクリック可能 */
  cursor: pointer;
  border-radius: 50%;
}

.map-pin:hover::after {
  background: rgba(255, 255, 255, 0.2);
}

/* 現在地ピン（ロゴ画像）のスタイル */
.map-pin--beer {
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.map-pin--beer .map-pin__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #e8a735;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(232, 167, 53, 0.35);
  position: relative;
  z-index: 1;
}

.map-pin__stem {
  display: block;
  width: 2px;
  height: 30px;
  background: #e8a735;
  position: relative;
}

.map-pin__stem::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #e8a735;
  border-radius: 50%;
}

/* タップフィードバックアニメーション */
@keyframes pin-tap-feedback {
  0% {
    transform: translate(-50%, -100%) scale(1);
  }
  50% {
    transform: translate(-50%, -100%) scale(1.25);
  }
  100% {
    transform: translate(-50%, -100%) scale(1.15);
  }
}

.map-pin--tapped {
  animation: pin-tap-feedback 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translate(-50%, -100%) scale(1.15);
  z-index: 30;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* モーダル（東御市テロワール様式） */
.map-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 5vh 0 !important;
  z-index: 2000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out !important;
}

.map-modal.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

.map-modal__overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  cursor: pointer !important;
}

.map-modal__content {
  position: relative !important;
  width: 90% !important;
  max-width: 900px !important;
  max-height: 90% !important;
  background: #fff !important;
  border-radius: 8px !important;
  overflow-y: auto !important;
  z-index: 2001 !important;
  padding: 0 30px !important;
  transform: scale(0.9) !important;
  transition: transform 0.3s ease-out !important;
}

.map-modal.is-active .map-modal__content {
  transform: scale(1) !important;
}

.map-modal__close {
  position: absolute !important;
  top: 1rem !important;
  right: 1rem !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  transition: background 0.2s ease !important;
}

.map-modal__close:hover {
  background: rgba(0, 0, 0, 0.8) !important;
}

.map-modal__close:active {
  transform: scale(0.9) !important;
  filter: brightness(0.85);
}

/* 【Head】感情エリア */
.map-modal__emotion-area {
  margin-bottom: 2rem !important;
}

.map-modal__logo-container {
  text-align: center !important;
  margin-bottom: 1.5rem !important;
}

.map-modal__logo-container img {
  max-width: 200px !important;
  max-height: 100px !important;
  object-fit: contain !important;
}

.map-modal__title {
  font-size: clamp(1.5rem, 3vh, 2rem) !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  color: #333 !important;
  text-align: center !important;
}

.map-modal__description {
  font-size: clamp(0.95rem, 1.8vh, 1.1rem) !important;
  line-height: 1.7 !important;
  margin-bottom: 1.5rem !important;
  white-space: pre-wrap !important;
  color: #555 !important;
  text-align: center !important;
  padding: 0 1rem !important;
}

.map-modal__hero-gallery {
  width: 100% !important;
  max-height: 400px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  margin-bottom: 1.5rem !important;
}

.map-modal__hero-gallery img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 【Body】論理エリア */
.map-modal__logic-area {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  padding: 1.5rem !important;
  border-radius: 12px !important;
  margin-bottom: 2rem !important;
}

.map-modal__status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.25rem !important;
  background: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  margin-bottom: 1rem !important;
  font-weight: 600 !important;
}

.map-modal__status-icon {
  font-size: 1.5rem !important;
  line-height: 1 !important;
}

.map-modal__status-text {
  font-size: 1rem !important;
}

.map-modal__status-badge--open {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
  color: #155724 !important;
}

.map-modal__status-badge--closed {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
  color: #721c24 !important;
}

.map-modal__eigyoinfo-box {
  display: flex !important;
  gap: 1rem !important;
  background: #fff !important;
  padding: 1.25rem !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.map-modal__info-icon {
  font-size: 2rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.map-modal__info-content h5 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem 0 !important;
  color: #333 !important;
}

.map-modal__info-content p {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #555 !important;
  margin: 0 !important;
}

/* 【Foot】行動エリア */
.map-modal__action-area {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  margin-bottom: 1.5rem !important;
}

.map-modal__qr-action {
  display: flex !important;
  gap: 2rem !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.map-modal__qr-button {
  flex: 1 !important;
  min-width: 250px !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.map-modal__qr-icon {
  font-size: 3rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.map-modal__qr-content h5 {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem 0 !important;
  color: #fff !important;
}

.map-modal__qr-content p {
  font-size: 0.95rem !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.map-modal__qr-code {
  flex-shrink: 0 !important;
  background: #fff !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.map-modal__qr-code img {
  display: block !important;
  width: 150px !important;
  height: 150px !important;
  object-fit: contain !important;
}

/* YouTube */
.map-modal__youtube {
  margin-bottom: 1.5rem !important;
}

.map-modal__youtube h5 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem 0 !important;
  color: #333 !important;
}

.map-modal__youtube-embed iframe {
  width: 100% !important;
  height: 400px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ========================================
   モーダル内 producer-detail.php スタイル適用
   winery-detail.css と完全に同じスタイルを適用
======================================== */

/* flow-content-body と flow-content-text (producer-detail.phpの外側構造) */
.map-modal__content .flow-content-body {
  width: 100%;
}

.map-modal__content .flow-content-title {
  padding: 0 !important;
  position: relative;
  text-align: center !important;
  border: none !important;
  letter-spacing: var(--swl-letter_spacing, .2px);
  margin-bottom: 80px;
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  font-family: 'Noto Sans JP', sans-serif;
}

.map-modal__content .flow-content-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 34%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 1px solid #cbb1c9;
  border-radius: 50%;
}

.map-modal__content .flow-content-text {
  width: 100%;
}

/* ワイナリーロゴ */
.map-modal__content .winery-logo {
  width: 100%;
  margin-bottom: 24px;
}

.map-modal__content .winery-logo img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 紹介文 */
.map-modal__content .winery-intro {
  margin-bottom: 24px;
  line-height: 1.8;
}

.map-modal__content .winery-intro p {
  font-size: 16px;
  color: #333;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 基本情報 */
.map-modal__content .winery-info {
  margin-bottom: 32px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 8px;
}

.map-modal__content .info-row {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  font-family: 'Noto Sans JP', sans-serif;
}

.map-modal__content .info-row:last-child {
  margin-bottom: 0;
}

.map-modal__content .info-label {
  display: inline-block;
  min-width: 100px;
  font-weight: 700;
  color: #2c3e50;
}

.map-modal__content .info-value {
  color: #333;
}

.map-modal__content .info-value.multiline-small {
  font-size: 14px;
  line-height: 1.8;
}

/* 営業情報とQRコードの横並びセクション */
.map-modal__content .winery-qr-eigyoinfo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

/* 営業情報 */
.map-modal__content .winery-eigyoinfo h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: left;
}

.map-modal__content .winery-eigyoinfo p {
  font-size: 15px;
  color: #333;
  line-height: 1.8;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ルートQRコード */
.map-modal__content .winery-qr {
  text-align: center;
}

.map-modal__content .winery-qr h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: left;
}

.map-modal__content .winery-qr img {
  max-width: 200px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

/* ギャラリー */
.map-modal__content .winery-gallery {
  margin-top: 32px;
}

.map-modal__content .winery-gallery h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: left;
}

.map-modal__content .gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.map-modal__content .gallery-item {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.map-modal__content .gallery-grid.one-image {
  grid-template-columns: 1fr;
}

.map-modal__content .gallery-grid.one-image .gallery-item {
  height: 300px;
  aspect-ratio: auto;
}

.map-modal__content .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* YouTube動画 */
.map-modal__content .winery-youtube {
  margin-top: 32px;
}

.map-modal__content .winery-youtube h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  text-align: left;
}

.map-modal__content .youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-modal__content .youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* ========================================
   content-tomishi_wv.php スタイル（マップモーダル用）
======================================== */

/* モーダル内 #winery-vineyard 全体スタイル */
.map-modal__content #winery-vineyard {
  padding: 0;
}

/* エリア共通マージン */
.map-modal__content .wv-area:not(:last-child) {
  margin-bottom: 40px;
}

/* タイトルエリア */
.map-modal__content .wvtitle-area {
  text-align: center;
  margin-bottom: 60px !important;
  position: relative;
  z-index: 1;
}

.map-modal__content .wvtitle-area::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border: 1px solid #cbb1c9;
  border-radius: 50%;
  z-index: -1;
}

.map-modal__content .h2wv-design {
  color: #873b53 !important;
  font-size: clamp(22px, 4vw, 28px);
  margin: 15px 0 10px;
  font-family: 'Noto Serif JP', serif;
}

/* h3共通デザイン */
.map-modal__content .h3wv-design {
  color: #873b53;
  margin-bottom: 20px !important;
  padding: 0 !important;
  font-size: clamp(18px, 3vw, 22px);
  font-family: 'Noto Serif JP', serif;
}

/* 紹介エリア */
.map-modal__content .introductionbox {
  width: 100%;
}

/* 映像ボックス */
.map-modal__content .moviebox {
  margin-bottom: 30px;
  width: 100%;
}

.map-modal__content .moviebox iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 8px;
}

/* ギャラリー画像（2x2グリッド） */
.map-modal__content .introductionbox01 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.map-modal__content .introductionbox01.one-image {
  grid-template-columns: 1fr;
}

/* 3枚の時のみ3列 */
.map-modal__content .introductionbox01.three-images {
  grid-template-columns: 1fr 1fr 1fr;
}

.map-modal__content .introduction-img {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.map-modal__content .introductionbox01.one-image .introduction-img {
  height: 250px;
  aspect-ratio: auto;
}

.map-modal__content .introduction-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 紹介文 */
.map-modal__content .introductionbox02 p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

/* ワインリスト */
.map-modal__content .wlistbox {
  padding: 24px clamp(16px, 3vw, 32px);
  border: 1px solid #cbb1c9;
  border-radius: 8px;
}

.map-modal__content .wine-item {
  margin: 8px 0;
}

.map-modal__content .wine-kind {
  font-size: 16px;
  font-weight: bold;
  color: #873b53;
  cursor: pointer;
  padding: 10px 10px 10px 32px;
  position: relative;
  transition: opacity 0.3s;
}

.map-modal__content .wine-kind:hover {
  opacity: 0.7;
}

.map-modal__content .wine-kind::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #873b53;
  position: absolute;
  top: 50%;
  left: 2%;
  margin-top: -4px;
  transform: rotate(-90deg);
  transition: transform 0.3s;
}

.map-modal__content .wine-kind.is-open::before {
  transform: rotate(0deg);
}

.map-modal__content .wine-name {
  display: none;
  padding: 0 16px;
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
  color: #555;
}

/* 栽培品種・販売情報 */
.map-modal__content .varietiesbox p,
.map-modal__content .salebox p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* サービスリスト */
.map-modal__content .servicebox {
  padding: 0;
}

.map-modal__content .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-modal__content .service-list li {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  color: #873b53;
  position: relative;
  cursor: pointer;
}

.map-modal__content .service-list li i {
  font-size: 26px;
  margin-right: 0;
  color: #873b53;
  width: 50px;
  height: 50px;
  border: 1px solid #cbb1c9;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 4px;
}

/* サービスツールチップ */
.map-modal__content .service-list li .service-name {
  visibility: hidden;
  background-color: #873b53;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 10;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  pointer-events: none;
}

.map-modal__content .service-list li .service-name::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #873b53 transparent;
}

.map-modal__content .service-list li:hover .service-name {
  visibility: visible;
  opacity: 1;
}

/* フリースペース */
.map-modal__content .service-free {
  margin-top: 16px;
}

.map-modal__content .service-subtitle {
  font-size: 13px;
  font-weight: bold;
  color: #873b53;
  margin-bottom: 4px;
  display: block;
}

.map-modal__content .service-free p {
  font-size: 14px;
  margin-bottom: 0;
  color: #333;
}

/* アイコン説明リンク */
.map-modal__content .service-description-link {
  margin-top: 12px;
  text-align: right;
}

.map-modal__content .service-description-link a {
  font-size: 13px;
  color: #873b53;
  display: inline-block;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #cbb1c9;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.map-modal__content .service-description-link a:hover {
  background: rgba(135, 59, 83, 0.05);
}

.map-modal__content .service-description-link a:active {
  background: rgba(135, 59, 83, 0.1);
}

/* 基本情報 */
.map-modal__content .accessbox {
  display: block;
}

.map-modal__content .accessbox01,
.map-modal__content .accessbox02 {
  width: 100%;
}

.map-modal__content .accessbox01 {
  margin-top: 16px;
}

.map-modal__content .accessbox01 iframe {
  height: 100%;
  min-height: 250px;
  border-radius: 8px;
}

.map-modal__content .access-childbox {
  display: flex;
  gap: 20px;
  margin: 8px 0;
  padding: 10px 16px;
}

.map-modal__content .access-childbox:not(:last-of-type) {
  border-bottom: 1px solid #cbb1c9;
}

.map-modal__content .access-childbox p {
  margin: 0;
}

.map-modal__content .access-childbox p:first-child {
  width: 100px;
  font-weight: bold;
  flex-shrink: 0;
  color: #873b53;
}

.map-modal__content .access-content {
  color: #333;
  font-size: 14px;
}

.map-modal__content .access-note {
  font-size: clamp(11px, 1.5vw, 13px) !important;
  line-height: 1.6;
  margin: 16px 0;
  color: #666;
}

/* SNSリンク */
.map-modal__content .wvlink-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  max-width: 100%;
  margin: 0;
}

.map-modal__content .wvlink-container .wvlink-area {
  width: calc((100% - 32px) / 3);
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.map-modal__content .wvlink-area a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  min-width: auto;
  border-radius: 50%;
  height: fit-content;
  aspect-ratio: 1/1;
  background: none;
  border: 1px solid #873b53;
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 700;
  color: #873b53;
  box-shadow: none;
  padding: 6px;
  transition: 0.3s;
  text-decoration: none;
}

.map-modal__content .wvlink-area a:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -24px;
  width: 32px;
  height: 1px;
  background-color: #873b53;
  margin: auto 0;
  transition: 0.3s;
}

.map-modal__content .wvlink-area a:after {
  content: '';
  width: 12px;
  height: 12px;
  border: 1px solid #873b53;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
  transform-origin: top right;
  position: absolute;
  top: 50%;
  right: -26px;
  transition: 0.3s;
}

.map-modal__content .wvlink-area a:hover {
  background-color: #873b53;
  color: #ffffff;
}

.map-modal__content .wvlink-area a:hover:before {
  right: -30px;
}

.map-modal__content .wvlink-area a:hover:after {
  right: -32px;
}

.map-modal__content .button__design01 {
  padding-right: 16px;
}

/* ルート案内ボックス */
.map-modal__content .route-guide-box {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(135, 59, 83, 0.08) 0%, rgba(203, 177, 201, 0.15) 100%);
  border-radius: 12px;
}

.map-modal__content .route-guide-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.map-modal__content .route-guide-qr {
  flex-shrink: 0;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-modal__content .route-guide-qr img {
  display: block;
}

.map-modal__content .route-guide-info {
  flex: 1;
}

.map-modal__content .route-guide-title {
  font-size: 16px;
  font-weight: bold;
  color: #873b53;
  margin-bottom: 8px;
}

.map-modal__content .route-guide-note {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* アイコン説明モーダル */
.service-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.service-modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 32px;
  border: 1px solid #888;
  width: 90%;
  max-width: 450px;
  border-radius: 10px;
  position: relative;
}

.service-modal-close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.service-modal-close:hover {
  color: #333;
}

.service-modal-title {
  margin-top: 0 !important;
}

.service-modal.active {
  display: flex;
}

/* QRコードモーダル専用スタイル */
.qr-modal-content {
  text-align: center;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  margin: 20px 0;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.qr-code-container img {
  display: block;
}

.qr-code-instruction {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.modal-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-service-list li {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: 16px 0;
  color: #333;
}

.modal-service-list li:last-child {
  margin-bottom: 0;
}

.modal-service-list li i {
  width: 28px;
  text-align: center;
  margin-right: 12px;
  color: #cbb1c9;
  font-size: 20px;
}

/* レスポンシブ */
@media screen and (max-width: 700px) {
  .map-modal__content .wvtitle-area::before {
    width: 110px;
    height: 110px;
  }

  .map-modal__content .introductionbox01 {
    grid-template-columns: 1fr 1fr;
  }

  .map-modal__content .wvlink-container .wvlink-area {
    width: calc((100% - 16px) / 2);
  }

  .map-modal__content .wvlink-area a {
    width: 90px;
    font-size: 12px;
  }

  .map-modal__content .access-childbox {
    gap: 10px;
    padding: 8px 0;
  }

  .service-modal-content {
    margin: 20% auto;
    padding: 20px;
  }
}

/* ========================================
   タグリスト & ピン選択状態
   ======================================== */

/* 右側: タグリストセクション（2カラム常時表示） */
.map-tag-section {
  flex: 0 0 auto;
  width: 30%;
  min-width: 0;
  height: 80%;
  z-index: 10;
  padding: 0 clamp(12px, 1.5vw, 20px) clamp(16px, 2vh, 24px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vh, 20px);
  box-sizing: border-box;
}

/* トグルボタン非表示（2カラム常時表示のため） */
.map-tag-toggle {
  display: none;
}

/* タグカテゴリ（アコーディオン） */
.map-tag-category {
  margin-bottom: 0;
}

.map-tag-category-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(14px, 1.6vh, 18px);
  font-weight: 700;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.5px;
  padding: clamp(12px, 1.5vh, 16px) clamp(10px, 1.2vw, 14px);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 5;
}

.map-tag-category-label:active {
  transform: scale(0.95);
  filter: brightness(0.85);
}

/* アコーディオン矢印 */
.map-tag-category-label::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
}

/* 開いた状態の矢印 */
.map-tag-category.is-open .map-tag-category-label::after {
  transform: rotate(180deg);
}

/* ワイナリーカテゴリ - サイト統一のワインカラー */
.map-tag-category--winery .map-tag-category-label {
  background: linear-gradient(135deg, #722F37 0%, #873b53 100%);
  box-shadow: 0 2px 8px rgba(114, 47, 55, 0.3);
}

.map-tag-category--winery .map-tag-category-label:hover {
  box-shadow: 0 4px 12px rgba(114, 47, 55, 0.45);
}

/* ヴィンヤードカテゴリ - 上部タブと同じ配色 */
.map-tag-category--vineyard .map-tag-category-label {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.25);
}

.map-tag-category--vineyard .map-tag-category-label:hover {
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
}

/* タグアイテムコンテナ - 縦並び（アコーディオン） */
.map-tag-items {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-left: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* 開いた状態 */
.map-tag-category.is-open .map-tag-items {
  display: flex;
  max-height: 1000px;
}

/* タグボタン共通 */
.map-tag {
  width: 100%;
  padding: clamp(10px, 1.2vh, 14px) clamp(14px, 1.5vw, 20px);
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: clamp(12px, 1.3vh, 15px);
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  box-sizing: border-box;
}

.map-tag:active {
  transform: scale(0.95);
  filter: brightness(0.85);
}

/* ワイナリータグ */
.map-tag--winery {
  background: linear-gradient(135deg, #722F37 0%, #5a252c 100%);
  color: #fff;
  border-color: #722F37;
}

.map-tag--winery:hover {
  background: linear-gradient(135deg, #8a3a44 0%, #722F37 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(114, 47, 55, 0.4);
}

/* ヴィンヤードタグ */
.map-tag--vineyard {
  background: linear-gradient(135deg, #228B22 0%, #1a6b1a 100%);
  color: #fff;
  border-color: #228B22;
}

.map-tag--vineyard:hover {
  background: linear-gradient(135deg, #2aa32a 0%, #228B22 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 139, 34, 0.4);
}

/* タグ選択状態 */
.map-tag--active {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
  border-color: #fff;
}

.map-tag--active.map-tag--winery {
  background: linear-gradient(135deg, #a04550 0%, #8a3a44 100%);
}

.map-tag--active.map-tag--vineyard {
  background: linear-gradient(135deg, #32b532 0%, #2aa32a 100%);
}

/* 現在地タグ - 上部タブのビールカラーに合わせる */
.map-tag--current-location {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #fff;
  border-color: #f39c12;
  text-align: center;
}

.map-tag--current-location:hover {
  background: linear-gradient(135deg, #f5ab35 0%, #f39c12 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.map-tag--active.map-tag--current-location {
  background: linear-gradient(135deg, #f5ab35 0%, #f39c12 100%);
}

/* ========================================
   ピン選択状態
   ======================================== */

/* 選択されたピン - ハイライト */
.map-pin--selected {
  z-index: 50 !important;
  transform: translate(-50%, -100%) scale(1.4) !important;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.5)) !important;
  animation: pin-selected-pulse 1.5s ease-in-out infinite !important;
}

@keyframes pin-selected-pulse {
  0%, 100% {
    transform: translate(-50%, -100%) scale(1.4);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.5));
  }
  50% {
    transform: translate(-50%, -100%) scale(1.5);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)) drop-shadow(0 0 60px rgba(255, 215, 0, 0.7));
  }
}

/* 選択時に他のピンを薄く */
.map-pin--dimmed:not(.map-pin--selected) {
  opacity: 0.25 !important;
  filter: grayscale(50%) !important;
  pointer-events: none !important;
}

/* ========================================
   吹き出しラベル
   ======================================== */

.map-pin-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #722F37 0%, #873b53 100%);
  color: #fff;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: clamp(9px, 1vh, 11px);
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 60;
  box-shadow: 0 4px 16px rgba(114, 47, 55, 0.4);
  border: 1px solid rgba(203, 177, 201, 0.3);
}

/* 吹き出しの三角形 */
.map-pin-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #873b53;
}

/* ヴィンヤードの吹き出し色 */
.map-pin--vineyard .map-pin-label {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.4);
  border-color: rgba(39, 174, 96, 0.3);
}

.map-pin--vineyard .map-pin-label::after {
  border-top-color: #229954;
}

/* 左端寄りピン：ラベルを右にずらして見切れ防止 */
.map-pin[data-id="v14"] .map-pin-label,
.map-pin[data-id="w9"] .map-pin-label {
  left: 0;
  transform: translateX(0);
}

.map-pin[data-id="v14"] .map-pin-label::after,
.map-pin[data-id="w9"] .map-pin-label::after {
  left: 20px;
  transform: none;
}

/* 選択時に吹き出し表示 & クリック有効化 */
.map-pin--selected .map-pin-label {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

/* タグリスト レスポンシブ - スマホ向け（2カラム解除） */
@media screen and (max-width: 700px) {
  .map-content {
    flex-direction: column;
    height: auto;
  }

  .map-frame-container {
    flex: none;
    width: 100%;
    height: auto;
  }

  .map-tag-section {
    flex: none;
    width: 100%;
    height: auto;
    max-height: 40vh;
    flex-direction: column;
    gap: 16px;
    padding: 12px 16px;
  }

  .map-tag-category {
    min-width: auto;
  }

  .map-tag-items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .map-tag {
    width: auto;
    padding: 6px 12px;
    font-size: 11px;
  }

  .map-pin-label {
    font-size: 11px;
    padding: 8px 12px;
  }
}
