/*
 * Header & mobile-nav styles for tourgator-theme.
 *
 * Replaces getaway's qodef-header chain. Reproduces:
 *   - Sticky header (position: fixed)
 *   - Transparent on hero pages, solid white on scroll / non-hero pages
 *   - Hamburger -> fullscreen mobile menu
 *   - Brand-red accents (#d80000)
 */

/* 色・--tg-transition は style.css のグローバルトークンを参照する。
 * ここはヘッダー／モバイルナビ固有のレイアウト・オーバーレイ値のみ持つ。 */
:root {
	--tg-header-height: 64px;
	--tg-header-z: 100;
	--tg-mobile-nav-z: 200;
	--tg-color-overlay: rgba(17, 17, 17, 0.96);
}

/* ---- Skip link ---- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 8px 16px;
	background: var(--tg-color-bg);
	color: var(--tg-color-ink);
	z-index: 9999;
	clip: auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---- Header (desktop default = solid) ---- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--tg-header-height);
	z-index: var(--tg-header-z);
	background: var(--tg-color-bg);
	color: var(--tg-color-ink);
	border-bottom: 1px solid var(--tg-color-border-soft);
	transition: background-color var(--tg-transition),
	            color var(--tg-transition);
}

.site-header__inner {
	max-width: 1600px;
	margin: 0 auto;
	height: 100%;
	padding: 0 32px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}

.site-branding {
	margin: 0;
	line-height: 1;
	justify-self: start;
}

.site-branding__link {
	color: inherit;
	text-decoration: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 900;
	font-size: 1.5rem;
	letter-spacing: 0.02em;
	display: inline-block;
}

.site-branding__link img,
.custom-logo-link img {
	max-height: calc(var(--tg-header-height) - 24px);
	width: auto;
	display: block;
}

/* ---- Primary nav (desktop) ---- */
.site-header__nav {
	display: flex;
	justify-self: center;
}

.site-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 32px;
}

.site-header__menu li {
	list-style: none;
}

.site-header__menu a {
	color: inherit;
	text-decoration: none;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	transition: color var(--tg-transition), border-color var(--tg-transition);
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible {
	color: var(--tg-color-brand-soft);
	border-bottom-color: var(--tg-color-brand-soft);
}

/* ---- Hamburger (mobile only) ---- */
.site-header__hamburger {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
	width: 40px;
	height: 40px;
	flex-direction: column;
	justify-content: space-between;
	color: inherit;
	justify-self: end;
}

.site-header__hamburger-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform var(--tg-transition), opacity var(--tg-transition);
}

/* When mobile menu is open, force solid look on header (avoids white-on-white) */
body.tg-menu-open .site-header {
	background: var(--tg-color-bg);
	color: var(--tg-color-ink);
}

/* ---- Global: prevent 100vw breakouts (review pattern, tour cards) from causing
       horizontal scroll on Windows browsers (where 100vw includes scrollbar width).
       overflow-x: clip is preferred over hidden — does NOT break position: sticky
       in descendants. ---- */
html, body {
	overflow-x: clip;
}

/* ---- Body offset: header is fixed and always opaque, so push every page down ---- */
body {
	padding-top: var(--tg-header-height);
}

/* ---- No gap above first content / between sections / before footer ---- */
.site-main {
	margin: 0;
	padding: 0;
}
.page-content,
.site-main > article {
	margin: 0;
	padding: 0;
}

/* WPBakery (js_composer) injects default vertical spacing on every row /
   column / wpb_* wrapper. Tourgator's hand-coded sections inside
   [vc_raw_html] manage their own vertical rhythm, so neutralize VC's
   defaults globally to avoid white bands between sections. */
.wpb-content-wrapper,
.wpb-content-wrapper > .vc_row,
.wpb_row,
.wpb_content_element,
.wpb_text_column,
.wpb_raw_code,
.wpb_raw_html {
	margin: 0 !important;
}

.wpb-content-wrapper .vc_column-inner,
.wpb-content-wrapper .wpb_wrapper {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* HOME のメッセージ帯。テキストは「下のセクションの見出し」として近接配置する。
   上は前のセクションと分離するため大きく、下はカードと程よく分離する 24px。 */
.main-message {
	padding: 60px 0 24px 0 !important;
}

/* main-message が直前にあると上 padding は不要。下は元 40px のまま緩めに残す。 */
.gallery-section {
	padding: 0 10px 24px 10px !important;
}

/* travel-slider もメッセージ帯と密着させる（原典 margin:30px auto → 上を 0 に）。 */
.custom-slider-container-v4 {
	margin-top: 0 !important;
}

.site-footer {
	margin-top: 0;
}

/* ---- Mobile breakpoint ---- */
@media (max-width: 900px) {
	.site-header__inner {
		padding: 0 20px;
	}
	.site-header__nav {
		display: none;
	}
	.site-header__hamburger {
		display: flex;
		/* nav が display:none で消えると auto-place で col 2 に落ちるため、
		   3列目 (右端) に明示固定する */
		grid-column: 3;
		justify-self: end;
	}
}

/* ---- Mobile fullscreen menu ---- */
.mobile-nav {
	position: fixed;
	inset: 0;
	background: var(--tg-color-overlay);
	color: var(--tg-color-white);
	z-index: var(--tg-mobile-nav-z);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--tg-transition), visibility var(--tg-transition);
}

.mobile-nav[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
}

.mobile-nav__inner {
	text-align: center;
	padding: 32px;
	max-width: 90vw;
}

.mobile-nav__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	background: transparent;
	border: 0;
	color: var(--tg-color-white);
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
}

.mobile-nav__close:hover {
	color: var(--tg-color-brand);
}

.mobile-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mobile-nav__menu li {
	list-style: none;
}

.mobile-nav__menu a {
	color: var(--tg-color-white);
	font-family: 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color var(--tg-transition);
}

.mobile-nav__menu a:hover,
.mobile-nav__menu a:focus-visible {
	color: var(--tg-color-brand);
}

/* Body scroll lock when mobile menu is open */
body.tg-menu-open {
	overflow: hidden;
}

/* ---- Contact フォーム送信結果バナー ---- */
.tg-contact-notice {
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 14px 20px;
	border-radius: 6px;
	font-size: 0.95rem;
	text-align: center;
}
.tg-contact-notice--ok {
	background: #e7f6ec;
	color: #1a7f37;
	border: 1px solid #b7e1c2;
}
.tg-contact-notice--ng {
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c2c0;
}

/* ---- Footer ---- */
.site-footer {
	background: var(--tg-color-footer-bg);
	color: #e0e0e0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
	padding: 40px 20px;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
}

.footer-columns {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
}

.footer-columns h3.footer-title {
	font-size: 1.25rem;
	margin: 0 0 16px;
	color: var(--tg-color-white);
	font-weight: 500;
	text-align: center;
}

.footer-columns ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* <address> はブラウザ既定で斜体になるため、見た目を従来どおりに戻す。 */
.footer-columns address {
	font-style: normal;
	margin: 0;
}

.footer-columns li {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	margin-bottom: 12px;
	color: #cccccc;
	line-height: 1.6;
}

.footer-columns i {
	color: var(--tg-color-brand);
	font-size: 1.05em;
	margin-top: 0.25em;
	flex-shrink: 0;
}

.footer-columns a {
	color: inherit;
	text-decoration: underline;
}

.copyright {
	margin: 32px 0 0;
	font-size: 0.85em;
	color: var(--tg-color-subtle);
	text-align: center;
}

.copyright a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.footer-container {
		padding: 32px 16px;
	}
	.footer-columns {
		gap: 24px;
	}
}
