/* ==========================================================================
   G.I商事 共通デザイン CSS（子テーマ assets/gi-design.css）
   - 文字の書体・サイズ・行間は Elementor「サイト設定 > グローバルフォント」で管理
     （ページタイトル英字/日本語・パンくず・セクション見出し・見出し大中小・本文・注記・ボタン）
   - ここには Elementor の設定画面で表せない共通ルールだけを置く
   ========================================================================== */

:root {
	--gi-gutter: 20px;          /* スマホの左右余白 */
	--gi-content: 1140px;       /* 最大コンテンツ幅（サイト設定と同じ） */
}

/* --- 見出しタグの見た目を周囲の文字設定に合わせる ---------------------------
   テキストエディター内の h1〜h6 は、ウィジェットで設定した文字設定をそのまま使う
   （タグを変えても文字サイズ・太さ・色・余白が変わらないように） */
.elementor-widget-text-editor :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-transform: inherit;
}

/* --- 共通（旧「追加CSS」から移設） ------------------------------------------ */
html,
body {
	overflow-x: hidden;
}

a {
	color: inherit;
}

a:hover {
	color: #ff7043;
}

/* 縦書き */
.exp {
	writing-mode: vertical-rl;
	display: inline-block;
	text-align: left;
}

/* スマホだけ改行 */
.sp-br {
	display: none;
}

@media (max-width: 767px) {
	.sp-br {
		display: inline;
	}
}

/* --- お問い合わせフォーム（Contact Form 7） --------------------------------
   旧「追加CSS」の !important を、詳細度の調整とウィジェット設定（ラベル左寄せ）に置き換え */
.CF7_req,
.CF7_unreq {
	font-size: 0.9em;
	padding: 5px;
	color: #fff;
	border-radius: 3px;
	margin-right: 1em;
}

.CF7_req {
	background: #219c9b;
}

.CF7_unreq {
	background: #bdbdbd;
}

/* テーマ reset.css の表の縞模様・罫線を打ち消す */
.wpcf7-form table tbody tr:nth-child(n) > :is(th, td) {
	background-color: #fff;
	border-color: transparent;
}

#wpcf7-f7-p57-o1 p {
	text-align: left;
	line-height: 39px;
}

#wpcf7-f7-p57-o1 input[type="text"] {
	margin-top: 5px;
}

td .wpcf7-quiz-label {
	padding-top: 0;
	margin-top: 2px;
}

tr .wpcf7-form-control-wrap > .wpcf7-form-control {
	margin-top: 2px;
}

@media screen and (max-width: 768px) {
	table.CF7_table {
		width: 95%;
	}

	.CF7_table tr,
	.CF7_table td,
	.CF7_table th {
		display: block;
		width: 100%;
		line-height: 2.5em;
		margin-top: -20px;
	}
	/* 旧CSSのスマホ用 th 背景 #ebedf5 は !important の白に上書きされ表示されていなかったため移設しない */
}
