@charset "UTF-8";
/* ==========================================================================
   まるまる経理 - 共通スタイル（CSS変数 / リセット / 基底 / ボタン）
   Figmaデザイン v2 (file: y4wLGKghFkbChozYIrOo0B / node: 487:4289) より抽出
   ========================================================================== */

/* ===== Zen Maru Gothic セルフホスト =====
   Google Fonts 経由配信を止め、子テーマに同梱した woff2 を直接使用する。
   外部 DNS+TLS+CSS+woff2 の4ホップが不要となり、preload 併用で初回描画
   フレームに間に合わせられる。Windows 系（丸ゴシックの標準フォント無し）
   環境でも「角ゴシック→丸ゴシック」の2段階表示を解消できる。
   サブセット範囲: ASCII / Latin-1 / 各種記号 / CJK 統合漢字 / 全角英数記号。
   ライセンス: SIL Open Font License 1.1 (OFL.txt 同梱)。
   ========================================================================== */
@font-face {
	font-family: "Zen Maru Gothic";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../../fonts/zen-maru-gothic/zen-maru-gothic-500.woff2") format("woff2");
}
@font-face {
	font-family: "Zen Maru Gothic";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../../fonts/zen-maru-gothic/zen-maru-gothic-700.woff2") format("woff2");
}
@font-face {
	font-family: "Zen Maru Gothic";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../../fonts/zen-maru-gothic/zen-maru-gothic-900.woff2") format("woff2");
}

/* ===== ローカルフォントフォールバック =====
   万一 self-host の woff2 ロード前にレイアウトが発火した場合に備え、
   macOS / iOS の Hiragino Maru Gothic ProN を size-adjust 補正で
   Zen Maru Gothic のメトリクスに近づけたフォールバックを残す。
   self-host が正常に preload されれば実質ほぼ発火しない保険。
   ========================================================================== */
@font-face {
	font-family: "Zen Maru Gothic Fallback";
	src: local("Hiragino Maru Gothic ProN"), local("Hiragino Maru Gothic Pro");
	font-weight: 100 900;
	font-style: normal;
	size-adjust: 102%;
	ascent-override: 88%;
	descent-override: 22%;
	font-display: swap;
}

/* ===== CSS変数 ===== */
:root {
	/* Brand */
	--color-primary: #40916c;            /* メインの緑 (1170回出現) */
	--color-primary-dark: #2c3e2d;       /* 緑の濃い変種 */
	--color-primary-darker: #245137;
	--color-accent: #ffc630;             /* 黄/ゴールド */
	--color-accent-dark: #e2b40a;
	--color-accent-warm: #f0b429;

	/* Text */
	--color-text: #37433e;               /* 本文ダーク */
	--color-text-warm: #494439;          /* 暖色ダーク */
	--color-text-muted: #9daba4;
	--color-text-on-primary: #ffffff;

	/* Backgrounds */
	--color-bg: #ffffff;
	--color-bg-mint-strong: #c8e4d7;
	--color-bg-mint: #d0e3db;
	--color-bg-mint-soft: #dae9e3;
	--color-bg-mint-lightest: #e9f1ee;
	--color-bg-cream: #faf4da;
	--color-bg-light: #f8f8f8;

	/* Border */
	--color-border: #d9d9d9;
	--color-border-soft: #e9f1ee;

	/* Shadow */
	--shadow-soft: 0 4px 20px rgba(50, 50, 50, .05);
	--shadow-md: 0 4px 10px rgba(61, 91, 98, .2);
	--shadow-card: 0 8px 24px rgba(61, 91, 98, .12);

	/* Radius */
	--radius-xs: 3px;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 10px;
	--radius-xl: 30px;
	--radius-pill: 9999px;

	/* Fonts */
	--font-base: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
	/* Zen Maru Gothic がロード完了するまでの間も丸ゴシックで描画させるため、
	 * macOS / iOS に標準搭載の Hiragino Maru Gothic ProN を直接フォールバック先に指定。
	 * Zen Maru Gothic Fallback (size-adjust 付き) はメトリクス補正用に残す。
	 * Windows 系には標準の丸ゴシックが無いため Zen Kaku Gothic New 以降にフォールバック。 */
	--font-emphasis: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Zen Maru Gothic Fallback", var(--font-base);
	--font-numeric: "M PLUS Rounded 1c", var(--font-base);

	/* Sizes (1rem = 16px) */
	--fs-xs: 0.625rem;     /* 10px */
	--fs-sm: 0.75rem;      /* 12px */
	--fs-base: 0.875rem;   /* 14px */
	--fs-md: 1rem;         /* 16px */
	--fs-lg: 1.125rem;     /* 18px */
	--fs-xl: 1.375rem;     /* 22px */
	--fs-2xl: 1.625rem;    /* 26px */
	--fs-3xl: 2rem;        /* 32px */
	--fs-4xl: 2.5rem;      /* 40px */
	--fs-5xl: 3.5rem;      /* 56px */
	--fs-numeric-lg: 3.3125rem; /* 53px */

	/* Layout (legacy: 既存セレクタ用) */
	--container-max: 1280px;
	--container-px: 32px;
	--section-py: 96px;
	--header-h: 94px;

	/* Layout (Figma 487:4289 実測ベース・新セレクタ用) */
	--cw-std: 1000px;       /* About/強み/サービス/料金/比較/流れ/声/コラム/運営/CTA外側 */
	--cw-narrow: 840px;     /* FAQ・無料相談 */
	--cw-full: 1440px;      /* Hero/CTA/footer のフルブリード */
	--section-py-std: 80px;       /* 多数セクション (Figma pad 80/10) */
	--section-py-problems: 60px;  /* お悩み (Figma pad 60/10) */
	--section-py-footer: 64px;    /* footer (Figma pad 64/220) */
}

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

html {
	scroll-behavior: auto;
	font-size: 16px;
	scroll-padding-top: var(--header-h);
}

body {
	font-family: var(--font-base);
	color: var(--color-text);
	background: var(--color-bg);
	font-weight: 500;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color .25s ease, opacity .25s ease;
}

a:hover {
	color: var(--color-primary-dark);
}

ul, ol {
	list-style: none;
}

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

input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

/* ===== レイアウトユーティリティ ===== */
.l-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-px);
}

.l-container--narrow {
	max-width: 1080px;
}

/* ===== セクション共通 ===== */
.l-section {
	padding-block: var(--section-py);
	position: relative;
}

.section-head {
	text-align: center;
	margin-bottom: 48px;
}

.section-eyebrow {
	display: block;
	font-family: var(--font-numeric);
	font-weight: 800;
	font-size: var(--fs-md);
	letter-spacing: 0.16em;
	color: var(--color-primary);
	margin-bottom: 12px;
	text-transform: uppercase;
}

.section-title {
	font-family: var(--font-base);
	font-weight: 700;
	font-size: var(--fs-4xl);
	line-height: 1.4;
	color: var(--color-text);
	letter-spacing: 0.04em;
}

.section-title__accent {
	color: var(--color-primary);
}

.section-title__highlight {
	background: linear-gradient(transparent 60%, rgba(255, 198, 48, .55) 60%);
	padding: 0 .08em;
}

.section-lead {
	font-size: var(--fs-md);
	line-height: 1.9;
	color: var(--color-text);
	max-width: 720px;
	margin: 24px auto 0;
	text-align: center;
}

/* ===== ボタン ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--font-base);
	font-weight: 700;
	cursor: pointer;
	border: none;
	transition: transform .2s ease, box-shadow .25s ease, opacity .25s ease, background .25s ease;
	text-decoration: none;
	white-space: nowrap;
	letter-spacing: 0.04em;
	line-height: 1;
}

.btn-primary {
	background: var(--color-accent);
	color: var(--color-text-warm);
	padding: 22px 56px;
	border-radius: var(--radius-pill);
	font-size: var(--fs-lg);
	box-shadow: var(--shadow-md);
}

.btn-primary::after {
	content: "";
	width: 12px;
	height: 12px;
	border-right: 2px solid var(--color-text-warm);
	border-top: 2px solid var(--color-text-warm);
	transform: rotate(45deg);
	margin-left: 4px;
	transition: transform .25s ease;
}

.btn-primary:hover {
	background: var(--color-accent-warm);
	color: var(--color-text-warm);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(61, 91, 98, .25);
}

.btn-primary:hover::after {
	transform: rotate(45deg) translate(2px, -2px);
}

.btn-large {
	padding: 26px 72px;
	font-size: var(--fs-xl);
}

.btn-outline {
	background: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
	padding: 18px 44px;
	border-radius: var(--radius-pill);
	font-size: var(--fs-md);
}

.btn-outline:hover {
	background: var(--color-primary);
	color: #fff;
	transform: translateY(-2px);
}

/* ===== scroll-reveal ===== */
[data-reveal] {
	opacity: 1;
	transform: none;
	transition: none;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* ===== アクセシビリティ ===== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ===== レスポンシブ調整 ===== */
@media (max-width: 1024px) {
	:root {
		--section-py: 80px;
		--container-px: 24px;
		--fs-5xl: 2.75rem;
		--fs-4xl: 2rem;
	}
}

@media (max-width: 900px) {
	:root {
		--section-py: 72px;
		--fs-5xl: 2.4rem;
		--fs-4xl: 1.8rem;
		--fs-3xl: 1.6rem;
	}

	.section-head {
		margin-bottom: 36px;
	}
}

@media (max-width: 768px) {
	:root {
		--header-h: 64px;
		--section-py: 60px;
		--container-px: 18px;
		--fs-5xl: 2rem;
		--fs-4xl: 1.5rem;
		--fs-3xl: 1.4rem;
		--fs-2xl: 1.25rem;
	}

	.btn-primary {
		padding: 18px 36px;
		font-size: var(--fs-md);
	}

	.btn-large {
		padding: 20px 40px;
		font-size: var(--fs-lg);
	}
}

@media (max-width: 480px) {
	:root {
		--section-py: 48px;
		--container-px: 16px;
		--fs-5xl: 1.75rem;
		--fs-4xl: 1.4rem;
	}
}
