/* =========================================================================
   base.css — デザイントークン・リセット・タイポグラフィ・共通ユーティリティ
   ========================================================================= */

:root {
	/* カラー */
	--c-pink: #f27186;          /* ロゴ */
	--c-rose: #c94d87;          /* ナビ・見出し */
	--c-rose-deep: #8f3a64;     /* カード内見出し */
	--c-ink: #5b3d4b;           /* 本文 */
	--c-ink-soft: #7d6070;
	--c-cast: #b7608d;
	--c-line: #2ccf54;
	--c-black: #141414;
	--c-white: #fff;

	/* グラス・モーフィズム */
	--card-bg: rgba(255, 255, 255, 0.15);          /* カード型ブロックの背景 */
	--card-bg-strong: rgba(255, 255, 255, 0.72);   /* 濃くしたいセクション用（経営理念など） */
	--glass-bg: rgba(255, 255, 255, 0.55);
	--glass-bg-strong: rgba(255, 255, 255, 0.72);
	--glass-border: rgba(255, 255, 255, 0.65);
	--glass-blur: 16px;
	--glass-shadow: 0 12px 32px rgba(120, 40, 72, 0.12);

	/* フォント */
	--ff-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
	--ff-sans: "Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;

	/* レイアウト */
	--main-w: 400px;
	--main-offset-max: 240px;
	/* 最小20px、1920px で約220px（最大 --main-offset-max） */
	--main-offset: clamp(min(20px, var(--main-offset-max)), (100vw - 1000px) * 0.24, var(--main-offset-max));
	--gutter: 24px;
	--vh: 100vh;
	--radius: 18px;

	/* 重なり順：背景 < コンテンツ < 左右UI < パネル < スマホフッター < メニュー < ハンバーガー */
	--z-side: 10;
	--z-panel: 30;
	--z-footer: 40;
	--z-menu: 50;
	--z-burger: 60;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@supports (height: 100dvh) {
	:root { --vh: 100dvh; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	overflow-x: clip;
	background: #fbe7e9;
}

body {
	margin: 0;
	min-height: var(--vh);
	font-family: var(--ff-serif);
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: 0.06em;
	color: var(--c-ink);
	background: transparent;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "palt" 1;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--ff-serif);
	font-weight: 600;
	line-height: 1.6;
}

p { margin: 0; }

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--c-rose);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- スキップリンク ---------- */
.c-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 8px 16px;
	background: #fff;
	color: var(--c-rose-deep);
	border-radius: 999px;
	transform: translateY(-200%);
	transition: transform 0.2s;
}
.c-skip:focus { transform: none; }

/* ---------- グラス・モーフィズム（半透明の白はすべてこれ） ---------- */
.u-glass {
	background: var(--glass-bg);
	-webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
	backdrop-filter: blur(var(--glass-blur)) saturate(140%);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	box-shadow: var(--glass-shadow);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	:root {
		--glass-bg: rgba(255, 255, 255, 0.88);
		--glass-bg-strong: rgba(255, 255, 255, 0.94);
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- 表示アニメーション（JS 有効時のみ） ---------- */
.js [data-reveal],
.js .c-section__content > :not(.sgr-hero) {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible,
.js .c-section__content > .is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js [data-reveal],
	.js .c-section__content > :not(.sgr-hero) {
		opacity: 1;
		transform: none;
	}
}
