/* ==========================================================================
   NOIR GOLD - ベース
   ========================================================================== */

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

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

html,
body {
	/* 何かがはみ出しても、ページ全体が横に広がらないようにする保険 */
	max-width: 100%;
}

body {
	margin: 0;
	background-color: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--ff-gothic);
	font-size: var(--fs-body);
	font-weight: 300;
	line-height: var(--lh-body);
	letter-spacing: var(--ls-body);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--ff-mincho);
	font-weight: 400;
	line-height: var(--lh-tight);
	letter-spacing: var(--ls-display);
}

p {
	margin: 0 0 1.6em;
}

p:last-child {
	margin-bottom: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

li {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}

a:hover {
	color: var(--c-gold-lt);
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

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

/* 数字は等幅かつセリフ体にすると一気に「値段の高い」見た目になる */
time,
.u-num {
	font-family: var(--ff-display);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
}

/* --- フォーカス ---------------------------------------------------------- */
/* カスタムカーソルを入れてもフォーカスリングは絶対に消さない */
:focus-visible {
	outline: 2px solid var(--c-gold);
	outline-offset: 3px;
}

/* --- スキップリンク ------------------------------------------------------ */
.c-skip {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: calc(var(--z-loader) + 1);
	padding: 12px 24px;
	background: var(--c-bg);
	border: 1px solid var(--c-gold);
	color: var(--c-gold);
	font-size: var(--fs-small);
	letter-spacing: var(--ls-label);
	transform: translate(-50%, -120%);
	transition: transform var(--dur-fast) var(--ease);
}

.c-skip:focus {
	transform: translate(-50%, 0);
}

/* --- 選択範囲 ------------------------------------------------------------ */
::selection {
	background: var(--c-gold);
	color: var(--c-bg);
}

/* --- スクロールバー（対応ブラウザのみ） ---------------------------------- */
@supports (scrollbar-color: red blue) {
	html {
		scrollbar-color: var(--c-gold-dk) var(--c-bg);
		scrollbar-width: thin;
	}
}

/* --- ユーティリティ ------------------------------------------------------ */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.u-hidden {
	display: none !important;
}

/* --- ページ遷移（対応ブラウザのみ 2 行で効く） ---------------------------- */
@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.5s;
	animation-timing-function: var(--ease);
}
