/*!
 * base.css — リセット・基本タイポグラフィ
 */

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

html,
body {
	margin: 0;
	padding: 0;
}
body {
	/* overflow-x: clip は overflow-y: auto を誘発しないので、
	   document scroll（マウスホイール上方向）と競合しない。
	   旧 overflow-x: hidden だとブラウザが暗黙に overflow-y: auto にして
	   body 自体がスクロールコンテナ化し、ホイール上スクロール不可になる。 */
	overflow-x: clip;
}

html {
	-webkit-text-size-adjust: 100%;
	/* scroll-behavior: smooth はマウスホイールの上方向で
	   キュー処理が干渉して牛歩状態になる既知の問題があるため削除。
	   アンカーリンクのスムーズスクロールは JS で個別実装する想定。 */
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-display);
	line-height: var(--lh-heading);
	font-weight: 400;
}

p, ul, ol, dl, figure {
	margin: 0;
}

ul, ol {
	padding-left: 1.4em;
}

a {
	color: var(--blue);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

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

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

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

/* マーカー（カンプの黄色蛍光ペン風） */
mark {
	background: linear-gradient(transparent 55%, var(--sticky) 55%);
	padding: 0 4px;
	color: inherit;
}

/* フォーカス */
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

/* スクリーンリーダー専用 */
.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* コンテナ */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow {
	max-width: var(--container-narrow);
}
.container--text {
	max-width: var(--container-text);
}

/* WordPress 標準クラス（管理バー対応） */
.admin-bar .sticky-top {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .sticky-top {
		top: 46px;
	}
}
