@charset "utf-8";
/* CSS Document */

/* メガネフレーム形ガイド */
.shape-guide {
	max-width: 960px;
	margin: 0 auto;
	padding: 35px 12px;
	color: #111;
	font-family: 'Noto Sans JP', sans-serif;
}

.shape-guide *,
.shape-guide *::before,
.shape-guide *::after {
	box-sizing: border-box;
}

/* ページタイトル */
.shape-guide__page-title {
	margin: 0;
	color: #0d2f66;
	font-size: clamp(28px, 3.2vw, 36px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .05em;
	text-align: center;
}

.shape-guide__page-title::after {
	content: "";
	display: block;
	width: 70px;
	height: 3px;
	margin: 16px auto 0;
	border-radius: 999px;
	background: #4b91dc;
}

/* リード文 */
.shape-guide__lead {
	max-width: 760px;
	margin: 28px auto 40px;
	color: #111;
	font-size: 15px;
	line-height: 2;
	text-align: center;
}

/* 共通カード */
.shape-guide__box {
	margin-bottom: 28px;
	border: 1px solid #e5edf8;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}

/* カード見出し */
.shape-guide__box-title {
	position: relative;
	margin: 0;
	padding: 22px 24px 22px 30px;
	border-bottom: 1px solid #eef3f8;
	background: #fff;
	color: #123b78;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
}

.shape-guide__box-title::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 5px;
	height: 34px;
	border-radius: 0 3px 3px 0;
	background: #4b91dc;
	transform: translateY(-50%);
}

.shape-guide__box-body {
	padding: 26px 24px 30px;
}

/* 形状アンカーリンク */
/* 画像付き形状アンカーリンク */
.shape-guide__nav {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
    margin-bottom: 30px;
}

.shape-guide__nav a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	min-height: 170px;
	padding: 16px 10px 14px;
	border: 1px solid #dce9f8;
	border-radius: 12px;
	background: #f7fbff;
	color: #0074c8;
	text-decoration: none;
	transition:
		background .2s ease,
		border-color .2s ease,
		transform .2s ease,
		box-shadow .2s ease;
}

.shape-guide__nav a:hover {
	border-color: #a8caed;
	background: #eef7ff;
	box-shadow: 0 6px 14px rgba(34, 111, 182, .08);
	transform: translateY(-2px);
}

.shape-guide__nav-number {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #8fbceb;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
}

.shape-guide__nav-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 95px;
	margin-top: 12px;
}

.shape-guide__nav-image img {
	display: block;
	width: 100%;
	max-width: 115px;
	max-height: 90px;
	height: auto;
	object-fit: contain;
}

.shape-guide__nav-name {
	color: #0068b7;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

/* スマホ */
@media screen and (max-width: 600px) {
	.shape-guide__nav {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.shape-guide__nav a {
		min-height: 145px;
		padding: 14px 8px 12px;
	}

	.shape-guide__nav-number {
		top: 8px;
		left: 8px;
		width: 26px;
		height: 26px;
		font-size: 10px;
	}

	.shape-guide__nav-image {
		height: 80px;
		margin-top: 10px;
	}

	.shape-guide__nav-image img {
		max-width: 110px;
		max-height: 76px;
	}

	.shape-guide__nav-name {
		font-size: 13px;
	}
}

.shape-guide img {
	border: 0;
}

.shape-guide a {
	-webkit-tap-highlight-color: transparent;
}

/* 形状詳細カード */
.shape-guide__detail-card {
	margin: 0 0 28px;
	border: 1px solid #e5edf8;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
	scroll-margin-top: 20px;
}

.shape-guide__detail-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 22px 24px;
	border-bottom: 1px solid #eef3f8;
	color: #123b78;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.shape-guide__detail-number {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #4b91dc;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 700;
}

.shape-guide__detail-body {
	padding: 26px 24px 30px;
}

.shape-guide__detail-image {
	margin: 0 0 24px;
	text-align: center;
}

.shape-guide__detail-image img {
	display: block;
	width: 100%;
	max-width: 690px;
	height: auto;
	margin: 0 auto;
}

.shape-guide__detail-text p {
	margin: 0;
	font-size: 14px;
	line-height: 2;
	text-align: left;
}

.shape-guide__detail-action {
	margin-top: 26px;
	text-align: center;
}

.shape-guide__detail-action a {
	position: relative;
	display: inline-block;
	min-width: 180px;
	padding: 14px 44px 14px 24px;
	border: 1px solid #4b91dc;
	border-radius: 8px;
	background: #fff;
	color: #0074c8;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition:
		background .2s ease,
		color .2s ease;
}

.shape-guide__detail-action a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.shape-guide__detail-action a:hover {
	background: #4b91dc;
	color: #fff;
}

@media screen and (max-width: 600px) {
	.shape-guide__detail-title {
		gap: 10px;
		padding: 18px 15px;
		font-size: 20px;
	}

	.shape-guide__detail-number {
		flex-basis: 34px;
		width: 34px;
		height: 34px;
		font-size: 13px;
	}

	.shape-guide__detail-body {
		padding: 20px 15px 24px;
	}

	.shape-guide__detail-image {
		margin-bottom: 20px;
	}

	.shape-guide__detail-text p {
		font-size: 14px;
		line-height: 1.9;
	}

	.shape-guide__detail-action {
		margin-top: 22px;
	}

	.shape-guide__detail-action a {
		display: block;
		width: 100%;
	}
}

/* 最後の吹き出し */
.shape-guide__balloon {
	position: relative;
	    margin: 10px 12px 60px;
	padding: 22px 26px;
	border: 1px solid #dce9f8;
	border-radius: 14px;
	background: #f7fbff;
	color: #333;
	font-size: 14px;
	line-height: 2;
	text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 右下の吹き出し部分 */
.shape-guide__balloon::after {
	content: "";
	position: absolute;
	right: 34px;
	bottom: -10px;
	width: 18px;
	height: 18px;
	border-right: 1px solid #dce9f8;
	border-bottom: 1px solid #dce9f8;
	background: #f7fbff;
	transform: rotate(45deg);
}

@media screen and (max-width: 600px) {
	.shape-guide__balloon {
		margin-top: 28px;
		padding: 18px 16px;
		font-size: 13px;
		line-height: 1.9;
		text-align: left;
	}

	.shape-guide__balloon::after {
		right: 24px;
	}
}