/* ===================================
   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; /* 自分のページなのでクリック無効化してもOK */
}

/* --- 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;
	}
}

/* -----------------------------------
   お問い合わせページ：完全修正版
   ----------------------------------- */

.bw-contact-page-wrapper {
	background: #fff;
	padding-top: 100px;
	overflow: hidden;
}

.bw-contact-split-container {
	display: flex;
	min-height: calc(100vh - 100px);
	align-items: flex-start; /* 中央揃えをやめ、上端を基準にする */
}

.bw-contact-card .bw-title-section-sub {
	/* これを追加すると、HTMLを書き換えずにすべて大文字になります */
	text-transform: uppercase;
}

/* --- 左側セクション：詳細デザイン修正 --- */

.bw-contact-left-content {
	flex: 1;
	padding: 100px 8% 80px 10%;
	display: flex;
	flex-direction: column;
}

/* --- 見出しエリアの装飾（縦ライン追加） --- */
.bw-title-wrap {
	position: relative;
	padding-left: 30px; /* ラインと文字の間の距離 */
	border-left: 4px solid var(--color-primary); /* 3枚目と同じ太さのライン */
	line-height: 1;
}

.bw-title-main-page {
	/* ご要望に合わせてサイズをさらに大きく設定 */
	font-size: clamp(38px, 5vw, 56px);
	font-weight: 800;
	color: var(--color-text-main);
	margin: 0;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.bw-contact-left-inner {
	width: 100%;
	max-width: 580px;
	/* 少し上に重心を置くための微調整 */
	margin-top: 0px;
}

/* 英語の見出し */
.bw-page-header .en {
	display: block;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	color: var(--color-primary);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

/* メイン見出し */
.bw-title-main-page {
	font-size: clamp(36px, 4.5vw, 52px);
	font-weight: 800;
	line-height: 1.1; /* サイズが大きくなるので、行間を少し詰めると締まって見えます */
	margin-bottom: 60px;
}

/* リード文 */
.bw-text-lead {
	font-size: 22px;
	line-height: 2;
	color: var(--color-text-secondary);
	margin-bottom: 40px;
}

/* --- 注意書きエリア：ラインなしのミニマルデザイン --- */
.bw-notice-bar {
	background: #f7f7f7; /* 薄いグレーの面で情報の塊を作る */
	padding: 24px 30px;
	margin: 40px 0 50px 0;
	border: none; /* 縦線を削除 */
}

.bw-notice-bar p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text-main); /* 文字は読みやすくはっきりと */
	margin: 0;
	letter-spacing: 0.03em;
}

.notice-icon {
	color: var(--color-primary); /* 米印だけアクセントカラーにして、単調さを防ぐ */
	font-weight: bold;
	margin-right: 6px;
}

/* 下部連絡先：境界線を細く上品に */
.bw-form-fallback {
	margin-top: 50px;
	padding-top: 40px;
	border-top: 1px solid #eee;
}

.fallback-label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: #ccc;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
}

.bw-form-fallback p {
	font-size: 15px;
	color: var(--color-text-secondary);
	margin: 0;
}

.bw-form-fallback a {
	color: var(--color-text-main);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid var(--color-primary); /* 常にラインを表示 */
	transition: var(--transition-base);
}

.bw-form-fallback a:hover {
	color: var(--color-primary);
	background: var(--color-primary-light);
}

/* スマホ対応 */
@media (max-width: 992px) {
	.bw-contact-left-content {
		padding: 80px 5%;
		min-width: 100%;
	}
	.bw-title-main-page {
		font-size: 32px;
	}
}

/* --- 右側セクション（背景＋カード） --- */
.bw-contact-right-visual {
	flex: 1.8;
	min-width: 500px;
	position: relative;
	padding: 60px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: url('https://brioworks.biz/wp-content/themes/generatepress/bw/img/bw-hero-bg.jpg');
	background-size: cover;
	background-position: center;
}

.bw-contact-right-visual::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(26, 26, 26, 0.4); /* 少し暗めにしてカードを強調 */
}

/* フォームカード本体 */
.bw-contact-card {
	position: relative;
	z-index: 2;
	background: #fff;
	padding: 60px 50px;
	width: 100%;
	max-width: 750px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* フォームグループ内のズレ解消 */
.bw-custom-form {
	width: 100%;
}

.bw-form-group {
	margin-bottom: 30px;
	width: 100%;
}

/* 入力欄のサイズ固定 */
.bw-custom-form input[type='text'],
.bw-custom-form input[type='email'],
.bw-custom-form textarea {
	width: 100% !important; /* 必須：横幅を100%に強制 */
	max-width: 100%;
	padding: 16px !important;
	border: 1px solid #e0e0e0 !important;
	background: #f9f9f9;
	border-radius: 0 !important;
	font-family: inherit;
	font-size: 15px;
	box-sizing: border-box !important; /* パディングを含めたサイズ計算 */
}

.bw-custom-form textarea {
	height: 150px;
	resize: none;
}

.bw-privacy-note {
	font-size: 14px;
	margin-bottom: 20px;
}

.bw-btn-submit {
	width: 100%;
	padding: 20px;
	background: var(--color-text-main);
	color: #fff;
	border: none;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: 0.3s;
}

.bw-btn-submit:hover {
	background: var(--color-primary);
}

/* レスポンシブ：992px以下で縦並び */
@media (max-width: 992px) {
	.bw-contact-split-container {
		flex-direction: column;
	}
	.bw-contact-left-content,
	.bw-contact-right-visual {
		flex: none;
		width: 100%;
		min-width: 100%;
		padding: 60px 5%;
	}
	.bw-contact-card {
		padding: 40px 25px;
	}
}

/* --- ラベルと必須チップの再定義 --- */
.bw-form-group label {
	display: flex;
	align-items: center; /* 横並び中央 */
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--color-text-main);
}

/* 必須チップ：BrioWorksのブランドカラーに合わせた洗練デザイン */
.bw-form-group .required {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	background: transparent;
	color: var(--color-primary); /* ブランドカラー */
	border: 1px solid var(--color-primary);
	padding: 2px 8px;
	margin-left: 12px;
	border-radius: 2px;
	display: inline-block;
	line-height: 1.4;
	vertical-align: middle;
	text-transform: uppercase;
}

/* ついでに：プライバシーポリシーのリンクもブランドカラーに */
.bw-privacy-note a {
	color: var(--color-primary);
	text-decoration: underline;
	font-weight: 500;
}

/* -----------------------------------
   7. フッター
   ----------------------------------- */
/* --- フッター全体の高さを抑える --- */
.bw-footer {
	background: var(--color-bg-dark);
	color: #fff;
	padding: 40px 0 20px; /* 上下の余白を大幅に削減 */
}

/* --- ロゴとナビを横一列に並べる --- */
.bw-footer-flex {
	display: flex;
	justify-content: space-between;
	align-items: center; /* 垂直中央 */
	padding-bottom: 30px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 20px;
}

/* --- ロゴとタグラインを横並びに（一体感） --- */
.bw-footer-brand {
	display: flex;
	align-items: center;
	gap: 20px;
}

.bw-footer-logo img {
	height: 40px; /* 少し小さくして高さを抑える */
	width: auto;
}

.bw-footer-tagline {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.3);
	padding-left: 20px;
}

/* --- ナビゲーションを横並びに --- */
.bw-footer-nav {
	display: flex;
	gap: 24px; /* リンク同士の間隔 */
}

.bw-footer-nav a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.bw-footer-nav a:hover {
	opacity: 1;
	color: var(--color-primary);
}

/* --- コピーライトを右寄せにしてさらにコンパクトに --- */
.bw-copyright {
	text-align: center;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
	padding-top: 0;
	border: none;
}

/* --- スマホ対応：入り切らない場合は縦並びに戻す --- */
@media (max-width: 768px) {
	.bw-footer-flex {
		flex-direction: column;
		gap: 25px;
		align-items: flex-start;
	}

	.bw-footer-brand {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.bw-footer-tagline {
		border-left: none;
		padding-left: 0;
	}

	.bw-footer-nav {
		flex-wrap: wrap; /* 折り返し許可 */
		gap: 15px 20px;
	}

	.bw-copyright {
		text-align: left;
	}
}
