/* header.css - AdveCamp WordPress Theme */

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

html, body {
	padding: 0;
	margin: 0;
	font-family: "Noto Serif JP", "Noto Serif", serif;
	height: 100%;
	overflow-x: hidden;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
	width: 0;
	height: 0;
	background: transparent;
}

/* ========================================
   お知らせバー
   ======================================== */
#announcement-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	z-index: 10002;
	background-color: #2c5530;
	color: #ffffff;
	text-align: center;
	font-size: 0.85rem;
	padding: 8px 20px;
	letter-spacing: 0.03em;
	transition: transform 0.3s ease, background-color 0.4s ease, opacity 0.2s ease;
	display: none; /* デフォルト非表示 / カスタマイザーで制御 */
}

#announcement-bar.hidden {
	transform: translateY(-100%);
}

#announcement-bar.is-transparent {
	background-color: transparent;
}

#announcement-bar.menu-open {
	opacity: 0;
	pointer-events: none;
}

#announcement-bar a {
	color: #ffffff;
	text-decoration: underline;
}

/* ========================================
   ヘッダー
   ======================================== */
header {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 80px;
	padding: 0 20px;
	z-index: 10001;
	justify-content: space-between;
	align-items: center;
	background-color: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: background-color 0.4s ease, box-shadow 0.4s ease, opacity 0.2s ease;
}

header.header-transparent {
	background-color: transparent;
	box-shadow: none;
}

header.header-transparent .logo {
	color: #ffffff;
}

header.menu-open {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ========================================
   ロゴ
   ======================================== */
.logo {
	font-size: 24px;
	font-weight: bold;
	color: #000000;
	transition: color 0.4s ease;
}

/* カスタムロゴ画像 */
.custom-logo {
	height: 50px;
	width: auto;
}

/* ========================================
   ハンバーガー
   ======================================== */
.hamburger {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	width: 30px;
	height: 30px;
	position: fixed;
	right: 20px;
	top: 25px;
	z-index: 10006;
	color: #333;
}

.hb-icon {
	position: absolute;
	width: 30px;
	height: 30px;
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.hb-open  { opacity: 1; transform: rotate(0deg); }
.hb-close { opacity: 0; transform: rotate(-45deg); }

.hamburger.active .hb-open  { opacity: 0; transform: rotate(45deg); }
.hamburger.active .hb-close { opacity: 1; transform: rotate(0deg); }

header.header-transparent ~ .hamburger,
.hamburger.is-transparent {
	color: #ffffff;
}

.hamburger.active {
	color: #ffffff !important;
}

/* ========================================
   ナビゲーション
   ======================================== */
nav {
	display: none;
	position: fixed;
	top: 80px;
	right: 0;
	width: 250px;
	height: calc(100vh - 80px);
	background-color: transparent;
	box-shadow: none;
	z-index: 10000;
	overflow-y: auto;
	transition: background-color 0.4s ease;
}

nav.active {
	display: block;
}

.menu-item a {
	color: #ffffff !important;
}

.menu-item a:hover {
	color: rgba(255, 255, 255, 0.7) !important;
}

.menu-item {
	border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

nav ul {
	list-style: none;
	padding: 30px 20px;
}

.menu-item {
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 15px;
}

.menu-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.menu-item a {
	text-decoration: none;
	font-weight: 500;
	font-size: 1.1rem;
	transition: color 0.3s ease;
	display: block;
	padding: 10px 0;
}

/* ========================================
   オーバーレイ
   ======================================== */
.nav-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
}

.nav-overlay.active {
	display: block;
}

/* ========================================
   フルスクリーンセクション: 暗オーバーレイ
   ======================================== */
.fullscreen-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
	pointer-events: none;
}

/* ========================================
   ページコンテナ (汎用ページ)
   ======================================== */
.page-container {
	max-width: 800px;
	margin: 120px auto 60px;
	padding: 0 20px;
	line-height: 1.8;
}

.page-header {
	border-bottom: 2px solid #333;
	margin-bottom: 40px;
	padding-bottom: 10px;
}

.page-header h1 {
	font-size: 1.8rem;
}

.article-content h2 {
	margin-top: 30px;
	font-size: 1.5rem;
}

.article-content p {
	margin-bottom: 20px;
	line-height: 1.8;
}

/* ========================================
   お問い合わせフォーム
   ======================================== */
.contact-form label {
	display: block;
	font-weight: bold;
	margin-top: 24px;
	margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
}

.contact-form textarea {
	height: 160px;
	resize: vertical;
}

.contact-form .required {
	color: #c0392b;
	font-size: 0.8em;
	margin-left: 6px;
}

.submit-btn {
	display: inline-block;
	margin-top: 30px;
	padding: 14px 48px;
	background: #2c3e50;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s;
}

.submit-btn:hover {
	background: #1a252f;
}

.contact-errors {
	background: #fdf0ef;
	border: 1px solid #e74c3c;
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 24px;
	color: #c0392b;
}

.contact-errors ul {
	margin: 8px 0 0 16px;
}

.contact-success {
	background: #eafaf1;
	border: 1px solid #2ecc71;
	border-radius: 6px;
	padding: 20px 24px;
	color: #1e8449;
}

.form-note {
	font-size: 0.85em;
	color: #666;
	margin-top: 6px;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (min-width: 768px) {
	nav { width: 300px; }
	.menu-item a { font-size: 1.2rem; }
	.logo { margin-left: 40px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
	nav { width: 280px; }
}

@media (max-width: 480px) {
	.hamburger { right: 15px; }
	nav { width: 100%; }
	.logo { margin-left: 15px; font-size: 20px; }
	.menu-item a { font-size: 1rem; }
}

@media screen and (min-width: 801px) {
	.telBtn { pointer-events: none; }
}
