@charset "utf-8";

/* 基本設定 */
body {
  font-family: "Noto Serif JP", serif;
  color: #111;
  background-color: #fff;
  line-height: 1.8;
}

/* 背景オーバーレイ */
.access-backimage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/img/hasu-kuro.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  opacity: 0.2;
  z-index: -1;
}

/* ヒーローセクション（koukyouzi の hero を参考） */
.hero {
  height: 400px;
  background-image: url(../img/access/top.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-shadow: 1px 1px 10px rgba(17,17,17,0.8);
}

.hero h1 {
  font-size: 45px;
  font-weight: bold;
}

.hero p {
  font-size: 16px;
  margin-top: -10px;
}

/* マップセクション */
.map {
  max-width: 900px;
  width: 90%;
  margin: 2rem auto;
}

.map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* GPSナビゲーションボタン */
.gpsnavi {
  max-width: 250px;
  margin: 1.5rem auto;
  background-color: #e6b422;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 50px;
  border-radius: 15px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.gpsnavi:hover {
  background-color: #d9a62e;
}

/* 地図画像（chizu） */
.chizu {
  max-width: 900px;
  width: 90%;
  margin: 2rem auto;
  border: 2px solid #c0c6c9;
}

/* 移動方法セクション（idou） */
.idou {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  width: 90%;
  margin: 2rem auto;
}

.idou > div {
  background-color: #e7e7eb;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.idou > div:hover {
  transform: scale(1.02);
}

/* クリック時のアクティブ状態 */
.idou > div.active {
  border: 2px solid #e6b422;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 初期状態（スクロール前は非表示状態） */
[data-fade] {
  opacity: 0;
  transform: translateY(20px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none; /* 初期状態は非表示 */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

/* レスポンシブ */
@media (max-width: 800px) {
  .hero {
    height: 200px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 14px;
  }
  .map iframe {
    height: 250px;
  }
  .idou {
    grid-template-columns: 1fr;
  }
}
