/*
Theme Name: Topcast LP Theme
Description: 広告記事LP向けの1カラムテーマ。
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: topcast-lp-theme
*/

body {
	margin: 0;
	background: #fff;
	color: #242923;
	font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

.topcast-lp {
	--topcast-gutter: min(var(--topcast-padding, 20px), 8vw);
	box-sizing: border-box;
	max-inline-size: calc(var(--topcast-width, 720px) + 2 * var(--topcast-gutter));
	margin-inline: auto;
	padding-block: clamp(28px, 6vw, 64px);
	padding-inline: var(--topcast-gutter);
	font-size: var(--topcast-font-size, 16px);
	line-height: var(--topcast-line-height, 1.8);
	overflow-wrap: anywhere;
}

.topcast-lp__title {
	margin: 0 0 0.9em;
	font-size: clamp(1.75em, calc(1.25em + 2vw), 2.5em);
	line-height: 1.25;
	letter-spacing: -0.035em;
}

.topcast-lp__content > :where(p, ul, ol, figure, blockquote) {
	margin-block: 0 1.35em;
}

.topcast-lp__content :where(h2, h3) {
	margin-block: 1.65em 0.6em;
	line-height: 1.35;
}

.topcast-lp :where(img, video) {
	max-inline-size: 100%;
	block-size: auto;
}

.topcast-lp :where(iframe, embed, object) {
	max-inline-size: 100%;
}

.topcast-lp :where(.wp-block-embed__wrapper iframe) {
	inline-size: 100%;
}

.topcast-lp :where(pre, .wp-block-table) {
	overflow-x: auto;
}

.topcast-lp :where(a:not(.wp-element-button)) {
	color: #245b44;
	text-underline-offset: 0.15em;
}

.topcast-lp :where(a, button, video):focus-visible {
	outline: 2px solid #245b44;
	outline-offset: 3px;
}
