/* ==========================================================================
   トップページ（patterns/front-*.php）
   数値は STUDIO 版（setouchito.jp の移行前）の設定に合わせています。
   PC：パネル幅 1400px・中身 1300px／スマホ（540px 以下）：パネルは画面幅いっぱい
   ========================================================================== */

/* ---- セクションの間隔（パネルとパネルの間は 30px） ---- */
.st-page-content > .p-front-project,
.st-page-content > .p-front-news,
.st-page-content > .p-front-member,
.st-page-content > .p-front-recruit,
.st-page-content > .p-front-company,
.st-page-content > .p-front-contact {
	margin-bottom: 30px !important;
}

@media (max-width: 540px) {
	.st-page-content > .p-front-news {
		margin-bottom: 32px !important;
	}

	.st-page-content > .p-front-contact {
		margin-bottom: 60px !important;
	}
}

/* ---- ファーストビュー ---------------------------------------------- */
.p-front-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 30px 20px 40px; /* ヘッダー 60px と合わせて上 90px */
	background: var(--st-hero);
}

.p-front-hero > * {
	margin: 0 !important;
}

.p-front-hero__box {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 50px;
	width: min(1400px, 100%);
	max-width: none !important;
	min-height: 399px;
	padding: 0 20px;
	border-radius: 12px 12px 0 0;
	background: var(--wp--preset--color--base);
}

.p-front-hero__box > *,
.p-front-hero__copy > *,
.p-front-hero__consult > * {
	margin: 0 !important;
}

.p-front-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 48px !important;
}

.p-front-hero__title {
	font-size: 36px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.05em;
	color: var(--st-text);
}

.p-front-hero__lead {
	width: 510px;
	max-width: 100%;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.8;
}

.p-front-hero__consult {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	width: 480px;
	max-width: 100%;
	height: 182px;
	margin-bottom: 48px !important;
	border-radius: 30px;
	background: var(--st-accent);
	box-shadow: 3px 3px 0 0 rgb(0 0 0 / 0.2);
	color: var(--wp--preset--color--base);
}

.p-front-hero__consult-label {
	width: 100%;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.05em;
	text-align: center;
}

.p-front-hero__consult-label a::after {
	content: "";
	display: inline-block;
	width: 0.42em;
	height: 0.42em;
	margin: 0 0 0.12em 0.36em;
	border-top: 3px solid currentcolor;
	border-right: 3px solid currentcolor;
	transform: rotate(45deg);
	vertical-align: middle;
}

.p-front-hero__consult-text {
	box-sizing: border-box;
	width: 100%;
	padding: 0 30px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.05em;
}

/* 流れるロゴ */
.p-front-hero .st-logo-loop {
	width: 100%;
	max-width: none !important;
	height: 200px;
}

.p-front-hero .st-logo-loop__item {
	width: 380px;
	height: 200px;
	border-radius: 8px;
}

.p-front-hero .st-logo-loop__item img {
	height: 200px;
	aspect-ratio: auto;
}

@media (max-width: 960px) {
	.p-front-hero__box {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}

	.p-front-hero__copy {
		align-self: stretch;
		margin: 40px 20px 20px !important;
	}
}

@media (max-width: 540px) {
	.p-front-hero {
		gap: 4px;
		padding: 30px 0 16px;
	}

	.p-front-hero__box {
		padding: 0;
		border-radius: 6px 6px 0 0;
	}

	.p-front-hero__copy {
		margin: 20px 10px !important;
		gap: 20px;
	}

	.p-front-hero__title {
		font-size: 24px;
	}

	.p-front-hero__lead {
		width: 300px;
		font-size: 15px;
		line-height: 2.1;
		letter-spacing: -0.02em;
	}

	.p-front-hero__consult {
		width: 371px;
		margin-bottom: 20px !important;
		border-radius: 10px;
	}

	.p-front-hero__consult-label {
		font-size: 24px;
	}

	.p-front-hero .st-logo-loop {
		height: 120px;
		gap: 8px !important;
	}

	.p-front-hero .st-logo-loop__item {
		width: 200px;
		height: 120px;
	}

	.p-front-hero .st-logo-loop__item img {
		height: 120px;
	}

	.p-front-hero .st-logo-loop__track {
		gap: 8px;
		padding-right: 8px;
	}
}

/* ---- やっていること（白い帯） ----------------------------------------- */
.p-front-project {
	padding: 60px 20px 0;
}

.p-front-project .c-section-heading__title {
	font-weight: 700;
}

@media (min-width: 1081px) {
	.p-front-project {
		min-height: 1366px; /* STUDIO 版の高さ */
	}
}

.p-front-project .c-card-grid {
	grid-template-columns: repeat(auto-fill, minmax(0, 420px)) !important;
	gap: 14px !important;
}

.p-front-project .c-project-card {
	gap: 0;
	margin-bottom: 30px;
}

.p-front-project .c-project-card__image {
	margin-bottom: 20px !important;
}

.p-front-project .c-project-card__image {
	width: 100%;
	height: 230px;
	aspect-ratio: auto;
	border-radius: 10px;
}

.p-front-project .c-project-card__title {
	margin: 0 0 10px !important;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.p-front-project .c-project-card__text {
	font-size: 16px;
	line-height: 1.4;
}

@media (max-width: 540px) {
	.p-front-project {
		padding: 30px 10px 20px;
	}

	.p-front-project .c-section-heading__eyebrow {
		margin-bottom: 30px !important;
	}

	.p-front-project .c-section-heading__title {
		margin-bottom: 20px !important;
	}

	.p-front-project .c-card-grid {
		grid-template-columns: 1fr !important;
	}

	.p-front-project .c-project-card {
		margin-bottom: 18px;
	}

	.p-front-project .c-project-card__image {
		margin-bottom: 10px !important;
	}

	.p-front-project .c-project-card__image {
		height: 200px;
		border-radius: 6px;
	}

	.p-front-project .c-project-card__title {
		font-size: 18px;
	}
}

/* ---- 瀬戸内となう ------------------------------------------------------ */
.p-front-news .l-panel {
	padding-top: 60px;
	padding-bottom: 60px;
}

.p-front-news .c-section-heading__lead {
	margin-bottom: 0 !important;
}

.p-front-news .c-post-list {
	margin-bottom: 40px !important;
}

.p-front-news .l-actions {
	margin-top: 0 !important;
}

@media (max-width: 540px) {
	.p-front-news .l-panel {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.p-front-news .c-section-heading__lead {
		margin-bottom: 10px !important;
	}
}

/* ---- 仲間たち ---------------------------------------------------------- */
.p-front-member {
	padding-top: 8px;
}

.p-front-member .l-panel {
	padding-top: 80px;
	padding-bottom: 60px;
}

.p-front-member .c-member-grid {
	grid-template-columns: repeat(2, 600px) !important;
	justify-content: space-between;
	gap: 0 !important;
}

.p-front-member .c-section-heading__lead {
	font-family: var(--st-font-ui);
}

.p-front-member .c-member-card {
	gap: 0;
	align-content: start;
	min-height: 1053px; /* 写真 600px＋20px＋文章の欄 433px（STUDIO 版と同じ） */
}

.p-front-member .c-member-card__photo {
	margin-bottom: 20px !important;
}

.p-front-member .c-member-card__photo img {
	width: 600px;
	height: 600px;
	aspect-ratio: auto;
	border-radius: 8px;
}

.p-front-member .c-member-card__role {
	margin-bottom: 0 !important;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	min-height: 28px;
}

.p-front-member .c-member-card__name {
	margin-bottom: 10px !important;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
}

.p-front-member .c-member-card__bio {
	margin-bottom: 10px !important;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--wp--preset--color--360-gray);
	font-size: 16px;
	line-height: 2;
}

.p-front-member .c-member-card__posts {
	margin-bottom: 10px !important;
	font-size: 16px;
	line-height: 1.8;
}

.p-front-member .c-social {
	gap: 10px !important;
	margin: 0 !important;
}

.p-front-member .c-social .wp-social-link {
	font-size: 32px;
}

@media (max-width: 1340px) {
	.p-front-member .c-member-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0 40px !important;
	}

	.p-front-member .c-member-card__photo img {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}
}

@media (max-width: 540px) {
	.p-front-member .l-panel {
		padding-top: 30px;
		padding-bottom: 60px;
	}

	.p-front-member .c-section-heading__eyebrow {
		margin-bottom: 30px !important;
	}

	.p-front-member .c-section-heading__title {
		margin-bottom: 20px !important;
	}

	.p-front-member .c-member-grid {
		grid-template-columns: 1fr !important;
		gap: 60px !important;
	}

	.p-front-member .c-member-card {
		min-height: 0;
	}

	.p-front-member .c-member-card__photo img {
		height: 260px;
		aspect-ratio: auto;
		border-radius: 4px;
	}

	.p-front-member .c-member-card__role {
		font-size: 14px;
	}

	.p-front-member .c-member-card__name {
		font-size: 24px;
	}

	.p-front-member .c-member-card__bio {
		font-size: 14px;
	}
}

/* ---- はたらく ---------------------------------------------------------- */
.p-front-recruit .l-panel {
	padding-top: 120px;
	padding-bottom: 80px;
}

.p-front-recruit .c-video {
	max-width: 1300px !important;
	margin-bottom: 80px !important;
}

.p-front-recruit .c-video .wp-block-embed,
.p-front-recruit .c-video .wp-block-embed__wrapper {
	margin: 0;
}

.p-front-recruit .c-video iframe {
	width: 100%;
	height: 731px;
	border-radius: 0;
}

.p-front-recruit .c-video .wp-block-embed__wrapper::before {
	display: none;
}

.p-front-recruit .c-video .wp-block-embed__wrapper {
	height: auto;
}

.p-front-recruit .c-video .wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: static;
}

.c-recruit-heading {
	margin: 0 0 20px !important;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--st-primary);
	text-align: center;
}

.c-recruit-heading.is-accent {
	color: var(--st-accent);
}

/* 正社員の枠（青い線）・インターンの枠（ピンクの線） */
.c-recruit-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--st-accent);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	text-align: center;
}

.c-recruit-box > * {
	margin: 0 !important;
}

.c-recruit-box.is-accent {
	gap: 16px;
	margin-bottom: 40px !important;
	border-color: var(--st-primary);
}

.c-recruit-box__catch {
	margin-bottom: 10px !important;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--st-accent);
}

.c-recruit-box.is-accent .c-recruit-box__catch {
	margin: 30px 0 10px !important;
	font-family: var(--st-font-ui);
	color: var(--st-primary);
}

.c-recruit-box__detail {
	width: 1200px;
	max-width: calc(100% - 40px);
	margin-bottom: 10px !important;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.8;
	text-align: left;
}

.c-recruit-box__text {
	margin-bottom: 10px !important;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.8;
}

.c-recruit-box.is-accent .wp-block-buttons {
	margin-bottom: 30px !important;
}

.c-recruit-box .wp-block-button .wp-block-button__link {
	width: 270px;
	min-width: 0;
	height: 50px;
	min-height: 0;
	padding: 0 10px;
	border-width: 2px;
	border-radius: 40px;
	font-family: var(--st-font-base);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	--st-btn-bg: var(--wp--preset--color--base);
	--st-btn-fg: var(--st-primary);
	--st-btn-border: var(--st-primary);
}

.c-recruit-box.is-accent .wp-block-button .wp-block-button__link {
	font-weight: 800;
	--st-btn-fg: var(--st-accent);
	--st-btn-border: var(--st-accent);
}

.c-recruit-interns {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 20px !important;
	margin-bottom: 0 !important;
}

.c-recruit-interns .c-recruit-box {
	min-height: 275px;
}

@media (max-width: 540px) {
	.p-front-recruit .l-panel {
		padding-top: 50px;
		padding-bottom: 0;
	}

	.p-front-recruit .c-section-heading__eyebrow {
		margin-bottom: 30px !important;
	}

	.p-front-recruit .c-section-heading__title {
		margin-bottom: 20px !important;
	}

	.p-front-recruit .c-section-heading__lead {
		margin-bottom: 20px !important;
	}

	.p-front-recruit .c-video {
		margin-bottom: 33px !important;
	}

	.p-front-recruit .c-video iframe {
		height: 222px;
	}

	.c-recruit-heading {
		font-size: 24px;
		font-weight: 700;
	}

	.c-recruit-heading.is-accent {
		margin-inline: -6px !important;
		font-size: 20px;
	}

	.c-recruit-box.is-accent {
		gap: 10px;
		margin-inline: 2px !important;
	}

	.c-recruit-box.is-accent .c-recruit-box__catch {
		margin: 30px 8px 10px !important;
		font-size: 15px;
		letter-spacing: -0.03em;
	}

	.c-recruit-box__detail {
		max-width: calc(100% - 16px);
		font-size: 14px;
		font-weight: 500;
		letter-spacing: -0.04em;
	}

	.c-recruit-box__catch {
		font-size: 20px;
		font-weight: 600;
	}

	.c-recruit-box__text {
		font-size: 14px;
		line-height: 1.9;
		letter-spacing: -0.04em;
	}

	.c-recruit-box .wp-block-button .wp-block-button__link {
		width: 250px;
	}

	.c-recruit-box.is-accent .wp-block-button .wp-block-button__link {
		width: 221px;
		height: 38px;
		font-size: 18px;
		font-weight: 700;
	}

	.c-recruit-interns {
		grid-template-columns: 1fr !important;
		gap: 8px !important;
		padding-bottom: 60px;
	}

	.c-recruit-interns .c-recruit-box {
		min-height: 272px;
		margin-inline: 2px;
	}
}

/* ---- 会社概要 ---------------------------------------------------------- */
.p-front-company {
	padding: 20px 0;
}

.p-front-company .l-panel {
	padding-top: 60px;
	padding-bottom: 70px;
}

.p-front-company .c-section-heading__title {
	margin-bottom: 20px !important;
}

.p-front-company .c-info-table {
	grid-template-columns: 85px 454px;
}

@media (max-width: 540px) {
	.p-front-company {
		padding: 20px 0;
	}

	.p-front-company .l-panel {
		padding-top: 60px;
		padding-bottom: 80px;
	}

	.p-front-company .c-section-heading__eyebrow {
		margin-bottom: 30px !important;
	}

	.p-front-company .c-section-heading__title {
		margin-bottom: 30px !important;
	}

	.p-front-company .c-info-table {
		grid-template-columns: 85px 235px;
		gap: 10px 16px;
	}
}

/* ---- お問い合わせ ------------------------------------------------------ */
.p-front-contact .l-panel {
	padding-top: 60px;
	padding-bottom: 60px;
}

.p-front-contact .c-section-heading__title {
	margin-bottom: 40px !important;
}

.p-front-contact .st-contact-form-block {
	max-width: 1100px !important;
}

@media (max-width: 540px) {
	.p-front-contact .l-panel {
		padding-top: 60px;
		padding-bottom: 30px;
		padding-inline: 0;
	}

	.p-front-contact .c-section-heading__eyebrow {
		margin-bottom: 10px !important;
	}

	.p-front-contact .c-section-heading__title {
		margin-bottom: 30px !important;
	}

	.p-front-contact .st-contact-form-block {
		max-width: 350px !important;
	}
}

/* 「他の記事を見る」ボタン（280×60px） */
.p-front-news .l-actions .wp-block-button__link {
	width: 280px;
	height: 60px;
	min-height: 0;
	padding: 0 0 0 10px;
	border-width: 1px;
	border-radius: 30px;
	font-family: var(--st-font-ui);
	font-size: 16px;
	font-weight: 600;
	color: var(--st-text);
	--st-btn-fg: var(--st-text);
}

@media (max-width: 540px) {
	.p-front-news .c-post-list {
		margin-bottom: 0 !important;
	}

	.p-front-news .l-actions {
		margin-top: 8px !important;
	}

	.p-front-news .l-actions .wp-block-button__link {
		width: 170px;
		height: 40px;
		font-size: 14px;
	}
}
