/* page-sitemap.css … サイトマップ */

/* リンク一覧（PC: 列の幅 217px × 3 ＋ 150px を article の中央に） */
.p-sitemap__nav {
	display: flex;
	justify-content: center;
	margin-top: -21px;   /* 行間の上半分を詰めて、1行目の文字を Figma の位置に */
	padding-right: 3px;  /* 調整: Figma は中央より 1.5px 左 */
}
.p-sitemap__main {
	display: grid;
	grid-template-columns: repeat(3, 217px);
	grid-auto-flow: column;
	grid-template-rows: repeat(3, auto);
	font-size: 18px;
	font-weight: 700;
	line-height: 3;      /* 54px */
}
.p-sitemap__main li:first-child { grid-row: span 3; } /* トップページだけで1列 */
.p-sitemap__sub {
	width: 150px;
	font-size: 14px;
	font-weight: 500;
	line-height: 3;      /* 42px */
	margin-top: 5px;     /* 調整: 1行目を大きい項目と同じ高さに（Figma） */
}

/* 項目の頭の印（左端から 20px で文字）: 大きい項目は青い線、小さい項目は青い三角
   印と余白もリンクの一部にする（クリック範囲・hover） */
.p-sitemap__nav a {
	position: relative;
	display: inline-block;
	padding-left: 20px;
	transition: color var(--dur-hover) var(--ease);
}
.p-sitemap__nav a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	background: var(--c-blue);
}
.p-sitemap__main a::before { width: 10px; height: 2px; margin-top: -1px; }
.p-sitemap__sub a::before {
	left: 1px;
	width: 8.66px;
	height: 10px;
	margin-top: -5px;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@media (hover: hover) {
	.p-sitemap__nav a:hover { color: var(--c-hover); }
}

/* Contact ボタン（中央） */
.p-sitemap__contact {
	display: flex;
	justify-content: center;
	margin-top: 81px;
}


/* ===== SP（390 基準）: 2列（左 4項目・右 3項目）の下に小さい項目 ===== */
@media (max-width: 568px) {
	.p-sitemap__nav {
		display: block;
		margin-top: -17px;
		padding-right: 0;
	}
	.p-sitemap__main {
		grid-template-columns: 195px 1fr; /* 右の列は x=225 から */
		grid-template-rows: repeat(4, auto);
		font-size: 16px;   /* 行高 48px */
	}
	.p-sitemap__main li:first-child { grid-row: auto; }
	.p-sitemap__sub {
		width: auto;
		margin-top: 8px;
	}
	.p-sitemap__contact { margin-top: 44px; }
}
