/* 基本スタイル: リセット補完・タイポグラフィ・コンテナ・ボタン。モバイルファースト。 */

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

body {
	margin: 0;
	font-family: var(--wpt-font-body);
	font-size: 16px;
	line-height: 1.9;
	color: var(--wpt-ink);
	background: var(--wpt-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--wpt-color-link);
}

h1,
h2,
h3,
h4 {
	font-family: var(--wpt-font-heading);
	font-weight: 600;
	line-height: 1.4;
	color: var(--wpt-color-primary-deep);
	margin: 0 0 0.75em;
}

h1 {
	font-size: clamp(1.65rem, 5vw, 2.4rem);
}

h2 {
	font-size: clamp(1.4rem, 4vw, 1.9rem);
}

h3 {
	font-size: clamp(1.15rem, 3vw, 1.35rem);
}

.wpt-container {
	max-width: var(--wpt-content-width);
	margin-inline: auto;
	padding-inline: 20px;
}

.wpt-main {
	display: block;
}

/* セクション見出し(金の短い下線) */
.wpt-section__title {
	text-align: center;
	position: relative;
	padding-bottom: 18px;
	margin-bottom: clamp(2rem, 5vw, 3rem);
}

.wpt-section__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 40px;
	height: 3px;
	background: var(--wpt-color-accent);
}

.wpt-section {
	padding-block: var(--wpt-section-pad);
}

.wpt-section--alt {
	background: var(--wpt-bg-alt);
}

/* ボタン */
.wpt-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: var(--wpt-radius-btn);
	font-weight: bold;
	text-decoration: none;
	text-align: center;
	line-height: 1.5;
	border: 2px solid transparent;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpt-btn:hover {
	opacity: 0.88;
	transform: translateY(-1px);
}

.wpt-btn--primary {
	background: var(--wpt-color-primary);
	color: #fff;
}

.wpt-btn--accent {
	background: var(--wpt-color-accent);
	color: var(--wpt-color-primary-deep);
}

.wpt-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.8);
}

.wpt-btn--block {
	display: block;
	width: 100%;
}

/* ユーティリティ */
.wpt-text-center {
	text-align: center;
}

.wpt-muted {
	color: var(--wpt-ink-muted);
}

.wpt-note {
	font-size: 0.85rem;
	color: var(--wpt-ink-muted);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

/* 本文ページ(固定ページ・投稿) */
.wpt-entry {
	max-width: var(--wpt-text-width);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

.wpt-entry .entry-content h2 {
	border-left: 4px solid var(--wpt-color-accent);
	padding-left: 14px;
	text-align: left;
	margin-top: 2.5em; /* 直前の段落・表との呼吸(先頭は除外) */
}

.wpt-entry .entry-content h2:first-child {
	margin-top: 0;
}

.wpt-entry .entry-content h3 {
	margin-top: 1.8em;
}

.wpt-entry .entry-content h3:first-child {
	margin-top: 0;
}

.wpt-entry .entry-content h2::after {
	content: none;
}

/* ページタイトル帯 */
.wpt-page-header {
	background: var(--wpt-color-primary-soft);
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.wpt-page-header h1 {
	margin: 0;
}

.wpt-breadcrumb {
	font-size: 0.8rem;
	color: var(--wpt-ink-muted);
	margin-bottom: 8px;
}

.wpt-breadcrumb a {
	color: inherit;
	text-decoration: none;
}
