/* サイト全体のフッター（footer.php）。 2026.11.08
 * 白い面の上端に紫の細い線を 1 本引き、ロゴ・リンク一覧・所在地・規約類を薄いグレーの線で区切って並べる。
 * 色は白・グレー・黒に近い文字だけ。紫は上端の線と、リンクにマウスを乗せたときだけに使う。
 * お問い合わせのボタンは置かない（どのページもフッターの直前にお問い合わせの帯があるため。2026-11-08 担当者の指摘で削除）。
 * （担当者が 4 案〔濃い紺／深い紫／明るいグレー／白＋紫の線〕から白＋紫の線を選んだ。最初の案は濃いグレーの面）
 * 親テーマの .site-footer の色・余白の指定を打ち消すため、.site-footer.jh-footer で指定している */

.site-footer.jh-footer {
	--jh-footer-bg: #fff;
	--jh-footer-text: #5a5a5e;
	--jh-footer-strong: #1d1d1f;
	--jh-footer-muted: #8a8a8e;
	--jh-footer-line: #e4e4e2;
	--jh-footer-accent: var(--vk-color-primary, #8160fc);
	margin: 0;
	padding: 44px 0 0; /* 2026-11-08 担当者の指摘で余白を半分に（88px → 44px。所在地・下段も同じ） */
	border: 0;
	border-top: 3px solid var(--jh-footer-accent);
	background: var(--jh-footer-bg);
	color: var(--jh-footer-text);
	font-size: 14px;
	line-height: 1.9;
}

.jh-footer a,
.jh-footer a:visited {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.jh-footer a:hover,
.jh-footer a:focus-visible {
	color: var(--jh-footer-accent);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.jh-footer p,
.jh-footer ul {
	margin: 0;
	padding: 0;
}

.jh-footer ul {
	list-style: none;
}

/* 親テーマが li に上下の余白（7px）を付けているので消す（所在地の縦線が上の横線から離れていた） */
.jh-footer li {
	margin: 0;
}

.jh-footer__inner {
	width: min(100%, 1280px);
	margin: 0 auto;
	padding: 0 var(--vk-width-container-padding, 24px);
}

/* 上段：ロゴとお問い合わせ／リンク一覧 */
.jh-footer__main {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 36px;
	padding-bottom: 36px;
}

.jh-footer__logo {
	display: inline-block;
}

.jh-footer__logo img {
	display: block;
	width: 200px;
	height: auto;
}

.jh-footer__nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 40px;
}

.jh-footer__group + .jh-footer__group {
	margin-top: 24px;
}

.jh-footer__heading {
	display: block;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--jh-footer-line);
	line-height: 1.6;
	color: var(--jh-footer-strong);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	list-style: none;
	cursor: default;
}

/* 見出しは <summary>。PC では開閉しないので、開閉の三角は出さない */
.jh-footer__heading::-webkit-details-marker {
	display: none;
}

.jh-footer__list li + li {
	margin-top: 2px;
}

.jh-footer__list a {
	font-size: 13px;
}

/* 外部サイトの印（右上向きの矢印） */
.jh-footer a.jh-footer__ext::after {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-left: 7px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.5 1H9v5.5M9 1L1 9' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.5 1H9v5.5M9 1L1 9' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
	vertical-align: 0.05em;
}

/* 中段：所在地
 * 本社（--main）だけ文字を 1.2 倍にする（2026-11-08 担当者の指定。支社はそのまま。いったん 1.7 倍にしたが大きすぎた） */
.jh-footer__offices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--jh-footer-line);
}

.jh-footer__office {
	padding: 20px 16px 22px 0;
}

.jh-footer__office + .jh-footer__office {
	padding-left: 16px;
	border-left: 1px solid var(--jh-footer-line);
}

.jh-footer__office-name {
	margin-bottom: 10px !important;
	color: var(--jh-footer-strong);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.jh-footer__office-address,
.jh-footer__office-tel {
	font-size: 13px;
}

.jh-footer__office-tel {
	margin-top: 8px !important;
	font-feature-settings: "tnum";
}

/* 本社：14→17px、13→16px（1.2 倍を整数に丸めた値） */
.jh-footer__office--main .jh-footer__office-name {
	font-size: 17px;
}

.jh-footer__office--main .jh-footer__office-address,
.jh-footer__office--main .jh-footer__office-tel {
	font-size: 16px;
}

/* 電話・FAX は 1 行ずつ、番号の途中で折り返さない */
.jh-footer__num {
	display: block;
	white-space: nowrap;
}

.jh-footer__label {
	display: inline-block;
	width: 3em;
	color: var(--jh-footer-muted);
	font-size: 0.85em; /* 番号に対して小さめ（支社 13px → 約 11px、本社 16px → 約 14px） */
	letter-spacing: 0.08em;
}

/* iPhone は電話番号を自動でリンクにして下線を付けるので、周りの文字と同じ見た目にする。
 * Safari は a[x-apple-data-detectors]、iPhone 版 Chrome は chrome_annotation という要素で包む。
 * 自動リンクそのものは footer.php の format-detection で止めている */
.jh-footer a[x-apple-data-detectors],
.jh-footer a[href^="tel:"],
.jh-footer chrome_annotation {
	border: 0 !important;
	color: inherit !important;
	text-decoration: none !important;
	font: inherit !important;
}

/* 下段：規約類とコピーライト */
.jh-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 32px;
	padding: 12px 0 14px;
	border-top: 1px solid var(--jh-footer-line);
	font-size: 12px;
}

.jh-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

.site-footer.jh-footer .jh-footer__copyright {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 20px;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--jh-footer-muted);
	font-size: 12px;
	text-align: left;
}

.site-footer.jh-footer .jh-footer__copyright p {
	margin: 0;
	font-size: inherit;
}

/* タブレット：ロゴの段とリンク一覧を縦に並べる */
@media (max-width: 991.98px) {
	.site-footer.jh-footer {
		padding-top: 36px;
	}

	.jh-footer__main {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding-bottom: 28px;
	}

	.jh-footer__brand {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}

	.jh-footer__nav {
		gap: 40px 32px;
	}
}


/* スマホ：スクロールを短くする（2026-11-08 担当者の指摘）
 * ・リンク一覧は見出しだけを並べ、タップで開く（開閉は footer.js） */
@media (max-width: 767.98px) {
	.site-footer.jh-footer {
		padding-top: 36px;
		font-size: 13px;
		line-height: 1.75;
	}

	/* リンク一覧の最後の線のすぐ下から所在地を始める（2026-11-08 担当者の指摘：本社の上が空きすぎ） */
	.jh-footer__main {
		gap: 24px;
		padding-bottom: 0;
	}

	.jh-footer__brand {
		flex-wrap: wrap;
		gap: 16px;
	}

	/* ロゴは大きめに（2026-11-08 担当者の指摘：150px では小さい） */
	.jh-footer__logo {
		flex: 0 1 210px;
		max-width: 210px;
	}

	.jh-footer__logo img {
		width: 100%;
	}

	.jh-footer__nav {
		display: block;
		border-top: 1px solid var(--jh-footer-line);
	}

	.jh-footer__group,
	.jh-footer__group + .jh-footer__group {
		margin: 0;
		border-bottom: 1px solid var(--jh-footer-line);
	}

	.jh-footer__heading {
		position: relative;
		margin: 0;
		padding: 13px 32px 13px 0;
		border-bottom: 0;
		cursor: pointer;
	}

	/* 開閉の印（＋／－） */
	.jh-footer__heading::before,
	.jh-footer__heading::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 4px;
		width: 11px;
		height: 1px;
		background: var(--jh-footer-strong);
		transition: transform 0.2s ease;
	}

	.jh-footer__heading::after {
		transform: rotate(90deg);
	}

	.jh-footer__group[open] > .jh-footer__heading::after {
		transform: rotate(0deg);
	}

	.jh-footer__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px 16px;
		padding: 0 0 16px !important;
	}

	.jh-footer__list li + li {
		margin-top: 0;
	}

	.jh-footer__offices {
		grid-template-columns: minmax(0, 1fr);
		border-top: 0;
	}

	/* 所在地は拠点名を左、住所と電話を右に置いて詰める */
	.jh-footer__office,
	.jh-footer__office + .jh-footer__office {
		display: grid;
		grid-template-columns: 5em minmax(0, 1fr);
		gap: 0 12px;
		padding: 16px 0;
		border-left: 0;
		border-bottom: 1px solid var(--jh-footer-line);
	}

	.jh-footer__office-name {
		margin: 0 !important;
		font-size: 13px;
	}

	.jh-footer__office-address,
	.jh-footer__office-tel {
		font-size: 12px;
	}

	.jh-footer__office-tel {
		margin-top: 4px !important;
	}

	/* 本社：13→16px、12→14px（1.2 倍を整数に丸めた値） */
	.jh-footer__office--main .jh-footer__office-name {
		font-size: 16px;
	}

	.jh-footer__office--main .jh-footer__office-address,
	.jh-footer__office--main .jh-footer__office-tel {
		font-size: 14px;
	}

	.jh-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 16px 0 88px; /* 右下の「ページの先頭へ」ボタン・チャットと重ならないように */
		border-top: 0;
	}

	.jh-footer__legal {
		gap: 2px 16px;
		font-size: 11px;
	}

	.site-footer.jh-footer .jh-footer__copyright {
		font-size: 11px;
	}
}
