/* =========================================================
   CK Guide — main.css
   色・余白・文字は :root の変数で一括管理しています
   ========================================================= */

:root {
	--paper: #f5f2ea;
	--paper-2: #ece6d8;
	--card: #fffdf8;
	--ink: #1f2a30;
	--ink-2: #4a5860;
	--ink-3: #7b878d;
	--line: #ddd5c3;
	--line-2: #cbc1aa;

	--cave: #0e1c22;
	--cave-2: #15282f;
	--cave-3: #1e3740;
	--cave-ink: #d9e6e4;
	--cave-ink-2: #8fa9a8;

	--core: #178a84;
	--core-2: #0f6b66;
	--core-glow: #48d8c8;
	--core-soft: #e1f2ef;
	--ore: #b7791f;
	--ore-soft: #fbf0d9;
	--danger: #c2412d;
	--danger-soft: #fbe7e2;

	--r-poor: #8d8f8f;
	--r-common: #4a5860;
	--r-uncommon: #3f9b48;
	--r-rare: #2f74d0;
	--r-epic: #8a4fd1;
	--r-legend: #d9831f;

	--font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
	--font-px: "DotGothic16", "Noto Sans JP", monospace;

	--wrap: 1160px;
	--gutter: 16px;
	--radius: 6px;
	--shadow: 0 3px 0 var(--line);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: 0.02em;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--core-2);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--core);
}

:focus-visible {
	outline: 3px solid var(--core-glow);
	outline-offset: 2px;
}

/* ドット絵は補間しない */
.px,
.item-icon {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	object-fit: contain;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	padding: 8px 14px;
	background: var(--core);
	color: #fff;
	border-radius: var(--radius);
}

.skip-link:focus {
	top: 8px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.wrap--narrow {
	max-width: 820px;
}

.site-main {
	padding-bottom: 64px;
}

/* ---------- ヘッダー ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--cave);
	border-bottom: 3px solid var(--core);
	color: var(--cave-ink);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	min-width: 0;
}

.brand:hover {
	color: #fff;
}

.brand__mark {
	flex: none;
	width: 34px;
	height: 34px;
	background: url("../img/game/ui/map_markers_0.png") center / 22px no-repeat, var(--cave-3);
	border: 2px solid var(--core);
	border-radius: 4px;
	box-shadow: 0 0 12px rgba(72, 216, 200, 0.35);
	image-rendering: pixelated;
}

.brand__logo {
	width: auto;
	max-height: 40px;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
}

.brand__name {
	font-family: var(--font-px);
	font-size: 19px;
	letter-spacing: 0.04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand__tag {
	font-size: 11px;
	color: var(--cave-ink-2);
}

.site-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.nav__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list a {
	display: block;
	padding: 8px 12px;
	color: var(--cave-ink);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 4px;
}

.nav__list a:hover,
.nav__list .current-menu-item a {
	background: var(--cave-3);
	color: #fff;
}

.header-search {
	display: flex;
	align-items: center;
	background: var(--cave-2);
	border: 1px solid var(--cave-3);
	border-radius: 4px;
}

.header-search input {
	width: 190px;
	padding: 7px 10px;
	background: transparent;
	border: 0;
	color: #fff;
	font: inherit;
	font-size: 13px;
}

.header-search input::placeholder {
	color: var(--cave-ink-2);
}

.header-search button {
	display: grid;
	place-items: center;
	padding: 6px 10px;
	background: none;
	border: 0;
	color: var(--cave-ink-2);
	cursor: pointer;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	background: var(--cave-2);
	border: 1px solid var(--cave-3);
	border-radius: 4px;
	cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: #fff;
	content: "";
	transition: transform 0.2s;
}

.nav-toggle__bar::before {
	transform: translateY(-6px);
}

.nav-toggle__bar::after {
	transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
	transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
	transform: translateY(-2px) rotate(-45deg);
}

@media (max-width: 900px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px var(--gutter) 20px;
		background: var(--cave);
		border-bottom: 3px solid var(--core);
	}

	.site-nav.is-open {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
	}

	.nav__list a {
		padding: 12px;
		font-size: 15px;
		border-bottom: 1px solid var(--cave-2);
	}

	.header-search input {
		width: 100%;
		flex: 1;
		font-size: 16px;
	}
}

/* ---------- ヒーロー ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--cave);
	color: #fff;
}

.hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: 70% center;
	image-rendering: pixelated;
	opacity: 0.9;
}

.hero::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 22, 27, 0.95) 0%, rgba(10, 22, 27, 0.75) 45%, rgba(10, 22, 27, 0.1) 100%);
	content: "";
}

.hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 72px;
	padding-bottom: 72px;
}

.hero__eyebrow {
	margin: 0 0 10px;
	font-family: var(--font-px);
	font-size: 14px;
	letter-spacing: 0.2em;
	color: var(--core-glow);
}

.hero__title {
	margin: 0;
	font-family: var(--font-px);
	font-size: clamp(32px, 6vw, 56px);
	font-weight: 400;
	line-height: 1.2;
	text-shadow: 0 0 24px rgba(72, 216, 200, 0.35);
}

.hero__lead {
	max-width: 30em;
	margin: 16px 0 28px;
	color: var(--cave-ink);
	font-size: clamp(15px, 2vw, 17px);
}

.hero__search {
	display: flex;
	max-width: 520px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 4px 0 var(--core-2), 0 0 0 3px rgba(72, 216, 200, 0.25);
	overflow: hidden;
}

.hero__search input {
	flex: 1;
	min-width: 0;
	padding: 14px 16px;
	border: 0;
	font: inherit;
	font-size: 16px;
	color: var(--ink);
}

.hero__search button {
	padding: 0 22px;
	background: var(--core);
	border: 0;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.hero__search button:hover {
	background: var(--core-2);
}

.hero__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.hero__quick a {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	text-decoration: none;
}

.hero__quick a:hover {
	background: rgba(72, 216, 200, 0.2);
	border-color: var(--core-glow);
}

/* ---------- トップのセクション ---------- */

.front-section {
	padding-top: 56px;
}

.front-section__lead {
	margin: -8px 0 20px;
	color: var(--ink-2);
}

.front-section__cta {
	margin: 20px 0 0;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--line);
}

.section-head__label {
	margin: 0;
	font-family: var(--font-px);
	font-size: 13px;
	letter-spacing: 0.18em;
	color: var(--core);
}

.section-head__title {
	margin: 0;
	font-size: clamp(21px, 3vw, 26px);
	line-height: 1.4;
}

.section-head__more {
	flex: none;
	display: inline-flex;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.btn {
	display: inline-block;
	padding: 12px 22px;
	background: var(--core);
	border-radius: var(--radius);
	box-shadow: 0 3px 0 var(--core-2);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.btn:hover {
	background: var(--core-2);
	color: #fff;
}

.journey {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.journey__step {
	display: flex;
	gap: 14px;
	padding: 20px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.journey__step h3 {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.5;
}

.journey__step p {
	margin: 0;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.75;
}

.journey__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: var(--cave);
	border: 2px solid var(--core);
	border-radius: 4px;
	color: var(--core-glow);
	font-family: var(--font-px);
	font-size: 18px;
}

/* ボスの攻略ルート */
.boss-route {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.boss-route__item a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 18px 10px 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
	height: 100%;
}

.boss-route__item a:hover {
	border-color: var(--core);
	transform: translateY(-2px);
}

.boss-route__order {
	position: absolute;
	top: 6px;
	left: 8px;
	font-family: var(--font-px);
	font-size: 14px;
	color: var(--ink-3);
}

.boss-route__name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
}

.boss-icon {
	flex: none;
}

.boss-icon--placeholder {
	display: inline-grid;
	place-items: center;
	background: var(--cave-2);
	border: 2px solid var(--cave-3);
	border-radius: 50%;
}

/* バイオームの帯 */
.biome-strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.biome-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 92px;
	padding: 12px 14px;
	background: var(--cave);
	border-left: 6px solid var(--biome);
	border-radius: var(--radius);
	color: #fff;
	text-decoration: none;
}

.biome-tile:hover {
	color: #fff;
	background: var(--cave-2);
}

.biome-tile__icon {
	position: absolute;
	right: 10px;
	top: 10px;
	opacity: 0.7;
}

.biome-tile__no {
	font-family: var(--font-px);
	font-size: 13px;
	color: var(--biome);
	filter: brightness(1.4);
}

.biome-tile__name {
	margin-top: auto;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

/* ---------- 記事カード ---------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.card-grid--2 {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--ink);
	text-decoration: none;
}

.card__link:hover .card__title {
	color: var(--core-2);
}

.card__thumb {
	aspect-ratio: 16 / 9;
	background: var(--cave);
	overflow: hidden;
}

.card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__thumb-fallback {
	display: block;
	height: 100%;
	background: url("../img/game/hero/core.png") 70% center / cover;
	image-rendering: pixelated;
	opacity: 0.6;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
	flex: 1;
}

.card__cat {
	align-self: flex-start;
	padding: 1px 8px;
	background: var(--core-soft);
	border-radius: 3px;
	color: var(--core-2);
	font-size: 12px;
	font-weight: 700;
}

.card__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

.card__date {
	margin-top: auto;
	color: var(--ink-3);
	font-size: 12px;
}

.empty {
	padding: 24px;
	background: var(--card);
	border: 1px dashed var(--line-2);
	border-radius: var(--radius);
	color: var(--ink-2);
	text-align: center;
}

/* ---------- 2カラム ---------- */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

@media (min-width: 1024px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.breadcrumbs {
	padding: 16px 0 8px;
	font-size: 12px;
	color: var(--ink-3);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
	margin-left: 4px;
	content: "›";
}

.breadcrumbs a {
	color: var(--ink-2);
}

/* ---------- 記事 ---------- */

.entry__head {
	margin: 8px 0 24px;
}

.entry__cat {
	display: inline-block;
	margin-bottom: 10px;
	padding: 2px 10px;
	background: var(--core);
	border-radius: 3px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.entry__title {
	margin: 0;
	font-size: clamp(24px, 4vw, 32px);
	line-height: 1.45;
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 12px;
	color: var(--ink-3);
	font-size: 13px;
}

.entry__thumb {
	margin: 0 0 28px;
	border-radius: var(--radius);
	overflow: hidden;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.entry__tags a {
	display: inline-block;
	padding: 4px 12px;
	background: var(--paper-2);
	border-radius: 999px;
	color: var(--ink-2);
	font-size: 13px;
	text-decoration: none;
}

/* 本文 */
.prose {
	font-size: 16.5px;
}

.prose > * + * {
	margin-top: 1.2em;
}

.prose p {
	margin: 0 0 1.4em;
}

.prose h2,
.h2 {
	position: relative;
	margin: 2.4em 0 1em;
	padding: 14px 16px 14px 20px;
	background: var(--cave);
	border-radius: var(--radius);
	color: #fff;
	font-size: clamp(19px, 2.6vw, 22px);
	line-height: 1.5;
}

.prose h2::before,
.h2::before {
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 5px;
	background: var(--core-glow);
	border-radius: 0 3px 3px 0;
	content: "";
}

.prose h3 {
	margin: 2em 0 0.8em;
	padding: 4px 0 8px 12px;
	border-left: 4px solid var(--core);
	border-bottom: 1px solid var(--line);
	font-size: 18.5px;
	line-height: 1.55;
}

.prose h4 {
	margin: 1.6em 0 0.6em;
	font-size: 16.5px;
	color: var(--core-2);
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose strong {
	background: linear-gradient(transparent 62%, #fde7b0 62%);
}

.prose blockquote {
	margin: 1.6em 0;
	padding: 16px 20px;
	background: var(--paper-2);
	border-left: 4px solid var(--line-2);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--ink-2);
}

.prose figure {
	margin: 1.6em 0;
}

.prose figcaption {
	color: var(--ink-3);
	font-size: 13px;
	text-align: center;
}

.prose img {
	border-radius: 4px;
}

.prose table,
.data-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--card);
	font-size: 14.5px;
	line-height: 1.65;
}

.prose th,
.prose td,
.data-table th,
.data-table td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}

.prose thead th,
.data-table thead th {
	background: var(--cave-2);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

.prose tbody th,
.data-table tbody th {
	background: var(--paper-2);
	font-weight: 700;
}

.wp-block-table {
	overflow-x: auto;
}

.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 8px;
}

/* ブロックスタイル: ボックス */
.is-style-ck-point,
.is-style-ck-warn,
.is-style-ck-memo {
	position: relative;
	margin: 1.8em 0;
	padding: 18px 20px 18px 22px;
	border-radius: var(--radius);
	border: 2px solid;
}

.is-style-ck-point {
	background: var(--core-soft);
	border-color: #9fd6cf;
}

.is-style-ck-warn {
	background: var(--danger-soft);
	border-color: #efb3a6;
}

.is-style-ck-memo {
	background: var(--ore-soft);
	border-color: #ecd09a;
}

.is-style-ck-point > :first-child,
.is-style-ck-warn > :first-child,
.is-style-ck-memo > :first-child {
	margin-top: 0;
}

.is-style-ck-point > :last-child,
.is-style-ck-warn > :last-child,
.is-style-ck-memo > :last-child {
	margin-bottom: 0;
}

.is-style-ck-point strong,
.is-style-ck-warn strong,
.is-style-ck-memo strong {
	background: none;
}

.is-style-ck-point > p:first-child > strong:only-child {
	color: var(--core-2);
}

.is-style-ck-warn > p:first-child > strong:only-child {
	color: var(--danger);
}

.is-style-ck-memo > p:first-child > strong:only-child {
	color: var(--ore);
}

/* 手順リスト */
ol.is-style-ck-steps {
	counter-reset: step;
	margin: 1.6em 0;
	padding: 0;
	list-style: none;
}

ol.is-style-ck-steps > li {
	position: relative;
	margin: 0;
	padding: 2px 0 22px 52px;
	counter-increment: step;
}

ol.is-style-ck-steps > li::before {
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: var(--cave);
	border: 2px solid var(--core);
	border-radius: 4px;
	color: var(--core-glow);
	font-family: var(--font-px);
	font-size: 17px;
	content: counter(step);
}

ol.is-style-ck-steps > li:not(:last-child)::after {
	position: absolute;
	left: 17px;
	top: 40px;
	bottom: 4px;
	width: 2px;
	background: var(--line-2);
	content: "";
}

/* チェックリスト */
ul.is-style-ck-check {
	margin: 1.2em 0;
	padding: 0;
	list-style: none;
}

ul.is-style-ck-check > li {
	position: relative;
	padding-left: 30px;
}

ul.is-style-ck-check > li::before {
	position: absolute;
	left: 2px;
	top: 0.45em;
	width: 16px;
	height: 16px;
	background: var(--core);
	border-radius: 3px;
	content: "";
}

ul.is-style-ck-check > li::after {
	position: absolute;
	left: 7px;
	top: calc(0.45em + 3px);
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	content: "";
}

/* データ表スタイル */
.is-style-ck-data table th {
	width: 30%;
	background: var(--paper-2);
}

/* 目次 */
.toc {
	margin: 0 0 2em;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.toc__title {
	padding: 12px 18px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.toc__title::-webkit-details-marker {
	display: none;
}

.toc__title::before {
	display: inline-block;
	margin-right: 8px;
	color: var(--core);
	content: "▼";
	font-size: 11px;
	transition: transform 0.2s;
}

.toc details:not([open]) .toc__title::before {
	transform: rotate(-90deg);
}

.toc__list {
	margin: 0;
	padding: 0 18px 16px 40px;
	font-size: 14.5px;
	line-height: 1.7;
}

.toc__item {
	margin: 4px 0;
}

.toc__sub {
	margin: 2px 0 6px;
	padding-left: 1.2em;
	list-style: circle;
}

.toc__item--h3 {
	font-size: 13.5px;
}

.toc a {
	color: var(--ink);
	text-decoration: none;
}

.toc a:hover {
	color: var(--core-2);
	text-decoration: underline;
}

.in-article,
.after-article {
	margin: 2em 0;
}

/* 関連記事 */
.related {
	margin-top: 48px;
}

.related__title {
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--line);
	font-size: 19px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 40px;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 14px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
}

.post-navigation a span {
	display: block;
	color: var(--ink-3);
	font-size: 12px;
}

.post-navigation .nav-next {
	text-align: right;
}

/* ---------- 一覧 ---------- */

.archive__head {
	margin: 8px 0 24px;
}

.archive__title {
	margin: 0;
	font-size: clamp(22px, 3.4vw, 28px);
}

.archive__lead {
	margin-top: 8px;
	color: var(--ink-2);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink);
	text-decoration: none;
}

.pagination .current {
	background: var(--cave);
	border-color: var(--cave);
	color: #fff;
}

.data-hits {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.data-hits a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

/* ---------- サイドバー ---------- */

.sidebar .widget {
	margin-bottom: 24px;
	padding: 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.widget__title {
	margin: 0 0 12px;
	font-family: var(--font-px);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.05em;
}

.sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 4px;
	border-bottom: 1px dashed var(--line);
	color: var(--ink);
	font-size: 14.5px;
	text-decoration: none;
}

.side-links img {
	padding: 4px;
	background: var(--cave);
	border-radius: 3px;
	box-sizing: content-box;
}

@media (min-width: 1024px) {
	.sidebar {
		padding-top: 48px;
	}
}

/* ---------- データページ共通 ---------- */

.data-head {
	margin: 8px 0 28px;
}

.data-head__label {
	margin: 0;
	font-family: var(--font-px);
	font-size: 13px;
	letter-spacing: 0.18em;
	color: var(--core);
}

.data-head__title {
	margin: 4px 0 10px;
	font-size: clamp(24px, 4vw, 32px);
	line-height: 1.4;
}

.data-head__lead {
	max-width: 46em;
	margin: 0;
	color: var(--ink-2);
}

.data-hero {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 12px 0 24px;
	padding: 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.data-hero__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	background: var(--cave);
	/* ゲーム内メニューの枠 */
	border: 8px solid transparent;
	border-image: url("../img/game/ui/32x32_menu_border.png") 6 fill / 8px / 0 stretch;
	image-rendering: pixelated;
}

.data-hero__icon--item {
	border-image-source: url("../img/game/ui/32x32_itemui_border.png");
}

.data-hero__icon--biome {
	background: var(--biome);
}

.data-hero__no {
	font-family: var(--font-px);
	font-size: 34px;
	color: #fff;
}

.data-hero__label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--ink-3);
	font-size: 13px;
	font-weight: 700;
}

.data-hero__label a {
	color: var(--ink-2);
}

.data-hero__title {
	margin: 0;
	font-size: clamp(23px, 3.6vw, 30px);
	line-height: 1.35;
}

.data-hero__en {
	display: block;
	margin-top: 4px;
	color: var(--ink-3);
	font-size: 14px;
	font-weight: 400;
}

.data-hero__lead {
	margin: 10px 0 0;
	color: var(--ink-2);
}

@media (max-width: 560px) {
	.data-hero {
		flex-direction: column;
		padding: 18px;
	}

	.data-hero__icon {
		width: 80px;
		height: 80px;
	}
}

.data-section {
	margin-top: 8px;
}

.data-note {
	margin: 8px 0 0;
	color: var(--ink-3);
	font-size: 13px;
	line-height: 1.75;
}

.data-table--spec th {
	width: 34%;
}

.data-table--loot tr.is-guaranteed th {
	background: var(--ore-soft);
}

.cell-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
}

.cell-icon {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	vertical-align: middle;
	background: var(--cave);
	border-radius: 4px;
}

.cell-link .cell-icon {
	margin-right: 0;
}

.cell-icon--plain {
	background: none;
}

.ingame-text {
	position: relative;
	margin: 0 0 24px;
	padding: 18px 22px 14px;
	background: var(--cave-2);
	border: 0;
	border-radius: var(--radius);
	color: var(--cave-ink);
	font-size: 15px;
}

.prose blockquote.ingame-text {
	margin: 0 0 24px;
	background: var(--cave-2);
	color: var(--cave-ink);
	border: 0;
	border-radius: var(--radius);
}

.ingame-text p {
	margin: 0;
}

.ingame-text cite {
	display: block;
	margin-top: 8px;
	color: var(--cave-ink-2);
	font-family: var(--font-px);
	font-size: 12px;
	font-style: normal;
	text-align: right;
}

.howto {
	margin: 0 0 24px;
	padding: 18px 22px;
	background: var(--core-soft);
	border: 2px solid #9fd6cf;
	border-radius: var(--radius);
}

.howto__title {
	margin: 0 0 8px;
	font-size: 16px;
}

.howto__list {
	margin: 0;
	padding-left: 1.4em;
}

.data-table-wrap {
	margin-top: 8px;
}

.data-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 40px;
}

.data-pager a {
	display: block;
	padding: 14px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.data-pager a span {
	display: block;
	color: var(--ink-3);
	font-size: 12px;
	font-weight: 400;
}

.data-pager__next {
	text-align: right;
}

.soon {
	margin-top: 24px;
}

.icon-compare {
	display: flex;
	gap: 20px;
}

.icon-compare__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--ink-2);
}

.icon-compare__box {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	background: var(--cave);
	border-radius: var(--radius);
}

/* バッジ */
.badge {
	display: inline-block;
	padding: 0 7px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.8;
	vertical-align: middle;
	white-space: nowrap;
}

.badge--soft {
	background: var(--paper-2);
	color: var(--ink-2);
}

.badge--ore {
	background: var(--ore-soft);
	color: var(--ore);
}

.badge--todo {
	margin-left: 6px;
	background: var(--danger);
	color: #fff;
}

/* スキル */
.skill-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prose .skill-grid li + li {
	margin-top: 0;
}

.skill-card {
	display: flex;
	gap: 14px;
	height: 100%;
	padding: 14px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
}

.skill-card:hover {
	border-color: var(--core);
	color: var(--ink);
}

.skill-card__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	background: var(--cave);
	border-radius: var(--radius);
}

.skill-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.skill-card__name {
	font-size: 16px;
	font-weight: 700;
}

.skill-card__gain {
	color: var(--ink-2);
	font-size: 13px;
	line-height: 1.65;
}

.data-hero__icon--skill {
	background: var(--cave);
}

/* ボス一覧 */
.boss-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prose .boss-list li + li {
	margin-top: 0;
}

.boss-row__link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
}

.boss-row__link:hover {
	border-color: var(--core);
	color: var(--ink);
}

.boss-row__order {
	flex: none;
	width: 28px;
	font-family: var(--font-px);
	font-size: 20px;
	color: var(--core);
	text-align: center;
}

.boss-row__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.boss-row__name {
	font-size: 16px;
	font-weight: 700;
}

.boss-row__en {
	color: var(--ink-3);
	font-size: 12px;
}

.boss-row__sum {
	margin-top: 4px;
	color: var(--ink-2);
	font-size: 13.5px;
	line-height: 1.65;
}

.boss-row__sum:empty {
	display: none;
}

.boss-row__area {
	flex: none;
	padding: 3px 10px;
	background: var(--cave);
	border-left: 4px solid var(--biome);
	border-radius: 3px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 640px) {
	.boss-row__link {
		flex-wrap: wrap;
		gap: 10px 12px;
	}

	.boss-row__main {
		flex-basis: calc(100% - 110px);
	}

	.boss-row__area {
		margin-left: 40px;
	}
}

.mini-bosses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mini-bosses a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.mini-bosses small {
	display: block;
	color: var(--ink-2);
	font-size: 12.5px;
	line-height: 1.6;
}

/* バイオーム一覧 */
.biome-list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.biome-card__link {
	display: flex;
	gap: 18px;
	padding: 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 8px solid var(--biome);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
}

.biome-card__link:hover {
	color: var(--ink);
	border-color: var(--biome);
}

.biome-card__no {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--biome);
	border-radius: 4px;
	color: #fff;
	font-family: var(--font-px);
	font-size: 22px;
}

.biome-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.biome-card__name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 700;
}

.biome-card__icon {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	background: var(--biome);
	border-radius: 3px;
}

.biome-card__en {
	color: var(--ink-3);
	font-size: 12px;
}

.biome-card__sum {
	margin-top: 4px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.7;
}

.biome-card__bosses {
	margin-top: 6px;
	color: var(--core-2);
	font-size: 13px;
	font-weight: 700;
}

/* ---------- アイテム ---------- */

.item-icon--none {
	display: inline-block;
	background: var(--paper-2);
	border-radius: 3px;
}

.item-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.item-grid--compact {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.item-link {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 8px 10px;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--rarity, var(--r-common));
	border-radius: 4px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	text-decoration: none;
}

.item-link:hover {
	border-color: var(--core);
	border-left-color: var(--rarity, var(--r-common));
	color: var(--ink);
	background: #fff;
}

.item-link .item-icon {
	flex: none;
	padding: 3px;
	background: var(--cave);
	border-radius: 3px;
	box-sizing: content-box;
}

.item-link__name {
	min-width: 0;
}

/* 表の中・文中ではコンパクトに */
.data-table .item-link,
.recipe .item-link {
	border-left-width: 4px;
}

.data-table .item-link {
	display: inline-flex;
	padding: 4px 10px 4px 4px;
	background: transparent;
	border: 0;
	border-left: 4px solid var(--rarity, var(--r-common));
}

.rarity--1 { --rarity: var(--r-poor); }
.rarity-0 { --rarity: var(--r-common); }
.rarity-1 { --rarity: var(--r-uncommon); }
.rarity-2 { --rarity: var(--r-rare); }
.rarity-3 { --rarity: var(--r-epic); }
.rarity-4 { --rarity: var(--r-legend); }

.rarity-tag {
	display: inline-block;
	padding: 0 8px;
	background: var(--rarity);
	border-radius: 3px;
	color: #fff;
	font-size: 12px;
	line-height: 1.9;
}

.recipe {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.recipe .item-link {
	padding-right: 14px;
}

.recipe__n {
	margin-left: 6px;
	color: var(--core-2);
	font-family: var(--font-px);
	font-size: 16px;
}

.cat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 24px;
}

.cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink-2);
	font-size: 13px;
	text-decoration: none;
}

.cat-chip span {
	color: var(--ink-3);
	font-size: 11px;
}

.cat-chip:hover {
	border-color: var(--core);
	color: var(--core-2);
}

.cat-chip.is-current {
	background: var(--cave);
	border-color: var(--cave);
	color: #fff;
}

.cat-chip.is-current span {
	color: var(--cave-ink-2);
}

.cat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.cat-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	text-decoration: none;
}

.cat-card:hover {
	border-color: var(--core);
	color: var(--ink);
	transform: translateY(-2px);
}

.cat-card__icons {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 4px;
	background: var(--cave);
	border-radius: 4px;
}

.cat-card__name {
	font-weight: 700;
}

.cat-card__count {
	color: var(--ink-3);
	font-size: 12px;
}

.item-search {
	position: relative;
	margin: 0 0 20px;
}

.item-search__input {
	width: 100%;
	padding: 14px 16px 14px 44px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%237b878d' d='M10 2a8 8 0 0 1 6.3 12.9l5.4 5.4-1.4 1.4-5.4-5.4A8 8 0 1 1 10 2Zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z'/%3E%3C/svg%3E") 15px center no-repeat;
	border: 2px solid var(--line-2);
	border-radius: var(--radius);
	font: inherit;
	font-size: 16px;
	color: var(--ink);
}

.item-search__input:focus {
	border-color: var(--core);
	outline: none;
	box-shadow: 0 0 0 3px rgba(23, 138, 132, 0.18);
}

.item-search__results {
	margin-top: 12px;
}

.item-search__empty {
	color: var(--ink-3);
}

/* インラインのリンクチップ（ショートコード） */
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 2px;
	padding: 1px 10px 1px 3px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.7;
	text-decoration: none;
	vertical-align: baseline;
}

.chip:hover {
	border-color: var(--core);
}

.chip__icon {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

.chip__icon--dark {
	background: var(--cave);
}

.chip__dot {
	width: 12px;
	height: 12px;
	margin-left: 4px;
	border-radius: 50%;
}

.inline-icon {
	vertical-align: middle;
}

/* ---------- 検索フォーム / 404 ---------- */

.search-form {
	display: flex;
	max-width: 520px;
	margin: 20px 0;
}

.search-form input {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 2px solid var(--line-2);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	font: inherit;
	font-size: 16px;
}

.search-form button {
	padding: 0 20px;
	background: var(--core);
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.notfound {
	padding-top: 56px;
	text-align: center;
}

.notfound .search-form {
	margin: 24px auto;
}

.notfound__icon {
	padding: 16px;
	background: var(--cave);
	border-radius: 50%;
	box-sizing: content-box;
}

.notfound__title {
	font-size: 26px;
}

.notfound__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	padding: 0;
	list-style: none;
}

/* ---------- フッター ---------- */

.site-footer {
	padding: 48px 0 32px;
	background: var(--cave);
	border-top: 3px solid var(--core);
	color: var(--cave-ink-2);
	font-size: 13px;
}

.site-footer__inner {
	display: grid;
	gap: 24px;
}

@media (min-width: 800px) {
	.site-footer__inner {
		grid-template-columns: 1fr auto;
	}

	.rights {
		grid-column: 1 / -1;
	}
}

.site-footer__name {
	margin: 0;
	color: #fff;
	font-family: var(--font-px);
	font-size: 18px;
}

.site-footer__desc {
	margin: 4px 0 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--cave-ink);
	text-decoration: none;
}

.footer-menu a:hover {
	color: #fff;
	text-decoration: underline;
}

.rights {
	padding-top: 20px;
	border-top: 1px solid var(--cave-3);
	line-height: 1.8;
}

.rights p {
	margin: 0 0 6px;
}

.rights a {
	color: var(--core-glow);
}

.rights__copy {
	color: var(--cave-ink-2);
	font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}

	.boss-route__item a:hover,
	.cat-card:hover {
		transform: none;
	}
}

/* 本文中に置いた一覧ショートコードはインデントしない */
.prose .skill-grid,
.prose .boss-list,
.prose .item-grid {
	padding-left: 0;
}

@media (max-width: 640px) {
	.hero::after {
		background: linear-gradient(180deg, rgba(10, 22, 27, 0.92) 0%, rgba(10, 22, 27, 0.82) 100%);
	}

	.hero__inner {
		padding-top: 48px;
		padding-bottom: 48px;
	}
}
