/*
 * 「しまんとJOIN」「はたらく」ページと、緑のボタン
 */

/* ===================================================================== 緑の角丸ボタン（旧 wp-block-button） */
.join-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start; /* ボタンは中身の高さのまま（2 つをそろえない） */
	gap: 5px;
	margin: 0;
}

.join-buttons--wide {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	max-width: 600px; /* ボタン 1 つ。幅は以前の 2 列のときの 1 つ分（584px + 左右の余白）まで */
	margin: 2em auto 0;
}

.join-buttons--wide .link-button {
	width: auto;
	margin: 0.5rem;
}

.link-button {
	display: block;
	margin: 0 auto;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
	font-size: 1.125em;
	line-height: calc(var(--fs-base) * 1.5);
	color: var(--color-white);
	text-align: center;
	background: #6ab737;
	border-radius: 10px;
}

.post_content .link-button,
.link-button:hover {
	color: var(--color-white);
}

.link-button:hover {
	text-decoration: none;
	opacity: 0.85;
}

.link-button--w75 { width: 75%; }
.link-button--w100 { width: 100%; }

/* ===================================================================== JOIN */
.join__logo {
	margin: 0;
	padding: 0;
	border: 0;
}

.join__logo img {
	display: block;
	width: auto; /* SVG 本来の大きさ（554×110）で中央に置く。旧テーマも同じ見た目 */
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.post_content .join__heading {
	margin-top: 2em;
	font-size: 130%;
	text-align: center;
	letter-spacing: 0.5em;
}

.join__lead {
	text-align: center;
}

.join__lead p {
	margin: 0 0 1em;
	line-height: 2.3em;
}

.join__figure {
	display: inline-block;
	width: 800px;
	max-width: 100%;
}

.post_content .join-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 3em 0 0;
	list-style: none;
}

.post_content .join-cards__item {
	padding: 0.5rem;
}

.join-cards__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 15px;
}

.post_content .join-cards__label {
	margin: 0 0 10px;
	font-size: 120%;
	line-height: 1.2;
	text-align: center;
	padding-top: 10px;
}

.post_content .join__jobs-heading {
	margin: 3em 0 0.8em;
	font-size: 1.8em;
	font-weight: normal;
	text-align: center;
	letter-spacing: 0.2em;
}

.join__jobs-heading img {
	display: inline-block;
	width: auto;
}

.post_content .job-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25em;
	margin: 0 0 0 20px;
	list-style: none;
}

.job-cards__thumb {
	display: block;
	overflow: hidden;
	border-radius: 10px;
}

.job-cards__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2; /* 元の写真の縦横比がまちまちなので、枠をそろえて中央で切り抜く */
	object-fit: cover;
	object-position: center;
	transition: transform 0.35s ease-in-out; /* ほかの一覧（.post-grid__image）と同じ */
}

.job-cards__thumb:hover .job-cards__image {
	transform: scale(1.2);
}

.post_content .job-cards__title {
	margin: 0 0 10px;
	padding: 10px 0 0;
	font-size: 130%;
	font-weight: normal;
	line-height: 1.2;
}

.post_content .job-cards__title a {
	display: block;
	font-size: 0.8em;
	color: #333;
}

.post_content .job-cards__date {
	margin: 0;
	font-size: var(--fs-base);
	line-height: calc(var(--fs-base) * 1.5);
}

@media (max-width: 770px) {
	.join-buttons {
		grid-template-columns: minmax(0, 1fr);
		gap: 1em;
	}

	.post_content .join-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.post_content .job-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.join__lead br {
		display: none;
	}
}
