/* ===============================
   kodawari-cuisine: 料理のこだわり
   SP: 写真フルブリード + テキスト縦積み / PC: 左写真フルブリード・右テキストの2カラム
   =============================== */

.kodawari-cuisine {
	position: relative;
	padding-bottom: var(--space-3);
}

/* 右端の桜地紋（装飾・仮）。正式な桜素材が支給されたら差し替える */
.kodawari-cuisine::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: var(--space-11);
	background-color: var(--color-accent);
	opacity: 0.14;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 240'%3E%3Cg%3E%3Cellipse cx='100' cy='210' rx='34' ry='2.5' transform='rotate(66 100 210)'/%3E%3Cellipse cx='78' cy='150' rx='34' ry='2.5' transform='rotate(60 78 150)'/%3E%3Cellipse cx='58' cy='90' rx='34' ry='2.5' transform='rotate(56 58 90)'/%3E%3Cellipse cx='40' cy='34' rx='30' ry='2.5' transform='rotate(52 40 34)'/%3E%3Cellipse cx='90' cy='150' rx='16' ry='6' transform='rotate(42 90 150)'/%3E%3Cellipse cx='68' cy='112' rx='16' ry='6' transform='rotate(36 68 112)'/%3E%3Cellipse cx='52' cy='72' rx='16' ry='6' transform='rotate(30 52 72)'/%3E%3Cellipse cx='78' cy='190' rx='16' ry='6' transform='rotate(48 78 190)'/%3E%3Cellipse cx='36' cy='40' rx='14' ry='5' transform='rotate(26 36 40)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 240'%3E%3Cg%3E%3Cellipse cx='100' cy='210' rx='34' ry='2.5' transform='rotate(66 100 210)'/%3E%3Cellipse cx='78' cy='150' rx='34' ry='2.5' transform='rotate(60 78 150)'/%3E%3Cellipse cx='58' cy='90' rx='34' ry='2.5' transform='rotate(56 58 90)'/%3E%3Cellipse cx='40' cy='34' rx='30' ry='2.5' transform='rotate(52 40 34)'/%3E%3Cellipse cx='90' cy='150' rx='16' ry='6' transform='rotate(42 90 150)'/%3E%3Cellipse cx='68' cy='112' rx='16' ry='6' transform='rotate(36 68 112)'/%3E%3Cellipse cx='52' cy='72' rx='16' ry='6' transform='rotate(30 52 72)'/%3E%3Cellipse cx='78' cy='190' rx='16' ry='6' transform='rotate(48 78 190)'/%3E%3Cellipse cx='36' cy='40' rx='14' ry='5' transform='rotate(26 36 40)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.kodawari-cuisine__media {
	padding-inline: var(--space-6);
}

.kodawari-cuisine__media img {
	width: 100%;
	aspect-ratio: 3 / 1;
	object-fit: cover;
	object-position: center 60%;
}

.kodawari-cuisine__text {
	position: relative;
	padding-inline: var(--container-gutter-mobile);
	padding-top: var(--space-4);
}

/* 赤見出し + 下に金罫 */
.kodawari-cuisine__title {
	position: relative;
	font-size: var(--fs-h2-mobile);
	font-weight: var(--fw-medium);
	color: var(--color-primary);
}

.kodawari-cuisine__title::after {
	content: "";
	display: block;
	width: var(--space-8);
	margin-top: var(--space-3);
	border-top: 1px solid var(--color-accent);
}

.kodawari-cuisine__body {
	position: relative;
	margin-top: var(--space-2);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

.kodawari-cuisine__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-3);
	font-size: var(--fs-body);
	color: var(--color-primary);
}

.kodawari-cuisine__link::after {
	content: "";
	width: var(--space-2);
	height: var(--space-2);
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}

@media (max-width: 767px) {
	.kodawari-cuisine__body {
		font-size: var(--fs-body-pc);
	}

	.kodawari-cuisine__link {
		min-height: var(--space-9);
	}
}

/* ===============================
   PC: 左写真フルブリード + 右テキスト
   =============================== */

@media (min-width: 768px) {
	.kodawari-cuisine {
		display: grid;
		grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
		align-items: center;
		padding-bottom: 0;
	}

	.kodawari-cuisine::before {
		width: var(--space-13);
	}

	.kodawari-cuisine__media {
		position: relative;
		align-self: stretch;
		padding-inline: 0;
	}

	.kodawari-cuisine__media img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
	}

	.kodawari-cuisine__text {
		padding-block: var(--space-7);
		padding-left: var(--space-11);
		/* 右端はコンテナ右端に揃える */
		padding-right: max(var(--container-gutter), calc((100vw - var(--container-max)) / 2 + var(--container-gutter)));
	}

	.kodawari-cuisine__title {
		font-size: var(--fs-h2);
	}

	.kodawari-cuisine__body {
		margin-top: var(--space-6);
		font-size: var(--fs-body-pc);
	}

	.kodawari-cuisine__link {
		margin-top: var(--space-7);
	}
}
