* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: #f8f7f1;
	color: #253d34;
	font:
		16px/1.6 "Hiragino Kaku Gothic ProN",
		"Yu Gothic",
		sans-serif;
}
header,
main,
footer {
	width: min(1050px, 92%);
	margin: auto;
}
header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #cbd0c2;
	padding: 16px 0;
}
header b {
	font:
		600 25px Georgia,
		serif;
	letter-spacing: -1px;
}
header i {
	font: 24px Georgia;
	background: #294c3c;
	color: #fff;
	border-radius: 7px;
	padding: 0 6px;
}
header span,
small,
footer,
.over {
	font-size: 12px;
	letter-spacing: 0.1em;
}
main {
	min-height: 75vh;
}
h1,
h2 {
	font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
	letter-spacing: 0.07em;
	line-height: 1.3;
}
h1 {
	font-size: clamp(32px, 4.7vw, 58px);
	margin: 5px 0 8px;
}
h2 {
	font-size: 23px;
	margin: 0;
}
.intro {
	margin: 28px 0 18px;
}
.over {
	color: #6b674e;
	letter-spacing: 0.17em;
	font-weight: bold;
}
p {
	margin: 6px 0 14px;
}
.scene {
	background: radial-gradient(ellipse at 50% 50%, #e0e7cb, #ecedde 70%);
	position: relative;
	border: 1px solid #c7d0ba;
	border-radius: 20px;
	overflow: hidden;
}
.scene canvas {
	display: block;
	width: 100%;
	height: clamp(260px, 39vw, 430px);
	touch-action: manipulation;
}
.scene small {
	position: absolute;
	top: 16px;
	left: 18px;
	background: #fbfbf0dc;
	border-radius: 30px;
	padding: 4px 12px;
	pointer-events: none;
}
.bar,
.card,
.row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.bar {
	min-height: 67px;
	justify-content: space-between;
	padding: 10px 16px;
	background: #f1f2e7;
}
.bar span {
	font-size: 14px;
}
button {
	background: #244b39;
	color: white;
	border: 1px solid #244b39;
	border-radius: 9px;
	padding: 10px 16px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	min-height: 44px;
}
button:hover {
	filter: brightness(1.13);
}
button:focus-visible,
canvas:focus-visible,
textarea:focus-visible {
	outline: 3px solid #c67737;
	outline-offset: -3px;
}
.sub {
	background: transparent;
	color: #31503d;
	border-color: #b7c2b1;
}
.cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 12px 0;
}
.card,
.sheet {
	background: #fffdf7;
	border: 1px solid #d3d5c9;
	border-radius: 14px;
	padding: 18px;
}
.card > div {
	flex: 1;
}
.letter {
	font: italic 32px Georgia;
	color: #8b644b;
}
.card strong {
	display: block;
	font-size: 20px;
}
.card small {
	color: #606b60;
}
section {
	margin: 24px 0;
}
.row {
	flex-wrap: wrap;
	margin: 12px 0;
}
.row button[aria-pressed="true"] {
	background: #314d3f;
	color: white;
}
.inside canvas {
	touch-action: none;
	cursor: grab;
}
.sheet {
	max-width: 760px;
	white-space: pre-line;
}
textarea {
	display: block;
	width: 100%;
	padding: 12px;
	font: inherit;
	color: inherit;
	margin: 8px 0 14px;
	border: 1px solid #b7c2b1;
	border-radius: 8px;
}
footer {
	padding: 18px 0;
	margin-top: 24px;
	border-top: 1px solid #cbd0c2;
	color: #606b60;
}
@media (max-width: 650px) {
	.cards {
		grid-template-columns: 1fr;
	}
	.intro {
		margin-top: 19px;
	}
	.card {
		padding: 12px;
	}
	.bar {
		gap: 6px;
	}
	.bar button {
		flex-shrink: 0;
	}
	.scene canvas {
		height: 265px;
	}
	.inside canvas {
		height: 330px;
	}
}

.scene:not(.inside) canvas {
	touch-action: none;
	cursor: grab;
	height: clamp(320px, 45vw, 510px);
}
.scene canvas:active {
	cursor: grabbing;
}
.camera-tools {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	background: #fbfaf1ed;
	border: 1px solid #bec6b6;
	border-radius: 11px;
	padding: 2px;
	gap: 1px;
}
.camera-tools[hidden] {
	display: none;
}
.camera-tools button {
	background: transparent;
	color: #34493c;
	border: 0;
	padding: 4px 9px;
	min-width: 35px;
	min-height: 38px;
}
.camera-tools button:disabled {
	opacity: 0.35;
}
.scene:not(.inside) canvas {
	height: clamp(390px, 49vw, 580px);
}
.scene:not(.inside) .bar {
	flex-wrap: wrap;
	justify-content: flex-start;
}
.scene:not(.inside) .bar span {
	margin-right: auto;
}
@media (max-width: 650px) {
	.scene:not(.inside) .bar span {
		width: 100%;
	}
}

.card {
	border-left: 4px solid var(--accent);
}
.card .letter {
	background: var(--accent);
	color: #fff;
	padding: 0.3em 0.45em;
	border-radius: 4px;
	font: 600 18px Georgia;
}
.card .specialty {
	font-size: 13px;
	color: #586453;
}

.overview-label {
	position: absolute;
	transform: translate(-50%, -100%);
	padding: 4px 9px;
	border-radius: 5px;
	border-bottom: 3px solid var(--accent);
	background: #fffcf0f5;
	color: #243c32;
	font-size: clamp(10px, 1.2vw, 15px);
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
}
@media (max-width: 650px) {
	.overview-label {
		padding: 2px 3px;
		font-size: 10px;
	}
}
@media (max-width: 650px) {
	.scene.overview small {
		display: none;
	}
}

.conditions label {
	display: block;
	margin-top: 12px;
}
.conditions input {
	display: block;
	width: 100%;
	padding: 10px;
	font: inherit;
	color: inherit;
	border: 1px solid #b7c2b1;
	border-radius: 8px;
}
.sheet dt {
	font-weight: bold;
}
.sheet dd {
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}
.wish-summary,
details p {
	overflow-wrap: anywhere;
}
details {
	margin-top: 16px;
}
summary {
	cursor: pointer;
}
button:disabled {
	opacity: 0.5;
	cursor: default;
}

.comparison-scroll {
	overflow-x: auto;
	border: 1px solid #c7d0ba;
	border-radius: 12px;
	background: #fffdf7;
}
.comparison table {
	width: 100%;
	border-spacing: 0;
}
.comparison th,
.comparison td {
	padding: 12px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #d3d5c9;
}
.comparison th:first-child {
	position: sticky;
	left: 0;
	background: #f1f2e7;
	white-space: nowrap;
	width: 1%;
}
.comparison thead th {
	background: #e2e8db;
}
.comparison td {
	min-width: 12rem;
}
.comparison tbody tr:nth-child(2) {
	font-weight: bold;
	color: #244b39;
	background: #eff4eb;
}
@media (max-width: 650px) {
	.comparison th,
	.comparison td {
		padding: 8px;
		font-size: 14px;
	}
	.comparison td {
		min-width: 9rem;
	}
}
