h1.c-pageTitle__main::before {
    content: "Features";
}
#top_title_area {
    margin-bottom: 64px;
}
.g-philosophy {
    margin-bottom: 120px;
	position: relative;
}
.g-philosophy::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    right: 20%;
    background: #FFFDED;
    border-radius: 0 32px 32px 0;
    z-index: -1;
}
.g-philosophy>div {
    display: flex;
    padding: 80px 0;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}
h2.wp-block-heading {
    margin-bottom: 0;
}
.g-goals>div {
    display: flex;
    width: 1000px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.text-box {
    display: flex;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    border-radius: 24px;
    background: #FFFDED;
}
.text-box>.wp-block-columns.has-background {
    padding: 0;
    margin: 0;
	flex-direction: row;
}
.text-box>.wp-block-columns.has-background h3.wp-block-heading {
    color: #E34444;
    font-family: "Zen Maru Gothic";
    font-size: 40px;
    font-style: normal;
    font-weight: 900;
    line-height: 40px;
	white-space: nowrap;
}
/* ========================================
   画像レイアウト
   Figma node: 458-4138
======================================== */

.img-box {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	width: 100%;
}

/* WordPress標準のブロック間余白を解除 */
.img-box > .wp-block-image {
	margin: 0 !important;
	width: 100%;
	overflow: hidden;
	border-radius: 24px;
}

/* 1枚目・4枚目は横幅いっぱい */
.img-box > .wp-block-image:nth-child(1),
.img-box > .wp-block-image:nth-child(4) {
	grid-column: 1 / -1;
}

/* 1枚目 */
.img-box > .wp-block-image:nth-child(1) {
	aspect-ratio: 3 / 2;
}

/* 2枚目 */
.img-box > .wp-block-image:nth-child(2) {
	aspect-ratio: 1280 / 853;
}

/* 3枚目 */
.img-box > .wp-block-image:nth-child(3) {
	aspect-ratio: 3 / 2;
}

/* 4枚目 */
.img-box > .wp-block-image:nth-child(4) {
	aspect-ratio: 3 / 2;
}

/* 画像共通 */
.img-box > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: 24px;
}

.title-img {
	position: relative;
	width: 100%;
	height: 320px;
	overflow: hidden;
}
.title-img img {
	width: 100%;
	object-fit: cover;
	height: 320px;
	display: block;
}
.title-img.nature img {
    object-position: center bottom;
}
.title-img.christianity img {
    object-position: center top;

}
.title-img.lunch img {
    object-position: center 87%;
}
.title-img h3.wp-block-heading {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 12px 32px 12px 20px;
  background-color: #ffffff;
  color: #000000;
  font-size: 1.25rem;
  font-weight: bold;
  border-bottom-right-radius: 30px;
  z-index: 2;
}
.pt80 {
    padding-top: 80px;
}
.pt64 {
    padding-top: 64px;
}
.g-feat>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.g-features02>div {
    display: flex;
    height: auto;
    flex-direction: row;
	flex-wrap: nowrap;
    gap: 16px;
    align-self: stretch;
	align-items: stretch;
}
.g-features02-img {
    width: 306px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.g-features02-txt {
    display: flex;
	width: 354px;
    padding: 24px;
    flex: auto;
	align-items: center;
    align-self: stretch;
    border-radius: 24px;
    background: #FFF499;
}


@media screen and (max-width: 999px) {
	.g-philosophy>div {
		padding: 40px 0;
	}
	#top_title_area {
		margin-bottom: 24px;
	}
	.g-goals>div {
		width: 100%;
	}
	.colume-goals {
		display: flex;
	}
	.img-box {
		order: 2;
	}
	.title-img,
	.title-img img {
		height: 400px;
	}
	.pt80 {
		padding-top: 64px;
	}
	.pt64 {
		padding-top: 40px;
	}
	.g-features02>div {
		flex-wrap: wrap;
	}
	.g-features02 > div .g-features02-img {
        width: calc(50% - 8px);
        margin: 0;
    }
    
    /* 画像内部のimgタグが崩れないように追記 */
    .g-features02 > div .g-features02-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 3つ目のテキスト要素：幅100%で下段へ配置 */
    .g-features02 > div .g-features02-txt {
        width: 100%;
        margin: 0;
    }
}

@media screen and (max-width: 599px) {
	.g-philosophy::before {
		right: -10%;
	}
	.title-img,
	.title-img img {
		height: 240px;
	}
}
