
body {
	margin: 0 auto;
	justify-content: center;
	width: 100%;
	background-image: url(../images/top-background.svg);
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	background-attachment: fixed;
}

.contents {
	width: 100%;
	box-sizing: border-box;
	position: relative;
	background-image: url(../images/00_02.svg), url(../images/00_03.svg);
	background-position: calc(50% + -460px) calc(50% + -150px), calc(50% - -440px) calc(50% - 65px);
	background-repeat: no-repeat, no-repeat;
	background-size: auto 600px, auto 550px;
	background-color: transparent;
	margin: 0 auto;
}

header {
	text-align: center;
	position: relative;
	overflow: hidden;
	background-color: transparent !important;;
	min-width: 100%;
}
header h1 {
	font-size: 2.2rem;
	font-weight: bold;
}
header h1 span {
	color: #000;
}
header p.sub {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	color: #444;
}
.intro {
	max-width: 500px;
	margin: -35px auto 0px auto;
	line-height: 30px;
}
.cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
	margin: 0 auto 2rem auto;
}
.card00 {
	background: #fff;
	border: 2px solid #d6c1a6;
	flex: 1 1 250px;
	padding: 2rem 1rem;
	text-align: center;
	border-radius: 6px;
	box-sizing: border-box;
	position: relative;
}

/* ダイヤ型の数字 */
.card::before {
	content: "";
	position: absolute;
	top: -1.9rem;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	background: #D9D9D9;
	border: 4px solid #9F836F;
	width: 3.5rem;
	height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

/* 数字を正しい向きで表示 */
.card::after {
	content: attr(data-number);
	position: absolute;
	top: -1rem;
	left: 50%;
	transform: translateX(-50%) rotate(-45deg); /* 数字だけ逆回転 */
	font-weight: bold;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.card span {
	color: #b30000;
}

@media (max-width: 768px) {
	body {
		width: 100%;
	}

	.contents {
		width: 100%;
		min-width: 100%;
		background-position: -9% 0%, 108% 0%;
		background-size: auto 35%, auto 35%;
	}

	header {
		width: 100%;
	}

	h1 img {
		width: 50% !important;
	}

	.container {
		display: flex !important;
	}

	.right img {
		width: 70%;
	}

	.right a img {
		width: 20%;
	}

	.right p {
		width: 100%;
	}

	.intro {
		margin: 0 10px;
		padding: 0;
		transform: none;
		max-width: 100%;
	}
}

@media (max-width: 900px) {
	.contents {
		background-position: -9% 0%, 108% 0%;
		background-size: auto 35%, auto 35%;
	}

	.cards a {
		flex: 1;
	}

	.card {
		margin: 0 10px 20px 10px;
		height: 75%;
	}
}

.card {
	position: relative;
	background: #fff;
	border: 4px solid #9F836F;
	flex: 1 1 150px;
	padding: 40px 25px 30px 25px;
	font-size: 28px;
}

.diamond-number {
	position: absolute;
	top: -1rem;
	left: 50%;
	transform: translateX(-50%) rotate(0deg);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	font-weight: bold;
	transform-origin: center;
	font-family: "Times New Roman", Times, serif;
	font-size: 40px;
	color: #000 !important;
}

/* 中の数字を回転させない場合は、さらに span を入れると安心 */
.diamond-number span {
	display: inline-block;
	transform: rotate(-45deg); /* optional：枠と文字のバランス調整 */
}

h1 img {
	width: 650px;
}

.intro span {
	font-size: 28px;
	font-weight: bold;
	text-align: center;
	display: block;
	color: #552E15;
	line-height: 70px;
}
