/* ==========================================================================
   base.css — CSS変数・リセット・共通タイポグラフィ.
   ========================================================================== */

/* ---------- カスタムプロパティ ---------- */
:root {
	/* カラー */
	--color-black: #000000;
	--color-lightgray: #eeeeee;
	--color-white: #FFFFFF;
	--color-accent: #349188;
	--color-accent-text: #2B7D74;          /* AA準拠 4.75:1（通常テキスト用） */
	--color-bg-section: rgba(237, 240, 228, 0.5);

	/* フォント */
	--font-family-base: "Noto Sans JP", sans-serif;

	/* フォントサイズ */
	--font-size-xs: 0.75rem;       /* 12px */
	--font-size-sm: 0.875rem;      /* 14px */
	--font-size-base: 1rem;        /* 16px */
	--font-size-lg: 1.125rem;      /* 18px */
	--font-size-xl: 1.5rem;        /* 24px */
	--font-size-2xl: 2rem;         /* 32px */

	/* フォントウェイト */
	--font-weight-normal: 400;
	--font-weight-bold: 700;

	/* レイアウト */
	--content-max-width: 1450px;
	--content-padding: 2rem;

	/* スペーシング */
	--space-xs: 0.5rem;    /* 8px */
	--space-sm: 1rem;      /* 16px */
	--space-md: 1.5rem;    /* 24px */
	--space-lg: 2rem;      /* 32px */
	--space-xl: 3rem;      /* 48px */
	--space-2xl: 4rem;     /* 64px */
	--space-3xl: 6rem;     /* 96px */

	/* 半透明背景（花札背景対策） */
	--color-bg-glass: rgba(255, 255, 255, 0.8);
	--color-bg-glass-light: rgba(255, 255, 255, 0.6);

	/* 花札背景 */
	--hanafuda-opacity: 0.1;

	/* ヘッダー高さ */
	--header-height: 80px;
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-normal);
	line-height: 1.8;
	color: var(--color-black);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

ul,
ol {
	list-style: none;
}

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

/* ---------- 共通タイポグラフィ ---------- */
h1, h2, h3, h4, h5, h6 {
	font-weight: var(--font-weight-bold);
	line-height: 1.4;
}

/* ---------- 共通レイアウト ---------- */
.l-container {
	max-width: var(--content-max-width);
	margin-inline: auto;
	padding-inline: var(--content-padding);
}

.l-container--narrow {
	max-width: 960px;
	margin-inline: auto;
	padding-inline: var(--content-padding);
}

/* ---------- ユーティリティ ---------- */
.br-pc,
.br-sp {
	display: none;
}

@media (min-width: 1024px) {
	.br-pc {
		display: inline;
	}
	.br-pc::after {
		content: "\A";
		white-space: pre;
	}
}

@media (max-width: 767px) {
	.br-sp {
		display: inline;
	}
	.br-sp::after {
		content: "\A";
		white-space: pre;
	}
}

.nowrap {
	white-space: nowrap;
}

/* ---------- スクリーンリーダー専用 ---------- */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
