/*
 * Noside Base Theme - reset.css
 * 最小限のグローバルリセットのみ。色・背景・枠線・コンポーネント装飾は一切書かない。
 * (装飾を入れないことが「後から何を載せても干渉しない」状態の前提)
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

body {
	min-height: 100vh;
	line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: none;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration-skip-ink: auto;
}

ul[class],
ol[class] {
	list-style: none;
	padding: 0;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ------------------------------------------------------------------
 * CF7 ハニーポット(自動送信を止めるための隠し入力欄 .ns-hp)
 *
 * 2026-10-09 導入(inc/site-form-guard.php が全部のフォームの末尾に出す)。
 * 人には見えない入力欄で、そこに値が入っていたら自動送信とみなして静かに止める
 * (判定は inc/contact-form-sheet.php の noside_base_cf7_honeypot_spam)。
 *
 * ・display:none は一部の自動送信に見抜かれるので使わない。画面の外へ出す。
 * ・reset.css に置くのは、ここが「全部のテンプレートで必ず読まれる」CSS だから。
 *   この欄が見えてしまうと、お客様が入力して止められる。読み込みの漏れが起きない場所に置く。
 * ------------------------------------------------------------------ */
.ns-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* モーション抑制を望むユーザーには動きを止める(a11y / CWV) */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
