/*
 * vnoco 基本スタイル
 * 色・文字の値は theme.json のプリセット（--wp--preset--*）と、下の --vnoco-* を使う。
 * ヘッダーは header.css、フッターは footer.css。
 */

:root {
	--vnoco-gutter: 40px;
	--vnoco-max-width: 1280px;
	--vnoco-hover: #7B3AA6;
	--vnoco-header-height: 93px;
}

/* ヘッダーの高さ（線を除く。header.css の幅ごとの大きさに合わせる） */
@media (min-width: 768px) and (max-width: 1023px) {
	:root {
		--vnoco-header-height: 146px; /* メニューがロゴの下の段に回る */
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {
	:root {
		--vnoco-header-height: 87px;
	}
}

@media (max-width: 767px) {
	:root {
		--vnoco-gutter: 20px;
		--vnoco-header-height: 69px;
	}
}

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

body {
	margin: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	/* モックは行の高さを指定していない（normal）。長い文章は各部品で指定する */
	line-height: normal;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--wp--preset--color--ink);
}

a:hover {
	color: var(--vnoco-hover);
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	background: var(--wp--preset--color--white);
}

/* モックの .vn-wrap と同じ：最大 1280px、左右の余白 40px（スマホ 20px） */
.container {
	max-width: var(--vnoco-max-width);
	margin-inline: auto;
	padding-inline: var(--vnoco-gutter);
}

/* 本文：上下の余白は各ページのテンプレート（.wrap など）で持つ */
.site-main {
	padding: 0;
}

.page-title,
.entry__title {
	margin: 0 0 1rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.section-title {
	margin: 3rem 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
}

.entry__date,
.card__date,
.talent__roman {
	color: var(--wp--preset--color--ink-sub);
	font-size: var(--wp--preset--font-size--small);
}

.entry__content {
	max-width: 760px;
}

/* カード一覧 */
.card-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card__link {
	display: grid;
	gap: 0.5rem;
	text-decoration: none;
}

.card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ページ内リンク（#talent など）で、見出しが固定ヘッダーの下に隠れないように */
[id] {
	scroll-margin-top: var(--vnoco-header-height);
}

/* 画面には出さず、読み上げだけに使う文字（WordPress・プラグイン共通のクラス） */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
