@charset "UTF-8";

/* まずは全体の基本 */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}

/* 競合を避けるため、古い #nav の横並び指定は削除してください */
/* #nav { display:flex; gap:12px; } ←これを削除 */

/* ロゴ/タグはそのままでOK。ナビの上に重なるようz-indexは低めにしておく */
.logo {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  position: fixed;
  top: 0;
  left: 2%;
  z-index: 900;
  background: transparent;
  margin: 0;
  padding: 0;
}

.tag {
  position: fixed;
  top: 40px;
  left: 2%;
  font-size: clamp(14px, 2vw, 18px);
  color: #666;
  margin: 10px;
  padding: 5px 10px;
  z-index: 900;
  background: transparent;
}

/* ハンバーガー */
.hamburger {
  position: fixed;
  top: 30px;
  right: 20px;
  width: 44px;
  height: 32px;
  color: #333;
  cursor: pointer;
  z-index: 1600; /* ナビより上（クリック可能に） */
  -webkit-tap-highlight-color: transparent;
}
.hamburger * {
  pointer-events: none;
}
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease, background-color 0.25s ease;
}
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: calc(50% - 1.5px);
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.6);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .hamburger span {
    transition: none;
  }
}

/* オフキャンバスNav：transformで完全に隠す */
#nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100dvh;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 80px 20px 24px;
  transform: translateX(100%); /* ←初期状態は完全に画面外 */
  transition: transform 0.3s ease-in-out;
  z-index: 1500; /* ロゴより上、ハンバーガーより下 */
  pointer-events: none; /* 閉じてる間はクリック不可 */
}
#nav.active {
  transform: translateX(0);
  pointer-events: auto;
}
#nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #1f2937;
  background: transparent;
  transition: color 0.6s ease, background 0.6s ease;
}
#nav a:hover,
#nav a:focus-visible {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
  outline: none;
}
#nav a:active {
  background: rgba(14, 165, 233, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  #nav,
  #nav a {
    transition: none;
  }
}

/* 背景用オーバーレイ：ナビ展開時だけ表示（クリックで閉じられる） */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1400; /* ナビの下、ページの上 */
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* マップ中央寄せはこれでOK */
.access-map {
  display: flex;
  justify-content: center;
  margin: 100px 0;
}
.access-map iframe {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* ナビオープン時に背景スクロールを止める */
.body-lock {
  overflow: hidden;
}
.access-map {
  width: 100%; /* コンテナも幅いっぱい */
  margin: 100px 0; /* 上下の余白は好みで */
}

.access-map iframe {
  width: 100%; /* 画面幅いっぱい */
  height: 800px; /* 高さは調整可 */
  display: block; /* 余白防止 */
}
@media screen and (max-width: 767px) {
  .access-map iframe {
    height: 300px; /* スマホでは少し低め */
  }
}
.footer-info {
  text-align: center;
  font-size: 24px;
}
.footer-right {
  text-align: center;
}
.social-links {
  text-align: center;
}
.footer-links {
  text-align: center;
}
