@charset "UTF-8";

/* =========================================
   設備情報ページ (Information) 特有のスタイル
   ========================================= */

.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.content-section {
  margin-bottom: 80px;
}

.content-section h3 {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 30px;
  border-left: 3px solid var(--gold);
  padding-left: 15px;
  font-family: "Yuji Syuku", serif;
}

/* 情報リスト */
.info-list {
  list-style: none;
  padding-left: 0;
}

.info-list li {
  padding: 12px 0 12px 25px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}

.info-list li:before {
  content: '◆';
  color: var(--gold);
  font-size: 0.8em;
  position: absolute;
  left: 0;
  top: 16px;
}

.info-list strong {
  color: var(--gold);
  font-weight: normal;
  font-family: "Shippori Mincho", serif;
}

/* マップギャラリー */
.map-gallery {
  display: flex;
  gap: 30px;
  justify-content: center;
  text-align: center;
  align-items: flex-start;
}

.map-item {
  flex: 1;
  background: rgba(0, 0, 0, 0.1);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-item h4 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-family: "Shippori Mincho", serif;
}

.map-item img {
  width: 100%;
  /* height: 400px; */
  height: auto;      /* ← これを追加（高さを幅に合わせて自動調整） */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.back-action {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .map-gallery {
    flex-direction: column;
  }
  
  .map-item img {
    height: auto;
  }
}



/* --- 画像拡大モーダル用のスタイル --- */

/* クリック可能な画像であることを示す */
.zoomable-img {
  cursor: zoom-in; /* 虫眼鏡カーソル */
  transition: opacity 0.3s;
}
.zoomable-img:hover {
  opacity: 0.8;
}

/* モーダルの背景（初期状態は非表示） */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9); /* 背景は濃い黒 */
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

/* アクティブになったら表示 */
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* 拡大画像 */
.modal-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* アスペクト比を保って画面に収める */
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}