@charset "UTF-8";
/**
 * base.css — リセット・変数・タイポグラフィ
 *
 * DESIGN-SPEC.md の数値をここで変数として定義する。
 * 各CSSはこの変数を参照し、値を直接書かない。
 */

/* ============================================================
   変数
   ============================================================ */
:root {
	/* --- カラー（現行 bundle.css の実測値を踏襲） --- */
	--c-bg:            #ffffff;
	--c-text:          #333333;
	--c-accent:        #007aff;
	--c-text-sub:      #666666;
	--c-text-muted:    #919191;
	--c-border:        #dddddd;
	--c-border-light:  #cccccc;
	--c-bg-tint:       #f5f5f5;
	--c-bg-tint2:      #f7f7f7;
	--c-bg-blue:       #f7f9fc;
	--c-alert:         #ef4444;

	/* --- フォント --- */
	--fontB: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	--fontP: var(--fontB);

	/* --- タイポグラフィ --- */
	--fs-body:     16px;  /* 16pxを下回らない（可読性・SPの自動ズーム防止） */
	--fs-h2:       24px;
	--fs-h3:       20px;
	--fs-caption:  13px;
	--fs-sidebar:  15px;

	--lh-body:     1.9;   /* 可読性最優先。現行より広く取る */
	--lh-heading:  1.4;

	--mb-paragraph: 1.6em;

	/* --- レイアウト --- */
	--w-content:   1120px; /* 2カラム全体の最大幅 */
	--w-article:   760px;  /* 本文カラム。全角40〜45文字に収まる幅 */
	--w-sidebar:   300px;
	--gap-column:  40px;

	/* --- 装飾（抑制的に） --- */
	--radius-sm:   3px;
	--radius-md:   6px;
	--radius-lg:   10px;
	--shadow-card: 0 2px 8px rgba(0, 0, 0, .06);
}

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

html {
	/* ライト固定。OSのダーク設定に引きずられないようにする */
	color-scheme: light;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--fontB);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	/* 日本語の可読性向上 */
	font-feature-settings: "palt";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 700;
	line-height: var(--lh-heading);
}

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

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

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

a {
	color: var(--c-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

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

/* スクロール抑止（ハンバーガーメニュー展開時） */
.hide-scroll {
	overflow: hidden;
}

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

/* キーボード操作時のフォーカス表示（アクセシビリティ） */
:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

/* 動きを減らす設定のユーザーに配慮 */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* ============================================================
   レスポンシブ（ブレークポイントは2点に集約）
   ============================================================ */
@media (max-width: 768px) {
	:root {
		--fs-h2: 20px;
		--fs-h3: 18px;
		--fs-caption: 12px;
	}
}

@media (max-width: 450px) {
	:root {
		--gap-column: 24px;
	}
}
