/* --------------------------------------------------------------------------------------
   地域密着情報
--------------------------------------------------------------------------------------- */

.page-local-info .key-sub { background-image: url(../../img/recruit/local-info/key_image.jpg); }

.page-local-info h3,
.page-local-info h4 { font-weight: 700; }

.local-area,
.local-offices { text-align: left; }

/* 見出し */
.local-ttl {
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1;
}

.local-ttl::first-line,
.local-ttl span {
	color: #0881dd;
	display: block;
	font-size: 1.4rem;
}

.local-ttl strong {
	display: block;
	font-size: 3rem;
	font-weight: 700;
	margin-top: 11px;
}

/* 背景のあしらい */
.local-pipe-lead,
.local-pipe-offices,
.local-area .local-area-main::before,
.local-area .local-area-main::after {
	box-sizing: border-box;
	position: absolute;
}

.local-pipe-lead {
	border-right: 96px solid rgba(8, 129, 221, .2);
	border-top: 96px solid rgba(8, 129, 221, .2);
	border-top-right-radius: 126px;
	bottom: 0;
	height: 203px;
	left: 0;
	right: calc(50% + 455px);
}

.local-area .local-area-main::before,
.local-area .local-area-main::after {
	content: '';
	z-index: -1;
}

.local-area .local-area-main::before {
	border-bottom: 96px solid rgba(255, 255, 255, .7);
	border-bottom-right-radius: 126px;
	border-right: 96px solid rgba(255, 255, 255, .7);
	height: 303px;
	left: 0;
	right: calc(50% + 455px);
	top: 0;
}

.local-area .local-area-main::after {
	border-left: 96px solid rgba(255, 255, 255, .7);
	border-top: 96px solid rgba(255, 255, 255, .7);
	border-top-left-radius: 126px;
	bottom: 0;
	left: calc(50% + 352px);
	right: 0;
	top: 849px;
}

.local-pipe-offices {
	border-right: 96px solid rgba(255, 255, 255, .2);
	border-top: 96px solid rgba(255, 255, 255, .2);
	border-top-right-radius: 126px;
	bottom: 0;
	left: 0;
	right: calc(50% + 580px);
	top: 97px;
}

/* --------------------------------------------------------------------------------------
	デコレーション付きタイトル
--------------------------------------------------------------------------------------- */

.block-editor-block-list__layout .square-ttl {
	letter-spacing: 1px;
	text-align: center;
}

.block-editor-block-list__layout .square-ttl strong {
	display: inline-block;
	font-size: 3.6rem;
	font-weight: 700;
	line-height: 1;
	position: relative;
	z-index: 0;
}

.block-editor-block-list__layout .square-ttl strong::before,
.block-editor-block-list__layout .square-ttl strong::after {
	border-radius: 12px;
	border-style: solid;
	border-width: 6px;
	box-sizing: border-box;
	content: '';
	display: block;
	height: 44px;
	left: -79px;
	position: absolute;
	top: -5px;
	width: 44px;
}

.block-editor-block-list__layout .square-ttl strong::before {
	border-color: rgba(8, 129, 221, .4);
	z-index: -1;
}

.block-editor-block-list__layout .square-ttl strong::after {
	border-color: rgba(0, 0, 0, .1);
	height: 36px;
	transform: translate(20px,20px);
	width: 36px;
	z-index: -2;
}

/* リード
--------------------------------------------------------------------------------------- */

.local-lead {
	padding: 150px 0 80px;
	position: relative;
}

/* 右上のあしらい（グレー → 青の順に重ねる） */
.local-lead::before,
.local-lead::after {
	border-bottom-left-radius: 126px;
	border-bottom-style: solid;
	border-bottom-width: 96px;
	border-left-style: solid;
	border-left-width: 96px;
	box-sizing: border-box;
	content: '';
	position: absolute;
	right: 0;
	top: -52px;
}

.local-lead::before {
	border-color: #ebebeb;
	height: 460px;
	left: calc(50% + 579px);
}

.local-lead::after {
	border-color: rgba(8, 129, 221, .2);
	height: 147px;
	left: calc(50% - 135px);
}

.local-lead .box {
	display: flex;
	justify-content: space-between;
}

.local-lead h2 {
	font-size: 3.6rem;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 57px;
}

.local-lead h2 span { color: #0881dd; }

.local-lead p {
	font-size: 1.6rem;
	letter-spacing: .05em;
	line-height: 1.6;
	margin-top: 4px;
	width: 430px;
}

/* エリアの切り替えナビ */
.local-nav {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(5, 240px);
	justify-content: center;
	margin-top: 86px;
	position: relative;
	scroll-margin-top: 100px;
	z-index: 1;
}

.local-nav a {
	align-items: center;
	background-color: #fff;
	border: 4px solid #0881dd;
	border-radius: 8px;
	box-sizing: border-box;
	color: #010101;
	display: flex;
	flex-direction: column;
	height: 70px;
	justify-content: center;
	letter-spacing: .05em;
	line-height: 1;
	transition: background-color .3s ease-in-out;
}

.local-nav a:hover,
.local-nav a.active {
	background-color: #cee6f9;
	text-decoration: none;
}

.local-nav strong {
	font-size: 1.6rem;
	font-weight: 400;
	padding-left: 13px;
	position: relative;
}

/* 右向き（選択中は下向き）の矢印 */
.local-nav strong::before {
	border-right: 2px solid #0881dd;
	border-top: 2px solid #0881dd;
	content: '';
	height: 6px;
	left: 0;
	position: absolute;
	top: calc(50% - 4px);
	transform: rotate(45deg);
	width: 6px;
}

.local-nav a.active strong { padding-left: 17px; }

.local-nav a.active strong::before {
	top: calc(50% - 6px);
	transform: rotate(135deg);
}

.local-nav span {
	color: #0881dd;
	font-size: 1.4rem;
	font-weight: 700;
	margin-top: 9px;
}

/* エリア
--------------------------------------------------------------------------------------- */

.local-area { display: none; }

.local-area.active { display: block; }

.local-area-main {
	background-color: #f0f0f0;
	margin-bottom: 0;
	max-width: 100%;
	padding: 106px 0 50px;
	position: relative;
	z-index: 0; /* 背景のあしらい（z-index: -1）をグレーの上・中身の下に置く */
}

/* 準備中のエリアは右側のあしらいを出さない */
.local-area .local-area-main:has(.local-area-empty)::after { display: none; }

.local-area-inner {
	margin: 0 auto;
	position: relative;
	width: 1282px;
	z-index: 1;
}

/* エリア名（アイコンはデザインに合わせて小さく） */
.local-area .square-ttl strong {
	font-size: 3.6rem;
	letter-spacing: .05em;
	padding-left: 73px;
}

.local-area .square-ttl strong::before,
.local-area .square-ttl strong::after {
	border-radius: 8px;
	border-width: 4px;
	height: 32px;
	left: 0;
	top: -2px;
	width: 32px;
}

.local-area .square-ttl strong::after {
	height: 24px;
	transform: translate(20px, 20px);
	width: 24px;
}

.local-area-intro {
	align-items: flex-start;
	display: flex;
	justify-content: center;
	margin: 53px auto 0;
	max-width: 100%;
	width: 1100px;
}

.local-area-intro figure {
	margin: 0;
	width: 330px;
}

.local-area-intro .text {
	margin-left: 61px;
	margin-top: 20px;
}

.local-area-intro .text p {
	font-size: 2rem;
	letter-spacing: .05em;
	line-height: 1.6;
	margin: 0;
}

.local-area-intro .text p:nth-of-type(n+2) { margin-top: 24px; }

.local-area-empty {
	font-size: 1.6rem;
	letter-spacing: .05em;
	margin-top: 60px;
	padding-bottom: 60px;
	text-align: center;
}

/* グルメ・スポットのカード */
.local-card {
	background-color: #fff;
	border-radius: 40px;
	margin: 36px auto 0;
	max-width: 1282px;
	padding: 37px 50px 48px;
	position: relative;
}

.local-card :where(.wp-block) { max-width: 100%; }

.local-card + .local-card { margin-top: 50px; }

/* 右上のドット */
.local-card.gourmet::before {
	background: url(../../img/recruit/local-info/dots.svg) no-repeat 0 0 / 100% auto;
	content: '';
	height: 473px;
	position: absolute;
	right: -46px;
	top: 18px;
	width: 422px;
}

.local-card > * {
	position: relative;
	z-index: 1;
}

/* 4つ以上でも1行3つで折り返す（カラムブロックは PC で折り返さない指定が付くので上書き） */
.local-card .local-card-list {
	display: flex;
	flex-wrap: wrap !important;
	gap: 40px 20px;
	justify-content: flex-start;
	margin-top: 24px;
}

.local-card .local-card-list > .wp-block-column {
	flex: 0 0 calc((100% - 40px) / 3) !important;
	margin: 0;
	min-width: 0;
}

/* カラムブロックを分けて追加したとき */
.local-card .local-card-list + .local-card-list { margin-top: 40px; }

.local-card-list .components-resizable-box__container {
	height: 250px !important;
	width: 100% !important;
}

.local-card-list figure { margin: 0; }

.local-card-list img {
	display: block;
	height: 250px !important;
	object-fit: cover;
	width: 100% !important;
}

.local-card-list h4 {
	color: #0881dd;
	font-size: 1.4rem;
	letter-spacing: .05em;
	line-height: 1;
	margin-top: 20px;
}

.local-card-list p {
	font-size: 1.4rem;
	letter-spacing: .05em;
	line-height: 18px;
	margin-top: 10px;
}

/* このエリアで暮らす */
.local-living {
	background-color: #fff;
	margin: 0;
	max-width: 100%;
	padding: 46px 0 56px;
}

.local-living .wp-block-group__inner-container {
	margin: 0 auto;
	width: 1280px;
}

.local-living .wp-block-group__inner-container :where(.wp-block) { max-width: 1280px; }

.local-living .info-list {
	display: flex;
	justify-content: space-between;
	margin-top: 41px;
}

.local-living .info-list-column {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 97px;
	padding-left: 92px;
	position: relative;
}

.info-list-column figure {
	left: 0;
	margin: 0;
	max-width: 76px !important;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
}

.local-living h4 {
	color: #0881dd;
	font-size: 2rem;
	letter-spacing: .05em;
	line-height: 1;
	margin: 0;
}

.local-living p {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 18px;
	margin: 10px 0 0;
}

/* 全営業所一覧
--------------------------------------------------------------------------------------- */

.local-offices {
	background-color: #0881dd;
	color: #fff;
	padding: 50px 0 71px;
	position: relative;
}

.local-offices-inner {
	margin: 0 auto;
	position: relative;
	width: 1280px;
	z-index: 1;
}

.local-offices .local-ttl::first-line,
.local-offices .local-ttl span { color: #fff; }

.local-offices ul {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(5, 240px);
	margin-top: 33px;
}

.local-offices a {
	background-color: #fff;
	border-radius: 10px;
	box-sizing: border-box;
	color: #0881dd;
	display: flex;
	flex-direction: column;
	height: 70px;
	justify-content: center;
	letter-spacing: .05em;
	padding: 0 10px 0 41px;
	position: relative;
	transition: opacity .3s ease-in-out;
}

.local-offices a:hover {
	opacity: .8;
	text-decoration: none;
}

.local-offices a::before {
	border-right: 3px solid #0881dd;
	border-top: 3px solid #0881dd;
	content: '';
	height: 10px;
	left: 14px;
	position: absolute;
	top: calc(50% - 6px);
	transform: rotate(45deg);
	width: 10px;
}

.local-offices a strong {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1;
}

.local-offices a span {
	font-size: 1rem;
	font-weight: 700;
	line-height: 12px;
	margin-top: 6px;
}

@media (max-width: 1000px) {

	.page-local-info .key-sub { background-image: url(../../img/recruit/local-info/key_image_sp.jpg); }

	.local-pipe-lead,
	.local-pipe-offices,
	.local-area .local-area-main::before,
	.local-area .local-area-main::after,
	.local-card.gourmet::before { display: none; }

	.local-ttl::first-line,
	.local-ttl span { font-size: 3.2vw; }

	.local-ttl strong {
		font-size: 5.6vw;
		line-height: 1.4;
		margin-top: 1.6vw;
	}

	/* リード */
	.local-lead { padding: 12.8vw 4.267vw 12.8vw; }

	.local-lead::before { display: none; }

	.local-lead::after {
		border-bottom-left-radius: 12.8vw;
		border-bottom-width: 9.6vw;
		border-left-width: 9.6vw;
		height: 17.067vw;
		left: 52vw;
		top: -13.867vw;
	}

	.local-lead .box { display: block; }

	.local-lead h2 {
		font-size: 6.4vw;
		line-height: 1.6;
	}

	.local-lead p {
		font-size: 3.733vw;
		line-height: 1.8;
		margin-top: 5.333vw;
		width: auto;
	}

	.local-nav {
		gap: 2.133vw;
		grid-template-columns: repeat(2, 1fr);
		margin-top: 8vw;
		scroll-margin-top: 0;
	}

	.local-nav a {
		border-radius: 1.6vw;
		border-width: .8vw;
		height: 14.933vw;
	}

	.local-nav strong { font-size: 3.733vw; }

	.local-nav span {
		font-size: 3.2vw;
		margin-top: 1.6vw;
	}

	/* エリア */
	.local-area-main { padding: 12.8vw 4.267vw 10.667vw; }

	.local-area-inner { width: auto; }

	.local-area .square-ttl { text-align: left; }

	.local-area .square-ttl strong {
		font-size: 5.6vw;
		line-height: 1.4;
		padding-left: 12vw;
	}

	.local-area .square-ttl strong::before,
	.local-area .square-ttl strong::after {
		border-radius: 1.6vw;
		border-width: .8vw;
		height: 6.4vw;
		left: 0;
		top: 0;
		width: 6.4vw;
	}

	.local-area .square-ttl strong::after {
		height: 4.8vw;
		transform: translate(4vw, 4vw);
		width: 4.8vw;
	}

	.local-area-intro {
		display: block;
		margin-top: 8vw;
		width: auto;
	}

	.local-area-intro figure {
		margin: 0 auto;
		max-width: 100%;
	}

	.local-area-intro img {
		display: block;
		height: auto;
		max-width: 100%;
	}

	.local-area-intro .text { margin: 5.333vw 0 0; }

	.local-area-intro .text p {
		font-size: 3.733vw;
		line-height: 1.8;
	}

	.local-area-intro .text p:nth-of-type(n+2) { margin-top: 3.2vw; }

	.local-area-empty {
		font-size: 3.733vw;
		margin-top: 8vw;
		padding-bottom: 8vw;
	}

	.local-card {
		border-radius: 5.333vw;
		margin-top: 8vw;
		padding: 7.467vw 5.333vw 8vw;
	}

	.local-card + .local-card { margin-top: 5.333vw; }

	.local-card .local-card-list {
		display: block;
		margin-top: 5.333vw;
	}

	.local-card .local-card-list + .local-card-list { margin-top: 6.4vw; }

	.local-card-list .wp-block-column + .wp-block-column { margin-top: 6.4vw; }

	.local-card-list img { height: auto !important; }

	.local-card-list h4 {
		font-size: 4vw;
		margin-top: 3.2vw;
	}

	.local-card-list p {
		font-size: 3.467vw;
		line-height: 1.6;
		margin-top: 1.6vw;
	}

	/* このエリアで暮らす */
	.local-living { padding: 12.8vw 4.267vw; }

	.local-living .wp-block-group__inner-container { width: auto; }

	.local-living .info-list {
		display: block;
		margin-top: 6.4vw;
	}

	.local-living .info-list-column {
		min-height: 19.2vw;
		padding-left: 19.2vw;
	}

	.local-living .info-list-column + .info-list-column { margin-top: 6.4vw; }

	.info-list-column figure { max-width: 15vw !important; }

	.local-living h4 { font-size: 4.8vw; }

	.local-living p {
		font-size: 3.467vw;
		line-height: 1.6;
		margin-top: 1.6vw;
	}

	/* 全営業所一覧 */
	.local-offices { padding: 12.8vw 4.267vw 14.933vw; }

	.local-offices-inner { width: auto; }

	.local-offices ul {
		gap: 2.133vw;
		grid-template-columns: 1fr;
		margin-top: 5.333vw;
	}

	.local-offices a {
		border-radius: 2.133vw;
		height: auto;
		min-height: 16vw;
		padding: 3.2vw 4.267vw 3.2vw 11.2vw;
	}

	.local-offices a::before {
		border-width: .8vw;
		height: 2.4vw;
		left: 4.267vw;
		top: calc(50% - 1.6vw);
		width: 2.4vw;
	}

	.local-offices a strong { font-size: 4.267vw; }

	.local-offices a span {
		font-size: 3.2vw;
		line-height: 1.5;
		margin-top: 1.067vw;
	}

	.local-offices a span br { display: none; }
}