/*
 * Contact ページ専用の補正スタイル（テーマ側オーバーライド）。
 *
 * Contact 固定ページのレイアウト本体は VC raw_html（DB 内の本文）にインライン <style> で
 * 埋め込まれている：
 *   .custom-contact-container-v8 … full-bleed 背景帯
 *   .contact-content-wrapper      … display:flex; flex-wrap:wrap; max-width:1400px（横並び）
 *   .form-area-v8                 … flex:0 1 520px; padding-right:40px; min-width:300px
 *   .info-area-v8                 … flex:0 1 700px; min-width:300px
 * DB 直編集を避けるため、レイアウト調整はこのファイルから「上位詳細度」で上書きする。
 *
 * 変更点: 横 2 カラム（フォーム｜紹介文）をやめ、全幅で「紹介文 → フォーム」の
 *         縦 1 カラム・中央寄せに統一する。あわせて旧 min-width:300px / padding-right:40px
 *         による狭幅での横はみ出し（クリップ）も解消する。
 */

/* 横並び flex を縦 1 カラムへ。ソース順は form→info なので、column-reverse で
   紹介文（info）を上・フォーム（form）を下に並べ、中央寄せ＆全体幅を抑える。 */
.custom-contact-container-v8 .contact-content-wrapper {
	flex-direction: column-reverse;
	align-items: center;
	gap: 32px;
	max-width: 600px;
}

/* 旧 flex 基準値・min-width・右パディングを解除し、列幅いっぱい（最大 600px）に収める。 */
.custom-contact-container-v8 .form-area-v8,
.custom-contact-container-v8 .info-area-v8 {
	flex: 0 1 auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding-right: 0;
	box-sizing: border-box;
}

/* 紹介文は見出しごと中央寄せにして、縦並びでも収まりよく。 */
.custom-contact-container-v8 .info-area-v8 {
	text-align: center;
}
