/**
 * 旧 GENESIS ヘッダー／フッター利用時のレイアウト補正
 * （SWELL 親のリセットが効かず、legacy style.css も未読込のため）
 */

html {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

body {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	font-size: 16px;
	line-height: 1;
	width: 100%;
	position: relative;
	-webkit-font-smoothing: antialiased;
	overscroll-behavior-y: none;
}

/*
 * 旧 GENESIS style.css のタイポリセット相当（#container 内のみ）
 * :where() で詳細度を下げ、top-page.css / legacy-page-layout.css を優先
 */
#container :where(
	p,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	ul,
	ol,
	dl,
	dd,
	blockquote,
	figure,
	pre
) {
	margin: 0;
	padding: 0;
}

#container :where(ul, ol) {
	list-style: none;
}

/* 本文: design-plus.css 相当 */
#container .post_content p {
	margin: 0 0 2em 0;
	line-height: 2.6;
}

/* Contact Form 7（design-plus の .wpcf7 p を優先） */
#container .post_content .wpcf7 p {
	margin: 0 0 1em 0;
}

#header_test,
#header_test *,
#header_test *::before,
#header_test *::after,
#footer_test,
#footer_test *,
#footer_test *::before,
#footer_test *::after,
#container {
	box-sizing: border-box;
}

#header_test {
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

#header_test .header_inner {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

#header_test .header_logo {
	min-width: 0;
}

#header_test .header_nav {
	min-width: 0;
	overflow: hidden;
}

#header_test .header_menu {
	max-width: 100%;
}

#container {
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}
