﻿@charset "utf-8";

/* ============================================================
   SP ハンバーガーメニュー
   ============================================================ */

/* --- チェックボックスは非表示 --- */
#menu__toggle {
  display: none;
}

/* --- SP ヘッダーバー --- */
.sp-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  background: #003366;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* --- SPロゴ --- */
.sp-logo img {
  height: 15px;
  width: auto;
  display: block;
}

/* --- ハンバーガーボタン（3本線） --- */
.menu__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.menu__btn span {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.menu__btn span::before,
.menu__btn span::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu__btn span::before {
  top: -7px;
}

.menu__btn span::after {
  top: 7px;
}

/* --- ハンバーガー → × アニメーション --- */
#menu__toggle:checked~.sp-header-bar .menu__btn span {
  background-color: transparent;
}

#menu__toggle:checked~.sp-header-bar .menu__btn span::before {
  top: 0;
  transform: rotate(45deg);
  background-color: #ffffff;
}

#menu__toggle:checked~.sp-header-bar .menu__btn span::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: #ffffff;
}

/* --- オーバーレイ（背景暗転） --- */
.menu__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#menu__toggle:checked~.menu__overlay {
  display: block;
  opacity: 1;
}

/* --- スライドインメニュー本体 --- */
.menu__box {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #003366 0%, #001f3f 100%);
  z-index: 1001;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

#menu__toggle:checked~.menu__box {
  right: 0;
}

/* --- メニューボックスヘッダー --- */
.menu__box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.menu__box-logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* --- 閉じるボタン --- */
.menu__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.menu__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu__close span {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

/* --- メニューリスト --- */
.menu__list {
  list-style: none;
  margin: 0;
  padding: 0.5em 0;
  flex: 1;
}

.menu__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.menu__list li:last-child {
  border-bottom: none;
}

/* --- メニューアイテム --- */
.menu__item {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.9em 1.4em;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  letter-spacing: 0.05em;
}

.menu__item:hover,
.menu__item:active {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding-left: 1.8em;
}

.menu__item i {
  width: 1.2em;
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.menu__item:hover i {
  color: #358cac;
}

/* --- SPヘッダー分の余白 --- */
@media only screen and (max-width: 768px) {
  body {
    padding-top: 56px;
  }
}

/* --- PC表示時はSP用メニューを非表示 --- */
@media only screen and (min-width: 769px) {
  #for-sp {
    display: none !important;
  }
}