/* ==========================================================
   Crear theme — main.css
   青を基調にしたデザイン。余白・文字サイズはすべて下のトークンで一元管理。
   ========================================================== */

:root {
	/* color — やわらかい青を主役に、ほんのり温かいピーチを差し色に */
	--cobalt: #4f6fb5;       /* メインの青（落ち着いたペリウィンクル） */
	--cobalt-deep: #3f5b9a;
	--navy: #2b3a63;         /* 濃い面・文字（青みを抑えたインク） */
	--sky: #eef3fb;
	--ice: #cbd9f1;
	--thread: #9db5e3;       /* 糸の色 */
	--peach: #f2cbb3;        /* 差し色 */
	--cream: #faf7f2;
	--white: #ffffff;
	--ink: #1f2a4a;

	/* type */
	--font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--font-display: "Unbounded", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

	/* spacing tokens（全セクション共通） */
	--gutter: clamp(20px, 5vw, 72px);
	--maxw: 1160px;
	--sec-y: clamp(88px, 11vw, 152px);   /* セクション上下の余白 */
	--head-gap: clamp(28px, 4vw, 48px);  /* 見出し→リード文 */
	--block-gap: clamp(40px, 6vw, 72px); /* リード文→本文ブロック */
	--header-h: 72px;
	--radius: 20px;
	--ease: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	/* 16px(SP) → 18px(PC)。PCでも小さく感じない基準サイズ */
	font-size: clamp(1rem, .94rem + .3vw, 1.125rem);
	line-height: 1.95;
	letter-spacing: .04em;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, dl, dd, figure, p, h1, h2, h3 { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	color: var(--white);
	transition: background-color .4s, color .4s, box-shadow .4s;
}
.site-header__bar {
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between;
	padding-inline: var(--gutter);
}
.site-header.is-scrolled { background: rgba(255,255,255,.94); color: var(--navy); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ice); }
.site-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; line-height: 1; }
.site-logo--img img { max-height: 36px; width: auto; }
.site-nav ul { display: flex; gap: clamp(20px, 3vw, 40px); }
.site-nav a { font-family: var(--font-display); font-size: .9375rem; letter-spacing: .04em; text-decoration: none; padding: 8px 2px; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-header__progress { height: 2px; background: var(--thread); transform: scaleX(var(--p, 0)); transform-origin: left; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
	position: relative;
	min-height: 100vh; min-height: 100svh;
	padding-top: calc(var(--header-h) + 16px);
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	background: var(--cobalt);
	color: var(--white);
	overflow: hidden;
}
.hero__thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__thread path { fill: none; stroke: var(--thread); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .75; stroke-linecap: round; }
.js .hero__thread path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-ready .hero__thread path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.8s var(--ease) .5s; }

.hero__copy {
	position: relative; z-index: 1;
	align-self: center;
	padding: 32px 0 64px var(--gutter);
	padding-right: clamp(16px, 3vw, 48px);
}
.hero__title {
	font-size: clamp(2.25rem, .8rem + 4.6vw, 5rem);
	font-weight: 700; line-height: 1.3; letter-spacing: .05em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .1em; white-space: nowrap; }
.ch { display: inline-block; }
.js .ch { transform: translateY(115%); }
.js .is-ready .ch { transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + 250ms); }

.hero__lead { margin-top: clamp(20px, 3vw, 32px); max-width: 28em; font-weight: 500; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.85; word-break: auto-phrase; text-wrap: pretty; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__tags li { font-size: .9375rem; line-height: 1.4; padding: 8px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(28px, 4vw, 44px); }

.js .hero__lead, .js .hero__tags, .js .hero__actions { opacity: 0; transform: translateY(14px); }
.js .is-ready .hero__lead, .js .is-ready .hero__tags, .js .is-ready .hero__actions { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s var(--ease); }
.js .is-ready .hero__lead { transition-delay: var(--lead-d, 1.1s); }
.js .is-ready .hero__tags { transition-delay: calc(var(--lead-d, 1.1s) + .15s); }
.js .is-ready .hero__actions { transition-delay: calc(var(--lead-d, 1.1s) + .3s); }

.hero__photos {
	position: relative; z-index: 1;
	display: flex; gap: 6px;
	min-height: 360px;
	border-top-left-radius: clamp(48px, 8vw, 120px);
	overflow: hidden;
	background: var(--cobalt-deep);
}
.photo { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.photo img, .photo__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo__ph { background: linear-gradient(165deg, #5b7bff, #2747d6 60%, #1d38b0); }
.photo:nth-child(2) .photo__ph { background: linear-gradient(165deg, #7f98ff, #3a58de 60%, #2342c6); }
.photo:nth-child(3) .photo__ph { background: linear-gradient(165deg, #4a69f0, #1f3fc4 60%, #162c8c); }
.photo:nth-child(4) .photo__ph { background: linear-gradient(165deg, #98acff, #4c69e6 60%, #2b49cf); }
.js .photo { clip-path: inset(100% 0 0 0); }
.js .is-ready .photo { clip-path: inset(0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--i) * 120ms + 400ms); }

.photo__cap {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	padding: 48px 12px 14px;
	background: linear-gradient(to top, rgba(11,27,92,.85), rgba(11,27,92,0));
	font-size: .9375rem; line-height: 1.5; color: var(--white);
	opacity: 0; transform: translateY(8px);
	transition: opacity .35s, transform .35s;
}
.photo__name, .photo__role { display: block; }
.photo__role { font-size: .875rem; opacity: .85; }
.photo:hover .photo__cap, .photo:focus-visible .photo__cap, .photo:focus-within .photo__cap { opacity: 1; transform: none; }
.photo:not(:has(.photo__name)) .photo__cap { display: none; }

/* ---------- buttons / links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 14px 36px;
	border: 0; border-radius: 999px; cursor: pointer;
	font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.3;
	transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--ice); }
.btn--blue { background: var(--cobalt); color: var(--white); }
.btn--blue:hover { background: var(--navy); }
.link-under { font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 4px; transition: background-size .4s var(--ease); }
.link-under:hover { background-size: 0 2px; background-position: 100% 100%; }

/* ---------- sections ---------- */
.section { padding-block: var(--sec-y); }
.section__inner { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }

.sec-title {
	display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.5rem);
	line-height: 1.1; letter-spacing: .02em;
	margin-bottom: var(--head-gap);
}
/* 見出しの横に「紡がれる糸」。見えたときに一度だけ伸びる */
.sec-title::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .4; transform-origin: left; }
.js .sec-title[data-reveal]::after { transform: scaleX(0); }
.js .sec-title.is-in::after { transform: scaleX(1); transition: transform 1.4s var(--ease) .15s; }

.lead { margin-bottom: var(--block-gap); max-width: 38em; }

/* message */
.section--message { background: var(--white); }
.section--message .sec-title { color: var(--cobalt); }
.message { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--block-gap); align-items: start; }
.message__heading { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); font-weight: 700; line-height: 1.55; color: var(--navy); word-break: auto-phrase; text-wrap: balance; }
.message__body { max-width: 34em; }

/* service */
.section--service { background: var(--navy); color: var(--white); }
.svc-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.svc__img {
	position: relative; aspect-ratio: 4 / 3; overflow: hidden;
	border-radius: 16px; display: grid; place-items: center;
	background: linear-gradient(150deg, #3a58de, #1d38b0);
	color: var(--ice);
}
.svc__img--2 { background: linear-gradient(150deg, #5b7bff, #2f4ed6); }
.svc__img--3 { background: linear-gradient(150deg, #2a45c4, #142a86); }
.svc__img--4 { background: linear-gradient(150deg, #7f98ff, #3a58de); }
.svc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc__title { margin-top: 20px; font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.svc__text { margin-top: 8px; font-size: 1rem; line-height: 1.8; opacity: .88; }
.js .svc[data-reveal] .svc__img { clip-path: inset(0 100% 0 0); }
.js .svc.is-in .svc__img { clip-path: inset(0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.js .svc[data-reveal] .svc__title, .js .svc[data-reveal] .svc__text { opacity: 0; }
.js .svc.is-in .svc__title, .js .svc.is-in .svc__text { opacity: 1; transition: opacity .8s ease; transition-delay: calc(var(--i) * 120ms + 500ms); }

/* works */
.section--works { background: var(--sky); }
.section--works .sec-title { color: var(--cobalt); }
.works__frame {
	position: relative; width: 100%; max-width: 1000px; margin-inline: auto;
	aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--radius); background: var(--white);
	border: 1px solid var(--ice);
}
.works__frame iframe, .works__frame > * {
	position: absolute !important; inset: 0 !important;
	width: 100% !important; height: 100% !important; max-width: none !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; aspect-ratio: auto !important;
}
.works__link { margin-top: 28px; text-align: center; }

/* company */
.section--company { background: var(--white); }
.section--company .sec-title { color: var(--cobalt); }
.company { max-width: none; }
.company__row { display: grid; grid-template-columns: minmax(7em, 12em) 1fr; gap: 8px 24px; padding-block: 28px; position: relative; }
.company dt { font-weight: 700; color: var(--cobalt); }

/* contact */
.section--contact { background: var(--cobalt); color: var(--white); }
.form { max-width: 680px; }
.field { margin-bottom: 28px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; }
.req { display: inline-block; margin-left: 8px; padding: 1px 10px; font-size: .8125rem; font-weight: 700; line-height: 1.7; border-radius: 999px; background: var(--ice); color: var(--navy); vertical-align: 2px; }
.form input[type="text"], .form input[type="email"], .form textarea {
	width: 100%; padding: 15px 18px; font-family: inherit; font-size: 1rem; letter-spacing: .02em; line-height: 1.6;
	color: var(--ink); background: var(--white); border: 2px solid transparent; border-radius: 12px; appearance: none;
}
.form textarea { resize: vertical; min-height: 10em; }
.form input::placeholder, .form textarea::placeholder { color: #7d88b3; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checks { display: grid; gap: 14px; margin-bottom: 36px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 1rem; line-height: 1.7; }
.check input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--navy); }
.check__link { padding: 0; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.btn--submit { min-width: 220px; }
.notice { max-width: 680px; margin-bottom: 28px; padding: 16px 20px; border-radius: 12px; font-weight: 700; line-height: 1.7; }
.notice--ok { background: var(--white); color: var(--navy); }
.notice--ng { background: var(--navy); color: var(--white); border: 2px solid var(--ice); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--white); border-top: 1px solid rgba(255,255,255,.18); }
.site-footer__inner {
	width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto;
	padding-block: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	/* ページトップボタンと重ならない余白 */
	padding-right: 72px;
}
.site-footer__copy { font-family: var(--font-display); font-size: .9375rem; }
.site-footer__privacy { padding: 10px 0; background: none; border: 0; cursor: pointer; font-size: .9375rem; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- privacy dialog ---------- */
.privacy {
	width: min(720px, calc(100% - 32px)); max-width: none;
	max-height: min(82vh, 760px); max-height: min(82dvh, 760px);
	padding: 0; border: 0; border-radius: var(--radius);
	background: var(--white); color: var(--ink); overflow: hidden;
}
.privacy[open] { display: flex; flex-direction: column; animation: dlg-in .35s var(--ease); }
.privacy::backdrop { background: rgba(11,27,92,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.privacy__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px clamp(20px, 4vw, 32px); border-bottom: 1px solid var(--ice); }
.privacy__title { font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--navy); }
/* ボタン全体がクリック領域（子要素はクリックを拾わず、button自体が受ける） */
.privacy__close {
	flex: none; display: inline-flex; align-items: center; gap: 10px;
	min-height: 48px; padding: 8px 18px; cursor: pointer;
	background: var(--sky); color: var(--navy); border: 0; border-radius: 999px; font-weight: 700; font-size: 1rem;
	transition: background-color .3s;
}
.privacy__close:hover { background: var(--ice); }
.privacy__close > * { pointer-events: none; }
.privacy__close-icon { position: relative; width: 16px; height: 16px; }
.privacy__close-icon::before, .privacy__close-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.privacy__close-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.privacy__close-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }
.privacy__body { overflow-y: auto; padding: clamp(20px, 4vw, 32px); overscroll-behavior: contain; font-size: 1rem; line-height: 1.9; }
.privacy__body > * + * { margin-top: 1em; }
.privacy__body h3 { margin-top: 2em; font-size: 1.0625rem; color: var(--cobalt); }
.privacy__body h3 + p { margin-top: .4em; }
body.is-locked { overflow: hidden; }

/* ---------- back to top ---------- */
.to-top {
	position: fixed; z-index: 90;
	right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
	width: 52px; height: 52px; display: grid; place-items: center;
	border-radius: 50%; background: var(--cobalt); color: var(--white); border: 2px solid var(--white);
	box-shadow: 0 8px 24px rgba(11,27,92,.3);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .35s, transform .35s var(--ease), visibility .35s, background-color .3s;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }

/* ---------- generic pages ---------- */
.plain { padding: calc(var(--header-h) + var(--sec-y) / 2) 0 var(--sec-y); }
.plain__inner { width: min(100% - var(--gutter) * 2, 800px); margin-inline: auto; }
.plain__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-bottom: var(--head-gap); color: var(--navy); }
.plain__content > * + * { margin-top: 1.2em; }
body:not(.home) .site-header { background: rgba(255,255,255,.94); color: var(--navy); box-shadow: 0 1px 0 var(--ice); }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
	.svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
	.message { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
	:root { --header-h: 64px; }

	.nav-toggle {
		position: relative; z-index: 2; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px;
		width: 48px; height: 48px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit;
	}
	.nav-toggle__bar { display: block; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4.5px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-4.5px) rotate(-45deg); }

	.site-nav {
		position: fixed; inset: 0; z-index: 1; display: flex; align-items: center;
		padding: calc(var(--header-h) + 16px) var(--gutter) 48px;
		background: var(--navy); color: var(--white);
		visibility: hidden; opacity: 0; transition: opacity .35s, visibility .35s;
	}
	.site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
	.site-nav a { display: block; padding: 14px 0; font-size: clamp(1.75rem, 8vw, 2.25rem); border-bottom: 1px solid rgba(255,255,255,.2); }
	.site-nav a::after { display: none; }
	body.nav-open .site-nav { visibility: visible; opacity: 1; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { background: transparent; color: var(--white); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	body.nav-open .site-header__bar > .site-logo, body.nav-open .nav-toggle { position: relative; z-index: 2; }

	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero__copy { padding: 24px var(--gutter) 40px; }
	.hero__photos { margin-left: var(--gutter); min-height: 0; height: clamp(260px, 78vw, 420px); border-top-left-radius: 56px; }
	.hero__thread { opacity: .6; }
	.photo__cap { display: none; }

	.company__row { grid-template-columns: 1fr; padding-block: 22px; }
}

@media (max-width: 600px) {
	.privacy__title { font-size: 1.0625rem; white-space: nowrap; }
	.privacy__close { padding-inline: 14px; }
	.svc-list { grid-template-columns: 1fr; gap: 44px; }
	.svc__img { aspect-ratio: 16 / 10; }
	.site-footer__inner { padding-right: 72px; }
	.btn--submit { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}


/* ==========================================================
   v1.1 デザイン刷新：「アーチ」と「糸」を軸にしたクリエイティブな見せ方
   ========================================================== */

/* --- COMPANY：表の線をタイトルの線と同じ右端まで通し、同じ「糸」として描く --- */
.company__row::before, .company__row::after {
	content: ""; position: absolute; left: 0; right: 0; height: 2px;
	background: var(--cobalt); opacity: .4; transform-origin: left;
}
.company__row::before { top: 0; display: none; }
.company__row:first-child::before { display: block; }
.company__row::after { bottom: 0; }
.js .company__row[data-reveal]::before, .js .company__row[data-reveal]::after { transform: scaleX(0); }
.js .company__row.is-in::before, .js .company__row.is-in::after { transform: scaleX(1); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i) * 140ms + .15s); }
.company__row { grid-template-columns: minmax(7em, 14em) 1fr; padding-block: clamp(28px, 3.4vw, 44px); }
.company dt { font-family: var(--font-display); font-weight: 400; font-size: .9375rem; letter-spacing: .04em; }
.company dd { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); font-weight: 500; }

/* --- HERO：メンバー写真をアーチ型・高さ違いに（編集デザイン風） --- */
.hero__photos {
	align-items: flex-end; gap: clamp(8px, 1.1vw, 16px);
	border-top-left-radius: 0; overflow: visible; background: none;
	padding-right: clamp(12px, 2.4vw, 40px);
}
.photo { border-radius: 999px 999px 0 0; }
.photo:nth-child(1) { height: 100%; }
.photo:nth-child(2) { height: 84%; }
.photo:nth-child(3) { height: 94%; }
.photo:nth-child(4) { height: 72%; }
.photo:nth-child(5) { height: 88%; }
.photo__cap { padding-top: 56px; text-align: center; }
/* アーチのすき間に、糸が通り抜けて見える */
.hero__thread { z-index: 0; }

/* --- SERVICE：画像もアーチ型にし、縦にずらして配置 --- */
.svc-list { align-items: start; }
.svc__img { aspect-ratio: 4 / 5; border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px; }
@media (min-width: 1025px) {
	.svc:nth-child(even) { margin-top: clamp(40px, 5vw, 72px); }
}
.svc__icon { width: 64px; height: 64px; }
.svc__title { font-size: 1.3125rem; text-align: center; }
.svc__text { text-align: center; }

/* --- WORKS：枠にハードシャドウでグラフィカルな立体感 --- */
.works__frame { border: 2px solid var(--cobalt); box-shadow: 14px 14px 0 var(--cobalt); width: calc(100% - 14px); max-width: 986px; margin-right: auto; margin-left: auto; }

/* --- MESSAGE：見出しをより大きく --- */
.message__heading { font-size: clamp(1.625rem, 1rem + 2.6vw, 3rem); }

/* --- CONTACT：左に問いかけ、右にフォームの2カラム --- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--block-gap); align-items: start; }
.contact__heading { font-size: clamp(1.5rem, .9rem + 1.6vw, 2.25rem); font-weight: 700; line-height: 1.5; margin-bottom: 28px; word-break: auto-phrase; text-wrap: balance; }
.contact__lead { max-width: 30em; opacity: .92; }
.contact .form, .contact .notice { max-width: none; }
.contact__side { position: sticky; top: calc(var(--header-h) + 32px); }

@media (max-width: 1024px) {
	.contact { grid-template-columns: 1fr; gap: 36px; }
	.contact__side { position: static; }
}
@media (max-width: 860px) {
	.hero__photos { border-top-left-radius: 0; padding-right: var(--gutter); }
}
@media (max-width: 600px) {
	.svc__img { aspect-ratio: 1 / 1; border-radius: 50% 50% 16px 16px / 50% 50% 16px 16px; }
	.works__frame { box-shadow: 8px 8px 0 var(--cobalt); width: calc(100% - 8px); }
	.company__row { grid-template-columns: 1fr; }
}


/* --- キャッチコピー：手書きで書かれるアニメーション --- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__title--write { font-size: 0; line-height: 0; letter-spacing: 0; }
.hero__write { display: block; width: min(100%, 620px); height: auto; overflow: visible; }
.hero__write path { fill: none; stroke: var(--white); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
/* JSが準備できるまで隠す（万一JSが動かなくても4秒後には表示） */
.js .hero__write { visibility: hidden; animation: write-show 0s 4s forwards; }
.js .hero__write.is-armed { visibility: visible; animation: none; }
@keyframes write-show { to { visibility: visible; } }
@media (max-width: 860px) { .hero__write { width: 100%; } }

/* COMPANY：本文エディタで入力した段落・リンクの見た目 */
.company dd > * + * { margin-top: .5em; }
.company dd a { color: var(--cobalt); text-underline-offset: 4px; }
.company dd ul { list-style: disc; padding-left: 1.2em; }


/* ==========================================================
   v1.2 やさしい配色 ＋ デザイン刷新（ペーパーカット風アーチ／回る円形バッジ／マーカー）
   ========================================================== */
::selection { background: var(--peach); color: var(--ink); }

/* --- ヘッダー：淡いヒーロー上では濃い文字色 --- */
.site-header { color: var(--ink); }

/* --- HERO：淡い背景に、濃いインク文字。写真は色違いのアーチを重ねたペーパーカット風 --- */
.hero { background: linear-gradient(180deg, #e8f0fc 0%, #f6f9fe 100%); color: var(--ink); }
.hero__thread path { stroke: var(--cobalt); opacity: .55; }
.hero__tags li { border-color: rgba(31,42,74,.35); background: rgba(255,255,255,.55); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--cobalt); }

/* 手書きキャッチコピーは濃いインク色で */
.hero__write path { stroke: var(--ink); }

.hero__photos { gap: clamp(14px, 1.7vw, 26px); }
.photo { box-shadow: 10px 10px 0 var(--peach); }
.photo:nth-child(2) { box-shadow: 10px 10px 0 #a9c0ea; }
.photo:nth-child(3) { box-shadow: 10px 10px 0 #f7dfd0; }
.photo:nth-child(4) { box-shadow: 10px 10px 0 #8ea7d9; }
.photo:nth-child(5) { box-shadow: 10px 10px 0 var(--ice); }
.js .is-ready .photo { clip-path: inset(-24px -24px 0 -24px); }
.photo__ph { background: linear-gradient(165deg, #dbe6f8, #b9cdee); }
.photo:nth-child(2) .photo__ph { background: linear-gradient(165deg, #f9e6d9, #f0c9b0); }
.photo:nth-child(3) .photo__ph { background: linear-gradient(165deg, #e5edf9, #c3d4f0); }
.photo:nth-child(4) .photo__ph { background: linear-gradient(165deg, #cbd9f1, #9db5e3); }

/* 回る円形バッジ（制作団体らしいアクセント） */
.hero__badge {
	position: absolute; z-index: 2;
	left: calc(45.45% - 78px); bottom: clamp(36px, 7vh, 72px);
	width: 156px; height: 156px; border-radius: 50%;
	background: var(--peach); color: var(--ink);
	display: grid; place-items: center;
	box-shadow: 0 10px 28px rgba(43,58,99,.16);
}
.hero__badge svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__badge text { font-family: var(--font-display); font-size: 17px; letter-spacing: 0; fill: currentColor; }
.hero__badge .hero__badge-mark { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .hero__badge { opacity: 0; transform: scale(.6); }
.js .is-ready .hero__badge { opacity: 1; transform: none; transition: opacity .8s ease 1.6s, transform 1s var(--ease) 1.6s; }

/* --- MESSAGE：白地に青の見出し --- */
.section--message { background: var(--white); }

/* --- SERVICE：落ち着いたインク色の面に、色違いのアーチ --- */
.section--service { background: var(--navy); }
.svc__img { color: var(--navy); }
.svc__img--1 { background: #a9c0ea; }
.svc__img--2 { background: var(--peach); }
.svc__img--3 { background: var(--ice); }
.svc__img--4 { background: #8ea7d9; }
.svc__num { display: block; margin-top: 22px; font-family: var(--font-display); font-size: .9375rem; text-align: center; color: var(--peach); letter-spacing: .08em; }
.svc__num + .svc__title { margin-top: 4px; }

/* --- WORKS：あたたかいクリーム地、インクの枠にピーチの影 --- */
.section--works { background: var(--cream); }
.works__frame { border-color: var(--ink); box-shadow: 14px 14px 0 var(--peach); }

/* --- CONTACT：やわらかい青 --- */
.section--contact { background: var(--cobalt); }
.btn--light:hover { background: var(--peach); }
.notice--ng { background: var(--navy); border-color: var(--ice); }

/* --- 細部 --- */
.to-top { background: var(--navy); }
.to-top:hover { background: var(--cobalt); }

@media (max-width: 860px) {
	.hero__badge { left: auto; right: calc(var(--gutter) + 6px); bottom: calc(clamp(260px, 78vw, 420px) - 52px); width: 104px; height: 104px; }
	.hero__badge text { font-size: 17px; }
	.hero__badge .hero__badge-mark { width: 30px; height: 30px; }
	.photo { box-shadow: 6px 6px 0 var(--peach); }
	.photo:nth-child(2) { box-shadow: 6px 6px 0 #a9c0ea; }
	.photo:nth-child(3) { box-shadow: 6px 6px 0 #f7dfd0; }
	.photo:nth-child(4) { box-shadow: 6px 6px 0 #8ea7d9; }
	.hero__photos { padding-right: calc(var(--gutter) + 6px); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hero__badge svg:first-child { animation: none; } }


/* ==========================================================
   お知らせバー ＋ ポップアップ
   ========================================================== */
:root { --notice-h: 0px; }
html:has(body.has-notice) { --notice-h: 44px; } /* JSが実測値に置き換える */
html { scroll-padding-top: calc(var(--header-h) + var(--notice-h)); }
.hero { padding-top: calc(var(--header-h) + var(--notice-h) + 16px); }
.plain { padding-top: calc(var(--header-h) + var(--notice-h) + var(--sec-y) / 2); }
.contact__side { top: calc(var(--header-h) + var(--notice-h) + 32px); }

.notice-bar { background: var(--peach); color: var(--ink); }
.notice-bar__item {
	display: flex; align-items: center; gap: 12px; width: 100%;
	min-height: 44px; padding: 8px var(--gutter);
	background: none; border: 0; cursor: pointer; text-align: left;
	font-size: .9375rem; line-height: 1.5; font-weight: 500; color: inherit;
}
.notice-bar__item + .notice-bar__item { border-top: 1px solid rgba(31,42,74,.15); }
.notice-bar__tag { flex: none; padding: 1px 10px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .8125rem; font-weight: 700; line-height: 1.7; }
.notice-bar__title { flex: 1; min-width: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.notice-bar__item:hover .notice-bar__title, .notice-bar__item:focus-visible .notice-bar__title { text-decoration-thickness: 2px; }
.notice-bar__more { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.notice-bar__more::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
.notice-bar__item:hover .notice-bar__more::after { transform: translateX(3px) rotate(45deg); }
.notice-bar__item:focus-visible { outline-offset: -3px; }

.notice-dialog .privacy__head { align-items: flex-start; }
.notice-dialog .privacy__title { white-space: normal; font-size: 1.125rem; line-height: 1.55; padding-top: 6px; }
.has-text-align-center { text-align: center; }
.privacy__body ul { list-style: disc; padding-left: 1.2em; }
.privacy__body a { color: var(--cobalt); text-underline-offset: 4px; }

@media (max-width: 860px) {
	.site-nav { padding-top: calc(var(--header-h) + var(--notice-h) + 16px); }
}
@media (max-width: 600px) {
	.notice-bar__more-text { display: none; }
	.notice-bar__item { gap: 10px; }
	.notice-dialog .privacy__title { font-size: 1.0625rem; }
}
