/*
 * 会社概要ページ専用CSS(page-templates/template-company.php = /company/)
 * 値は旧サイト https://family-hall.com/company/ の computed style を PC1440 / SP390 で実測したもの。
 * 声のカルーセル・末尾 CTA・末尾 h1 は home.css / site.css を共用する。
 */

.ns-company {
	overflow-x: clip;
}

/* 事業理念(3つの約束) */
.ns-copromise {
	padding: 0 0 50px;
}

.ns-copromise__catch {
	margin-bottom: 30px;
	font-size: 16px;
	line-height: 1.7;
	text-align: center;
}

.ns-copromise .ns-copromise__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	padding: 0 50px;
}

.ns-copromise__item {
	padding: 30px;
	background: #fafdfd;
	border-radius: 20px;
	outline: 1px solid #c0cdd4;
	text-align: center;
}

.ns-copromise__circle {
	display: block;
	width: 130px;
	height: 130px;
	margin: 0 auto;
	background: linear-gradient(135deg, #eaecf7 0%, #bedcf4 100%);
	border-radius: 50%;
}

.ns-copromise__word {
	margin-top: -85px;
	margin-bottom: 50px;
	color: var(--fh-navy);
	font-family: var(--fh-serif);
	font-size: 40px;
	font-weight: 600;
	line-height: 40px;
}

.ns-copromise__lead {
	margin-top: 5px;
	padding: 10px;
	background: #ffffff;
	border: 1px solid #c0cdd4;
	border-radius: 10px;
	color: var(--fh-navy);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.4;
}

.ns-copromise__text {
	margin-top: 20px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
	text-align: left;
}

/* 代表挨拶 */
.ns-cogreet {
	margin-bottom: 60px;
	padding: 60px 0 50px;
	background: url(../../img/common/bg01.png);
}

.ns-cogreet__box {
	width: calc(100% - 195px);
	margin: 0 auto;
	padding: 50px;
	background: #ffffff;
}

.ns-cogreet__box p {
	padding-bottom: 20px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
}

/* 署名画像は旧と同じく行の下端にそろえる(段落の下余白 20px は付けない) */
.ns-cogreet__box .ns-cogreet__sign {
	margin-top: 30px;
	padding-bottom: 0;
	line-height: 27.2px;
	text-align: right;
}

.ns-cogreet__sign img {
	display: inline;
	width: 201px;
	height: auto;
	vertical-align: bottom;
}

/* 会社概要の表 */
.ns-coprofile {
	padding: 0 0 50px;
}

.ns-coprofile__rows {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	border-inline: 1px solid var(--fh-line);
}

.ns-coprofile__rows dt {
	width: 260px;
	padding: 20px 0;
	background: var(--fh-navy);
	border-bottom: 1px solid #ffffff;
	color: #ffffff;
	font-size: 16px;
	text-align: center;
}

.ns-coprofile__rows dd {
	width: calc(100% - 260px);
	padding: 20px 0 20px 20px;
	border-bottom: 1px solid var(--fh-line);
	font-size: 16px;
	font-weight: 500;
}

/* 旧は最初の行だけ上にも罫線がある */
.ns-coprofile__rows dd:first-of-type {
	border-top: 1px solid var(--fh-line);
}

.ns-coprofile__rows dd a {
	color: #333333;
	text-decoration: none;
}

/* 帯写真 */
.ns-coimage {
	padding: 0 0 15px;
	line-height: 0;
}

.ns-coimage img {
	width: 100%;
	height: 400px;
	object-fit: cover;
}

/* 心に残る感動のお別れ */
.ns-cosecond {
	padding: 0 0 50px;
}

.ns-cosecond__text {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
	text-align: center;
}

/* ------------------------------------------------------------------
 * タブレット(1024px 以下)
 * ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.ns-copromise .ns-copromise__list {
		padding: 0;
	}

	.ns-cogreet__box {
		width: 100%;
		padding: 40px;
	}
}

/* ------------------------------------------------------------------
 * スマートフォン(767px 以下)
 * ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.ns-company .ns-inner {
		width: min(1300px, 100% - 30px);
	}

	.ns-copromise {
		padding: 0 0 30px;
	}

	.ns-copromise__catch {
		font-size: 14px;
		line-height: 1.7;
	}

	.ns-copromise .ns-copromise__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.ns-copromise__circle {
		width: 110px;
		height: 110px;
	}

	.ns-copromise__word {
		margin-top: -72px;
		margin-bottom: 42px;
		font-size: 35px;
		line-height: 35px;
	}

	.ns-copromise__lead {
		font-size: 18px;
		line-height: 1.4;
	}

	.ns-cogreet {
		padding: 60px 0 30px;
	}

	.ns-cogreet__box {
		padding: 30px 20px;
	}

	.ns-cogreet__sign img {
		width: 176px;
	}

	.ns-coprofile {
		padding: 0 0 30px;
	}

	.ns-coprofile__rows dt {
		width: 100%;
		padding: 10px 0;
	}

	.ns-coprofile__rows dd {
		width: 100%;
		padding: 10px;
	}

	.ns-coimage img {
		height: auto;
		aspect-ratio: 768 / 400;
	}

	.ns-cosecond {
		padding: 0 0 30px;
	}

	.ns-cosecond__text {
		text-align: left;
	}
}
