@charset "UTF-8";
/* ==========================================================================
   清月堂の菓子しごと(page-mg-kashishigoto.php のときだけ、css/page.css の後に読み込む)
   ========================================================================== */


/* 販売中のお菓子
   ========================================================================== */
/* 和紙調の背景は、見出しの下半分にかかる位置から始める */
.mg-kashi-items {
	position: relative;
	isolation: isolate;
	margin-top: 80px;
	padding-bottom: 100px;
}
.mg-kashi-items::before {
	content: "";
	position: absolute;
	inset: 107px 0 0;
	z-index: -1;
	background: var(--mg-color-paper) var(--mg-bg-washi, none) center top / cover no-repeat;
}

.mg-kashi-items__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 60px clamp(30px, 6.96vw - 23.5px, 60px);
	margin: 60px 0 0;
	padding: 0;
	list-style: none;
}
.mg-kashi-item__img {
	aspect-ratio: 520 / 360;
}
.mg-page .mg-kashi-item__img img,
.mg-kashi-item__img .mg-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mg-kashi-item__name {
	margin: 24px 0 0;
	color: var(--mg-color-main);
	font-size: clamp(18px, 1.39vw + 7.3px, 24px);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: var(--mg-ls);
}
.mg-kashi-item__text {
	margin-top: 12px;
	color: var(--mg-color-text);
	font-size: clamp(14px, 1.34vw, 16px);
	line-height: 1.8;
	letter-spacing: var(--mg-ls);
}

/* 見出し(.mg-ttl。style.css)が 1199px 以下で小さくなるのに合わせる */
@media (max-width: 1199px) {
	.mg-kashi-items::before {
		top: 96px;
	}
}

@media (max-width: 768px) {
	.mg-kashi-items {
		padding-bottom: 60px;
	}
	.mg-kashi-items__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		margin-top: 40px;
	}
	.mg-kashi-item__img {
		aspect-ratio: 335 / 232;
	}
	.mg-kashi-item__name {
		margin-top: 20px;
		font-size: 18px;
		line-height: 32.4px;
	}
	.mg-kashi-item__text {
		margin-top: 8px;
		font-size: 14px;
		line-height: 25.2px;
	}
}


/* 一日の流れ
   ========================================================================== */
.mg-kashi-flow {
	position: relative;
	margin-top: 120px;
}
.mg-kashi-flow__title {
	position: absolute;
	top: 0;
	left: 0;
}
.mg-kashi-flow__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mg-kashi-flow__list::before {
	content: "";
	position: absolute;
	top: 6px;
	bottom: 0;
	left: 199px; /* 丸印の中心(.mg-kashi-step の列幅に合わせる) */
	width: 1px;
	margin-left: -0.5px;
	background: var(--mg-color-line2);
}
.mg-kashi-step {
	display: grid;
	grid-template-columns: 171px 24px minmax(0, 1fr);
	column-gap: 16px;
	align-items: start;
}
.mg-kashi-step + .mg-kashi-step {
	margin-top: 40px;
}
/* 時刻・丸印は、見出しの1行目(行の高さ36px)の上下中央にそろえる */
.mg-kashi-step__time {
	margin-top: 6px;
	color: var(--mg-color-main);
	font-size: 24px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: var(--mg-ls);
	text-align: right;
	white-space: nowrap;
}
.mg-kashi-step__dot {
	position: relative; /* 縦線の上に重ねる */
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin-top: 6px;
	border: 1px solid var(--mg-color-main);
	border-radius: 50%;
	background: radial-gradient(circle, var(--mg-color-main) 0 5px, #fff 5.5px);
}
.mg-kashi-step__title {
	margin: 0;
	color: var(--mg-color-main);
	font-size: 20px;
	font-weight: 500;
	line-height: 36px;
	letter-spacing: var(--mg-ls);
}
.mg-kashi-step__text {
	margin-top: 12px;
	color: var(--mg-color-text);
	font-size: clamp(14px, 1.34vw, 16px);
	line-height: 1.8;
	letter-spacing: var(--mg-ls);
}
.mg-kashi-step__text span {
	display: block;
}
.mg-kashi-step__img {
	width: 260px;
	max-width: 100%;
	aspect-ratio: 260 / 160;
	margin-top: 20px;
}
.mg-page .mg-kashi-step__img img,
.mg-kashi-step__img .mg-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 768px) {
	.mg-kashi-flow {
		margin-top: 100px;
	}
	.mg-kashi-flow__title {
		position: relative; /* 下線(::after)の基準。.mg-ttl の既定に戻す */
		margin: 0 auto;
	}
	.mg-kashi-flow__list {
		margin-top: 40px;
	}
	.mg-kashi-flow__list::before {
		top: 5px;
		left: 81px; /* 丸印の中心 */
	}
	.mg-kashi-step {
		grid-template-columns: 59px 20px minmax(0, 1fr);
		column-gap: 12px;
	}
	.mg-kashi-step__time {
		margin-top: 5px;
		font-size: 20px;
		line-height: 20px;
	}
	.mg-kashi-step__dot {
		width: 20px;
		height: 20px;
		margin-top: 5px;
		background: radial-gradient(circle, var(--mg-color-main) 0 4px, #fff 4.5px);
	}
	.mg-kashi-step__title {
		font-size: 16px;
		line-height: 28.8px;
	}
	.mg-kashi-step__text {
		margin-top: 10px;
		font-size: 14px;
		line-height: 25.2px;
	}
	.mg-kashi-step__img {
		width: 100%;
		aspect-ratio: 232 / 143;
	}
}


/* オンラインショップ案内の上の余白
   ========================================================================== */
.mg-page--kashishigoto .mg-online {
	margin-top: 120px;
}
@media (max-width: 768px) {
	.mg-page--kashishigoto .mg-online {
		margin-top: 100px;
	}
}
