/* ===================================
   BrioWorks - クリーンアップ済みCSS
   =================================== */

:root {
	--color-primary: #0eb1b5;
	--color-primary-dark: #0a8a8d;
	--color-primary-light: #e6f7f8;
	--color-text-main: #1a1a1a;
	--color-text-secondary: #4a4a4a;
	--color-text-light: #6a6a6a;
	--color-bg-main: #ffffff;
	--color-bg-light: #f8f9fa;
	--color-bg-dark: #2c3e50;
	--color-border: #e0e0e0;
	--transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	overflow-x: hidden;
	margin: 0;
	font-family: 'Noto Sans JP', sans-serif;
}

/* -----------------------------------
   1. テーマの制限を強制解除（全幅対応）
   ----------------------------------- */
.site-main.bw-home,
.bw-home .inside-article,
.bw-home .site-content {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

.bw-container {
	width: 100% !important;
	max-width: 1800px !important; /* ヘッダーの最大幅と同期 */
	margin: 0 auto !important; /* 0 !importantを0 autoに変更 */
	padding: 0 5% !important; /* 10%から5%に調整してゆとりを確保 */
	box-sizing: border-box;
}

.bw-section {
	padding: 100px 0;
}

.bw-bg-light {
	background-color: var(--color-bg-light);
}

.bw-bg-primary {
	background-color: var(--color-primary);
}

/* -----------------------------------
   フォームのデザイン関係
   ----------------------------------- */

/* 入力欄の幅と見た目 */
.bw-input,
.bw-textarea,
.bw-contact-card select,
.bw-contact-card input[type='text'],
.bw-contact-card input[type='email'],
.bw-contact-card input[type='tel'],
.bw-contact-card textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 16px;
	box-sizing: border-box;
}

/* 送信ボタンの中央寄せ（親要素） */
.bw-form-submit,
.bw-form-disclaimer {
	text-align: center;
}

/* 入力欄の背景色と枠線 */
.bw-input,
.bw-textarea,
.bw-contact-card input[type='text'],
.bw-contact-card input[type='email'],
.bw-contact-card input[type='tel'],
.bw-contact-card select,
.bw-contact-card textarea {
	background-color: #f9f9f9; /* やさしいグレー背景 */
	border: 1px solid #ccc; /* 薄いグレーの枠線 */
	padding: 12px;
	border-radius: 6px;
	font-size: 16px;
	box-sizing: border-box;
	width: 100%;
}

/* フォーカス時の色変化（クリックされたとき） */
.bw-contact-card input:focus,
.bw-contact-card textarea:focus,
.bw-contact-card select:focus {
	background-color: #fff; /* 白に変化 */
	outline: none;
}

/* 最初と最後の子要素の余白を消す */
.wpcf7-form > *:first-child,
.wpcf7-form > *:last-child {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border: none !important;
}

/* 上部のエラーメッセージ（入力漏れなど） */
.wpcf7-response-output.wpcf7-validation-errors {
	background: #ffecec;
	color: #b30000;
	border: 1px solid #ffb3b3;
	padding: 16px 20px;
	border-radius: 6px;
	font-size: 15px;
	margin-bottom: 20px;
}
/* 上側の自動メッセージを非表示にする */
.wpcf7 > .wpcf7-response-output {
	display: none !important;
}

/* 下側のメッセージ（フォーム内）をデザイン */
.wpcf7-form .wpcf7-response-output {
	background: #ffecec;
	color: #b30000;
	border: 1px solid #ffb3b3;
	padding: 16px 20px;
	border-radius: 6px;
	font-size: 15px;
	margin-top: 24px;
	font-weight: 600;
}

/* -----------------------------------
   3. ヘッダー
   ----------------------------------- */
.bw-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100px;
	background: #fff;
	backdrop-filter: blur(10px);
	z-index: 9999;
	border-bottom: 1px solid var(--color-border);
}

.bw-header-container {
	max-width: 1400px;
	width: 92%;
	margin: 0 auto;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.bw-logo img {
	height: 60px;
	width: auto;
	display: block;
}

.bw-nav-list {
	display: flex;
	list-style: none;
	gap: 32px;
	align-items: center;
	margin: 0;
}

.bw-nav-list a {
	text-decoration: none;
	color: var(--color-text-main);
	font-weight: 400;
	font-size: 18px;
	transition: var(--transition-base);
}

/* ナビゲーションリスト */
.bw-nav-list {
	display: flex;
	list-style: none;
	gap: 40px;
	align-items: center;
	margin: 0;
	height: 100%; /* 親要素いっぱいに高さを取る */
}

/* ナビゲーションの共通設定 */
.bw-nav-list a {
	text-decoration: none;
	color: var(--color-text-main);
	font-weight: 400;
	font-size: 20px;
	font-family: 'Inter', 'Noto Sans JP', sans-serif;
	transition: var(--transition-base);
	display: inline-flex;
	align-items: center;
	height: 100%;
	position: relative;
}

/* 左側2つの文字リンク：ヘッダー最下部にラインを表示 */
.bw-nav-list li:not(:last-child) a::after {
	content: '';
	position: absolute;
	bottom: 0; /* ヘッダーの枠線（下端）に合わせる */
	left: 0;
	width: 100%;
	height: 2px; /* ラインの太さ */
	background: var(--color-primary);
	transform: scaleX(0); /* 最初は非表示 */
	transform-origin: center;
	transition: transform 0.3s ease;
}

/* ホバー時にラインを中央から広げる */
.bw-nav-list li:not(:last-child) a:hover {
	color: var(--color-primary);
}

.bw-nav-list li:not(:last-child) a:hover::after {
	transform: scaleX(1);
}

/* --- お問い合わせボタン（ヘッダー） --- */
.bw-header-btn {
	background: var(--color-primary);
	color: #ffffff !important;
	padding: 10px 24px;
	border-radius: 6px;
	font-weight: 600 !important;
	font-size: 16px !important;
	height: auto !important;
	border: 2px solid var(--color-primary);
	transition: var(--transition-base);
	box-shadow: none;
}

/* ホバー：背景を白く、文字と枠線をアクセントカラーに反転 */
.bw-header-btn:hover {
	background: #ffffff !important;
	color: var(--color-primary) !important;
}

/* --- カード内のリンク・ボタン等がある場合も同様のルールを適用 --- */
.bw-button-link {
	background: var(--color-primary);
	color: #ffffff;
	border: 2px solid var(--color-primary);
	padding: 12px 32px;
	border-radius: 6px;
	text-decoration: none;
	display: inline-block;
	transition: var(--transition-base);
}

.bw-button-link:hover {
	background: transparent;
	color: var(--color-primary);
}

.page-contact .bw-header-btn {
	background: #ffffff !important;
	color: var(--color-primary) !important;
	border-color: var(--color-primary);
	/*pointer-events: none; */
}

/* --- 768px以下のスマホ・タブレット対応 --- */
@media (max-width: 768px) {
	.bw-header {
		height: 70px;
	}

	.bw-logo img {
		height: 40px; 
	}

	/* PC用メニューを隠す */
	.bw-nav-list {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background: #fff;
		flex-direction: column; 
		justify-content: center;
		gap: 30px;
		transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
		box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
		z-index: 10000;
		padding: 50px;
	}

	/* メニュー開閉時のクラス（JavaScriptで操作） */
	.bw-nav-list.is-active {
		right: 0;
	}

	.bw-nav-list a {
		font-size: 24px; 
		height: auto;
		width: 100%;
		justify-content: flex-start;
	}

	/* スマホ用ハンバーガーボタンの作成 */
	.bw-hamburger {
		display: block;
		width: 30px;
		height: 24px;
		position: relative;
		cursor: pointer;
		z-index: 10001;
	}

	.bw-hamburger span {
		position: absolute;
		width: 100%;
		height: 2px;
		background: var(--color-primary);
		left: 0;
		transition: 0.3s;
	}

	.bw-hamburger span:nth-child(1) {
		top: 0;
	}
	.bw-hamburger span:nth-child(2) {
		top: 11px;
	}
	.bw-hamburger span:nth-child(3) {
		top: 22px;
	}

	/* メニューが開いている時のボタンの形（×印） */
	.bw-hamburger.is-active span:nth-child(1) {
		transform: translateY(11px) rotate(45deg);
	}
	.bw-hamburger.is-active span:nth-child(2) {
		opacity: 0;
	}
	.bw-hamburger.is-active span:nth-child(3) {
		transform: translateY(-11px) rotate(-45deg);
	}
}

/* PCではハンバーガーを隠す */
@media (min-width: 769px) {
	.bw-hamburger {
		display: none;
	}
}


