/* ===== 私たちについて ===== */

/* MV */
.page-mv--about::before { background-image: url(../images/about/mv-pigs.webp); }
.page-mv--about .page-mv__bg::after { background-image: url(../images/about/mv-overlay.webp); }

/* 背景の写真・ぼかしを置くセクション共通 */
.about-message,
.about-philosophy,
.about-action {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.about-message::before,
.about-message::after,
.about-philosophy::before,
.about-action::before,
.about-action::after {
	content: "";
	position: absolute;
	z-index: -1;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

/* 次の50年へ */
.about-message {
	padding-bottom: 57px;
	background: var(--c-brown-light);
}
.about-message::before {
	top: -80px;
	left: calc(50% + 153px);
	width: 884px;
	height: 663px;
	background-image: url(../images/about/message-bg.webp);
}
.about-message::after {
	top: 0;
	left: calc(50% + 33px);
	width: 617px;
	height: 664px;
	background-image: linear-gradient(98.71deg, #f9f5ed 54.12%, rgba(255, 255, 255, 0) 91.22%);
}
.about-message__inner {
	display: grid;
	grid-template-columns: 380px 1fr;
	column-gap: 30px;
	width: min(1000px, 100% - 40px);
	margin: 22px auto 0;
}
.about-message__photo {
	/* height: 245px;
	border-radius: 10px;
	background: #d9d9d9; */
}
.about-message__sign {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	margin-top: 34px;
	line-height: 32px;
}
.about-message__name {
	font-family: var(--f-serif);
	font-size: 22px;
	font-weight: 700;
}

/* 経営理念 */
.about-philosophy { padding-bottom: 99px; }
.about-philosophy::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url(../images/about/philosophy-bg.webp);
}
.about-philosophy__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: min(68px, 5.7%);
	width: min(1201px, 100% - 40px);
	margin: 50px auto 0;
}
.about-philosophy__img {
	display: block;
	width: 100%;
	aspect-ratio: 355 / 200;
	border-radius: 10px;
	object-fit: cover;
}
.about-philosophy__item:nth-child(3) .about-philosophy__img { object-fit: fill; }
.about-philosophy__title {
	display: flex;
	margin-top: 8px;
	color: var(--c-brown);
	font-family: var(--f-serif);
	font-size: 18px;
	font-weight: 900;
	line-height: 32px;
}
.about-philosophy__num {
	flex: none;
	width: 52px;
	color: var(--c-pink-dark);
	font-family: var(--f-en);
	font-size: 50px;
	font-weight: 600;
}
.about-philosophy__name { padding-top: 7px; }
.about-philosophy__text { margin-top: 16px; }

/* 行動指針・行動理念 */
.about-action {
	padding-bottom: 80px;
	background: var(--c-brown-light);
}
/* 写真: 1440px幅で左322px。それより広い画面では右端に合わせる */
.about-action::before {
	top: 0;
	left: max(calc(50% - 398px), calc(100% - 1118px));
	width: 1118px;
	height: 954px;
	background-image: url(../images/about/action-bg.webp);
}
.about-action::after {
	top: 0;
	left: max(calc(50% - 327px), calc(100% - 1047px));
	width: 617px;
	height: 964px;
	background-image: linear-gradient(96.03deg, #f9f5ed 54.12%, rgba(255, 255, 255, 0) 91.22%);
}
.about-action__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 170px 210px 170px;
	gap: 15px;
	width: min(1002px, 100% - 40px);
	margin: 48px auto 0;
}
.about-action__item {
	border: 3px solid transparent;
	border-radius: 10px;
	background:
		linear-gradient(var(--c-brown-light), var(--c-brown-light)) padding-box,
		linear-gradient(var(--c-pink-border), #f0e1cb) border-box;
}
.about-action__title {
	display: flex;
	height: 63px;
	margin: 0 24px 0 25px;
	padding-top: 8px;
	border-bottom: 1px solid var(--c-pink-dark);
	color: var(--c-brown);
	font-family: var(--f-serif);
	font-size: 18px;
	font-weight: 900;
	line-height: 32px;
}
.about-action__num {
	flex: none;
	width: 66px;
	margin: 0 1px 0 -11px;
	color: var(--c-pink-dark);
	font-family: var(--f-en);
	font-size: 50px;
	font-weight: 600;
	text-align: center;
}
.about-action__name { padding-top: 9px; }
.about-action__text { margin: 5px 24px 0 31px; }

/* 私たちの約束 */
.about-promise { padding-bottom: 65px; }
.about-promise__boxes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 30px;
	width: min(1200px, 100% - 40px);
	margin-inline: auto;
}
.about-promise__box {
	position: relative;
	min-height: 211px;
	margin-top: 5px;
	padding: 16px 21px 22px 183px;
	border: 2px solid var(--c-brown-line);
	border-radius: 10px;
}
.about-promise__box--change { border-color: var(--c-pink); }
.about-promise__img {
	position: absolute;
	top: -7px;
	left: -2px;
	width: 204px;
	height: 223px;
	object-fit: cover;
	object-position: right center;
	mix-blend-mode: multiply;
}
.about-promise__box--change .about-promise__img { left: -13px; width: 223px; }
.about-promise__title {
	border-bottom: 1px solid var(--c-brown-line);
	color: var(--c-brown);
	font-size: 18px;
	font-weight: 700;
	line-height: 45px;
}
.about-promise__box--change .about-promise__title {
	border-color: var(--c-pink);
	color: var(--c-red);
}
.about-promise__list { margin-top: 10px; }
.about-promise__list li {
	position: relative;
	padding-left: 17px;
	line-height: 32px;
}
.about-promise__list li + li { margin-top: 8px; }
.about-promise__list li::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-brown-line);
}
.about-promise__box--change .about-promise__list li::before { background: var(--c-pink); }

/* 沿革 */
.about-history {
	padding-bottom: 69px;
	background: var(--c-brown-light);
}
.about-history__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	column-gap: 40px;
	width: min(1001px, 100% - 40px);
	margin-inline: auto;
}
.about-history__list::before {
	content: "";
	position: absolute;
	top: 38px;
	left: 0;
	right: 0;
	height: 9px;
	border-radius: 100px;
	background: linear-gradient(90deg, #f0e1cb, var(--c-pink-border));
}
.about-history__item {
	position: relative;
	text-align: center;
}
.about-history__item::before {
	content: "";
	position: absolute;
	top: 36px;
	left: 50%;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	border-radius: 50%;
	background: var(--c-logo-brown);
}
.about-history__date {
	display: block;
	color: var(--c-brown);
	font-weight: 700;
	line-height: 28px;
}
.about-history__text { margin-top: 38px; }

/* ===== タブレット ===== */
@media (max-width: 1023px) {
	.about-message::before { left: auto; right: -420px; }
	.about-message::after { left: auto; right: -170px; }
	.about-message__inner { grid-template-columns: 1fr; row-gap: 24px; }
	.about-message__photo { width: min(380px, 100%); }
	.about-philosophy__list { grid-template-columns: 1fr; row-gap: 40px; width: min(560px, 100% - 40px); }
	.about-promise__boxes { grid-template-columns: 1fr; row-gap: 32px; width: min(620px, 100% - 40px); }
}

@media (max-width: 899px) {
	.about-action::before { left: auto; right: -400px; }
	.about-action::after { left: auto; right: 0; width: 100%; background-image: linear-gradient(96deg, #f9f5ed 40%, rgba(249, 245, 237, .6) 100%); }
	.about-action__list { grid-template-columns: 1fr; grid-template-rows: none; width: min(560px, 100% - 40px); }
	.about-action__item { padding-bottom: 20px; }
	.about-action__title { height: auto; padding-bottom: 8px; }
}

/* ===== スマホ ===== */
@media (max-width: 767px) {
	.about-message { padding-bottom: 48px; }
	.about-message::before,
	.about-message::after { content: none; }
	.about-message__inner { margin-top: 0; }
	.about-message__body p + p { margin-top: 8px; }
	.about-message__sign { margin-top: 24px; }
	.about-philosophy { padding-bottom: 56px; }
	.about-philosophy__list { margin-top: 32px; }
	.about-philosophy__num { width: 44px; font-size: 40px; }
	.about-philosophy__name { padding-top: 4px; line-height: 1.6; }
	.about-philosophy__text { margin-top: 10px; }
	.about-action { padding-bottom: 56px; }
	.about-action__list { margin-top: 32px; }
	.about-action__title { margin: 0 16px; }
	.about-action__num { width: 56px; margin-left: -6px; font-size: 40px; }
	.about-action__text { margin: 10px 16px 0 20px; }
	.about-promise { padding-bottom: 56px; }
	.about-promise__box { min-height: 0; padding: 150px 16px 20px; }
	.about-promise__img,
	.about-promise__box--change .about-promise__img { top: -10px; left: 50%; width: 150px; height: 160px; transform: translateX(-50%); }
	.about-promise__box--change .about-promise__img { width: 160px; }
	.about-promise__list li { line-height: 1.8; }
	.about-history { padding-bottom: 56px; }
	.about-history__list { grid-template-columns: 1fr; row-gap: 24px; width: min(400px, 100% - 40px); padding-left: 32px; }
	.about-history__list::before { top: 6px; bottom: 6px; left: 5px; right: auto; width: 6px; height: auto; background: linear-gradient(#f0e1cb, var(--c-pink-border)); }
	.about-history__item { text-align: left; }
	.about-history__item::before { top: 8px; left: -32px; margin-left: 2px; }
	.about-history__text { margin-top: 4px; }
	.about-history__text br { display: none; }
}


@media (min-width: 1700px) {
	.page-mv--about .page-mv__bg::before {
		left: 15%;
	}
}

/* Tablet: align the gradient edge with the background photo (884 - 420 + 170). */
@media (min-width: 768px) and (max-width: 1023px) {
    .about-message::after { width: 634px; }
    .about-message__photo { width: min(560px, 100%); margin-inline: auto; }
}
