@charset "utf-8";
/* CSS Document */

/* 視認性重視 ヘッダー・ナビ */
.retro-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 120;
  background: var(--retro-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 80px;
  transition: all 0.3s ease;
}

/* スクロール時（視認性の維持） */
.retro-header.scrolled {
  background: rgba(0, 61, 130, 0.96);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.retro-header ul li {
  list-style: none !important;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 25px;
  position: relative;
}

/* ロゴ */
.retro-logo {
  font-weight: 700;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.retro-logo img {
  height: 50px;
  transition: all 0.3s ease;
}

/* メニュー（PC） */
.retro-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.retro-menu li a {
  display: inline-block;
  padding: 10px 15px;
  color: white;
  font-size: 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none !important;
  font-weight: 500;
}

.retro-menu li a:hover,
.retro-menu li a:focus {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  outline: none;
}

/* ハンバーガー */
.retro-hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retro-hamburger:hover {
  background: rgba(255, 255, 255, 0.3);
}

.retro-hamburger:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.hamburger-icon {
  font-size: 1.4rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ===============================
   レスポンシブ（900px以下）
================================ */
@media (max-width: 900px) {

  .retro-header {
    height: 70px;
  }

  .retro-menu {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    list-style: none;

    /* 非表示状態 */
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-radius: 8px;
    padding: 0;
  }

  .retro-menu.active {
    /* ★ 修正ポイント */
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    opacity: 1;
    padding: 10px 0;
  }

  .retro-menu li {
    width: 100%;
    margin: 0;
  }

  .retro-menu li a {
    display: block;
    width: calc(100% - 40px);
    margin: 5px 20px;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: var(--retro-primary);
    text-align: left;
    border-radius: 5px;
    background: var(--retro-bg-light);
  }

  .retro-menu li a:hover {
    background: var(--retro-bg-accent);
    color: var(--retro-primary);
  }

  .retro-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .retro-logo img {
    height: 50px;
  }

  .nav-inner {
    padding: 8px 20px;
  }
}

/* ===============================
   600px以下（スマホ）
================================ */
@media (max-width: 600px) {

  .retro-header {
    height: 60px;
  }

  .retro-menu {
    top: 60px;
    left: 10px;
    right: 10px;
  }

  .retro-menu.active {
    max-height: calc(100vh - 80px);
  }

  .retro-logo img {
    height: 30px;
  }

  .retro-hamburger {
    width: 40px;
    height: 40px;
  }

  .hamburger-icon {
    font-size: 1.2rem;
  }

  .nav-inner {
    padding: 6px 15px;
  }
}
