/**
 * front-page.css — しごとえらび 回遊ハブ（front-page.php 専用）
 * functions.php で is_front_page() のときだけ読み込む。
 * 全幅は SWELL の .alignfull（.post_content 内）を利用。色は本サイトのライトテーマ前提の固定値。
 */

/* ===== 土台・リセット（.post_content のタイポgrafを上書き） ===== */
.p-frontPage,
.p-frontPage * { box-sizing: border-box; }
.p-frontPage { margin-top: 0; }
.p-frontPage > * { margin-top: 0; margin-bottom: 0; }
.p-frontPage ul,
.p-frontPage ol { list-style: none; margin: 0; padding: 0; }
.p-frontPage h1,
.p-frontPage h2,
.p-frontPage h3,
.p-frontPage p { margin: 0; padding: 0; border: 0; }
/* SWELL本文見出しの装飾（赤帯・罫線・擬似要素）を front-page では完全無効化 */
.p-frontPage :is(h1, h2, h3) {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
}
.p-frontPage :is(h1, h2, h3)::before,
.p-frontPage :is(h1, h2, h3)::after {
	content: none !important;
	display: none !important;
}
.p-frontPage a { text-decoration: none; color: inherit; }
.p-frontPage img { max-width: 100%; height: auto; }

/* フロントだけ本文上の余白を詰めてヒーローをバナー直下に置く */
.home .l-mainContent__inner { padding-top: 0; }

/* 各帯（.alignfull）の縦余白。横はインナーで取る */
.p-frontPage .alignfull {
	margin: 0;
	padding-top: clamp(36px, 7vw, 60px);
	padding-bottom: clamp(36px, 7vw, 60px);
}
.p-fpInner {
	width: 100%;
	max-width: 1080px;
	margin-inline: auto;
	padding-inline: clamp(16px, 5vw, 32px);
}

/* セクション見出し */
.p-fpHead { text-align: center; margin-bottom: clamp(20px, 4vw, 30px); }
.p-fpHead__en {
	display: block;
	font-size: clamp(18px, 4.4vw, 22px) !important;
	font-weight: 700;
	letter-spacing: .04em;
	color: #15233b !important;
	line-height: 1.3;
}
.p-fpHead__ja { display: block; font-size: 12px; color: #7a828c; margin-top: 6px; }

/* 共通ボタン */
.p-fpBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	border-radius: 8px;
	padding: 13px 28px;
	transition: opacity .2s ease, transform .08s ease;
}
.p-fpBtn:hover { opacity: .88; }
.p-fpBtn:active { transform: translateY(1px); }
.p-fpBtn--light { background: #fff; color: #15233b; }
.p-fpBtn--ig { background: #d4537e; color: #fff; }
.p-fpBtn--igLine { background: transparent; color: #993556; border: 1px solid #d98cab; }

/* ===== ① ヒーロー ===== */
.p-fpHero { background: #15233b; }
.p-fpHero__inner { text-align: center; }
.p-fpHero__kicker {
	font-size: 11px;
	letter-spacing: .18em;
	color: #8aa0bd;
	margin-bottom: 14px;
}
.p-fpHero__title {
	font-size: clamp(21px, 6.2vw, 31px);
	font-weight: 700;
	line-height: 1.5;
	color: #fff !important;
	margin-bottom: 12px;
}
.p-fpHero__lead { font-size: 13px; color: #b9c6d8; margin-bottom: 16px; }
.p-fpHero__path {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	margin-bottom: 10px;
}
.p-fpHero__path li {
	font-size: 11.5px;
	color: #dce5f0;
	border: 1px solid #3a4b66;
	border-radius: 20px;
	padding: 4px 12px;
	white-space: nowrap;
}
.p-fpHero__note { font-size: 11px; color: #8aa0bd; margin-bottom: 24px; }

/* ===== ② 読む順タイムライン ===== */
.p-fpSeries { background: #f6f8fa; }
.p-frontPage .p-fpTimeline { position: relative; max-width: 660px; margin: 0 auto !important; }
.p-fpTimeline::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: #d6dde6;
}
.p-fpTimeline__item { position: relative; padding-left: 46px; }
.p-fpTimeline__item + .p-fpTimeline__item { margin-top: 12px; }
.p-fpTimeline__num {
	position: absolute;
	left: 0;
	top: 4px;
	width: 33px;
	height: 33px;
	border-radius: 50%;
	background: #15233b;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}
.p-fpTimeline__card {
	display: flex;
	gap: 12px;
	align-items: center;
	background: #fff;
	border: 1px solid #ebedf1;
	border-radius: 12px;
	padding: 9px;
	transition: box-shadow .2s ease, transform .08s ease;
}
.p-fpTimeline__card:hover { box-shadow: 0 4px 14px rgba(21, 35, 59, .1); }
.p-fpTimeline__thumb {
	width: 96px;
	height: 64px;
	flex: none;
	border-radius: 8px;
	background: #e6e9ee center / cover no-repeat;
}
.p-fpTimeline__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.p-fpTimeline__label { font-size: 11px; font-weight: 700; color: #2f6db5; }
.p-fpTimeline__ttl { font-size: 13px; line-height: 1.5; color: #2b2f36; }

/* ===== ③ テーマ別カード ===== */
.p-fpThemes { background: #fff; }
.p-fpCat + .p-fpCat { margin-top: clamp(24px, 5vw, 36px); }
.p-fpCat__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding-left: 11px;
	border-left: 3px solid #15233b;
}
.p-fpCat__name { font-size: 15.5px !important; font-weight: 700; color: #1f2a37 !important; line-height: 1.3; }
.p-fpCat__more {
	margin-left: auto;
	font-size: 11.5px;
	color: #7a828c;
	white-space: nowrap;
	flex: none;
}
.p-fpCat__more:hover { color: #15233b; }
.p-fpGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.p-fpCard { display: block; }
.p-fpCard__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	background: #e6e9ee center / cover no-repeat;
}
.p-fpCard__ttl {
	display: block;
	font-size: 12.5px;
	line-height: 1.5;
	color: #2b2f36;
	margin-top: 7px;
}
.p-fpCard:hover .p-fpCard__ttl { color: #2f6db5; }
.p-fpCard__date { display: block; font-size: 10.5px; color: #a3a9b1; margin-top: 4px; }

/* ===== ④ Instagram帯 ===== */
.p-fpIg { background: #fbeaf0; }
.p-fpIg__inner { text-align: center; }
.p-fpIg__ttl {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: clamp(16px, 4.2vw, 19px) !important;
	font-weight: 700;
	color: #4b1528 !important;
	margin-bottom: 10px;
}
.p-fpIg__logo { flex: none; }
.p-fpIg__lead {
	font-size: 13px;
	line-height: 1.8;
	color: #72243e;
}
.p-fpIg__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px 0}
.p-fpIg__profile {
	display: inline-block;
	font-size: 12px;
	color: #993556;
	text-decoration: underline;
}

/* ===== レスポンシブ（PC） ===== */
@media (min-width: 768px) {
	.p-fpGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
	.p-fpTimeline__thumb { width: 120px; height: 76px; }
	.p-fpTimeline__ttl { font-size: 14px; }
	.p-fpHero__lead { font-size: 14px; }
}
