@charset "UTF-8";
/* =========================================================
   base.css
   モダンCSSリセット + 全要素のベーススタイル
   参考: Josh Comeau / Andy Bell の手法をブレンド
   ========================================================= */

/* ---------- リセット ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text);
	background: var(--color-bg);
	font-feature-settings: "palt";
}

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: var(--color-link);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
	color: var(--color-link-hover);
}

ul,
ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--color-heading);
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
}

p {
	overflow-wrap: break-word;
}

/* ---------- WordPress標準のアクセシビリティクラス ---------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-bg);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text);
	display: block;
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-bold);
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: var(--z-modal);
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	z-index: var(--z-modal);
}

.skip-link:focus {
	top: 0;
}

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

/* ---------- アニメーション抑制設定への配慮 ---------- */
@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;
	}
}

/* ---------- 共通コンテナ ---------- */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.container--narrow {
	max-width: var(--container-narrow-max);
}

/* ---------- ヘッダー固定分の上余白 ----------
   フロントページのヒーローはヘッダーの下に潜らせるが、
   下層ページ(page.php / single.php 等)はこのクラスを付けて
   ヘッダーの下から始まるようにする。
   ※STEP 1.5時点ではindex.phpで仮利用 */
.site-main--has-header-offset {
	padding-top: var(--header-height);
}

@media (max-width: 960px) {
	.site-main--has-header-offset {
		padding-top: var(--header-height-sp);
	}
}
