/* ==========================================================================
   EASEL 2026 — Base
   本文は明朝・字間詰め。UI は等幅／ゴシックで字間開け。
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--easel-header-h) + 1rem);
}

body {
	margin: 0;
	background-color: var(--easel-paper);
	color: var(--easel-ink);
	font-family: var(--easel-font-body);
	font-size: var(--easel-fs-base);
	font-weight: 400;
	line-height: 2.05;
	letter-spacing: var(--easel-ls-body);
	font-feature-settings: "palt" 1;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
}

/* --- 見出し：明朝・詰める ------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--easel-sp-2);
	font-family: var(--easel-font-display);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: var(--easel-ls-tight);
}

p {
	margin: 0 0 var(--easel-sp-2);
}

ul, ol {
	margin: 0 0 var(--easel-sp-2);
	padding-left: 1.25em;
}

a {
	color: var(--easel-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.28em;
	transition: color var(--easel-dur-fast) var(--easel-ease);
}

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

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

figure {
	margin: 0 0 var(--easel-sp-3);
}

/* --- 表：罫線は極細。数値はテクニカル書体 --------------------------- */

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--easel-sp-3);
	font-size: var(--easel-fs-sm);
}

th, td {
	padding: 0.9em 1em;
	border-bottom: var(--easel-hairline);
	text-align: left;
	vertical-align: top;
}

th {
	font-family: var(--easel-font-ui);
	font-weight: 700;
	font-size: var(--easel-fs-xs);
	letter-spacing: var(--easel-ls-wide);
	color: var(--easel-muted);
	white-space: nowrap;
}

blockquote {
	margin: 0 0 var(--easel-sp-3);
	padding: 0 0 0 var(--easel-sp-3);
	border-left: 1px solid var(--easel-primary);
	color: var(--easel-muted);
}

code, pre {
	font-family: var(--easel-font-mono);
	font-size: 0.9em;
	letter-spacing: 0;
}

pre {
	overflow-x: auto;
	padding: var(--easel-sp-2);
	background: var(--easel-ink);
	color: var(--easel-on-ink);
}

hr {
	border: 0;
	border-top: var(--easel-hairline);
	margin: var(--easel-sp-5) 0;
}

/* --- フォーム要素：直角・極細罫 ------------------------------------- */

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 0.85em 1em;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--easel-line);
	border-radius: 0;
	font-family: var(--easel-font-ui);
	font-size: var(--easel-fs-sm);
	transition: border-color var(--easel-dur-fast) var(--easel-ease);
}

input:focus,
textarea:focus,
select:focus {
	border-bottom-color: var(--easel-primary);
	outline: none;
}

::placeholder {
	color: var(--easel-muted);
	letter-spacing: var(--easel-ls-wide);
	font-size: 0.9em;
}

:focus-visible {
	outline: 1px solid var(--easel-primary);
	outline-offset: 3px;
}

/* ==========================================================================
   タイポグラフィのユーティリティ
   字間の対比を明示的に扱うためのクラス
   ========================================================================== */

/* ゴシック・開ける（ラベル、ナビ、社名） */
.u-gothic {
	font-family: var(--easel-font-ui);
	letter-spacing: var(--easel-ls-wide);
}

/* 等幅・大きく開ける（索引番号、日付、データ） */
.u-mono {
	font-family: var(--easel-font-mono);
	font-weight: 400;
	letter-spacing: var(--easel-ls-wide);
	font-variant-numeric: tabular-nums;
}

/* 明朝・詰める（見出し、リード） */
.u-mincho {
	font-family: var(--easel-font-display);
	letter-spacing: var(--easel-ls-tight);
}

/* ==========================================================================
   アクセシビリティ用ユーティリティ
   ========================================================================== */

.u-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.u-visually-hidden-focusable:not(:focus):not(:focus-within) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.c-skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 999;
	padding: 0.75em 1.25em;
	background: var(--easel-ink);
	color: var(--easel-paper);
	font-family: var(--easel-font-mono);
	font-size: var(--easel-fs-xs);
	letter-spacing: var(--easel-ls-wide);
}
