/**
 * Tony Classic - 共通スタイルシート (common.css)
 *
 * ヘアーサロン トニー 独自クラシックテーマの共通UIスタイル定義
 * （リセット、変数、レイアウト、ヘッダー、ナビゲーション、フッター、CTA、ボタン、レスポンシブ）
 */

/* ==========================================================================
   1. 変数定義 & リセット
   ========================================================================== */
:root {
	--color-bg-dark: #000000;
	--color-bg-base: #111111;
	--color-bg-card: #1a1a1a;
	--color-text-main: #ffffff;
	--color-text-sub: #999999;
	--color-text-muted: #666666;
	--color-accent-gold: #dcbe84;
	--color-accent-hover: #c5a869;
	--color-border: #333333;
	--color-border-light: #222222;

	--font-heading: "Prata", "Noto Serif JP", serif;
	--font-heading-sans: "Muli", "Hiragino Sans", "Yu Gothic", "游ゴシック Medium", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-body: "Muli", "Hiragino Sans", "Yu Gothic", "游ゴシック Medium", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--header-height: 90px;
	--container-width: 1200px;
	--transition-smooth: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==========================================================================
   0. ローディング画面 (Site Preloader)
   ========================================================================== */
.site-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: #000000;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	pointer-events: all;
}

body.is-loaded .site-loader {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

body.is-loaded-complete .site-loader {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.site-loader {
		transition: none !important;
		display: none !important;
	}
	.site-loader-logo {
		animation: none !important;
	}
	.site-loader-spinner {
		animation: none !important;
	}
}

.site-loader-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

.site-loader-logo {
	width: 170px;
	max-width: 65vw;
	height: auto;
	object-fit: contain;
	animation: loaderLogoPulse 2.4s infinite ease-in-out;
}

.site-loader-spinner {
	width: 32px;
	height: 32px;
	border: 2px solid rgba(220, 190, 132, 0.2);
	border-top-color: var(--color-accent-gold);
	border-radius: 50%;
	animation: loaderSpin 0.9s linear infinite;
}

@keyframes loaderLogoPulse {
	0%, 100% {
		opacity: 0.55;
		transform: scale(0.98);
	}
	50% {
		opacity: 1;
		transform: scale(1.02);
	}
}

@keyframes loaderSpin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
	background-color: var(--color-bg-dark);
	color: var(--color-text-main);
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-body);
	font-size: 0.9375rem; /* 15px */
	line-height: 1.8;
	color: var(--color-text-main);
	background-color: var(--color-bg-dark);
	letter-spacing: 0.05em;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-smooth);
}

a:hover, a:focus {
	color: var(--color-accent-gold);
}

ul, ol {
	list-style: none;
}

h1, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-text-main);
}

/* h2 見出しは明朝体ではなくゴシック系フォントとし、ウェイトを細めに設定 */
h2 {
	font-family: var(--font-heading-sans);
	font-weight: 300;
	line-height: 1.4;
	color: var(--color-text-main);
	letter-spacing: 0.06em;
}

/* ==========================================================================
   2. 共通レイアウト & グリッド
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}

.col-xs-12 {
	flex: 0 0 100%;
	max-width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

.col-sm-6 {
	flex: 0 0 100%;
	max-width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

.col-sm-4,
.col-md-4 {
	flex: 0 0 100%;
	max-width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

.col-sm-3,
.col-md-3 {
	flex: 0 0 100%;
	max-width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.col-sm-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
	.col-sm-4 {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}
	.col-sm-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

@media (min-width: 992px) {
	.col-md-4 {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}
	.col-md-3 {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.site-wrapper {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
}

/* ==========================================================================
   3. ヘッダー・ロゴ
   ========================================================================== */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	z-index: 100;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 40px;
}

.site-branding {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: opacity 0.3s ease;
}

.site-branding .custom-logo,
.site-branding img {
	width: 144px;
	height: auto;
	max-height: 62px;
	object-fit: contain;
}

@media (max-width: 768px) {
	.site-header {
		padding: 0 20px;
		height: 70px;
		justify-content: center;
	}
	.site-branding .custom-logo,
	.site-branding img {
		width: 110px;
		max-height: 44px;
	}
}

/* ==========================================================================
   4. ナビゲーション・ハンバーガーメニュー
   ========================================================================== */
.navbar-header-toggle {
	position: fixed;
	right: -20px;
	top: 30%;
	width: 80px;
	min-height: 80px;
	background-color: var(--color-bg-dark);
	border: none;
	cursor: pointer;
	z-index: 9999;
	color: #ffffff;
	transform: translateY(-100%);
	transition: var(--transition-smooth);
	outline: none;
}

.navbar-header-toggle:hover {
	transform: translateX(-10px) translateY(-100%);
}

.navbar-header-toggle .navbar-btn {
	position: absolute;
	top: 32px;
	right: 37px;
	margin: 0;
}

.navbar-header-toggle .navbar-btn-bars {
	position: relative;
	width: 30px;
	height: 16px;
}

.navbar-header-toggle .navbar-btn-bars div {
	position: absolute;
	right: 0;
	height: 1px;
	background-color: #ffffff;
	transition: var(--transition-smooth);
}

.navbar-header-toggle .navbar-btn-bars div:nth-child(1) {
	top: 0;
	width: 26px;
}

.navbar-header-toggle .navbar-btn-bars div:nth-child(2) {
	top: 7px;
	width: 26px;
}

.navbar-header-toggle .navbar-btn-bars div:nth-child(3) {
	top: 14px;
	width: 26px;
}

.navbar-header-toggle:hover .navbar-btn-bars div:nth-child(1) {
	width: 15px;
}

.navbar-header-toggle:hover .navbar-btn-bars div:nth-child(2),
.navbar-header-toggle:hover .navbar-btn-bars div:nth-child(3) {
	width: 30px;
}

/* 閉じるボタン */
#main-nav-toggle-close {
	right: -100px;
	background-color: #ffffff;
	color: #000000;
}

#main-nav-toggle-close .navbar-btn-bars div {
	background-color: #000000;
	width: 26px;
}

#main-nav-toggle-close .navbar-btn-bars div:nth-child(1) {
	top: 7px;
	transform: rotate(45deg);
}

#main-nav-toggle-close .navbar-btn-bars div:nth-child(2) {
	top: 7px;
	transform: rotate(-45deg);
}

#main-nav-toggle-close .navbar-btn-bars div:nth-child(3) {
	display: none;
}

/* 背景オーバーレイ */
#nav-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	pointer-events: none;
	z-index: 9990;
	transition: opacity 0.5s ease;
}

/* ナビゲーションメニュー展開パネル */
.main-navigation {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-bg-dark);
	z-index: 9998;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
	transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease;
}

.main-navigation.nav-closed {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(100%);
}

.main-navigation.nav-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
}

@media (min-width: 768px) {
	.main-navigation {
		width: 50%;
		max-width: 600px;
		border-left: 1px solid var(--color-border);
	}
}

.main-navigation .menu-wrapper {
	padding: 80px 40px;
}

.main-navigation ul.menu {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.main-navigation ul.menu > li > a {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	letter-spacing: 0.1em;
	color: #ffffff;
	display: inline-block;
	position: relative;
	padding-bottom: 5px;
}

.main-navigation ul.menu > li > a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--color-accent-gold);
	transition: width 0.3s ease;
}

.main-navigation ul.menu > li > a:hover::after,
.main-navigation ul.menu > li.current-menu-item > a::after {
	width: 100%;
}

.main-navigation ul.menu > li.current-menu-item > a {
	color: var(--color-accent-gold);
}

/* ==========================================================================
   5. サブヘッダー (下層ページ共通)
   ========================================================================== */
.site-subheader {
	position: relative;
	width: 100%;
}

.site-subheader .page-meta {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 160px 0 100px;
	text-align: center;
}

.site-subheader .page-meta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
}

.site-subheader .page-meta .container {
	position: relative;
	z-index: 1;
}

.site-subheader .page-title {
	font-family: var(--font-heading);
	font-size: 2.25rem;
	letter-spacing: 0.15em;
	color: #ffffff;
}

@media (max-width: 768px) {
	.site-subheader .page-meta {
		padding: 120px 0 60px;
	}
	.site-subheader .page-title {
		font-size: 1.75rem;
	}
}

/* ==========================================================================
   6. 共通CTA (Contactセクション)
   ========================================================================== */
.common-cta-section {
	padding: 80px 20px;
	background: linear-gradient(to bottom, #111111 50%, #ffffff 50%);
	position: relative;
	border-top: 1px solid var(--color-border-light);
}

.common-cta-banner-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 70px 40px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.common-cta-banner-container .common-cta-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1;
}

.common-cta-banner-container .cta-inner {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* 本番原本再現：中央の白背景カード */
.cta-white-card {
	background-color: #ffffff;
	max-width: 680px;
	width: 100%;
	margin: 0 auto;
	padding: 50px 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cta-white-card .special-title {
	font-family: var(--font-heading-sans);
	font-size: 1.875rem;
	font-weight: 300;
	line-height: 1.35;
	color: #111111;
	margin-bottom: 16px;
	letter-spacing: 0.05em;
}

.cta-white-card .special-title .subtitle,
.cta-white-card .special-title span {
	display: block;
	font-family: var(--font-heading-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-accent-gold);
	margin-bottom: 8px;
}

.special-title {
	font-family: var(--font-heading-sans);
	font-size: 2rem;
	font-weight: 300;
	line-height: 1.35;
	color: #ffffff;
	margin-bottom: 20px;
	letter-spacing: 0.05em;
}

.special-title .subtitle,
.special-title span {
	display: block;
	font-family: var(--font-heading-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-accent-gold);
	margin-bottom: 8px;
}

.gg-horizontal-line {
	display: inline-block;
	width: 50px;
	height: 2px;
	background-color: var(--color-accent-gold);
	margin: 12px auto 24px;
}

.box-description {
	font-size: 0.9375rem;
	color: #cccccc;
	line-height: 1.9;
	margin-bottom: 30px;
}

.cta-white-card .box-description {
	color: #444444;
}

.cta-white-card .box-description p {
	color: #444444;
	line-height: 1.85;
}

.cta-btn-wrapper {
	margin-bottom: 20px;
}

.cta-white-card .btn-primary {
	background-color: #000000;
	color: #ffffff;
	border: 1px solid #000000;
	padding: 14px 45px;
	font-size: 0.875rem;
	letter-spacing: 0.15em;
}

.cta-white-card .btn-primary:hover {
	background-color: var(--color-accent-gold);
	border-color: var(--color-accent-gold);
	color: #000000;
}

.cta-white-card .cta-business-hours p {
	font-size: 0.875rem;
	color: #555555;
	letter-spacing: 0.05em;
}

.btn {
	display: inline-block;
	font-family: var(--font-heading-sans);
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0.15em;
	padding: 14px 40px;
	border-radius: 0;
	cursor: pointer;
	text-align: center;
	transition: var(--transition-smooth);
}

.btn-primary {
	background-color: transparent;
	color: #ffffff;
	border: 1px solid var(--color-accent-gold);
}

.btn-primary:hover {
	background-color: var(--color-accent-gold);
	color: #000000;
}

/* 白背景カード内のボタン視認性担保（黒背景・白文字、ホバー時ゴールド反転） */
.points-card-data .btn-primary,
.detail-content .btn-primary,
.access-card-inner .btn-primary,
.giveup-content .btn-primary,
.bg-white .btn-primary {
	background-color: #000000;
	color: #ffffff;
	border: 1px solid #000000;
}

.points-card-data .btn-primary:hover,
.detail-content .btn-primary:hover,
.access-card-inner .btn-primary:hover,
.giveup-content .btn-primary:hover,
.bg-white .btn-primary:hover {
	background-color: var(--color-accent-gold);
	border-color: var(--color-accent-gold);
	color: #000000;
}

.cta-business-hours {
	font-size: 0.875rem;
	color: var(--color-text-sub);
}

@media (max-width: 768px) {
	body, p {
		font-size: 1rem; /* SP通常テキスト 16px */
		line-height: 1.8;
	}
	.common-cta-section {
		padding: 40px 15px;
	}
	.common-cta-banner-container {
		width: 100%;
		max-width: 100%;
		padding: 30px 15px;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	}
	.cta-white-card {
		padding: 35px 20px;
		width: 100%;
		max-width: 100%;
	}
	.cta-white-card .special-title {
		font-size: 26px;
		line-height: 1.4;
	}
	.special-title {
		font-size: 1.625rem;
	}
	/* フッター直前CTA SP時左寄せ・余白・行間調整 */
	.common-cta-section .box-description {
		text-align: left;
		max-width: 340px;
		margin-left: auto;
		margin-right: auto;
		line-height: 1.85;
	}
	.common-cta-section .box-description br.sp {
		display: none;
	}
}

/* ==========================================================================
   7. フッター
   ========================================================================== */
.site-footer {
	background-color: var(--color-bg-dark);
	border-top: 1px solid var(--color-border);
	padding: 60px 0 40px;
	font-size: 0.875rem;
	color: var(--color-text-sub);
}

.footer-widgets {
	text-align: center;
	margin-bottom: 40px;
}

.footer-logo {
	max-height: 50px;
	width: auto;
	margin: 0 auto 20px;
	object-fit: contain;
}

.footer-widget .textwidget p {
	line-height: 1.9;
}

.footer-widget .textwidget a {
	color: var(--color-accent-gold);
}

.footer-meta-container {
	border-top: 1px solid var(--color-border-light);
	padding-top: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.footer-copyright {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

.footer-menu {
	display: flex;
	gap: 20px;
}

.footer-menu a {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

.footer-menu a:hover {
	color: var(--color-accent-gold);
}

/* ==========================================================================
   8. スクロールトップボタン
   ========================================================================== */
.scrollup {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 45px;
	height: 45px;
	background-color: rgba(0, 0, 0, 0.7);
	border: 1px solid var(--color-border);
	z-index: 990;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition-smooth);
	cursor: pointer;
}

.scrollup.is-visible {
	opacity: 1;
	visibility: visible;
}

.scrollup:hover {
	background-color: var(--color-accent-gold);
	border-color: var(--color-accent-gold);
}

.scrollup:hover svg path {
	fill: #000000;
}

.icon-scrollup {
	width: 20px;
	height: 20px;
}

/* ==========================================================================
   9. レスポンシブ用補助クラス
   ========================================================================== */
br.sp {
	display: none;
}

br.pc {
	display: inline;
}

@media (max-width: 768px) {
	br.sp {
		display: inline;
	}
	br.pc {
		display: none;
	}
	.scrollup {
		bottom: 20px;
		right: 20px;
		width: 40px;
		height: 40px;
	}
}

/* ==========================================================================
   10. Googleマップ モノクロ表示スタイル (Phase 1-4 Step 5 C-01)
   ========================================================================== */
.map-embed-wrapper iframe,
.parking-map-container iframe,
.salon-access-section iframe,
iframe[src*="google.com/maps"] {
	filter: grayscale(100%) contrast(90%) opacity(95%);
	-webkit-filter: grayscale(100%) contrast(90%) opacity(95%);
	transition: filter 0.3s ease;
}

/* ==========================================================================
   11. 全ページ共通 英語サブ見出し 12px 統一 (Phase 1-4 Step 6 C-01)
   ========================================================================== */
.special-title .subtitle,
.special-title > span,
.subpage-special-title .subtitle,
.subpage-special-title > span,
.points-subtitle,
.service-num,
.title-subtitle-box .subtitle,
.title-subtitle-box > span {
	font-size: 12px !important;
}

/* ==========================================================================
   12. 共通アクセスセクション スタイル (Phase 1-4 Step 7 C-02)
   ========================================================================== */
.top-access-section {
	background-color: #f1f1f1;
	border-top: 1px solid #e0e0e0;
	padding: 100px 0;
}

.top-access-section .row-equal-height {
	display: flex;
	align-items: stretch;
	margin-left: 0;
	margin-right: 0;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.top-access-info,
.top-access-map {
	flex: 0 0 50%;
	max-width: 50%;
	padding-left: 0;
	padding-right: 0;
}

.top-access-info {
	background-color: #ffffff;
	padding: 55px 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: none;
}

.top-access-info .special-title {
	font-family: var(--font-heading-sans);
	font-size: 1.875rem;
	font-weight: 300;
	letter-spacing: 0.05em;
	color: #111111;
}

.top-access-info .special-title .subtitle {
	font-family: var(--font-heading-sans);
	font-size: 12px !important;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-accent-gold);
}

/* 店舗名：明朝体 */
.access-shop-name {
	font-family: var(--font-heading);
	font-size: 1.375rem;
	font-weight: 500;
	color: #111111;
	margin-bottom: 15px;
	letter-spacing: 0.05em;
}

.access-info-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 0.9375rem;
	color: #111111;
	list-style: none;
	padding: 0;
	margin: 0;
}

.access-info-list li {
	color: #111111;
	line-height: 1.7;
}

.access-info-list a {
	color: #111111;
	font-weight: 500;
}

.access-info-list a:hover {
	color: var(--color-accent-gold);
}

.top-access-map {
	display: flex;
}

.top-access-map .map-embed-wrapper {
	width: 100%;
	height: 100%;
	min-height: 100%;
	border: none;
	box-shadow: none;
}

.top-access-map .map-embed-wrapper iframe {
	width: 100%;
	height: 100%;
	min-height: 100%;
	border: 0;
	display: block;
}

@media (max-width: 768px) {
	.top-access-section .row-equal-height {
		flex-direction: column;
	}
	.top-access-info,
	.top-access-map {
		flex: 0 0 100%;
		max-width: 100%;
		width: 100%;
	}
	.top-access-info {
		padding: 35px 20px;
		margin-bottom: 0;
	}
	.top-access-info .special-title {
		font-size: 26px !important;
	}
	.top-access-map {
		display: block;
		width: 100%;
		height: 350px;
		min-height: 350px;
	}
	.top-access-map .map-embed-wrapper {
		width: 100%;
		height: 350px;
		min-height: 350px;
	}
	.top-access-map .map-embed-wrapper iframe {
		width: 100%;
		height: 350px;
		min-height: 350px;
	}
}
