/* ===================================
   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;
}
h1,
h2,
h3 {
	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);
}

/* -----------------------------------
   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);
}

/* --- 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-container-narrow {
	max-width: 1600px;
	margin: 0 auto;
}

.bw-privacy-content {
	margin-top: 60px;
	color: #333;
	line-height: 1.8;
}

.bw-privacy-section {
	margin-bottom: 50px;
}

.bw-privacy-section h2 {
	font-size: 20px;
	color: var(--color-text-main);
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 10px;
	margin-bottom: 20px;
}

/* 箇条書きのデザイン */
.bw-dot-list {
	list-style: none;
	padding-left: 0;
	margin: 15px 0;
}

.bw-dot-list li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 10px;
	font-size: 15px;
}

.bw-dot-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 6px;
	background: var(--color-primary); /* 企業カラーのドット */
	border-radius: 50%;
}

/* 下部連絡先：境界線を細く上品に */
.bw-form-fallback {
	margin-top: 50px;
	padding-top: 40px;
	border-top: 1px solid #eee;
}

.bw-contact-info-card p {
	margin-bottom: 0;
}

.bw-privacy-footer {
	margin-top: 80px;
	text-align: right;
	font-size: 14px;
	color: #888;
}

/* --- プライバシーポリシー：洗練されたタイポグラフィとレイアウト --- */

.bw-privacy-detail-page {
	background-color: var(--color-bg-light);
	padding-top: 160px !important; /* ヘッダー高さを考慮 */
}

/* ページヘッダーの装飾 */
.bw-privacy-detail-page .bw-page-header {
	text-align: center;
	margin-bottom: 80px;
}

.bw-text-lead {
	font-size: clamp(18px, 2vw, 22px);
	color: var(--color-text-secondary);
}

.bw-privacy-detail-page .en {
	display: block;
	color: var(--color-primary);
	font-size: 14px;

	letter-spacing: 0.3em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.bw-title-main-page {
	font-size: clamp(36px, 6vw, 60px);
	font-weight: 900;
	color: var(--color-text-main);
	margin-top: 0 !important;
	margin-bottom: 30px;
	position: relative;
	display: inline-block;
}

/* メインコンテンツをカード化して読みやすく */
.bw-privacy-content {
	background: #ffffff;
	padding: 80px 100px;
	border-radius: 8px;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.03);
	border: 1px solid var(--color-border);
	max-width: 1600px; /* カードの最大幅を1000pxに制限 */
	margin-left: auto; /* 中央寄せ */
	margin-right: auto; /* 中央寄せ */
}

.bw-privacy-section {
	margin-bottom: 30px;
}

.bw-privacy-section:last-of-type {
	margin-bottom: 40px;
}

.bw-privacy-section h2 {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-text-main);
	border-left: 4px solid var(--color-primary); /* 横線ではなく縦のラインに変更 */
	padding: 0 0 0 20px;
	margin-bottom: 25px;
	border-bottom: none; /* 既存の設定を上書き */
}

.bw-privacy-section p {
	font-size: 20px;
	line-height: 2;
	color: var(--color-text-secondary);
}

/* 箇条書き（ドットリスト）の改良 */
.bw-dot-list {
	background: #fdfdfd;
	padding: 20px 30px;
	border-radius: 6px;
}

.bw-dot-list li {
	font-size: 16px;
	padding-left: 25px;
	color: var(--color-text-secondary);
}

.bw-dot-list li::before {
	width: 8px;
	height: 8px;
	top: 0.75em;
	background: var(--color-primary);
	opacity: 0.6;
}

/* お問い合わせ窓口カードのインテリジェンス化 */

.bw-contact-info-card a {
	color: var(--color-text-main);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid var(--color-primary);
	transition: var(--transition-base);
}

.bw-contact-info-card a:hover {
	color: var(--color-primary);
	opacity: 0.7;
}

/* --- レスポンシブ調整 --- */
@media (max-width: 768px) {
	.bw-privacy-detail-page {
		padding-top: 100px !important;
	}

	.bw-privacy-content {
		padding: 40px 20px;
	}

	.bw-title-main-page {
		font-size: 28px;
	}

	.bw-privacy-section h2 {
		font-size: 18px;
	}
}

/* -----------------------------------
   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;
	}
}
