/*
 * ヒラシマ 会社案内ページ専用CSS
 * 配置先: /assets/css/company.css
 * /company/ のみ functions.php から読み込む想定
 */

body.post-name-company .hirashima-company {
	--hc-blue: #254678;
	--hc-blue-light: #e3f0fb;
	--hc-text: #222;
	--hc-subtext: #3b4043;
	--hc-border: #e1e7ed;
	--hc-shadow: 0 8px 28px rgba(20, 52, 90, .10);

	width: 100%;
	margin: 0;
	background: #fff;
	color: var(--hc-text);
	font-family: "Noto Sans JP", sans-serif;
}

body.post-name-company .hirashima-company *,
body.post-name-company .hirashima-company *::before,
body.post-name-company .hirashima-company *::after {
	box-sizing: border-box;
}

body.post-name-company .hirashima-company img {
	display: block;
	max-width: 100%;
	height: auto;
}

body.post-name-company .hirashima-company .hc-inner {
	width: min(1200px, calc(100% - 48px));
	margin-inline: auto;
}

/* HERO */
body.post-name-company .hirashima-company .hc-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: clamp(360px, 36vw, 560px);
	background: #eee;
}

body.post-name-company .hirashima-company .hc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,.02) 0%,
		rgba(0,0,0,.08) 55%,
		rgba(0,0,0,.30) 100%
	);
}

body.post-name-company .hirashima-company .hc-hero__image {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
}

body.post-name-company .hirashima-company .hc-hero__overlay {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 60px;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	text-align: center;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

body.post-name-company .hirashima-company .hc-hero__title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: #fff !important;
	font-size: clamp(36px, 4vw, 56px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

body.post-name-company .hirashima-company .hc-hero__title::after {
	display: none !important;
	content: none !important;
}

body.post-name-company .hirashima-company .hc-hero__copy {
	margin: 10px 0 0;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .05em;
}

/* SECTION */
body.post-name-company .hirashima-company .hc-section {
	padding: 90px 0;
}

body.post-name-company .hirashima-company .hc-section-heading {
	margin-bottom: 55px;
	text-align: center;
}

body.post-name-company .hirashima-company .hc-section-heading h2 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--hc-blue) !important;
	font-size: 32px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
}

body.post-name-company .hirashima-company .hc-section-heading h2::after {
	display: none !important;
	content: none !important;
}

body.post-name-company .hirashima-company .hc-section-heading > span {
	display: block;
	width: 72px;
	height: 3px;
	margin: 14px auto 0;
	background: var(--hc-blue);
}

/* MESSAGE */
body.post-name-company .hirashima-company .hc-message {
	padding-top: 80px;
	padding-bottom: 80px;
}

body.post-name-company .hirashima-company .hc-message__card {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 52px;
	align-items: center;
	padding: 36px;
	border: 1px solid var(--hc-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--hc-shadow);
}

body.post-name-company .hirashima-company .hc-message__photo {
	overflow: hidden;
	height: 340px;
	border-radius: 8px;
	background: #f4f4f4;
}

body.post-name-company .hirashima-company .hc-message__photo img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
}

body.post-name-company .hirashima-company .hc-message__label {
	margin: 0 0 16px;
	color: var(--hc-blue);
	font-size: 20px;
	font-weight: 700;
}

body.post-name-company .hirashima-company .hc-message__heading {
	margin: 0 0 25px !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--hc-blue) !important;
	font-size: 25px !important;
	font-weight: 700 !important;
	line-height: 1.65 !important;
}

body.post-name-company .hirashima-company .hc-message__heading::after {
	display: none !important;
	content: none !important;
}

body.post-name-company .hirashima-company .hc-message__text {
	color: var(--hc-subtext);
	font-size: 15px;
	line-height: 2;
}

body.post-name-company .hirashima-company .hc-message__text p {
	margin: 0 0 12px;
}

body.post-name-company .hirashima-company .hc-message__text p:last-child {
	margin-bottom: 0;
}

body.post-name-company .hirashima-company .hc-message__name {
	margin: 25px 0 0;
	color: #222;
	font-size: 17px;
	font-weight: 700;
	text-align: right;
}

body.post-name-company .hirashima-company .hc-message__name span {
	margin-right: 18px;
	font-size: 14px;
	font-weight: 400;
}

/* STAFF */
body.post-name-company .hirashima-company .hc-staff {
	padding-top: 75px;
}

body.post-name-company .hirashima-company .hc-staff__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 38px 44px;
	align-items: stretch;
}

body.post-name-company .hirashima-company .hc-staff-card {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	height: auto;
	min-height: 0;
	overflow: hidden;
	border: 1px solid var(--hc-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--hc-shadow);
}

body.post-name-company .hirashima-company .hc-staff-card__photo {
	overflow: hidden;
	height: 100%;
	min-height: 0;
	background: #f1f3f5;
}

body.post-name-company .hirashima-company .hc-staff-card__photo img {
	width: 100%;
	height: 100% !important;
	min-height: 0;
	object-fit: cover;
	object-position: center top;
}

body.post-name-company .hirashima-company .hc-staff-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	padding: 28px 28px 24px;
}

body.post-name-company .hirashima-company .hc-staff-card__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin-bottom: 14px;
}

body.post-name-company .hirashima-company .hc-staff-card__head h3 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--hc-blue) !important;
	font-size: 23px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

body.post-name-company .hirashima-company .hc-staff-card__head h3::after {
	display: none !important;
	content: none !important;
}

body.post-name-company .hirashima-company .hc-staff-card__role {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 82px;
	padding: 5px 13px;
	border-radius: 5px;
	background: var(--hc-blue-light);
	color: var(--hc-blue);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

body.post-name-company .hirashima-company .hc-staff-card__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	margin: 0;
}

body.post-name-company .hirashima-company .hc-staff-card__field {
	margin: 0;
}

body.post-name-company .hirashima-company .hc-staff-card__field--comment {
	margin-top: 14px;
}

body.post-name-company .hirashima-company .hc-staff-card__info dt {
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	color: var(--hc-blue);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

body.post-name-company .hirashima-company .hc-staff-card__info dd {
	margin: 0;
	color: #222;
	font-size: 14px;
	line-height: 1.75;
}

/* PROFILE */
body.post-name-company .hirashima-company .hc-profile {
	padding-bottom: 100px;
}

body.post-name-company .hirashima-company .hc-profile__box {
	overflow: hidden;
	padding: 36px;
	border: 2px solid #4d79af;
	border-radius: 12px;
	background: #f8fbfe;
}

/* 左右のテキストブロックの下端を揃える */
body.post-name-company .hirashima-company .hc-profile__columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	align-items: stretch;
}

body.post-name-company .hirashima-company .hc-profile__column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
}

body.post-name-company .hirashima-company .hc-profile-list {
	display: flex;
	flex: 1;
	flex-direction: column;
	height: 100%;
	margin: 0;
}

body.post-name-company .hirashima-company .hc-profile-list__row {
	display: grid;
	grid-template-columns: 105px minmax(0, 1fr);
	align-items: stretch;
	flex: 0 0 auto;
	border-bottom: 1px solid #ccd6df;
}

/* 右列最後のZEH欄だけ、残りの高さを吸収 */
body.post-name-company .hirashima-company .hc-profile__column:nth-child(2)
.hc-profile-list__row:last-child {
	flex: 1 1 auto;
}

body.post-name-company .hirashima-company .hc-profile__column:nth-child(2)
.hc-profile-list__row:last-child dt,
body.post-name-company .hirashima-company .hc-profile__column:nth-child(2)
.hc-profile-list__row:last-child dd {
	height: 100%;
}

body.post-name-company .hirashima-company .hc-profile-list__row dt,
body.post-name-company .hirashima-company .hc-profile-list__row dd {
	margin: 0;
	padding: 13px 10px;
}

body.post-name-company .hirashima-company .hc-profile-list__row dt {
	color: var(--hc-blue);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.7;
	border-left: 2px solid #2f7bc1;
}

body.post-name-company .hirashima-company .hc-profile-list__row dd {
	color: #333;
	font-size: 13px;
	line-height: 1.7;
}

body.post-name-company .hirashima-company .hc-profile__zeh-link-wrap {
	margin-top: 10px;
}

body.post-name-company .hirashima-company .hc-profile__zeh-link {
	display: inline-block;
	color: var(--hc-blue);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.post-name-company .hirashima-company .hc-profile__zeh-link:hover {
	opacity: .72;
}

/* 3枚写真 */
body.post-name-company .hirashima-company .hc-profile__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 36px 0 0;
}

body.post-name-company .hirashima-company .hc-profile__gallery-item {
	overflow: hidden;
	margin: 0;
	border-radius: 8px;
	aspect-ratio: 332 / 230;
	background: #e9eef3;
	box-shadow: 0 4px 14px rgba(20, 52, 90, .08);
}

body.post-name-company .hirashima-company .hc-profile__gallery-item img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
}

/* MAP */
body.post-name-company .hirashima-company .hc-profile__map {
	margin-top: 32px;
	overflow: hidden;
	width: 100%;
	height: 420px;
	border-radius: 8px;
}

body.post-name-company .hirashima-company .hc-profile__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* TABLET */
@media (max-width: 1100px) {
	body.post-name-company .hirashima-company .hc-staff-card {
		grid-template-columns: 190px minmax(0, 1fr);
	}

	body.post-name-company .hirashima-company .hc-staff-card__body {
		padding: 24px 22px 22px;
	}
}

@media (max-width: 991px) {
	body.post-name-company .hirashima-company .hc-inner {
		width: min(100% - 40px, 900px);
	}

	body.post-name-company .hirashima-company .hc-message__card {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 32px;
	}

	body.post-name-company .hirashima-company .hc-staff__grid {
		grid-template-columns: 1fr;
	}

	body.post-name-company .hirashima-company .hc-staff-card {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	body.post-name-company .hirashima-company .hc-profile__columns {
		grid-template-columns: 1fr;
		gap: 30px;
		align-items: start;
	}

	/* 1列表示になったら高さ合わせを解除 */
	body.post-name-company .hirashima-company .hc-profile__column {
		height: auto;
	}

	body.post-name-company .hirashima-company .hc-profile-list {
		display: block;
		height: auto;
	}

	body.post-name-company .hirashima-company .hc-profile__column:nth-child(2)
	.hc-profile-list__row:last-child {
		display: grid;
	}

	body.post-name-company .hirashima-company .hc-profile__column:nth-child(2)
	.hc-profile-list__row:last-child dt,
	body.post-name-company .hirashima-company .hc-profile__column:nth-child(2)
	.hc-profile-list__row:last-child dd {
		height: auto;
	}

	body.post-name-company .hirashima-company .hc-profile__gallery {
		gap: 14px;
	}
}

/* SMARTPHONE */
@media (max-width: 767px) {
	body.post-name-company .hirashima-company .hc-inner {
		width: calc(100% - 30px);
	}

	body.post-name-company .hirashima-company .hc-section {
		padding: 58px 0;
	}

	body.post-name-company .hirashima-company .hc-hero {
		height: 440px;
	}

	body.post-name-company .hirashima-company .hc-hero__image {
		width: 100%;
		height: 100% !important;
		object-fit: cover;
		object-position: 55% center;
	}

	body.post-name-company .hirashima-company .hc-hero__overlay {
		bottom: 32px;
	}

	body.post-name-company .hirashima-company .hc-hero__title {
		font-size: 34px !important;
	}

	body.post-name-company .hirashima-company .hc-hero__copy {
		margin-top: 7px;
		font-size: 15px;
	}

	body.post-name-company .hirashima-company .hc-section-heading {
		margin-bottom: 35px;
	}

	body.post-name-company .hirashima-company .hc-section-heading h2 {
		font-size: 27px !important;
	}

	body.post-name-company .hirashima-company .hc-section-heading > span {
		width: 58px;
		margin-top: 10px;
	}

	body.post-name-company .hirashima-company .hc-message {
		padding-top: 45px;
		padding-bottom: 55px;
	}

	body.post-name-company .hirashima-company .hc-message__card {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 18px;
		border-radius: 12px;
	}

	body.post-name-company .hirashima-company .hc-message__photo {
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 4;
		margin-bottom: 24px;
	}

	body.post-name-company .hirashima-company .hc-message__photo img {
		width: 100%;
		height: 100% !important;
		object-fit: cover;
		object-position: center top;
	}

	body.post-name-company .hirashima-company .hc-message__label {
		margin-bottom: 10px;
		font-size: 18px;
	}

	body.post-name-company .hirashima-company .hc-message__heading {
		margin-bottom: 18px !important;
		padding: 0 8px !important;
		font-size: 20px !important;
		line-height: 1.65 !important;
		text-align: center;
	}

	body.post-name-company .hirashima-company .hc-message__text {
		font-size: 14px;
		line-height: 1.9;
	}

	body.post-name-company .hirashima-company .hc-message__name {
		margin-top: 20px;
		font-size: 15px;
	}

	body.post-name-company .hirashima-company .hc-message__name span {
		margin-right: 10px;
		font-size: 12px;
	}

	body.post-name-company .hirashima-company .hc-staff {
		padding-top: 50px;
	}

	body.post-name-company .hirashima-company .hc-staff__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	body.post-name-company .hirashima-company .hc-staff-card {
		display: block;
		height: auto;
		min-height: 0;
		border-radius: 12px;
	}

	body.post-name-company .hirashima-company .hc-staff-card__photo {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 5;
	}

	body.post-name-company .hirashima-company .hc-staff-card__photo img {
		width: 100%;
		height: 100% !important;
		object-fit: cover;
		object-position: center top;
	}

	body.post-name-company .hirashima-company .hc-staff-card__body {
		height: auto;
		padding: 20px 20px 22px;
	}

	body.post-name-company .hirashima-company .hc-staff-card__head h3 {
		font-size: 20px !important;
	}

	body.post-name-company .hirashima-company .hc-staff-card__role {
		min-width: 70px;
		padding: 4px 9px;
		font-size: 11px;
	}

	body.post-name-company .hirashima-company .hc-staff-card__info dt {
		font-size: 14px;
	}

	body.post-name-company .hirashima-company .hc-staff-card__info dd {
		font-size: 13px;
		line-height: 1.75;
	}

	body.post-name-company .hirashima-company .hc-profile {
		padding-bottom: 65px;
	}

	body.post-name-company .hirashima-company .hc-profile__box {
		padding: 18px;
		border-width: 1px;
	}

	body.post-name-company .hirashima-company .hc-profile__columns {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	body.post-name-company .hirashima-company .hc-profile-list__row {
		grid-template-columns: 88px minmax(0, 1fr);
	}

	body.post-name-company .hirashima-company .hc-profile-list__row dt,
	body.post-name-company .hirashima-company .hc-profile-list__row dd {
		padding: 10px 6px;
		font-size: 12px;
	}

	body.post-name-company .hirashima-company .hc-profile__gallery {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 26px;
	}

	body.post-name-company .hirashima-company .hc-profile__gallery-item {
		aspect-ratio: 332 / 230;
	}

	body.post-name-company .hirashima-company .hc-profile__map {
		height: 330px;
		margin-top: 20px;
	}
}
