﻿/* ===== ヘッダー構造 ===== */
.header {
  position: fixed; /* ← fixedにしてスクロール時も常に上部に表示 */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 414px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
}

/* 中央揃え + 幅制限 */
.header-inner {
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 414px;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	padding-top: 0;
	padding-right: 6px;
	padding-bottom: 0;
	padding-left: 0px;
	border-bottom-width: 3px;
	border-bottom-style: solid;
	border-bottom-color: #F63;
}

/* ② ロゴ ─ 中央固定 */
.logo{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  z-index:1001;
}
.logo-img{
  width:160px;
  height:auto;
}



/* ③ 電話アイコン ─ 右端固定 */
.tel-icon{
  position:absolute;         /* 親 header を基準に固定 */
  right:0px;
  top:50%;
  transform:translateY(-50%);
  z-index:1001;
}
.tel-icon img{
  width:52px;
  height:52px;
}

/* メニューボタン */
.menu-btn{
  order: -1;                 /* flex 順序を先頭に */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background: transparent;
  z-index: 1001;
}
.menu-label{
  font-size:.7rem;
  margin-top:1px;
  letter-spacing:.05em;
  color:#000;
}

/* 普段の3本線の幅は28px */
.menu-btn span {
	display: block;
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background-color: #000;
	transition: all 0.3s ease;
	transform-origin: center;
	margin-top: 3px;
	margin-right: 0;
	margin-bottom: 3px;
	margin-left: 0;
}

/* 押した時に幅を狭めて✕を作る */
.menu-btn.open span:nth-child(1) {
  width: 20px;
  transform: rotate(45deg) translate(4px, 4px); /* ← ここが大事 */
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.open span:nth-child(3) {
  width: 20px;
  transform: rotate(-45deg) translate(8.5px, -8.5px); /* ← ここも */
}

/* ===== オーバーレイメニュー ===== */
.menu-overlay {
  position: fixed;
  flex-direction: column; /* ← ここを追加 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 999;
  overflow-y: auto;        /* ← 追加 */
  align-items: flex-start; /* ← 中央寄せをやめて上から表示する */
  padding-top: 80px;       /* ← 画面上部との余白 */
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.menu-container {
	text-align: center;
	max-width: 400px;
	width: 100%;
	padding-top: 30px;
	padding-right: 20px;
	padding-bottom: 0px;
	padding-left: 20px;
	margin-right: auto;
	margin-left: auto;
}



.menu-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-overlay li {
  margin: 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #555;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-overlay li:hover {
  transform: translateX(4px);
  opacity: 0.9;
}

.menu-overlay a {
  color: #ffffff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color 0.3s ease;
  justify-content: center; /* ← これを追加 */
}

.menu-overlay a i {
  font-size: 0.95rem;
  width: 24px;
}

.menu-overlay a span {
  display: inline-block;
}

.menu-overlay a:hover {
  color: #3fc1c9;
}

.menu-overlay.active li:nth-child(1) { animation-delay: 0.1s; }
.menu-overlay.active li:nth-child(2) { animation-delay: 0.2s; }
.menu-overlay.active li:nth-child(3) { animation-delay: 0.3s; }
.menu-overlay.active li:nth-child(4) { animation-delay: 0.4s; }

.menu-overlay a {
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.menu-overlay a:hover {
	color: #FF6633;
}

.menu-message {
	width: 90%;
	max-width: 360px;
	margin-top: 20px;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid #ccc;
	border-radius: 10px;
	color: #FFFFCC;
	font-size: 0.95rem;
	text-align: center;
	line-height: 1.6;
	font-weight: 500;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 60px; /* ← 追加しておくと余裕あり */
}

/* フェードアニメーション */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* メニューを開いてる間スクロール禁止 */
.no-scroll {
  overflow: hidden;
}
