@charset "UTF-8";
/**
 * base.css
 * リセット ＋ CSS変数 ＋ タイポグラフィ
 *
 * ⚠ ここに書いた変数がサイト全体の唯一の基準です。
 *   色・余白・角丸を各CSSに直接書かないこと（ハードコード禁止）。
 */

/* ==================================================================
 * CSS変数
 * ================================================================== */
:root {
	/* ---------- Color ---------- */
	--primary: #16385a;
	--primary-dark: #0f2943;
	--primary-light: #2f5f8a;
	--accent: #f0a43a;
	--gray: #777;
	--text: #333;
	--bg: #fff;

	/*
	 * 派生色
	 * テーマカラー（--primary / --accent）は変えず、
	 * そこから派生した「色面」を増やして単調さを解消する。
	 */
	--bg-soft: #f6f8fa;    /* うすいグレー */
	--bg-cream: #fbf8f1;   /* 生成り。真っ白より紙らしく、写真が映える */
	--bg-mist: #eaf1f7;    /* うすい水色。primary-light 由来 */
	--accent-soft: #fdf3e3;/* アクセントの薄い面 */
	--border: #e3e8ed;
	--border-dot: #d8d3c4; /* 点線装飾の色 */
	--white: #fff;
	--line-green: #06c755; /* LINEブランドカラー */

	/* ---------- Font ---------- */
	/* 見出しは丸ゴシック。参考サイトのやわらかさは書体で作られている。
	   Zen Maru Gothic が読めない環境では Noto Sans JP に落ちる。 */
	--font-heading: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
	--font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
	--font-en: "Montserrat", "Noto Sans JP", sans-serif;
	/* 英字ラベル用の筆記体 */
	--font-script: "Parisienne", "Snell Roundhand", cursive;

	/* ---------- Layout ---------- */
	--container: 1200px;
	--container-narrow: 880px;
	--gutter: 20px;
	--header-h: 64px;

	/* ---------- Spacing scale ---------- */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	--sp-6: 32px;
	--sp-7: 48px;
	--sp-8: 64px;
	--sp-9: 88px;
	--sp-10: 120px;
	--section-y: clamp(64px, 10vw, 120px);

	/* ---------- Radius / Shadow ---------- */
	--radius-sm: 8px;
	--radius: 16px;
	--radius-lg: 28px;
	--radius-full: 999px;
	--shadow: 0 2px 12px rgba(22, 56, 90, .06);
	--shadow-hover: 0 8px 24px rgba(22, 56, 90, .12);

	/* ---------- Motion ---------- */
	--ease: cubic-bezier(.22, .61, .36, 1);
	--dur: .4s;

	/* ---------- z-index（衝突防止のため一元管理） ---------- */
	--z-header: 100;
	--z-cta: 150;
	--z-drawer: 200;
	--z-modal: 300;
}

@media (min-width: 1024px) {
	:root {
		--gutter: 40px;
		--header-h: 84px;
	}
}

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

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

/* Lenis を使う時はJS側でスクロールを制御するので、CSSのsmoothは切る */
html.lenis {
	scroll-behavior: auto;
}

/*
 * 背景に細かいドットのテクスチャを敷く。
 * ベタ塗りより紙のような質感が出て、写真とカードが浮き上がる。
 * 画像を使わずCSSで描いているので転送量は増えない。
 */
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.9;
	color: var(--text);
	/* ⚠ background ショートハンドを後から書かないこと。
	   background-image（テクスチャ）が打ち消される。 */
	background-color: var(--bg-cream);
	background-image: radial-gradient(rgba(22, 56, 90, .045) 1px, transparent 1px);
	background-size: 20px 20px;
	letter-spacing: .04em;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

/* ドロワーを開いている間は背面をスクロールさせない */
body.is-drawer-open {
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	/* 参考サイトは行間1.9・字間広め。詰まった見出しは硬く見えるため合わせる */
	line-height: 1.75;
	letter-spacing: .08em;
}

p, ul, ol, dl, figure, blockquote {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

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

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

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

input, textarea, select {
	font: inherit;
	color: inherit;
	max-width: 100%;
}

table {
	border-collapse: collapse;
	width: 100%;
}

address {
	font-style: normal;
}

/* キーボード操作時だけフォーカスリングを出す */
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ==================================================================
 * タイポグラフィ
 * ================================================================== */
.u-en {
	font-family: var(--font-en);
	letter-spacing: .12em;
}

/* 本文（固定ページのエディタ出力）の基本スタイル */
.c-content > * + * {
	margin-top: var(--sp-5);
}

.c-content h2 {
	margin-top: var(--sp-8);
	padding-bottom: var(--sp-3);
	border-bottom: 2px solid var(--primary);
	font-size: 1.375rem;
	color: var(--primary);
}

.c-content h3 {
	margin-top: var(--sp-7);
	font-size: 1.125rem;
	color: var(--primary);
}

.c-content a {
	color: var(--primary-light);
	text-decoration: underline;
}

.c-content a:hover {
	color: var(--primary);
}

.c-content ul,
.c-content ol {
	padding-left: 1.4em;
}

.c-content ul {
	list-style: disc;
}

.c-content ol {
	list-style: decimal;
}

.c-content li + li {
	margin-top: var(--sp-2);
}

.c-content img {
	border-radius: var(--radius);
}

.c-content blockquote {
	padding: var(--sp-4) var(--sp-5);
	border-left: 4px solid var(--border);
	background: var(--bg-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--gray);
}

/* ==================================================================
 * アクセシビリティ
 * ================================================================== */

/* スクリーンリーダー専用テキスト */
.u-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* 本文へスキップ（Tabキーで最初に出る） */
.c-skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: var(--z-modal);
	padding: var(--sp-3) var(--sp-5);
	background: var(--primary);
	color: var(--white);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.c-skip-link:focus {
	top: 0;
}

/* 動きを減らす設定のユーザーにはアニメーションを出さない */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
