/**
 * 新デザインのヘッダー・フッター（トップ以外の全ページ＋新トップの試作ページ）。
 * body.is-satooya-chrome のときだけ効く。本文には触れない。読み込みは inc/warm-chrome.php。
 * フッター・事務局はモック app/public/mockup/top-v2.html から機械移植（scratchpad の chrome/build_css.py）。
 */

/* 変数（モックと同じ） */
.is-satooya-chrome .sw-head,
.is-satooya-chrome .sw-foot {
	--coral: #eb7b7b;
	--rose: #da7282;
	--orange: #f2a452;
	--green: #6cac34;
	--sage: #9aba62;
	--lavender: #ba8aba;
	--mustard: #d3c352;

	
	--coral-ink: #b04450;
	--green-ink: #467520;
	--orange-ink: #93520f;
	--lav-ink: #7a5a8a;
	--ink: #3d302b;
	--ink-soft: #665550;

	--paper: #fffbf5;
	--pink-field: #fbede9;
	--green-field: #eef4e3;
	--lav-field: #f5eff6;
	--orange-field: #fdf0e2;
	--orange-tint: #fbe2c8;
	--card: #ffffff;
	--rule: #eadfd6;
	--media-bg: #fbf4ec;

	--font-maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", sans-serif;
	--font-hand: "Klee One", "Zen Maru Gothic", cursive;

	--radius: 20px;
	--cut-l: 56px 72px 48px 80px / 64px 48px 80px 56px;
	--cut-s: 14px 18px 12px 16px / 16px 12px 18px 14px;
	--gap: 28px;
	--sec-y: 80px;
	--wrap: 1120px;
}

/* ===================================================================
   ヘッダー（モックの topbar・head・navbar を移植。試作用ヘッダーパーツの .sw-head の中だけ）
   =================================================================== */
.is-satooya-chrome .sw-head { font-family: var(--font-maru); font-weight: 500; color: var(--ink); line-height: 1.95; background: var(--paper); }
.is-satooya-chrome .sw-head *, .is-satooya-chrome .sw-head *::before, .is-satooya-chrome .sw-head *::after { box-sizing: border-box; }
.is-satooya-chrome .sw-head img { max-width: 100%; height: auto; display: block; }
.is-satooya-chrome .sw-head a { color: var(--coral-ink); }
.is-satooya-chrome .sw-head ul { list-style: none; margin: 0; padding: 0; }
.is-satooya-chrome .sw-head .wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.is-satooya-chrome .sw-head a.more:hover .more__icon, .is-satooya-chrome .sw-head a:hover .more .more__icon { background: var(--coral-ink); border-color: var(--coral-ink); color: #fff; }
.is-satooya-chrome .sw-head a.more:hover { text-decoration: underline; text-underline-offset: 5px; }
.is-satooya-chrome .sw-head a.cat { text-decoration: none; }
.is-satooya-chrome .sw-head a.cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.is-satooya-chrome .sw-head .topbar { font-size: 12px; color: var(--ink-soft); }
.is-satooya-chrome .sw-head .topbar .wrap { padding: 6px 0 0; }
.is-satooya-chrome .sw-head .topbar p { margin: 0; }
.is-satooya-chrome .sw-head .head { background: var(--paper); }
.is-satooya-chrome .sw-head .head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0 10px; }
.is-satooya-chrome .sw-head .head__logo img { width: 66px; }
.is-satooya-chrome .sw-head .head__logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.is-satooya-chrome .sw-head .sitename { position: relative; display: inline-flex; align-items: baseline; font-family: var(--font-maru, "Zen Maru Gothic", sans-serif); font-weight: 700; font-size: 32px; line-height: 1; letter-spacing: .06em; color: var(--ink); white-space: nowrap; }
.is-satooya-chrome .sw-head .sitename__kana { letter-spacing: -.06em; margin-right: .06em; }
.is-satooya-chrome .sw-head .sitename__navi { margin-left: .14em; font-size: .92em; letter-spacing: .04em; color: var(--coral); }
.is-satooya-chrome .sw-head .head__util { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; }
.is-satooya-chrome .sw-head .head__util > li > a:not(.line) { color: var(--ink); text-decoration: none; font-weight: 700; }
.is-satooya-chrome .sw-head .head__util > li > a:not(.line):hover { color: var(--coral-ink); text-decoration: underline; }
.is-satooya-chrome .sw-head .line {
	display: flex; flex-direction: column; align-items: flex-start;
	padding: 6px 16px 6px 30px; position: relative;
	border: 2px solid #06c755; border-radius: 12px; background: #fff;
	color: var(--ink); text-decoration: none; line-height: 1.35;
}
.is-satooya-chrome .sw-head .line::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #06c755; }
.is-satooya-chrome .sw-head .line__main { font-weight: 700; font-size: 14px; }
.is-satooya-chrome .sw-head .line__sub { font-size: 11px; color: var(--ink-soft); }
.is-satooya-chrome .sw-head .line:hover .line__main { text-decoration: underline; }
.is-satooya-chrome .sw-head .navbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 251, 245, .97); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.is-satooya-chrome .sw-head .navbar .wrap { display: flex; align-items: center; justify-content: center; }
.is-satooya-chrome .sw-head .gnav { display: flex; align-items: center; gap: 0; }
.is-satooya-chrome .sw-head .gnav > li { position: relative; }
.is-satooya-chrome .sw-head .gnav a { display: block; position: relative; padding: 12px 11px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.5; white-space: nowrap; }
.is-satooya-chrome .sw-head .gnav > li > a:hover, .is-satooya-chrome .sw-head .gnav > li:focus-within > a { color: var(--coral-ink); }
.is-satooya-chrome .sw-head .gnav > li:not(.cta) > a:hover::after {
	content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 6px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 6' preserveAspectRatio='none'%3E%3Cpath d='M2 3.6c12-1.8 22 .8 34-.6s15-.6 22-.2' fill='none' stroke='%23eb7b7b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.is-satooya-chrome .sw-head .has-sub > a::before { content: ""; position: absolute; right: 6px; top: 50%; width: 5px; height: 5px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.is-satooya-chrome .sw-head .has-sub > a { padding-right: 22px; }
.is-satooya-chrome .sw-head .sub {
	position: absolute; left: 0; top: 100%; z-index: 5; min-width: 260px;
	padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
	box-shadow: 0 10px 24px rgba(61, 48, 43, .08);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.is-satooya-chrome .sw-head .has-sub:hover > .sub, .is-satooya-chrome .sw-head .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.is-satooya-chrome .sw-head .sub a { padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.is-satooya-chrome .sw-head .sub a:hover { background: var(--pink-field); color: var(--coral-ink); }
.is-satooya-chrome .sw-head .sub a span { display: block; }
.is-satooya-chrome .sw-head .sub a span + span { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.is-satooya-chrome .sw-head .gnav .cta { margin-left: 10px; }
.is-satooya-chrome .sw-head .gnav .cta > a { padding: 8px 30px 8px 18px; border-radius: var(--cut-s); background: var(--coral-ink); color: #fff; }
.is-satooya-chrome .sw-head .gnav .cta > a:hover, .is-satooya-chrome .sw-head .gnav .cta:focus-within > a { background: #8f3540; color: #fff; }
.is-satooya-chrome .sw-head .gnav .cta > a::before { right: 14px; }
.is-satooya-chrome .sw-head .gnav .cta .sub { left: auto; right: 0; }
.is-satooya-chrome .sw-head .burger { display: none; width: 46px; height: 46px; padding: 9px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.is-satooya-chrome .sw-head .burger svg { width: 100%; height: 100%; }
.is-satooya-chrome .sw-head .burger path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 1100px) {
	.is-satooya-chrome .sw-head .burger { display: block; }
	.is-satooya-chrome .sw-head .head__util .opt { display: none; }
	.is-satooya-chrome .sw-head .navbar { position: static; border: 0; }
	.is-satooya-chrome .sw-head .navbar .wrap { display: none; }
	.is-satooya-chrome .sw-head .navbar.is-open { position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; overflow-y: auto; background: var(--paper); border-top: 1px solid var(--rule); }
	.is-satooya-chrome .sw-head .navbar.is-open .wrap { display: block; padding: 8px 0 32px; }
	.is-satooya-chrome .sw-head .gnav { flex-direction: column; align-items: stretch; }
	.is-satooya-chrome .sw-head .gnav > li { border-top: 1px solid var(--rule); }
	.is-satooya-chrome .sw-head .gnav a { padding: 12px 4px; white-space: normal; }
	.is-satooya-chrome .sw-head .has-sub > a::before { display: none; }
	.is-satooya-chrome .sw-head .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; background: none; }
	.is-satooya-chrome .sw-head .gnav .cta { margin: 12px 0 0; border-top: 0; }
	.is-satooya-chrome .sw-head .gnav .cta > a { display: inline-block; }
	.is-satooya-chrome .sw-head .head { position: sticky; top: 0; z-index: 30; }
}
@media (max-width: 640px) {
	.is-satooya-chrome .sw-head .topbar { display: none; }
	.is-satooya-chrome .sw-head .head__logo img { width: 41px; }
	.is-satooya-chrome .sw-head .head__logo { gap: 6px; flex: 0 0 auto; }
	.is-satooya-chrome .sw-head .head__util { min-width: 0; }
	.is-satooya-chrome .sw-head .head__logo .sitename { font-size: 17px; letter-spacing: .03em; }
	.is-satooya-chrome .sw-head .head__util { flex-wrap: nowrap; gap: 4px; }
	.is-satooya-chrome .sw-head .burger { width: 42px; height: 42px; padding: 8px; }
	.is-satooya-chrome .sw-head .head .wrap { gap: 8px; }
	.is-satooya-chrome .sw-head .line { padding: 3px 9px 3px 21px; border-radius: 10px; }
	.is-satooya-chrome .sw-head .line::before { left: 8px; width: 7px; height: 7px; margin-top: -3.5px; }
	.is-satooya-chrome .sw-head .line__main { font-size: 11px; white-space: nowrap; }
	.is-satooya-chrome .sw-head .line__more { display: none; }
	.is-satooya-chrome .sw-head .line__sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.is-satooya-chrome .sw-head *, .is-satooya-chrome .sw-head *::before, .is-satooya-chrome .sw-head *::after { transition: none !important; animation: none !important; }
}

/* ヘッダーを包む要素（テンプレートパーツの <header> と .sw-head）を箱として扱わない。
   こうしないと .head の sticky が包みの高さの中でしか効かず、スクロールでヘッダーが消える（モックは上に残る） */
.is-satooya-chrome header.wp-block-template-part:has(> .sw-head),
.is-satooya-chrome .sw-head { display: contents; }
.is-satooya-chrome .sw-head .topbar { background: var(--paper); } /* 包みに付けた背景が効かなくなるので、上の帯に付け直す */

/* ===================================================================
   フッター（テンプレートパーツ footer-warm の .sw-foot の中だけ）
   =================================================================== */
.is-satooya-chrome .sw-foot { font-family: var(--font-maru); font-weight: 500; font-size: 16px; color: var(--ink); line-height: 1.95; background: var(--paper); -webkit-font-smoothing: antialiased; }
.is-satooya-chrome .sw-foot *, .is-satooya-chrome .sw-foot *::before, .is-satooya-chrome .sw-foot *::after { box-sizing: border-box; }
.is-satooya-chrome .sw-foot :where(p, h2, h3, h4, ul) { margin-block: 0; }
.is-satooya-chrome .sw-foot *, .is-satooya-chrome .sw-foot *::before, .is-satooya-chrome .sw-foot *::after { box-sizing: border-box; }
.is-satooya-chrome .sw-foot img { max-width: 100%; height: auto; display: block; }
.is-satooya-chrome .sw-foot a { color: var(--coral-ink); }
.is-satooya-chrome .sw-foot ul { list-style: none; margin: 0; padding: 0; }
.is-satooya-chrome .sw-foot .wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.is-satooya-chrome .sw-foot a:hover .more .more__icon { background: var(--coral-ink); border-color: var(--coral-ink); color: #fff; }
.is-satooya-chrome .sw-foot .sheet { margin-inline: max(16px, (100% - 1240px) / 2); border-radius: var(--cut-l); padding: var(--sec-y) 0; position: relative; }
.is-satooya-chrome .sw-foot .sheet--pink { background: var(--pink-field); }
.is-satooya-chrome .sw-foot .sheet--green { background: var(--green-field); }
.is-satooya-chrome .sw-foot .sheet--orange { background: var(--orange-field); }
.is-satooya-chrome .sw-foot .sheet--lav { background: var(--lav-field); }
.is-satooya-chrome .sw-foot .sec.sheet { padding: var(--sec-y) 0; }
.is-satooya-chrome .sw-foot .sec + .sec.sheet { margin-top: 0; }
.is-satooya-chrome .sw-foot .sheet + .sec { padding-top: var(--sec-y); }
.is-satooya-chrome .sw-foot .sheet.contact { margin-bottom: var(--sec-y); }
.is-satooya-chrome .sw-foot .footer__logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.is-satooya-chrome .sw-foot .contact__office-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 64px 0 18px; }
.is-satooya-chrome .sw-foot .contact__office-ttl { margin: 0; font-size: 19px; font-weight: 700; text-align: left; }
.is-satooya-chrome .sw-foot .office-sns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.is-satooya-chrome .sw-foot .office-sns a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 52% 48% 50% 50% / 50% 52% 48% 50%; background: var(--card); border: 1px solid #f1dcc4; color: var(--orange-ink); transition: background .2s, color .2s, border-color .2s; }
.is-satooya-chrome .sw-foot .office-sns a:hover { background: var(--orange-ink); border-color: var(--orange-ink); color: #fff; }
.is-satooya-chrome .sw-foot .office-sns svg { width: 22px; height: 22px; }
.is-satooya-chrome .sw-foot .offices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.is-satooya-chrome .sw-foot .office { background: var(--card); border: 1px solid #f1dcc4; border-radius: var(--radius); padding: 26px 30px 28px; }
.is-satooya-chrome .sw-foot .office h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--orange-ink); }
.is-satooya-chrome .sw-foot .office h4 { margin: 0; font-size: 14px; font-weight: 700; }
.is-satooya-chrome .sw-foot .office p { margin: 0; font-size: 14px; line-height: 1.9; }
.is-satooya-chrome .sw-foot .office__tel { margin-top: 10px !important; font-size: 0 !important; }
.is-satooya-chrome .sw-foot .office__tel a { display: block; font-size: 30px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.is-satooya-chrome .sw-foot .office__tel a:hover { color: var(--coral-ink); }
.is-satooya-chrome .sw-foot .office__tel span { display: block; font-size: 14px; }
.is-satooya-chrome .sw-foot .office__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.is-satooya-chrome .sw-foot .office__links a { display: inline-flex; align-items: center; gap: 7px; color: var(--orange-ink); text-decoration: none; }
.is-satooya-chrome .sw-foot .office__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.is-satooya-chrome .sw-foot .office__icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 52% 48% 50% 50% / 50% 52% 48% 50%; background: var(--orange-tint); color: var(--orange-ink); transition: background .2s, color .2s; }
.is-satooya-chrome .sw-foot .office__icon svg { width: 17px; height: 17px; }
.is-satooya-chrome .sw-foot .office__links a:hover .office__icon { background: var(--orange-ink); color: #fff; }
.is-satooya-chrome .sw-foot .footer { padding: 0 0 28px; font-size: 14px; }
.is-satooya-chrome .sw-foot .footer__dots {
	display: block; height: 4px; margin-bottom: 56px; opacity: .45;
	background-image:
		radial-gradient(circle at 2px 2px, var(--rose) 1.6px, transparent 2px),
		radial-gradient(circle at 2px 2px, var(--sage) 1.6px, transparent 2px),
		radial-gradient(circle at 2px 2px, var(--lavender) 1.6px, transparent 2px),
		radial-gradient(circle at 2px 2px, var(--orange) 1.6px, transparent 2px);
	background-size: 56px 4px;
	background-position: 0 0, 14px 0, 28px 0, 42px 0;
	background-repeat: repeat-x;
}
.is-satooya-chrome .sw-foot .footer .wrap { display: grid; grid-template-columns: max-content 1fr; gap: 24px 56px; }
.is-satooya-chrome .sw-foot .footer__logo img { width: 220px; }
.is-satooya-chrome .sw-foot .footer__org { display: flex; gap: 12px; align-items: center; margin-top: 14px; max-width: 400px; }
.is-satooya-chrome .sw-foot .footer__org img { width: 40px; flex: 0 0 auto; }
.is-satooya-chrome .sw-foot .footer__org p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.is-satooya-chrome .sw-foot .fnav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 40px; line-height: 2.4; }
.is-satooya-chrome .sw-foot .fnav a { color: var(--ink); text-decoration: none; }
.is-satooya-chrome .sw-foot .fnav a:hover { color: var(--coral-ink); text-decoration: underline; }
.is-satooya-chrome .sw-foot .footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 28px; }
.is-satooya-chrome .sw-foot .copy { display: flex; gap: 6px; flex-wrap: wrap; color: var(--ink-soft); font-size: 12px; }
.is-satooya-chrome .sw-foot .copy a { color: inherit; text-decoration: none; }
.is-satooya-chrome .sw-foot .to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--coral-ink); font-weight: 700; font-size: 13px; text-decoration: none; }
.is-satooya-chrome .sw-foot .to-top svg { width: 16px; height: 9px; transform: rotate(-90deg); }
@media (max-width: 860px) {
	.is-satooya-chrome .sw-foot .footer .wrap { grid-template-columns: 1fr; }
	.is-satooya-chrome .sw-foot .footer__logo img { width: 180px; }
}
@media (max-width: 640px) {
	.is-satooya-chrome .sw-foot .sheet { border-radius: 36px 48px 32px 52px / 44px 32px 52px 36px; margin-inline: 8px; }
	.is-satooya-chrome .sw-foot .contact__office-head { margin-top: 48px; }
	.is-satooya-chrome .sw-foot .offices { grid-template-columns: 1fr; }
	.is-satooya-chrome .sw-foot .office { padding: 22px 20px 24px; }
	.is-satooya-chrome .sw-foot .office__tel a { font-size: 26px; }
	.is-satooya-chrome .sw-foot .fnav { grid-template-columns: repeat(2, auto); gap: 0 24px; font-size: 13px; }
	.is-satooya-chrome .sw-foot .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.is-satooya-chrome .sw-foot *, .is-satooya-chrome .sw-foot *::before, .is-satooya-chrome .sw-foot *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 640px) { .is-satooya-chrome .sw-foot { font-size: 15px; } }

/* 事務局（下層ページのフッターの上。トップのお問い合わせ欄の下半分と同じ） */
.is-satooya-chrome .sw-foot .foot-offices { margin-top: 64px; margin-bottom: var(--sec-y); padding: 56px 0 64px; }
.is-satooya-chrome .sw-foot .foot-offices .contact__office-head { margin-top: 0; }
@media (max-width: 640px) {
	.is-satooya-chrome .sw-foot .foot-offices { margin-top: 48px; margin-bottom: 56px; padding: 40px 0 44px; }
	.is-satooya-chrome .sw-foot .foot-offices .wrap { width: calc(100% - 40px); }
}
