/* v2 のデザイントークン。色・文字・余白・形はここだけで決め、部品は変数で参照する */
@layer tokens, base, layout, components, utilities;

@layer tokens {
	:root {
		/* 色: 紫と緑。濃い紫の地に緑の文字、緑の地に濃い文字は置かない */
		--c-brand: #43394e;
		--c-brand-deep: #2b2433;
		--c-ink: #43394e;
		--c-ink-sub: #5c5466;
		--c-ink-mute: #6e6578;
		--c-on-brand: #ffffff;
		--c-on-brand-sub: #e4dfea;
		--c-accent: #75c4b4;
		--c-accent-text: #23786a;
		--c-bg: #ffffff;
		--c-soft: #f4f3f6;
		--c-soft-2: #ece9f0;
		--c-line: #e3e0e7;
		--c-line-strong: #d6d1dc;
		--c-input-line: #b9b3c0;
		--c-focus: #23786a;
		--c-error: #b3261e;
		--c-error-soft: #fdf6f5;
		--c-like: #d6336c;
		--c-mark: #c9c2d3; /* 引用の記号・ターミナル図の丸など、淡い飾りの印 */

		/* 文字 */
		--f-en: "urw-din-semi-condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
		--f-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
		--f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
		/* 丸い矢印のボタン（::after の背景）に使う矢印。白は紫の丸の上、紫は白の丸の上 */
		--icon-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
		--icon-arrow-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343394e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");

		/* 文字の大きさは次の 8 段だけ（PC / SP）。新しい指定もこの中から選ぶ */
		--fs-xs: 0.75rem; /* 12 / 12 日付・札・注記 */
		--fs-sm: 0.875rem; /* 14 / 14 補助の文・メニュー・ボタン */
		--fs-md: 1rem; /* 16 / 16 本文・リード文 */
		--fs-lg: 1.125rem; /* 18 / 18 カードの題名・小見出し */
		--fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); /* 24 / 20 節の見出し */
		--fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); /* 36 / 28 ページの題名・大きな数字 */
		--fs-en: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem); /* 56 / 40 英字の見出し */
		--fs-display: clamp(3.5rem, 2rem + 6vw, 6rem); /* 96 / 56 特大の英字・飾りの番号 */
		--lh-body: 1.9;
		--lh-tight: 1.45;
		--ls-en: 0.08em;
		--ls-en-wide: 0.16em;

		/* 余白（4 の倍数） */
		--sp-1: 0.25rem;
		--sp-2: 0.5rem;
		--sp-3: 0.75rem;
		--sp-4: 1rem;
		--sp-5: 1.5rem;
		--sp-6: 2rem;
		--sp-7: 3rem;
		--sp-8: 4.5rem;
		--sp-9: 7.5rem;
		--section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
		--gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);
		--w-content: 75rem;
		--w-text: 47.5rem;

		/* 形: 斜めの面と札 */
		--slant: 22px;
		--clip-tag: polygon(40% 0, 100% 0, 60% 100%, 0 100%);
		--radius-sm: 4px;
		--radius-md: 8px;
		--radius-pill: 999px;
		--shadow-lift: 0 8px 20px rgba(40, 30, 50, 0.16);
		--shadow-card: 0 12px 32px rgba(30, 20, 40, 0.16);

		/* 動き */
		--ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
		--dur-fast: 0.25s;
		--dur-slow: 0.8s;
	}
}
