@charset "UTF-8";
/* ==========================================================================
   CHALK MAP — main.css
   コンセプト：「黒板（チョークアート）」×「地図（ご縁の地図）」
   - 濃色セクション：.cm-board（黒板）
   - 淡色セクション：.cm-paper（方眼の地図用紙）
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--board: #26402f;
	--board-2: #1c3125;
	--board-3: #30503d;
	--chalk: #f4f1e6;
	--chalk-2: rgba(244, 241, 230, .74);
	--chalk-3: rgba(244, 241, 230, .22);
	--chalk-4: rgba(244, 241, 230, .1);
	--paper: #f6f2e6;
	--paper-2: #ede6d3;
	--paper-3: #fffdf7;
	--ink: #22322a;
	--ink-2: #56645b;
	--line: rgba(34, 50, 42, .16);
	--green: #2f7d4f;
	--green-l: #a3d69c;
	--yellow: #f4c94e;
	--pink: #f19c8b;
	--blue: #8dc6e2;
	--wood: #9b7350;
	--wood-2: #7a5636;

	--f-hand: "Klee One", "Hiragino Maru Gothic ProN", sans-serif;
	--f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
	--f-en: "Caveat", "Klee One", cursive;

	--header-h: 76px;
	--radius: 10px;
	--container: 1180px;
	--narrow: 880px;
	--ease: cubic-bezier(.22, .8, .24, 1);

	--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--noise-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 6 C 14 1, 22 9, 34 5 S 56 2, 68 6 S 92 9, 104 4 S 116 5, 118 5' fill='none' stroke='%23f4c94e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: .04em;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .25s, opacity .25s, background-color .25s, transform .35s var(--ease), box-shadow .35s; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.5; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--yellow); color: var(--ink); padding: 8px 16px; border-radius: 6px; }
.cm-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
br.sp { display: none; }
.cm-center { text-align: center; }
.cm-mt-l { margin-top: 64px; }

.cm-icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.cm-container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.cm-container--narrow { width: min(100% - 48px, var(--narrow)); margin-inline: auto; }
.cm-container .cm-container--narrow { width: min(100%, var(--narrow)); }

/* ---------- Surfaces ---------- */
.cm-board {
	position: relative;
	color: var(--chalk);
	background-color: var(--board);
	background-image:
		var(--noise),
		radial-gradient(ellipse 60% 40% at 15% 20%, rgba(255,255,255,.05), transparent 70%),
		radial-gradient(ellipse 50% 35% at 85% 75%, rgba(255,255,255,.045), transparent 70%);
}
.cm-paper {
	position: relative;
	background-color: var(--paper);
	background-image:
		var(--noise-dark),
		linear-gradient(rgba(47,125,79,.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(47,125,79,.07) 1px, transparent 1px);
	background-size: auto, 32px 32px, 32px 32px;
}
.cm-paper--alt { background-color: var(--paper-2); }

.cm-section { padding: clamp(80px, 10vw, 140px) 0; }
.cm-section__lead { text-align: center; color: var(--ink-2); margin: -8px auto 48px; }
.cm-board .cm-section__lead { color: var(--chalk-2); }

/* ---------- Heading ---------- */
.cm-heading { text-align: center; margin-bottom: 40px; }
.cm-heading__en {
	display: block;
	font-family: var(--f-en);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 34px);
	letter-spacing: .06em;
	line-height: 1.1;
	color: var(--green);
}
.cm-board .cm-heading__en { color: var(--yellow); }
.cm-heading__ja {
	display: inline-block;
	font-family: var(--f-hand);
	font-size: clamp(22px, 2.6vw, 32px);
	padding-bottom: 14px;
	background: var(--squiggle) no-repeat center bottom / 120px 10px;
}
.cm-label {
	font-family: var(--f-en);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: .08em;
	line-height: 1;
	color: var(--green);
	margin-bottom: 14px;
}
.cm-board .cm-label { color: var(--yellow); }

/* ---------- Buttons / chips / tags ---------- */
.cm-btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.cm-btns--center { justify-content: center; }
.cm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 56px; padding: .8em 2em;
	font-family: var(--f-hand); font-weight: 600; font-size: 16px; letter-spacing: .06em;
	color: var(--chalk); background: var(--board);
	border-radius: 999px;
	box-shadow: 0 4px 0 var(--board-2);
}
.cm-btn .cm-icon { transition: transform .35s var(--ease); }
.cm-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--board-2); }
.cm-btn:hover .cm-icon:last-child { transform: translateX(4px); }
.cm-btn--chalk { color: var(--ink); background: var(--yellow); box-shadow: 0 4px 0 #c99a25; }
.cm-btn--chalk:hover { box-shadow: 0 6px 0 #c99a25; }
.cm-btn--ghost { color: var(--chalk); background: transparent; border: 1.5px solid var(--chalk-2); box-shadow: none; }
.cm-btn--ghost:hover { background: var(--chalk-4); box-shadow: none; }
.cm-btn--line { background: #06c755; color: #fff; box-shadow: 0 4px 0 #04943f; }
.cm-btn--lg { min-height: 64px; font-size: 17px; padding-inline: 2.4em; }

.cm-textlink { display: inline-flex; align-items: center; gap: .5em; font-family: var(--f-hand); font-weight: 600; border-bottom: 1.5px dashed currentColor; padding-bottom: 2px; }
.cm-textlink:hover { color: var(--green); }

.cm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-chips--center { justify-content: center; margin-bottom: 48px; }
.cm-chip {
	display: inline-flex; align-items: center;
	padding: .35em 1.1em;
	font-size: 14px; line-height: 1.6;
	border: 1.5px solid currentColor; border-radius: 999px;
	background: transparent;
}
a.cm-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cm-chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cm-board a.cm-chip { color: var(--chalk); border-color: var(--chalk-3); }
.cm-board a.cm-chip:hover { background: var(--chalk); color: var(--board); }
.cm-chips--lg .cm-chip { font-family: var(--f-hand); font-size: 16px; padding: .5em 1.3em; background: var(--paper-3); border-color: var(--line); box-shadow: 0 2px 0 var(--line); }

.cm-tag {
	display: inline-block; font-size: 11px; letter-spacing: .08em; line-height: 1.6;
	padding: .1em .8em; border-radius: 4px;
	background: var(--green); color: #fff;
	margin-right: 6px;
}
.cm-tag--wall { background: #c4675a; }
.cm-tag--window { background: #3f8db3; }
.cm-tag--blackboard { background: var(--board); }
.cm-tag--copy { background: #6d6255; }
.cm-tag--illustration { background: #c5814d; }

.cm-draft {
	display: inline-block; vertical-align: middle; margin-left: .6em;
	font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: .1em;
	color: #8a2b1f; background: #ffe2db; border: 1px dashed #c4675a; border-radius: 4px; padding: 0 .6em;
}

/* placeholder */
.cm-ph {
	display: grid; place-items: center;
	width: 100%; height: 100%; min-height: 120px;
	aspect-ratio: 4 / 3;
	background:
		repeating-linear-gradient(-45deg, transparent 0 10px, rgba(34,50,42,.05) 10px 11px),
		var(--paper-2);
	color: rgba(34,50,42,.4);
	font-family: var(--f-en); font-weight: 700; font-size: 22px; letter-spacing: .1em;
}
.cm-board .cm-ph { background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--chalk-4) 10px 11px), var(--board-3); color: var(--chalk-3); }

/* ---------- Header ---------- */
.cm-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	color: var(--chalk);
	transition: background-color .35s, box-shadow .35s, height .35s;
}
.cm-header.is-scrolled {
	background-color: rgba(28, 49, 37, .94);
	background-image: var(--noise);
	box-shadow: 0 1px 0 var(--chalk-4);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cm-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; padding: 0 clamp(16px, 3vw, 40px); }
.cm-logo { display: inline-flex; align-items: baseline; gap: 12px; margin-right: auto; white-space: nowrap; }
.cm-logo__text { font-family: var(--f-en); font-weight: 700; font-size: 34px; letter-spacing: .04em; line-height: 1; }
.cm-logo__img { max-height: 44px; width: auto; }
.cm-logo__sub { font-family: var(--f-hand); font-size: 12px; color: var(--chalk-2); }

.cm-gnav__list { display: flex; align-items: center; gap: 4px; }
.cm-gnav__item { position: relative; }
.cm-gnav__list > li > a { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; line-height: 1.3; border-radius: 8px; }
.cm-gnav__en { font-family: var(--f-en); font-weight: 700; font-size: 17px; letter-spacing: .06em; color: var(--yellow); }
.cm-gnav__ja { font-size: 12px; color: var(--chalk-2); }
.cm-gnav__list > li > a:hover { background: var(--chalk-4); }
.cm-mega {
	position: absolute; top: calc(100% + 6px); left: 50%;
	width: 520px; padding: 20px;
	background: var(--board-2); background-image: var(--noise);
	border: 1px solid var(--chalk-4); border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0,0,0,.3);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
	transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.cm-gnav__item.has-children:hover .cm-mega,
.cm-gnav__item.has-children:focus-within .cm-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cm-mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.cm-mega__list a { display: block; padding: 8px 10px; font-size: 14px; line-height: 1.5; border-radius: 6px; }
.cm-mega__list a:hover { background: var(--chalk-4); }
.cm-mega__en { display: block; font-family: var(--f-en); font-size: 15px; color: var(--yellow); }
/* wp_nav_menu を使う場合の簡易スタイル */
.cm-gnav .menu-item > a { font-family: var(--f-hand); font-size: 14px; }
.cm-gnav .sub-menu { display: none; }

.cm-header__cta {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .6em 1.4em; border-radius: 999px;
	font-family: var(--f-hand); font-weight: 600; font-size: 14px;
	color: var(--ink); background: var(--yellow);
}
.cm-header__cta:hover { transform: translateY(-2px); }

.cm-burger { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 8px; color: var(--chalk); }
.cm-burger__lines { position: relative; width: 28px; height: 18px; }
.cm-burger__lines i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.cm-burger__lines i:nth-child(1) { top: 0; }
.cm-burger__lines i:nth-child(2) { top: 8px; width: 70%; }
.cm-burger__lines i:nth-child(3) { top: 16px; }
.cm-burger__label { font-family: var(--f-en); font-weight: 700; font-size: 18px; }
.is-menu-open .cm-burger__lines i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.is-menu-open .cm-burger__lines i:nth-child(2) { opacity: 0; }
.is-menu-open .cm-burger__lines i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.cm-drawer {
	position: fixed; inset: 0; z-index: 90;
	padding: calc(var(--header-h) + 16px) 24px 48px;
	overflow-y: auto;
	color: var(--chalk);
	background: var(--board-2); background-image: var(--noise);
	opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.is-menu-open .cm-drawer { opacity: 1; visibility: visible; }
.is-menu-open { overflow: hidden; }
.cm-drawer__inner { max-width: 520px; margin: 0 auto; }
.cm-drawer__list > li { border-bottom: 1px dashed var(--chalk-3); }
.cm-drawer__list > li > a { display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; font-family: var(--f-hand); font-size: 17px; }
.cm-drawer__list > li > a span { font-family: var(--f-en); font-weight: 700; font-size: 20px; color: var(--yellow); min-width: 84px; }
.cm-drawer__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 0 4px 14px 98px; }
.cm-drawer__sub a { display: block; padding: 4px 0; font-size: 13px; color: var(--chalk-2); }
.cm-drawer__cta { width: 100%; margin-top: 32px; }
.cm-sns { display: flex; gap: 12px; }
.cm-sns a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--chalk-3); }
.cm-sns a:hover { background: var(--chalk); color: var(--board); }
.cm-sns--drawer { justify-content: center; margin-top: 28px; }

/* ---------- Hero ----------
   タイムライン（--hd = オープニング分の待ち時間。初回訪問時のみ 1.7s）
   0.0s 方眼 → 0.1s〜 道路が描かれる → 0.3s ロゴを書く → 1.2s 落書き
   1.5s キャッチ → 1.6s ルートが伸びる → 2.1s ピンが落ちる → 3.6s 光がルートを巡回
------------------------------------------------------------------ */
@property --wp { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
:root { --hd: 0s; --ts: 1; }
html.has-opening { --hd: 1.7s; }
/* SP は全体のテンポを約 0.55 倍に短縮 */
@media (max-width: 680px) {
	:root { --ts: .55; }
	html.has-opening { --hd: 1.5s; }
}

.cm-hero {
	position: relative;
	min-height: max(640px, 100svh);
	display: flex; align-items: flex-end;
	overflow: hidden;
	color: var(--chalk);
	background-color: var(--board);
	background-image:
		var(--noise),
		radial-gradient(ellipse 50% 40% at 70% 30%, rgba(255,255,255,.06), transparent 70%),
		radial-gradient(ellipse 40% 30% at 20% 80%, rgba(255,255,255,.05), transparent 70%);
	box-shadow: inset 0 0 160px rgba(0,0,0,.35);
}
/* マウスに追従する柔らかな光（SPはゆっくり漂う） */
.cm-hero__glow {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(640px circle at var(--gx, 35%) var(--gy, 40%), rgba(255, 246, 214, .09), transparent 62%);
}
.cm-hero__map {
	position: absolute; inset: -3%; color: var(--chalk);
	translate: calc(var(--mx, 0) * -18px) calc(var(--my, 0) * -12px);
	animation: cm-drift 26s ease-in-out calc((var(--hd) + 3s) * var(--ts)) infinite alternate;
}
.cm-hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm-hero__svg--sp { display: none; }
.cm-hero__gridrect { opacity: 0; animation: cm-fade 1.2s ease var(--hd) forwards; }

/* 道路（チョークで引かれる） */
.cm-hero__roads path { fill: none; stroke: var(--chalk-3); stroke-width: 22; stroke-linecap: round; }
.cm-hero__roads path.is-thin { stroke-width: 9; stroke: rgba(244,241,230,.15); }
.cm-hero__road { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cm-draw 1.9s cubic-bezier(.55,.1,.3,1) forwards; animation-delay: calc((var(--hd) + .1s + var(--r) * .2s) * var(--ts)); }
.cm-hero__roads path.is-block { stroke-width: 2; stroke: rgba(244,241,230,.3); stroke-dasharray: 6 5; opacity: 0; animation: cm-fade 1s ease calc((var(--hd) + .9s) * var(--ts)) forwards; }
.cm-hero__roads path.is-park { stroke: none; fill: rgba(163,214,156,.18); opacity: 0; transform-box: fill-box; transform-origin: center; animation: cm-grow 1.2s var(--ease) calc((var(--hd) + 1s) * var(--ts)) forwards; }

/* 落書き */
.cm-doodle__in path, .cm-doodle__in circle { fill: none; stroke: var(--chalk-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cm-draw 1.3s ease-out forwards; animation-delay: calc((var(--hd) + 1.2s + var(--k) * .12s) * var(--ts)); }
.cm-doodle__in { transform-box: fill-box; transform-origin: 50% 100%; }
.cm-doodle--star .cm-doodle__in path { stroke: var(--yellow); fill: rgba(244, 201, 78, .25); }
.cm-doodle--star .cm-doodle__in { transform-origin: center; animation: cm-twinkle 2.8s ease-in-out infinite; animation-delay: calc((var(--hd) + 2.6s + var(--k) * .37s) * var(--ts)); }
.cm-doodle--cloud .cm-doodle__in { animation: cm-cloud 9s ease-in-out calc((var(--hd) + 2s) * var(--ts)) infinite alternate; }
.cm-doodle--tree .cm-doodle__in path { stroke: var(--green-l); }
.cm-doodle--tree .cm-doodle__in { animation: cm-tree 4.5s ease-in-out calc((var(--hd) + 2.4s + var(--k) * -.8s) * var(--ts)) infinite alternate; }
.cm-doodle--house .cm-doodle__in path { stroke: var(--pink); }
.cm-doodle--compass text { fill: var(--chalk-2); font-family: var(--f-en); font-weight: 700; font-size: 18px; text-anchor: middle; opacity: 0; animation: cm-fade .8s ease calc((var(--hd) + 2s) * var(--ts)) forwards; }
.cm-doodle__needle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: cm-fade .6s ease calc((var(--hd) + 1.9s) * var(--ts)) forwards, cm-needle 6s ease-in-out calc((var(--hd) + 2s) * var(--ts)) infinite; }
.cm-doodle__needle .is-n { fill: var(--pink); }
.cm-doodle__needle .is-s { fill: var(--chalk-3); }

/* ご縁のルート：マスクで伸ばしつつ、点線は流れ続ける */
.cm-hero__route { fill: none; stroke: var(--yellow); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 14; animation: cm-march 24s linear infinite; }
.cm-hero__routemask { fill: none; stroke: #fff; stroke-width: 40; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cm-draw 2.6s cubic-bezier(.45,0,.3,1) calc((var(--hd) + 1.6s) * var(--ts)) forwards; }

/* ピン */
.cm-hero__pin { --pc: var(--yellow); }
.cm-hero__pin--pink { --pc: var(--pink); }
.cm-hero__pin--green { --pc: var(--green-l); }
.cm-hero__pin--blue { --pc: var(--blue); }
.cm-hero__pin-in { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; animation: cm-pop .8s var(--ease) forwards; animation-delay: calc((var(--hd) + 2.1s + var(--i) * .32s) * var(--ts)); }
.cm-hero__pin-in > path { fill: var(--pc); stroke: var(--board-2); stroke-width: 2; }
.cm-hero__pin-in > circle { fill: var(--board-2); }
.cm-hero__shadow { fill: rgba(0,0,0,.4); opacity: 0; transform-box: fill-box; transform-origin: center; animation: cm-shadow .8s var(--ease) forwards; animation-delay: calc((var(--hd) + 2.1s + var(--i) * .32s) * var(--ts)); }
.cm-hero__ripple { fill: none; stroke: var(--pc); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: cm-ripple 3.4s ease-out infinite; animation-delay: calc((var(--hd) + 2.8s + var(--i) * .68s) * var(--ts)); }
.cm-hero__sign rect { fill: var(--board-2); stroke: var(--chalk-2); stroke-width: 2; }
.cm-hero__sign path { stroke: var(--wood); stroke-width: 4; stroke-linecap: round; }
.cm-hero__sign text { fill: var(--chalk); font-family: var(--f-en); font-weight: 700; font-size: 24px; text-anchor: middle; letter-spacing: .06em; }
.cm-hero__sign-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: cm-sway 3.8s ease-in-out infinite alternate; animation-delay: calc((var(--hd) + 3s + var(--i) * -.9s) * var(--ts)); }

/* ルートを巡る光 */
.cm-hero__traveler circle { fill: #fff3c4; }

/* チョークの粉 */
.cm-hero__dust { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: 0; animation: cm-fade 2s ease calc((var(--hd) + 1s) * var(--ts)) forwards; }

.cm-hero__inner {
	position: relative; z-index: 2;
	width: 100%;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
	padding: calc(var(--header-h) + 40px) clamp(24px, 6vw, 96px) clamp(96px, 12vh, 140px);
	will-change: transform, opacity;
}
.cm-hero__inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(ellipse 55% 70% at 15% 85%, rgba(28,49,37,.85), rgba(28,49,37,.35) 60%, transparent 80%);
}
.cm-hero__copy { translate: calc(var(--mx, 0) * 8px) calc(var(--my, 0) * 6px); }
.cm-hero__logo { margin-bottom: 18px; }
.cm-hero__logo-text {
	display: block;
	font-family: var(--f-en); font-weight: 700;
	font-size: clamp(76px, 12vw, 176px); line-height: .82; letter-spacing: .02em;
	text-shadow: 0 0 1px var(--chalk), 0 0 24px rgba(255, 246, 214, .18), 2px 2px 0 rgba(0,0,0,.15);
}
/* ロゴを「書く」：左から右へ描き出す */
.cm-w {
	display: block;
	-webkit-mask-image: linear-gradient(100deg, #000 calc(var(--wp) - 8%), transparent calc(var(--wp) + 2%));
	mask-image: linear-gradient(100deg, #000 calc(var(--wp) - 8%), transparent calc(var(--wp) + 2%));
	animation: cm-write 1.1s cubic-bezier(.6,.1,.35,1) both;
	animation-delay: calc((var(--hd) + .3s) * var(--ts));
}
.cm-w, .cm-opening__logo span { padding-right: .14em; margin-right: -.14em; }
.cm-w--2 { animation-duration: .8s; animation-delay: calc((var(--hd) + 1.05s) * var(--ts)); }
.cm-hero__logo-img { max-width: min(520px, 70vw); height: auto; clip-path: inset(0 100% 0 0); animation: cm-wipe 1.6s cubic-bezier(.6,.1,.35,1) calc((var(--hd) + .3s) * var(--ts)) forwards; }
.cm-hero__catch {
	font-family: var(--f-hand); font-weight: 600;
	font-size: clamp(26px, 3.6vw, 46px); line-height: 1.5; letter-spacing: .12em;
	margin: 0;
}
.cm-hero__catch .ch { display: inline-block; opacity: 0; animation: cm-char .7s var(--ease) forwards; animation-delay: calc((var(--hd) + 1.5s + var(--i) * .065s) * var(--ts)); }
.cm-hero__underline { display: block; width: min(100%, 11em); height: 14px; margin: 0 0 12px; font-size: clamp(26px, 3.6vw, 46px); overflow: visible; }
.cm-hero__underline path { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cm-draw 1s ease-out calc((var(--hd) + 2.3s) * var(--ts)) forwards; }
.cm-hero__sub { font-family: var(--f-hand); font-size: clamp(15px, 1.4vw, 18px); color: var(--yellow); letter-spacing: .2em; margin: 0; opacity: 0; animation: cm-sub 1.2s var(--ease) calc((var(--hd) + 2.6s) * var(--ts)) forwards; }
.cm-hero__photo {
	flex: 0 0 min(36vw, 440px);
	padding: 12px 12px 40px; background: var(--paper-3);
	transform: rotate(2.5deg); box-shadow: 0 20px 40px rgba(0,0,0,.35);
	opacity: 0; animation: cm-photo 1.2s var(--ease) calc((var(--hd) + 2.4s) * var(--ts)) forwards;
}
.cm-hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.cm-hero__scroll {
	position: absolute; right: clamp(20px, 3vw, 40px); bottom: 48px; z-index: 3;
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	font-family: var(--f-en); font-weight: 700; font-size: 16px; letter-spacing: .2em;
	writing-mode: vertical-rl;
	opacity: 0; animation: cm-fade 1s ease calc((var(--hd) + 3.2s) * var(--ts)) forwards;
}
.cm-hero__scroll i { position: relative; width: 1.5px; height: 64px; background: var(--chalk-3); overflow: hidden; }
.cm-hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--chalk); animation: cm-scroll 2s var(--ease) infinite; }
.cm-hero__tray {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 22px;
	background: linear-gradient(var(--wood), var(--wood-2));
	box-shadow: 0 -4px 10px rgba(0,0,0,.3);
	display: flex; align-items: flex-start; gap: 30px; padding-left: clamp(40px, 12vw, 200px);
}
.cm-hero__tray i { display: block; width: 46px; height: 9px; margin-top: -7px; border-radius: 3px; background: var(--chalk); box-shadow: inset -6px 0 0 rgba(0,0,0,.08); transform: rotate(-2deg); animation: cm-roll 1s var(--ease) both; animation-delay: calc((var(--hd) + 3s) * var(--ts)); }
.cm-hero__tray i:nth-child(2) { background: var(--yellow); width: 30px; transform: rotate(3deg); animation-delay: calc((var(--hd) + 3.1s) * var(--ts)); }
.cm-hero__tray i:nth-child(3) { background: var(--pink); width: 38px; animation-delay: calc((var(--hd) + 3.2s) * var(--ts)); }
.cm-hero__tray i:nth-child(4) { background: var(--blue); width: 22px; transform: rotate(-4deg); animation-delay: calc((var(--hd) + 3.3s) * var(--ts)); }

/* ヘッダーの登場（TOPのみ） */
.is-front .cm-header__inner > * { animation: cm-header-in .9s var(--ease) both; animation-delay: calc((var(--hd) + .2s) * var(--ts)); }
.is-front .cm-header__inner > .cm-gnav { animation-delay: calc((var(--hd) + .35s) * var(--ts)); }
.is-front .cm-header__inner > .cm-header__cta, .is-front .cm-header__inner > .cm-burger { animation-delay: calc((var(--hd) + .5s) * var(--ts)); }

/* ---------- Opening（セッション初回のみ） ---------- */
.cm-opening {
	display: none;
	position: fixed; inset: 0; z-index: 300; pointer-events: none;
	align-items: center; justify-content: center;
	color: var(--chalk);
	background-color: var(--board-2);
	background-image: var(--noise), radial-gradient(ellipse 50% 45% at 50% 48%, rgba(255,255,255,.07), transparent 70%);
	animation: cm-open-out 1s cubic-bezier(.75,0,.2,1) 1.45s forwards;
}
html.has-opening .cm-opening { display: flex; }
.cm-opening__inner { text-align: center; }
.cm-opening__mark { width: 92px; height: 92px; margin: 0 auto 10px; overflow: visible; }
.cm-opening__ring { fill: none; stroke: var(--chalk-3); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cm-draw 1s ease-out .1s forwards; }
.cm-opening__pin { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cm-draw .8s ease-out .35s forwards; }
.cm-opening__dot { fill: var(--yellow); opacity: 0; transform-box: fill-box; transform-origin: center; animation: cm-grow .5s var(--ease) .95s forwards; }
.cm-opening__logo { margin: 0; font-family: var(--f-en); font-weight: 700; font-size: clamp(44px, 8vw, 72px); line-height: 1; letter-spacing: .04em; }
.cm-opening__logo span {
	display: inline-block;
	-webkit-mask-image: linear-gradient(100deg, #000 calc(var(--wp) - 8%), transparent calc(var(--wp) + 2%));
	mask-image: linear-gradient(100deg, #000 calc(var(--wp) - 8%), transparent calc(var(--wp) + 2%));
	animation: cm-write 1s cubic-bezier(.6,.1,.35,1) .35s both;
}
.cm-opening__sub { margin: 10px 0 0; font-family: var(--f-hand); font-size: 14px; letter-spacing: .3em; color: var(--yellow); opacity: 0; animation: cm-fade .6s ease 1s forwards; }
.cm-opening__eraser {
	position: absolute; left: 50%; bottom: -16px; width: 190px; height: 34px; border-radius: 5px;
	background: linear-gradient(#45618d 0 55%, #e2dccb 55%);
	box-shadow: 0 6px 14px rgba(0,0,0,.4);
	transform: translateX(-50%) rotate(-3deg);
}
.cm-opening__eraser::after { content: ""; position: absolute; left: 6%; right: 6%; top: 100%; height: 30px; background: linear-gradient(rgba(244,241,230,.18), transparent); filter: blur(4px); }

/* ---------- Concept ---------- */
.cm-concept { padding: clamp(96px, 12vw, 170px) 0; }
.cm-concept__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.cm-concept__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.cm-concept__title { font-family: var(--f-hand); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.5; letter-spacing: .06em; }
.cm-concept__title span { display: inline-block; white-space: nowrap; }
.cm-concept__body { font-family: var(--f-hand); font-size: clamp(16px, 1.5vw, 19px); line-height: 2.25; }
.cm-concept__body p { margin-bottom: 2em; }
.cm-concept__body em { font-style: normal; background: linear-gradient(transparent 62%, rgba(244,201,78,.6) 62%); padding: 0 .1em; }
.cm-concept__strong { font-size: 1.3em; font-weight: 600; color: var(--green); margin-bottom: .6em !important; }
.cm-concept__steps span { position: relative; display: block; padding-left: 30px; }
.cm-concept__steps span::before { content: ""; position: absolute; left: 6px; top: .9em; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--paper); z-index: 1; }
.cm-concept__steps span::after { content: ""; position: absolute; left: 10px; top: 1.2em; bottom: -1.2em; border-left: 2px dashed rgba(47,125,79,.4); }
.cm-concept__steps span:last-child::after { display: none; }
.cm-concept__steps span:nth-child(2) { margin-left: 1.5em; }
.cm-concept__steps span:nth-child(3) { margin-left: 3em; }
.cm-concept__steps span:nth-child(4) { margin-left: 4.5em; font-weight: 600; }
.cm-concept__steps span:nth-child(2)::before { background: var(--yellow); }
.cm-concept__steps span:nth-child(3)::before { background: var(--blue); }
.cm-concept__steps span:nth-child(4)::before { background: var(--green); }
.cm-concept__sign { text-align: right; font-size: 1.15em; }
.cm-concept__sign span { display: block; font-family: var(--f-en); font-weight: 700; font-size: 1.3em; color: var(--green); line-height: 1.2; }

/* ---------- Services grid ---------- */
.cm-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cm-svc {
	--accent: var(--yellow);
	position: relative; display: flex; flex-direction: column;
	padding: 28px 24px 24px;
	color: var(--chalk);
	background-color: var(--board); background-image: var(--noise);
	border-radius: var(--radius);
	box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 10px 24px -12px rgba(28,49,37,.6);
}
.cm-svc:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 20px 36px -14px rgba(28,49,37,.7); }
.cm-svc--pink { --accent: var(--pink); }
.cm-svc--blue { --accent: var(--blue); }
.cm-svc--green { --accent: var(--green-l); }
.cm-svc--white { --accent: var(--chalk); }
.cm-svc__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border: 1.5px dashed var(--accent); border-radius: 50%; color: var(--accent); }
.cm-svc__icon .cm-icon { width: 28px; height: 28px; }
.cm-svc__en { font-family: var(--f-en); font-weight: 700; font-size: 18px; letter-spacing: .06em; line-height: 1.2; color: var(--accent); }
.cm-svc__title { font-family: var(--f-hand); font-weight: 600; font-size: 19px; line-height: 1.5; margin: 4px 0 10px; }
.cm-svc__text { font-size: 13px; line-height: 1.8; color: var(--chalk-2); margin-bottom: 18px; }
.cm-svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-size: 13px; font-family: var(--f-hand); border-bottom: 1px dashed var(--chalk-3); align-self: flex-start; }
.cm-svc:hover .cm-svc__more .cm-icon { transform: translateX(4px); transition: transform .3s var(--ease); }
.cm-svc__badge { position: absolute; top: 18px; right: 18px; font-family: var(--f-en); font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--ink); background: var(--yellow); padding: 0 .7em; border-radius: 4px; transform: rotate(4deg); }
.cm-svc__badge--opt { background: transparent; color: var(--chalk-2); border: 1px solid var(--chalk-3); transform: none; }
.cm-services__grid > .cm-svc:last-child:not(.cm-svc--main) { grid-column: span 2; }
.cm-svc--main {
	grid-column: span 2; grid-row: span 2;
	padding: clamp(32px, 4vw, 52px);
	border: 12px solid var(--wood);
	border-image: linear-gradient(135deg, var(--wood), var(--wood-2)) 1;
	border-radius: 0;
	box-shadow: inset 0 0 40px rgba(0,0,0,.35), 0 18px 36px -16px rgba(28,49,37,.8);
}
.cm-svc--main .cm-svc__icon { width: 72px; height: 72px; }
.cm-svc--main .cm-svc__icon .cm-icon { width: 38px; height: 38px; }
.cm-svc--main .cm-svc__en { font-size: 26px; }
.cm-svc--main .cm-svc__title { font-size: clamp(24px, 2.4vw, 30px); }
.cm-svc__catch { display: block; font-family: var(--f-hand); font-size: clamp(22px, 2.6vw, 34px); line-height: 1.6; margin: 10px 0 18px; color: var(--yellow); }
.cm-svc--main .cm-svc__text { font-size: 15px; }

/* ---------- Works map ---------- */
.cm-worksmap__field { position: relative; }
.cm-worksmap__route { position: absolute; inset: 4% 0 10%; width: 100%; height: 86%; pointer-events: none; }
.cm-worksmap__route path, .cm-cta__route path { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-dasharray: 3 12; stroke-linecap: round; opacity: .7; vector-effect: non-scaling-stroke; }
.cm-worksmap__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px; padding-bottom: 60px; }
.cm-mapcard { position: relative; }
.cm-mapcard:nth-child(3n+2) { transform: translateY(60px); }
.cm-mapcard > a, .cm-mapcard.is-empty {
	display: block; position: relative;
	padding: 12px 12px 18px;
	color: var(--ink); background: var(--paper-3);
	box-shadow: 0 16px 30px -12px rgba(0,0,0,.5);
	transform: rotate(-1.4deg);
}
.cm-mapcard.is-empty { opacity: .9; }
.cm-mapcard:nth-child(even) > a, .cm-mapcard.is-empty:nth-child(even) { transform: rotate(1.2deg); }
.cm-mapcard.is-empty:nth-child(3n+2) { transform: translateY(60px) rotate(1.2deg); }
.cm-mapcard > a:hover { transform: rotate(0) translateY(-6px); }
.cm-mapcard__pin {
	--pin: var(--pink);
	position: absolute; top: -20px; left: -14px; z-index: 2;
	display: grid; place-items: center;
	width: 46px; height: 46px; padding-bottom: 2px;
	color: var(--ink); line-height: 1;
	font-family: var(--f-en); font-weight: 700; font-size: 20px;
	isolation: isolate;
}
.cm-mapcard__pin::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	background: var(--pin); box-shadow: 0 4px 8px rgba(0,0,0,.3);
}
.cm-mapcard:nth-child(3n+1) .cm-mapcard__pin { --pin: var(--yellow); }
.cm-mapcard:nth-child(3n) .cm-mapcard__pin { --pin: var(--blue); }
.cm-mapcard__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 12px; }
.cm-mapcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cm-mapcard > a:hover img { transform: scale(1.05); }
.cm-mapcard__tags { display: block; min-height: 4px; }
.cm-mapcard__title { display: block; font-family: var(--f-hand); font-weight: 600; font-size: 16px; line-height: 1.6; margin-top: 6px; }
.cm-mapcard__area { display: inline-flex; align-items: center; gap: .3em; font-size: 12px; color: var(--ink-2); }

.cm-explore { margin-top: 72px; padding: 28px clamp(20px, 3vw, 36px); border: 1.5px dashed var(--chalk-3); border-radius: 14px; }
.cm-explore__row { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: center; }
.cm-explore__row + .cm-explore__row { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--chalk-4); }
.cm-explore__label { display: flex; align-items: center; gap: .5em; margin: 0; font-family: var(--f-hand); font-weight: 600; color: var(--yellow); }

/* ---------- Story ---------- */
.cm-storylist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cm-storycard > a { display: flex; flex-direction: column; height: 100%; background: var(--paper-3); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.cm-storycard > a:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 30px -18px rgba(28,49,37,.5); }
.cm-storycard__img { aspect-ratio: 4 / 3; overflow: hidden; }
.cm-storycard__img img { width: 100%; height: 100%; object-fit: cover; }
.cm-storycard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.cm-storycard__title { font-family: var(--f-hand); font-size: 18px; line-height: 1.6; margin: 10px 0 6px; }
.cm-storycard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.cm-storycard__meta span { display: inline-flex; align-items: center; gap: .3em; }
.cm-storycard__excerpt { font-size: 13px; line-height: 1.8; color: var(--ink-2); }
.cm-storycard__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-family: var(--f-hand); font-weight: 600; font-size: 14px; color: var(--green); }

/* ---------- Top price & flow ---------- */
.cm-toprice__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cm-pricechip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 22px; background: var(--paper-3); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.cm-pricechip__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--chalk); background: var(--board); }
.cm-pricechip__name { font-family: var(--f-hand); font-weight: 600; line-height: 1.4; }
.cm-pricechip__name small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 12px; color: var(--ink-2); }
.cm-pricechip__price { font-family: var(--f-hand); font-weight: 600; font-size: 20px; color: var(--green); white-space: nowrap; }

.cm-flow { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 56px; counter-reset: flow; }
.cm-flow::before { content: ""; position: absolute; top: 26px; left: 8%; right: 8%; border-top: 2.5px dashed rgba(47,125,79,.45); }
.cm-flow__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.cm-flow__num { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-family: var(--f-en); font-weight: 700; font-size: 26px; color: var(--chalk); background: var(--board); box-shadow: 0 0 0 6px var(--paper-2); }
.cm-paper:not(.cm-paper--alt) .cm-flow__num { box-shadow: 0 0 0 6px var(--paper); }
.cm-flow__item:last-child .cm-flow__num { background: var(--yellow); color: var(--ink); }
.cm-flow__text { font-family: var(--f-hand); font-weight: 600; font-size: 14px; line-height: 1.5; }

/* ---------- Top profile ---------- */
.cm-topprofile__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cm-topprofile__photo, .cm-about__photo { padding: 12px 12px 44px; background: var(--paper-3); transform: rotate(-2deg); box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.cm-topprofile__photo img, .cm-about__photo img, .cm-topprofile__photo .cm-ph, .cm-about__photo .cm-ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cm-topprofile__photo .cm-ph { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(34,50,42,.05) 10px 11px), var(--paper-2); color: rgba(34,50,42,.4); }
.cm-topprofile__name, .cm-about__name { font-family: var(--f-hand); font-size: clamp(28px, 3vw, 38px); letter-spacing: .14em; margin-bottom: 16px; }
.cm-topprofile__name small, .cm-about__name small { display: block; font-family: var(--f-en); font-size: 20px; letter-spacing: .06em; color: var(--chalk-2); }
.cm-about__name small { color: var(--ink-2); }
.cm-topprofile__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cm-topprofile__roles li { font-size: 13px; padding: .2em .9em; border: 1px solid var(--chalk-3); border-radius: 999px; }
.cm-topprofile__roles--dark li { border-color: var(--line); background: var(--paper-3); }
.cm-topprofile__body p { color: var(--chalk-2); line-height: 2.1; margin-bottom: 32px; }

/* ---------- News ---------- */
.cm-topnews__inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.cm-topnews__head .cm-heading { text-align: left; margin-bottom: 24px; }
.cm-topnews__head .cm-heading__ja { background-position: left bottom; }
.cm-newslist { border-top: 1.5px solid var(--ink); }
.cm-newsrow > a { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 16px; padding: 22px 8px; border-bottom: 1px dashed var(--line); }
.cm-newsrow > a:hover { background: rgba(255,255,255,.5); }
.cm-newsrow time { font-family: var(--f-en); font-weight: 700; font-size: 18px; color: var(--ink-2); }
.cm-newsrow__title { font-weight: 500; }
.cm-newsrow__arrow { color: var(--green); transition: transform .3s var(--ease); }
.cm-newsrow > a:hover .cm-newsrow__arrow { transform: translateX(4px); }
.cm-empty { text-align: center; color: var(--ink-2); padding: 40px 0; }

/* ---------- Instagram ---------- */
.cm-insta__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cm-insta__grid .cm-ph { aspect-ratio: 1; min-height: 0; font-size: 14px; }
.cm-insta__feed { max-width: 1000px; margin: 0 auto; }

/* ---------- CTA ---------- */
.cm-cta {
	position: relative; overflow: hidden; text-align: center;
	padding: clamp(80px, 10vw, 130px) 0;
	color: var(--chalk);
	background-color: var(--board-3); background-image: var(--noise), radial-gradient(ellipse 60% 70% at 50% 50%, rgba(255,255,255,.06), transparent 70%);
}
.cm-cta__route { position: absolute; inset: auto 0 0; height: 34%; opacity: .7; }
.cm-cta__route svg { width: 100%; height: 100%; }
.cm-cta__inner { position: relative; z-index: 1; }
.cm-cta__en { font-family: var(--f-en); font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1; color: var(--yellow); margin-bottom: 18px; }
.cm-cta__title { font-family: var(--f-hand); font-size: clamp(22px, 3vw, 34px); line-height: 1.6; margin-bottom: 16px; }
.cm-cta__lead { color: var(--chalk-2); }
.cm-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }

/* ---------- Footer ---------- */
.cm-footer {
	position: relative;
	color: var(--chalk);
	background-color: var(--board-2);
	background-image: var(--noise), linear-gradient(var(--chalk-4) 1px, transparent 1px), linear-gradient(90deg, var(--chalk-4) 1px, transparent 1px);
	background-size: auto, 48px 48px, 48px 48px;
	border-top: 14px solid var(--wood);
}
.cm-footer__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding: 72px 0 48px; }
.cm-logo--footer .cm-logo__text { font-size: 48px; }
.cm-footer__catch { font-family: var(--f-hand); font-size: 17px; margin: 14px 0 18px; }
.cm-footer__catch span { display: block; font-size: 13px; color: var(--yellow); letter-spacing: .14em; }
.cm-footer__area { display: flex; align-items: center; gap: .4em; font-size: 13px; color: var(--chalk-2); }
.cm-footer__nav { display: grid; grid-template-columns: 2fr 1fr; gap: 24px 32px; }
.cm-footer__col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cm-footer__col li a { display: block; padding: 4px 0; font-size: 13px; color: var(--chalk-2); }
.cm-footer__col li a:hover, .cm-footer__head:hover { color: var(--yellow); }
.cm-footer__head { display: block; font-family: var(--f-hand); font-weight: 600; padding: 4px 0; margin-bottom: 6px; }
.cm-footer__head--small { font-size: 12px; color: var(--chalk-2); margin-top: 12px; }
.cm-footer__menu li a { display: block; padding: 4px 0; }
.cm-footer__bottom { border-top: 1px dashed var(--chalk-3); padding: 18px 0; text-align: center; }
.cm-footer__copy { margin: 0; font-family: var(--f-en); font-size: 16px; color: var(--chalk-2); }
.cm-pagetop {
	position: fixed; right: 20px; bottom: 20px; z-index: 80;
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	color: var(--ink); background: var(--yellow); box-shadow: 0 6px 16px rgba(0,0,0,.25);
	opacity: 0; visibility: hidden; transform: translateY(12px);
}
.cm-pagetop .cm-icon { transform: rotate(-90deg); }
.is-scrolled-far .cm-pagetop { opacity: 1; visibility: visible; transform: none; }

/* ---------- Page hero ---------- */
.cm-pagehero, .cm-svhero {
	position: relative; overflow: hidden;
	padding: calc(var(--header-h) + 48px) 0 clamp(56px, 7vw, 88px);
	color: var(--chalk);
	background-color: var(--board); background-image: var(--noise);
	box-shadow: inset 0 -12px 0 var(--wood), inset 0 -16px 0 var(--wood-2);
}
.cm-pagehero__grid {
	position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--chalk-4) 1px, transparent 1px), linear-gradient(90deg, var(--chalk-4) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
	mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.cm-pagehero__inner, .cm-svhero__inner { position: relative; }
.cm-pagehero__en { display: flex; align-items: center; gap: .5em; margin: 28px 0 6px; font-family: var(--f-en); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: .08em; line-height: 1.2; color: var(--yellow); }
.cm-pagehero__title { font-family: var(--f-hand); font-size: clamp(30px, 4.6vw, 54px); letter-spacing: .1em; line-height: 1.4; }
.cm-pagehero__title--post { font-size: clamp(24px, 3.2vw, 38px); letter-spacing: .06em; }
.cm-pagehero__lead { margin: 20px 0 0; color: var(--chalk-2); line-height: 2; }

.cm-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12px; color: var(--chalk-2); }
.cm-breadcrumb li:not(:last-child)::after { content: "›"; margin: 0 .7em; opacity: .6; }
.cm-breadcrumb a:hover { color: var(--yellow); }

/* service hero */
.cm-svhero { --accent: var(--yellow); }
.cm-svhero--pink { --accent: var(--pink); }
.cm-svhero--blue { --accent: var(--blue); }
.cm-svhero--green { --accent: var(--green-l); }
.cm-svhero--white { --accent: var(--chalk); }
.cm-svhero .cm-pagehero__en { color: var(--accent); }
.cm-svhero__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cm-svhero__catch { font-family: var(--f-hand); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.7; margin: 24px 0 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.cm-svhero__opt { font-style: normal; font-size: .6em; color: var(--chalk-2); border: 1px solid var(--chalk-3); border-radius: 4px; padding: 0 .5em; margin-left: .3em; }
.cm-svhero__img { padding: 10px 10px 34px; background: var(--paper-3); transform: rotate(2deg); box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); }
.cm-svhero__img img, .cm-svhero__img .cm-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cm-svhero__img .cm-ph { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(34,50,42,.05) 10px 11px), var(--paper-2); color: rgba(34,50,42,.4); }

/* TOC */
.cm-toc { position: sticky; top: var(--header-h); z-index: 20; background: rgba(237,230,211,.95); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cm-toc__list { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.cm-toc__list a { display: block; white-space: nowrap; font-size: 13px; padding: .3em 1em; border-radius: 999px; }
.cm-toc__list a:hover { background: var(--board); color: var(--chalk); }

/* ---------- Service sections ---------- */
.cm-svbody { padding: 24px 0 40px; }
.cm-sv { padding: clamp(48px, 6vw, 80px) 0; }
.cm-sv + .cm-sv { background-image: linear-gradient(90deg, rgba(47,125,79,.35) 50%, transparent 0); background-size: 14px 2px; background-repeat: repeat-x; background-position: top center; }
.cm-sv__title { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; font-family: var(--f-hand); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; margin-bottom: 28px; padding-left: 44px; }
.cm-sv__title::before { content: ""; position: absolute; left: 0; top: .2em; width: 28px; height: 34px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 29s-11-9.5-11-17a11 11 0 0 1 22 0c0 7.5-11 17-11 17z' fill='%23f19c8b' stroke='%2322322a' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='12' r='4' fill='%2322322a'/%3E%3C/svg%3E"); }
.cm-sv__lead { color: var(--ink-2); margin: -12px 0 28px; }
.cm-sv__note { margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }
.cm-sv__after { margin: 36px 0 0; text-align: center; font-family: var(--f-hand); font-weight: 600; font-size: clamp(17px, 1.8vw, 21px); line-height: 2; }
.cm-sv__after::before { content: ""; display: block; width: 120px; height: 10px; margin: 0 auto 16px; background: var(--squiggle) no-repeat center / contain; }

/* intro board */
.cm-board-card {
	position: relative;
	padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(40px, 5vw, 72px);
	color: var(--chalk);
	background-color: var(--board); background-image: var(--noise), radial-gradient(ellipse 60% 50% at 30% 30%, rgba(255,255,255,.06), transparent 70%);
	border: 14px solid var(--wood);
	border-image: linear-gradient(135deg, var(--wood), var(--wood-2)) 1;
	box-shadow: inset 0 0 40px rgba(0,0,0,.35), 0 24px 40px -24px rgba(0,0,0,.5);
}
.cm-board-card--center { text-align: center; }
.cm-board-card__q { position: absolute; top: 10px; right: 28px; margin: 0; font-family: var(--f-en); font-weight: 700; font-size: 80px; line-height: 1; color: var(--chalk-3); }
.cm-board-card__title { font-family: var(--f-hand); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.6; margin-bottom: 20px; color: var(--yellow); }
.cm-board-card__text { font-family: var(--f-hand); font-size: clamp(15px, 1.5vw, 18px); line-height: 2.2; margin: 0 0 1em; }
.cm-board-card__eraser { position: absolute; right: 32px; bottom: -14px; width: 86px; height: 26px; border-radius: 4px; background: linear-gradient(#3e5c8a 0 55%, #ddd6c4 55%); box-shadow: 0 4px 6px rgba(0,0,0,.3); transform: rotate(-4deg); }
.cm-board-card .cm-btn { margin-top: 12px; }

/* compare */
.cm-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; }
.cm-compare__item { padding: 28px 28px 24px; border-radius: var(--radius); }
.cm-compare__item--0 { color: var(--chalk); background: var(--board); background-image: var(--noise); }
.cm-compare__item--1 { background: var(--paper-3); border: 2.5px dashed rgba(34,50,42,.35); }
.cm-compare__en { margin: 0; font-family: var(--f-en); font-weight: 700; font-size: 18px; letter-spacing: .06em; color: var(--green); }
.cm-compare__item--0 .cm-compare__en { color: var(--yellow); }
.cm-compare__name { font-family: var(--f-hand); font-size: 24px; margin-bottom: 12px; }
.cm-compare__text { font-size: 14px; line-height: 2; margin: 0; }
.cm-compare__vs { align-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); font-family: var(--f-en); font-weight: 700; font-size: 22px; }

/* checklist */
.cm-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cm-checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; background: var(--paper-3); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); line-height: 1.7; }
.cm-checklist .cm-icon { color: var(--chalk); background: var(--green); border-radius: 50%; padding: 3px; width: 24px; height: 24px; margin-top: 1px; }

/* steps */
.cm-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.cm-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 14px 20px; text-align: center; background: var(--paper-3); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.cm-steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -16px; width: 16px; border-top: 2.5px dashed rgba(47,125,79,.5); }
.cm-steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--f-en); font-weight: 700; font-size: 22px; color: var(--chalk); background: var(--board); }
.cm-steps__text { font-family: var(--f-hand); font-weight: 600; font-size: 15px; line-height: 1.6; }

/* notice */
.cm-notice { padding: 24px 28px; background: #fff8e4; border: 2px solid var(--yellow); border-radius: var(--radius); }
.cm-notice li { position: relative; padding-left: 1.6em; line-height: 1.9; }
.cm-notice li + li { margin-top: 8px; }
.cm-notice li::before { content: "!"; position: absolute; left: 0; top: .25em; display: grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 50%; font-size: 13px; font-weight: 700; background: var(--yellow); }

/* prose (ノート罫線) */
.cm-prose {
	padding: 36px clamp(24px, 4vw, 48px);
	background-color: var(--paper-3);
	background-image: linear-gradient(transparent calc(2.4em - 1px), rgba(141,198,226,.45) calc(2.4em - 1px));
	background-size: 100% 2.4em;
	background-position: 0 36px;
	border-radius: var(--radius);
	box-shadow: 0 0 0 1px var(--line), inset 4px 0 0 var(--pink);
	font-family: var(--f-hand); font-size: clamp(15px, 1.5vw, 17px); line-height: 2.4;
}
.cm-prose p { margin: 0; }

/* quotes */
.cm-quotes { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; }
.cm-quotes li { position: relative; padding: 18px 26px; background: var(--paper-3); border-radius: 24px; font-family: var(--f-hand); font-weight: 600; box-shadow: 0 0 0 1.5px var(--ink); }
.cm-quotes li::after { content: ""; position: absolute; left: 34px; bottom: -10px; width: 18px; height: 18px; background: var(--paper-3); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) skew(10deg, 10deg); }
.cm-quotes li:nth-child(2) { transform: translateY(14px) rotate(1deg); }
.cm-quotes li:nth-child(3) { transform: rotate(-1deg); }

/* features */
.cm-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cm-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-feature { position: relative; padding: 32px 28px 26px; color: var(--chalk); background: var(--board); background-image: var(--noise); border-radius: var(--radius); overflow: hidden; }
.cm-feature__num { position: absolute; right: 16px; top: 4px; font-family: var(--f-en); font-weight: 700; font-size: 64px; line-height: 1; color: var(--chalk-4); }
.cm-feature__title { position: relative; font-family: var(--f-hand); font-size: 19px; color: var(--yellow); margin-bottom: 12px; line-height: 1.6; }
.cm-feature__text { position: relative; font-size: 14px; line-height: 2; color: var(--chalk-2); margin: 0; }
.cm-features .cm-feature:nth-child(3n+2) .cm-feature__title { color: var(--pink); }
.cm-features .cm-feature:nth-child(3n) .cm-feature__title { color: var(--blue); }

/* courses */
.cm-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cm-course { padding: 0 0 20px; background: var(--paper-3); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.cm-course__name { padding: 16px 24px; font-family: var(--f-hand); font-size: 20px; color: var(--chalk); background: var(--board); background-image: var(--noise); }
.cm-course__lead { padding: 16px 24px 0; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.cm-course__prices { margin: 0; padding: 0 24px; }
.cm-course__prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cm-course__prices dt { font-weight: 500; line-height: 1.6; }
.cm-course__prices dt small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 400; }
.cm-course__prices dd { margin: 0; font-family: var(--f-hand); font-weight: 600; font-size: 19px; color: var(--green); white-space: nowrap; }

/* vertical flow */
.cm-vflow li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 28px; }
.cm-vflow li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; border-left: 2.5px dashed rgba(47,125,79,.45); }
.cm-vflow__num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-family: var(--f-en); font-weight: 700; font-size: 26px; color: var(--chalk); background: var(--board); }
.cm-vflow h3 { font-family: var(--f-hand); font-size: 20px; padding-top: 10px; }
.cm-vflow p { color: var(--ink-2); margin: 4px 0 0; }

/* faq */
.cm-faq__item { background: var(--paper-3); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.cm-faq__item + .cm-faq__item { margin-top: 12px; }
.cm-faq__item summary { display: flex; align-items: center; gap: 14px; padding: 18px 52px 18px 20px; font-family: var(--f-hand); font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.cm-faq__item summary::-webkit-details-marker { display: none; }
.cm-faq__item summary::after { content: "+"; position: absolute; right: 22px; font-size: 24px; font-family: var(--f-body); transition: transform .3s; }
.cm-faq__item[open] summary::after { transform: rotate(45deg); }
.cm-faq__q, .cm-faq__a > span { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--f-en); font-weight: 700; font-size: 20px; color: var(--chalk); background: var(--board); }
.cm-faq__a { display: flex; gap: 14px; padding: 0 20px 20px; }
.cm-faq__a > span { background: var(--yellow); color: var(--ink); }
.cm-faq__a p { margin: 4px 0 0; }

/* link cards */
.cm-linkcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: var(--narrow); margin: 0 auto; }
.cm-linkcard { position: relative; display: flex; flex-direction: column; padding: 24px 56px 24px 28px; color: var(--chalk); background: var(--board); background-image: var(--noise); border-radius: var(--radius); }
.cm-linkcard:hover { transform: translateY(-4px); }
.cm-linkcard__en { font-family: var(--f-en); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--yellow); }
.cm-linkcard__ja { font-family: var(--f-hand); font-weight: 600; }
.cm-linkcard__arrow { position: absolute; right: 22px; top: 50%; translate: 0 -50%; transition: transform .3s var(--ease); }
.cm-linkcard:hover .cm-linkcard__arrow { transform: translateX(4px); }
.cm-linkcard--accent { color: var(--ink); background: var(--yellow); }
.cm-linkcard--accent .cm-linkcard__en { color: var(--ink); }

/* other services */
.cm-othersvc { padding: clamp(64px, 8vw, 100px) 0; }
.cm-othersvc__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cm-othersvc__list a { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1.5px solid var(--chalk-3); border-radius: var(--radius); font-family: var(--f-hand); font-weight: 600; font-size: 15px; line-height: 1.5; }
.cm-othersvc__list a:hover { background: var(--chalk); color: var(--board); }
.cm-othersvc__list .cm-icon { color: var(--yellow); width: 26px; height: 26px; }
.cm-othersvc__list a:hover .cm-icon { color: var(--green); }

/* ---------- Price page ---------- */
.cm-pricepage { padding: 56px 0 clamp(80px, 10vw, 120px); }
.cm-pricegroup { padding: clamp(28px, 4vw, 44px); background: var(--paper-3); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 18px 30px -24px rgba(28,49,37,.5); }
.cm-pricegroup + .cm-pricegroup { margin-top: 28px; }
.cm-pricegroup__head { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.cm-pricegroup__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--chalk); background: var(--board); }
.cm-pricegroup__icon .cm-icon { width: 28px; height: 28px; }
.cm-pricegroup__en { margin: 0; font-family: var(--f-en); font-weight: 700; font-size: 18px; letter-spacing: .06em; line-height: 1.2; color: var(--green); }
.cm-pricegroup__title { font-family: var(--f-hand); font-size: clamp(22px, 2.4vw, 28px); }
.cm-pricegroup__badge { position: absolute; right: 0; top: 0; padding: .3em 1em; font-family: var(--f-hand); font-weight: 600; font-size: 13px; color: #fff; background: #c4675a; border-radius: 4px; transform: rotate(3deg); }
.cm-pricegroup__lead { font-size: 14px; color: var(--ink-2); line-height: 2; }
.cm-pricegroup__sub { display: inline-block; margin: 24px 0 8px; padding: .1em 1em; font-family: var(--f-hand); font-size: 15px; color: var(--chalk); background: var(--board); border-radius: 4px; }
.cm-pricetable { width: 100%; border-collapse: collapse; }
.cm-pricetable th, .cm-pricetable td { padding: 14px 4px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.cm-pricetable th { text-align: left; font-weight: 500; line-height: 1.6; }
.cm-pricetable th small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.cm-pricetable td { text-align: right; white-space: nowrap; }
.cm-pricetable td strong { font-family: var(--f-hand); font-weight: 600; font-size: 20px; color: var(--green); }
.cm-pricetable td small { display: block; font-size: 12px; color: var(--ink-2); white-space: normal; }
.cm-notes { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.cm-notes li::before { content: "※"; }
.cm-flow--page { margin-top: 24px; }
.cm-flow--page .cm-flow__num { box-shadow: 0 0 0 6px var(--paper-3); }

/* ---------- Works archive ---------- */
.cm-worksarchive { padding: 48px 0 clamp(80px, 10vw, 120px); }
.cm-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 640px; margin: 0 auto 32px; }
.cm-tabs__item { display: flex; flex-direction: column; align-items: center; padding: 14px; font-family: var(--f-hand); font-size: 14px; line-height: 1.5; background: var(--paper-3); border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px var(--line); border-bottom: 4px solid var(--line); }
.cm-tabs__item span { font-family: var(--f-en); font-weight: 700; font-size: 24px; letter-spacing: .06em; }
.cm-tabs__item.is-active { color: var(--chalk); background: var(--board); border-bottom-color: var(--yellow); }
.cm-tabs__item:not(.is-active):hover { background: #fff; }
.cm-filter { padding: 24px clamp(20px, 3vw, 32px); background: var(--paper-3); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 40px; }
.cm-filter__row { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; }
.cm-filter__row + .cm-filter__row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cm-filter__label { display: flex; align-items: center; gap: .5em; margin: 0; font-family: var(--f-hand); font-weight: 600; color: var(--green); }
.cm-search { position: relative; display: flex; margin-top: 20px; }
.cm-search input { flex: 1; min-height: 52px; padding: 0 56px 0 20px; font: inherit; font-size: 15px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; }
.cm-search input:focus { outline: none; border-color: var(--green); }
.cm-search button { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--chalk); background: var(--board); }
.cm-resultnote { font-family: var(--f-hand); margin-bottom: 24px; }
.cm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cm-tile > a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--board); }
.cm-tile__img { display: block; aspect-ratio: 1; }
.cm-tile__img img, .cm-tile__img .cm-ph { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.cm-tile__cap { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 4px; padding: 40px 16px 14px; color: var(--chalk); background: linear-gradient(transparent, rgba(28,49,37,.9)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.cm-tile > a:hover .cm-tile__cap, .cm-tile > a:focus-visible .cm-tile__cap { opacity: 1; transform: none; }
.cm-tile > a:hover img { transform: scale(1.06); }
.cm-tile__title { font-family: var(--f-hand); font-weight: 600; line-height: 1.5; }
.cm-tile__area { display: inline-flex; align-items: center; gap: .3em; font-size: 12px; color: var(--chalk-2); }
.cm-storylist--archive { margin-top: 0; }

.cm-pagination { margin-top: 56px; }
.cm-pagination ul { display: flex; justify-content: center; gap: 8px; }
.cm-pagination a, .cm-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 50%; font-family: var(--f-en); font-weight: 700; font-size: 20px; box-shadow: 0 0 0 1px var(--line); background: var(--paper-3); }
.cm-pagination .current { background: var(--board); color: var(--chalk); }
.cm-pagination a:hover { background: var(--yellow); }

/* ---------- Single works / posts ---------- */
.cm-works-single__tags { margin-top: 16px; }
.cm-works-single__body, .cm-post__body { padding: 56px 0 clamp(80px, 10vw, 120px); }
.cm-works-single__main { padding: 12px; background: var(--paper-3); box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); margin-bottom: 32px; }
.cm-works-single__main img, .cm-works-single__main .cm-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cm-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 0 0 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cm-spec div { padding: 14px 18px; background: var(--paper-3); }
.cm-spec dt { font-family: var(--f-en); font-weight: 700; font-size: 16px; color: var(--green); line-height: 1.2; }
.cm-spec dd { margin: 0; font-size: 14px; }
.cm-works-single__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.cm-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px dashed var(--line); font-size: 14px; }
.cm-postnav a:hover { color: var(--green); }
.cm-postnav__next { margin-left: auto; text-align: right; }
.cm-post__meta { display: flex; align-items: center; gap: 12px; margin: 28px 0 8px; }
.cm-post__meta time { font-family: var(--f-en); font-weight: 700; font-size: 20px; color: var(--yellow); }
.cm-post__thumb { margin-bottom: 40px; }
.cm-post__thumb img { width: 100%; border-radius: var(--radius); }

/* blog list */
.cm-bloglist { padding: 48px 0 clamp(80px, 10vw, 120px); }
.cm-postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cm-postcard > a { display: block; height: 100%; background: var(--paper-3); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.cm-postcard > a:hover { transform: translateY(-4px); }
.cm-postcard__img img, .cm-postcard__img .cm-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cm-postcard__body { padding: 18px 20px 22px; }
.cm-postcard__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cm-postcard__meta time { font-family: var(--f-en); font-weight: 700; font-size: 17px; color: var(--ink-2); }
.cm-postcard__title { font-size: 16px; font-weight: 500; line-height: 1.7; }

/* ---------- Entry (本文) ---------- */
.cm-entry { line-height: 2.05; }
.cm-entry > * + * { margin-top: 1.4em; }
.cm-entry h2 { font-family: var(--f-hand); font-size: clamp(22px, 2.4vw, 28px); margin-top: 2.4em; padding: .5em .9em; color: var(--chalk); background: var(--board); background-image: var(--noise); border-left: 6px solid var(--yellow); border-radius: 4px; }
.cm-entry h3 { font-family: var(--f-hand); font-size: 21px; margin-top: 2em; padding-bottom: .4em; border-bottom: 2px dashed rgba(47,125,79,.5); }
.cm-entry h4 { font-size: 17px; margin-top: 1.6em; }
.cm-entry a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cm-entry ul { list-style: disc; padding-left: 1.4em; }
.cm-entry ol { list-style: decimal; padding-left: 1.6em; }
.cm-entry img { border-radius: 6px; }
.cm-entry figcaption { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: .5em; }
.cm-entry blockquote { margin: 1.6em 0; padding: 1.2em 1.6em; font-family: var(--f-hand); background: var(--paper-3); border-left: 4px solid var(--pink); border-radius: 0 8px 8px 0; }
.cm-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cm-entry th, .cm-entry td { padding: .8em 1em; border: 1px solid var(--line); }
.cm-entry th { background: var(--paper-2); }

/* ---------- Profile ---------- */
.cm-about__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.cm-about__draft { font-size: 14px; color: var(--ink-2); padding: 16px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.cm-message__body { font-family: var(--f-hand); font-size: clamp(16px, 1.5vw, 18px); line-height: 2.3; text-align: center; }
.cm-message__body p { margin-bottom: 2em; }
.cm-message__big { font-size: clamp(24px, 3vw, 34px); color: var(--yellow); }
.cm-message .cm-concept__sign { text-align: center; }
.cm-message .cm-concept__sign span { color: var(--yellow); }

/* ---------- Contact form ---------- */
.cm-contact__line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 0; padding: 20px 24px; background: #e7f7ec; border-radius: var(--radius); }
.cm-contact__line p { margin: 0; }
.cm-form { margin-top: 48px; padding: clamp(24px, 4vw, 48px); background: var(--paper-3); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.cm-form label { display: block; font-weight: 500; }
.cm-form input[type="text"], .cm-form input[type="email"], .cm-form input[type="tel"], .cm-form input[type="url"], .cm-form input[type="date"], .cm-form select, .cm-form textarea {
	width: 100%; margin-top: 8px; padding: 14px 16px; font: inherit; font-size: 16px;
	background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px;
}
.cm-form textarea { min-height: 200px; }
.cm-form input:focus, .cm-form select:focus, .cm-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,125,79,.15); }
.cm-form p { margin-bottom: 24px; }
.cm-form input[type="submit"], .cm-form button[type="submit"] {
	display: block; width: min(100%, 360px); min-height: 60px; margin: 32px auto 0;
	font-family: var(--f-hand); font-weight: 600; font-size: 17px; letter-spacing: .1em;
	color: var(--ink); background: var(--yellow); border: 0; border-radius: 999px; box-shadow: 0 4px 0 #c99a25; cursor: pointer;
}
.cm-form .wpcf7-list-item { margin: 0 1.2em 0 0; }
.cm-form .wpcf7-not-valid-tip { font-size: 13px; }

/* ---------- Reveal / animation ---------- */
.js .js-reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js .js-reveal.is-in { opacity: 1; translate: 0 0; }
.js .js-draw { stroke-dashoffset: 0; }

@keyframes cm-fade { to { opacity: 1; } }
@keyframes cm-march { to { stroke-dashoffset: -480; } }
@keyframes cm-pop { 0% { opacity: 0; transform: translateY(-20px) scale(.6); } 60% { opacity: 1; transform: translateY(3px) scale(1.05); } 100% { opacity: 1; transform: none; } }
@keyframes cm-char { from { opacity: 0; transform: translateY(.4em) rotate(-8deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cm-draw { to { stroke-dashoffset: 0; } }
@keyframes cm-grow { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes cm-shadow { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: none; } }
@keyframes cm-ripple { 0% { opacity: .9; transform: scale(.3); } 70%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes cm-sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes cm-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .5; } }
@keyframes cm-cloud { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes cm-tree { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes cm-needle { 0%, 100% { transform: rotate(-14deg); } 30% { transform: rotate(18deg); } 60% { transform: rotate(-6deg); } }
@keyframes cm-write { from { --wp: 0%; } to { --wp: 112%; } }
@keyframes cm-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes cm-sub { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .2em; } }
@keyframes cm-photo { from { opacity: 0; transform: translateY(30px) rotate(8deg); } to { opacity: 1; transform: rotate(2.5deg); } }
@keyframes cm-roll { from { opacity: 0; translate: -80px 0; rotate: -200deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes cm-header-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes cm-open-out { 99% { transform: translateY(calc(-100% - 80px)); visibility: visible; } 100% { transform: translateY(calc(-100% - 80px)); visibility: hidden; } }
@keyframes cm-drift { from { scale: 1; } to { scale: 1.045; } }
@keyframes cm-chalkin { 0% { opacity: 0; filter: blur(6px); letter-spacing: .12em; } 100% { opacity: 1; filter: blur(0); letter-spacing: .02em; } }
@keyframes cm-scroll { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
	.cm-hero__traveler, .cm-hero__dust, .cm-opening { display: none !important; }
	.cm-w { -webkit-mask-image: none; mask-image: none; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
	.js .js-reveal { opacity: 1; translate: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.cm-gnav { display: none; }
	.cm-burger { display: inline-flex; }
	.cm-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-svc--main { grid-row: auto; }
}

@media (max-width: 960px) {
	.cm-concept__inner, .cm-topprofile__inner, .cm-about__inner, .cm-svhero__body, .cm-topnews__inner, .cm-footer__inner { grid-template-columns: 1fr; }
	.cm-concept__head { position: static; }
	.cm-worksmap__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
	.cm-mapcard:nth-child(3n+2) { transform: none; }
	.cm-mapcard.is-empty:nth-child(3n+2) { transform: rotate(1.2deg); }
	.cm-mapcard:nth-child(even) { transform: translateY(40px); }
	.cm-storylist, .cm-postgrid, .cm-features--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-toprice__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
	.cm-flow::before { display: none; }
	.cm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cm-insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cm-hero__photo { display: none; }
	.cm-svhero__img { max-width: 440px; }
	.cm-topprofile__photo, .cm-about__photo { max-width: 360px; }
	.cm-topnews__head { display: flex; align-items: flex-end; justify-content: space-between; }
}

@media (max-width: 680px) {
	:root { --header-h: 64px; }
	body { font-size: 15px; }
	br.sp { display: inline; }
	.cm-container, .cm-container--narrow { width: min(100% - 32px, var(--container)); }
	.cm-logo__text { font-size: 28px; }
	.cm-logo__sub { display: none; }
	.cm-header__cta { display: none; }
	/* --- SP ファーストビュー --- */
	.cm-hero { min-height: 0; height: 100svh; min-height: 600px; max-height: 960px; }
	.cm-hero__svg--pc { display: none; }
	.cm-hero__svg--sp { display: block; }
	.cm-hero__inner { padding: 0 20px 64px; }
	.cm-hero__inner::before { background: linear-gradient(180deg, transparent 0%, transparent 52%, rgba(28,49,37,.75) 68%, rgba(28,49,37,.92) 100%); }
	.cm-hero__copy { width: 100%; }
	.cm-hero__logo { margin-bottom: 10px; }
	.cm-hero__logo-text { font-size: clamp(64px, 21vw, 112px); line-height: .84; }
	.cm-hero__logo-img { max-width: 72vw; }
	.cm-hero__catch { font-size: clamp(22px, 6.6vw, 30px); letter-spacing: .08em; white-space: nowrap; margin-bottom: 4px; }
	.cm-hero__sub { font-size: 13px; letter-spacing: .16em; }
	.cm-hero__underline { font-size: clamp(22px, 6.6vw, 30px); margin-bottom: 8px; }
	.cm-hero__sign text { font-size: 23px; }
	.cm-hero__scroll { display: flex; right: 14px; bottom: 44px; font-size: 13px; gap: 6px; }
	.cm-hero__scroll i { height: 44px; }
	.cm-hero__tray { height: 16px; gap: 18px; padding-left: 28px; }
	.cm-hero__tray i { width: 34px; height: 7px; margin-top: -6px; }
	.cm-hero__tray i:nth-child(2) { width: 22px; }
	.cm-hero__tray i:nth-child(3) { width: 28px; }
	.cm-hero__tray i:nth-child(4) { width: 16px; }
	.cm-services__grid { grid-template-columns: 1fr; gap: 14px; }
	.cm-svc--main { grid-column: auto; border-width: 8px; }
	.cm-services__grid > .cm-svc:last-child:not(.cm-svc--main) { grid-column: auto; }
	.cm-svc { padding: 22px 20px; }
	.cm-svc:not(.cm-svc--main) { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
	.cm-svc:not(.cm-svc--main) .cm-svc__icon { grid-row: span 4; margin: 0; }
	.cm-svc:not(.cm-svc--main) .cm-svc__text { margin-bottom: 10px; }
	.cm-worksmap__list { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
	.cm-mapcard > a, .cm-mapcard.is-empty { padding: 8px 8px 12px; }
	.cm-mapcard__pin { width: 36px; height: 36px; font-size: 16px; top: -12px; left: -8px; }
	.cm-mapcard__title { font-size: 14px; }
	.cm-explore__row, .cm-filter__row { grid-template-columns: 1fr; gap: 10px; }
	.cm-storylist, .cm-postgrid, .cm-features, .cm-features--3, .cm-courses, .cm-checklist { grid-template-columns: 1fr; }
	.cm-toprice__grid { grid-template-columns: 1fr; }
	.cm-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cm-compare { grid-template-columns: 1fr; }
	.cm-compare__vs { justify-self: center; }
	.cm-steps { grid-template-columns: 1fr; }
	.cm-steps li { flex-direction: row; text-align: left; padding: 14px 18px; }
	.cm-steps li:not(:last-child)::after { top: auto; bottom: -16px; right: auto; left: 39px; width: 0; height: 16px; border-top: 0; border-left: 2.5px dashed rgba(47,125,79,.5); }
	.cm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cm-tile__cap { position: static; opacity: 1; transform: none; padding: 10px 12px; background: var(--board); }
	.cm-newsrow > a { grid-template-columns: auto 1fr auto; gap: 4px 12px; }
	.cm-newsrow__title { grid-column: 1 / 3; }
	.cm-newsrow__arrow { grid-row: 1 / 3; grid-column: 3; }
	.cm-footer__nav { grid-template-columns: 1fr; }
	.cm-board-card { border-width: 8px; }
	.cm-board-card__q { font-size: 56px; right: 16px; }
	.cm-pricetable th, .cm-pricetable td { display: block; text-align: left; padding: 4px 0; border: 0; }
	.cm-pricetable tr { display: block; padding: 12px 0; border-bottom: 1px dashed var(--line); }
	.cm-pricegroup__badge { position: static; transform: none; margin-left: auto; }
	.cm-pricegroup__head { flex-wrap: wrap; }
	.cm-drawer__sub { padding-left: 4px; }
	.cm-quotes li:nth-child(2) { transform: none; }
}

/* SP：高さの低い端末（iPhone SE 等）ではロゴを一段小さく */
@media (max-width: 680px) and (max-height: 720px) {
	.cm-hero__logo-text { font-size: clamp(56px, 16vw, 80px); }
	.cm-hero__inner { padding-bottom: 52px; }
}
@media (max-width: 680px) {
	.cm-concept__steps span:nth-child(2) { margin-left: .8em; }
	.cm-concept__steps span:nth-child(3) { margin-left: 1.6em; }
	.cm-concept__steps span:nth-child(4) { margin-left: 2.4em; }
}

/* ---------- SP：ファーストビューの速度・負荷調整 ---------- */
@media (max-width: 680px) {
	/* 1つ1つの動きも短く */
	.cm-hero__road { animation-duration: 1.1s; }
	.cm-doodle__in path, .cm-doodle__in circle { animation-duration: .8s; }
	.cm-hero__routemask { animation-duration: 1.5s; }
	.cm-hero__pin-in, .cm-hero__shadow { animation-duration: .6s; }
	.cm-w { animation-duration: .7s; }
	.cm-w--2 { animation-duration: .5s; }
	.cm-hero__catch .ch { animation-duration: .5s; }
	.cm-hero__underline path { animation-duration: .6s; }
	.cm-hero__sub { animation-duration: .8s; }
	.cm-hero__tray i { animation-duration: .7s; }
	/* 描画負荷を下げてカクつきを防ぐ（拡大アニメとチョークのにじみフィルタを止める） */
	.cm-hero__map { animation: none; translate: none; }
	.cm-hero__roads { filter: none; }
	.cm-hero__copy { translate: none; }
	/* オープニングも短縮 */
	.cm-opening { animation-duration: .8s; animation-delay: .75s; }
	.cm-opening__ring { animation-duration: .6s; animation-delay: 0s; }
	.cm-opening__pin { animation-duration: .5s; animation-delay: .15s; }
	.cm-opening__dot { animation-delay: .5s; }
	.cm-opening__logo span { animation-duration: .6s; animation-delay: .1s; }
	.cm-opening__sub { animation-delay: .45s; }
}
