.map-container {
  max-width: 1400px;
  margin: 0 auto;
}

.map-main-title {
  text-align: center;
  font-size: 32px;
  color: #0059b2;
  margin-bottom: 50px;
  position: relative;
}

.map-main-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(45deg, #0059b2, #0073e6);
  border-radius: 2px;
}

.map-section {
  margin-bottom: 60px;
}

.map-section-header {
  background: linear-gradient(135deg, #0059b2 0%, #0073e6 100%);
  color: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 89, 178, 0.3);
  position: relative;
  overflow: hidden;
}

.map-section-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.map-section-header:hover::before {
  right: 100%;
}

.map-section-header.map-office-header::after {
  content: '🏢';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}

.map-section-header.map-factory-header::after {
  content: '🏭';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}

.map-cards-container {
  background: white;
  border-radius: 0 0 15px 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 89, 178, 0.15);
}

.map-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.map-card.map-active {
  background-color: #f6d9f3; /* お好みの色に変更 */
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.map-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  border: 2px solid #e8f2ff;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.map-card:hover {
  cursor: pointer;
}

.map-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #0059b2, transparent);
  transition: left 0.5s ease;
}

.map-card:hover::before {
  left: 100%;
}

.map-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #0059b2;
  box-shadow: 0 15px 40px rgba(0, 89, 178, 0.25);
}

.map-card-header {
  background: linear-gradient(135deg, #0059b2 0%, #003d7a 100%);
  color: white;
  padding: 20px;
  position: relative;
}

.map-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0073e6, #0059b2, #0073e6);
}

h3.map-card-title {
  color: #fff !important;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.map-card-body {
  padding: 25px;
}

.map-info-item {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

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

.map-info-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.map-address-icon {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230059b2"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>') center/cover;
}

.map-phone-icon {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230059b2"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>') center/cover;
}

.map-fax-icon {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12.5h-8v-2h8v2zm0-3h-8v-2h8v2zm2-2.5h-2v-2h2v2z"/></svg>') center/cover;
}

.map-info-text {
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

.map-company-name {
  color: #0059b2;
  font-weight: 600;
  margin-bottom: 5px;
}

.map-tel-text {
  color: #0059b2;
  font-weight: 600;
}

.map-fax-text {
  color: #666;
}

/* 工場カード用の特別スタイル */
.map-factory-card .map-card-header {
  background: linear-gradient(135deg, #0059b2 0%, #004080 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .map-section {
    margin-top: 30px;
  }
  .map-main-title {
      font-size: 24px;
      margin-bottom: 30px;
  }
  
  .map-section-header {
      font-size: 20px;
      padding: 15px;
  }
  
  .map-cards-grid {
      grid-template-columns: 1fr;
  }
  
  .map-cards-container {
      padding: 20px;
  }
}

@media (max-width: 480px) {
  .map-card-body {
      padding: 20px;
  }
  
  .map-section-header::after {
      display: none;
  }
}
/* 地図関連のスタイル */
.map-map-wrapper {
  position: relative; /* ピンの配置の基準 */
  width: 100%;
 /* max-width: 800px;  地図の最大幅 */
  margin: 20px auto; /* 中央寄せ */
}

.map-map-image {
  width: 100%;
  height: auto;
  display: block;
}

.map-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: rgb(21, 0, 255);
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%); /* ピンの中心を基準に配置 */
  opacity: 0.7;
  transition: background-color 0.3s ease; /* 色の変化を滑らかにする */
  animation: map-pulse 1.5s infinite alternate; /* アニメーションを適用 */
}

.map-pin.map-active {
  background-color: rgb(255, 0, 191); /* 点灯時の色 */
  opacity: 1;
  box-shadow: 0 0 5px yellow; /* 光彩効果 */
  animation: map-pulse2 1.5s infinite alternate; /* アニメーションを適用 */
}

/* ピンの膨張アニメーション */
@keyframes map-pulse {
  0% {
      transform: translate(-50%, -50%) scale(1);
  }
  100% {
      transform: translate(-50%, -50%) scale(1.2);
  }
}
@keyframes map-pulse2 {
  0% {
      transform: translate(-50%, -50%) scale(1);
  }
  100% {
      transform: translate(-50%, -50%) scale(1.35);
  }
}


/* 必要に応じてピンのデザインを調整 */
.map-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}