/* ========================================
   アクセスマップページ専用CSS
   ======================================== */

/* アクセス情報グリッド */
.access-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.access-info-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.access-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
  border-color: #D4AF37;
}

.access-info-card .info-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.access-info-card .info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #B8860B;
  margin: 0 0 1rem;
}

.access-info-card .info-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #555;
  margin: 0;
}

/* 徒歩ルート案内 */
.walking-route {
  padding: 4rem 0;
}

.route-step {
  margin: 3rem 0;
  padding: 3rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #D4AF37;
}

.step-number {
  background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.step-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #B8860B;
  margin: 0;
}

.step-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 写真ギャラリー */
.step-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.route-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.route-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

.route-image img.access-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: all 0.3s ease;
}

.route-image:hover img.access-photo {
  transform: scale(1.05);
}

/* Lightbox モーダル */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: zoomIn 0.3s ease;
}

.modal-content-wrapper img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: #fff;
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.modal-close:hover {
  background: #D4AF37;
  color: #fff;
  transform: rotate(90deg);
}

.modal-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* モバイル対応 */
@media (max-width: 767px) {
  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  
  .modal-caption {
    bottom: 10px;
    font-size: 0.875rem;
    padding: 0 1rem;
  }
}


/* 画像拡大モーダル */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-wrapper {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  animation: zoomIn 0.3s ease;
}

.modal-content-wrapper img {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(212, 175, 55, 0.8);
  transform: rotate(90deg);
}

.modal-caption {
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  margin-top: 1rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 1.5rem 1rem 1rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

/* ステップ説明 */
.step-description {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: #333;
}

.step-description p {
  margin-bottom: 1rem;
}

.step-description strong {
  color: #D4AF37;
  font-weight: 700;
}

.step-tip {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFFEF8 100%);
  border-left: 4px solid #D4AF37;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 1rem;
  color: #B8860B;
  border-radius: 8px;
}

/* アクセスノート */
.access-notes {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  background: #F8F8F8;
  padding: 1.5rem 2rem;
  border-radius: 12px;
}

.access-notes li {
  padding: 0.75rem 0;
  font-size: 1.0625rem;
  color: #333;
  line-height: 1.8;
}

.access-notes strong {
  color: #D4AF37;
  font-weight: 700;
}

.arrival-message {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #D4AF37;
  margin: 2rem 0 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #FFF9E6 0%, #FFFEF8 100%);
  border-radius: 12px;
}

/* Googleマップ */
.google-map-section {
  padding: 4rem 0;
  background: #fff;
}

.map-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
}

.map-note {
  text-align: center;
  margin: 2rem 0 0;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .access-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .route-step {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .step-number {
    min-width: auto;
    width: 100%;
  }

  .step-title {
    font-size: 1.375rem;
  }

  .step-image-gallery {
    grid-template-columns: 1fr;
  }

  .route-image img.access-photo {
    height: 250px;
  }

  .step-description {
    font-size: 1rem;
  }

  .access-notes {
    padding: 1.5rem 1rem;
  }
}

/* Lightbox（全画面表示） */
.access-lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.access-lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-caption {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  font-size: 1rem;
  padding: 1rem;
}

/* 拡大アイコン */
.route-image::after {
  content: '🔍';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.route-image:hover::after {
  opacity: 1;
}
