/* 円環レイアウト：位置・サイズはPHPで％指定済み。ここは見た目のみ */
.kan-circle {
	position: relative;
	width: min(100%, 880px);
	width: min(100%, 880px, max(320px, calc(100vh - 120px)));
	width: min(100%, 880px, max(320px, calc(100svh - 120px)));
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	container-type: inline-size;
}
.kan-circle--mini { width: 100%; }

/* 軌道（ごく薄い円） */
.kan-circle::before {
	content: "";
	position: absolute;
	inset: calc(50% - var(--kan-r, 40) * 1%);
	border: 1px solid var(--kan-line, #e4e0d5);
	border-radius: 50%;
	pointer-events: none;
}

.kan-circle__center {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	display: flex; flex-direction: column; align-items: center;
	text-align: center;
	container-type: inline-size;
	pointer-events: none;
}
.kan-circle__illust { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.kan-circle__name {
	margin: 2cqw 0 0;
	font-size: 16px;
	font-size: clamp(13px, 13cqw, 44px);
	font-weight: 600; line-height: 1.25; letter-spacing: .14em;
}
.kan-circle__info {
	margin: 1.2cqw 0 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .9em;
	font-size: 11px;
	font-size: clamp(9px, 5.4cqw, 14px);
	letter-spacing: .1em; line-height: 1.6;
	color: var(--kan-sub, #77756e);
}

.kan-circle__photo {
	position: absolute; z-index: 2;
	display: block; margin: 0; padding: 0; border: 0; background: none;
	border-radius: 3px; overflow: hidden;
	pointer-events: auto;
	animation: kan-in .9s ease backwards, kan-unspin var(--kan-spin, 240s) linear infinite;
	animation-delay: calc(var(--kan-i, 0) * 70ms + 120ms), 0s;
}
button.kan-circle__photo { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .35s ease, box-shadow .35s ease; }
button.kan-circle__photo:hover, button.kan-circle__photo:focus-visible { transform: scale(1.04); z-index: 3; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.kan-circle__img { display: block; width: 100%; height: 100%; object-fit: contain; }

@keyframes kan-in { from { opacity: 0; } to { opacity: 1; } }

/* 円全体がゆっくり回り、各写真は同じ速さで逆回しにして「向きは変えない」 */
.kan-circle__ring { position: absolute; inset: 0; z-index: 2; pointer-events: none; animation: kan-spin var(--kan-spin, 240s) linear infinite; }
@keyframes kan-spin { to { rotate: 360deg; } }
@keyframes kan-unspin { to { rotate: -360deg; } }
/* 写真にマウスを乗せている間・キーボードで選択している間は止める（押しやすいように） */
.kan-circle__ring:hover, .kan-circle__ring:focus-within { animation-play-state: paused; }
.kan-circle__ring:hover .kan-circle__photo, .kan-circle__ring:focus-within .kan-circle__photo { animation-play-state: running, paused; }
/* 回さない設定・一覧カード */
.kan-circle--still .kan-circle__ring { animation: none; }
.kan-circle--still .kan-circle__photo { animation: kan-in .9s ease backwards; animation-delay: calc(var(--kan-i, 0) * 70ms + 120ms); }
@media (prefers-reduced-motion: reduce) {
	.kan-circle__ring, .kan-circle__photo { animation: none; }
	button.kan-circle__photo { transition: none; }
}

/* ---------- 山のタグ（山名の下）と、タグの縁に乗る生きもの ---------- */
.kan-circle__center.has-tags .kan-circle__illust { width: 76%; }
.kan-circle__tags { list-style: none; margin: 1.5cqw 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 3cqw; }
.kan-tag {
	position: relative; margin: 2cqw 0 0; padding: .18em .9em .2em; list-style: none;
	border: 1px solid var(--kan-ink, #262626); border-radius: 999px; background: var(--kan-bg, #fbfaf6);
	font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
	font-size: 8px; font-size: clamp(8px, 5cqw, 12px);
	letter-spacing: .12em; line-height: 1.55; white-space: nowrap; color: var(--kan-ink, #262626);
}
.kan-tag--pet { margin-top: 13cqw; margin-top: clamp(14px, 13cqw, 28px); }
.kan-tag__pet { position: absolute; left: 50%; bottom: calc(100% - 1px); transform: translateX(-50%); width: 22px; width: clamp(22px, 22cqw, 44px); height: auto; pointer-events: none; overflow: visible; }
