﻿@charset "utf-8";
/* CSS Document */

@media screen and (max-width:600px){

/* --- 基本 --- */
.site-nav { position: relative; z-index: 100; }

/* ハンバーガー（横線2本を縦積み→×） */
.hamburger{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1100; /* メニューより上（最前） */
}
.hamburger__bar{
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}

/* 開いたときは中央で× */
.hamburger.is-open .hamburger__bar{
  position: absolute;
  left: 50%;
  top: 50%;
}
.hamburger.is-open .hamburger__bar:first-child{
  transform: translate(-50%, -50%) rotate(45deg);
}
.hamburger.is-open .hamburger__bar:last-child{
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ヘッダーのロゴとボタン */
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000; /* ロゴ帯を最前にして重なり防止 */
  background: linear-gradient(
			to right,
			rgba(128, 128, 128, 0.6) 0%,
			rgba(128, 128, 128, 0.6) 51%,
			rgba(51, 60, 82, 0.5) 75%,
			rgba(0, 0, 4, 0.5) 100%
		);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
  height: 100%; /* 高さを固定しておくとずれにくい */
}

/* メニュー：ヘッダーより下から出す */
.header__link{
  position: fixed;
  top: 40px; /* ヘッダー高さ分ずらす */
  right: 0;
  width: min(82vw, 340px);
  height: calc(98dvh - 60px);
  background: #192B3D;
  box-shadow: -8px 0 24px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 77px 50px 32px;
  overflow-y: auto;
}
.header__link.is-open{
  transform: translateX(0);
}

/* メニュー内リンク */
.header__link ul{
  display: grid;
  gap: 28px;
}
.header__link a{
  display: block;
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: clamp(18px, 5vw, 22px);
}

/* CONTACTボタン */
.header__contact a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 30px;
	width: 100%;
  border: 1px solid #fff;
  background: #fff;
  color: #192B3D;
  font-weight: 700;
}

/* メニュー開いている間のスクロール固定 */
body.menu-open{
  overflow: hidden;
  touch-action: none;
}

}

@media screen and (min-width:601px){
	#global-nav{
		display: none;
	}
}