/* Hello, Universe の公式サイト。色・書体はビジュアルCI（黒70・白25・オレンジ5）に合わせる */
:root {
	--black: #0b0b0c;
	--white: #f5f5f3;
	--orange: #ff6a1a;
	--smoke-1: #8a8a8a;
	--smoke-2: #6a6a6a;
	--smoke-3: #4a4a4a;
	--smoke-4: #333333;
	--line-dark: #262626;
	--line-light: #d2d2ce;
	--font-en: "Barlow", "Zen Kaku Gothic New", sans-serif;
	--font-jp: "Zen Kaku Gothic New", sans-serif;
	--font-mono: "JetBrains Mono", "Zen Kaku Gothic New", monospace;
	--font-game: "DotGothic16", "Zen Kaku Gothic New", monospace;
	--gutter: 16px;
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--font-jp);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

/* 日本語の見出しや短い説明は、文節の途中で改行しない */
h1,
h2,
h3,
.level-text,
.card p,
.section-lead,
.tagline,
.footer-ja,
.facts dd,
.points-value,
.why-table td,
.why p,
.faq summary,
.faq p,
.cta-band p {
	word-break: auto-phrase;
	text-wrap: pretty;
}

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

.container {
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.narrow > * {
	max-width: 40em;
}

.sp {
	display: inline;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 10;
	padding: 8px 16px;
	background: var(--white);
	color: var(--black);
	font-weight: 700;
}

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

/* ヘッダー */
.site-header {
	background: var(--black);
	border-bottom: 1px solid var(--line-dark);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 32px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	text-decoration: none;
}

.brand-mark {
	width: 18px;
	height: 28px;
}

.brand-name {
	font-family: var(--font-en);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3em;
	white-space: nowrap;
}

.site-nav {
	margin-inline: calc(var(--gutter) * -1);
	width: calc(100% + var(--gutter) * 2);
	overflow-x: auto;
	scrollbar-width: none;
	border-top: 1px solid var(--line-dark);
}

.site-nav::-webkit-scrollbar {
	display: none;
}

.site-nav ul {
	display: flex;
	gap: 4px;
	padding-inline: calc(var(--gutter) - 12px);
	width: max-content;
}

.site-nav a {
	display: block;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	color: var(--smoke-1);
}

.site-nav a:hover {
	color: var(--white);
}

/* 共通の見出しと区切り */
.eyebrow {
	font-family: var(--font-en);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--orange);
}

.light .eyebrow,
.eyebrow.dim {
	color: var(--smoke-3);
}

.section {
	padding-block: 80px;
}

.section h2 {
	margin-top: 16px;
	font-weight: 700;
	font-size: clamp(26px, 5vw, 40px);
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.section-lead {
	margin-top: 16px;
	max-width: 40em;
}

.dark .section-lead {
	color: rgb(245 245 243 / 78%);
}

.dark {
	background: var(--black);
	color: var(--white);
}

.light {
	background: var(--white);
	color: var(--black);
	color-scheme: light;
}

.mono {
	margin-top: 24px;
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0.05em;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border: 1px solid var(--white);
	color: var(--white);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.button:hover {
	background: var(--white);
	color: var(--black);
}

[hidden] {
	display: none !important;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.note {
	margin-top: 16px;
	font-size: 12px;
	color: var(--smoke-3);
}

.dark .note {
	color: var(--smoke-1);
}

.lamp {
	flex: none;
	width: 10px;
	height: 10px;
	background: var(--orange);
}

/* ファーストビュー：教室の写真（スマホでは一番上）と、見出し・開校までの時計 */
.hero {
	overflow: hidden;
	border-bottom: 1px solid var(--line-dark);
}

.hero-inner {
	display: grid;
}

.hero-photo {
	position: relative;
	margin: 0;
}

.hero-photo img {
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	/* 先生と大きな画面が写る右寄りを残す */
	object-position: 72% 50%;
}

.hero-photo figcaption {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	background: rgb(11 11 12 / 72%);
	font-size: 12px;
}

.hero-text {
	padding: 32px var(--gutter) 56px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.button.solid {
	border-color: var(--orange);
	background: var(--orange);
	color: var(--black);
}

.button.solid:hover {
	border-color: var(--white);
	background: var(--white);
}

.tagline {
	display: inline-block;
	margin-top: 20px;
	padding: 6px 12px;
	background: #19191a;
	box-shadow: inset 0 0 0 2px var(--smoke-4);
	font-family: var(--font-game);
	font-size: 15px;
	line-height: 1.6;
}

.hero h1 {
	margin-top: 20px;
	font-weight: 700;
	font-size: clamp(36px, 8.4vw, 56px);
	line-height: 1.25;
	letter-spacing: 0.02em;
}

.lead {
	margin-top: 24px;
	max-width: 32em;
	color: rgb(245 245 243 / 78%);
}

/* 横川校ローンチまでのカウントダウン */
.countdown {
	width: fit-content;
	max-width: 100%;
	margin-top: 24px;
	padding: 16px 18px;
	background: #101011;
	box-shadow: inset 0 0 0 2px var(--smoke-4);
}

.countdown-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 14px;
}

.countdown-time {
	display: flex;
	gap: 6px;
	margin-top: 10px;
}

.countdown-time .unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 3.4em;
	padding: 6px 4px 4px;
	background: var(--black);
	box-shadow: inset 2px 2px 0 #050506, inset -2px -2px 0 var(--smoke-4);
}

.countdown b,
.board b {
	font-family: var(--font-game);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.countdown-time b {
	font-size: clamp(26px, 7vw, 34px);
	line-height: 1.1;
}

.countdown-time small {
	font-size: 11px;
	color: var(--smoke-1);
}

.countdown-time .unit:last-child b {
	color: var(--orange);
}

.countdown-date {
	margin-top: 10px;
	font-size: 13px;
	color: var(--smoke-1);
}

.countdown-done {
	display: none;
	font-family: var(--font-game);
	font-size: 20px;
	color: var(--orange);
}

.launched .countdown-done {
	display: block;
}

.launched [data-clock-time] {
	display: none;
}

/* ゲームの節 */
.play-inner {
	display: grid;
	gap: 32px;
	align-items: center;
}

/* ゲームの世界 */
.game {
	border: 1px solid var(--line-dark);
	background: #101011;
	scroll-margin-top: 80px;
}

.world {
	--block: calc(100cqw / 12);
	position: relative;
	container-type: inline-size;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: var(--black) url("/assets/game/stars.svg") 0 0 / 192px 192px;
}

.hud {
	position: absolute;
	inset: 10px 12px auto;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	font-family: var(--font-game);
	font-size: 12px;
	color: var(--smoke-1);
	text-shadow: 1px 1px 0 var(--black), -1px -1px 0 var(--black);
}

.launchpad {
	position: absolute;
	left: 50%;
	bottom: calc(var(--block) * 2);
	width: 36%;
	transform: translateX(-50%);
}

.launchpad svg {
	width: 100%;
	height: auto;
}

.ship-button {
	position: absolute;
	inset: 0 22% 30%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.ground {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	height: calc(var(--block) * 2);
	background:
		url("/assets/game/block-top.svg") 0 0 / var(--block) var(--block) repeat-x,
		url("/assets/game/block.svg") 0 100% / var(--block) var(--block) repeat-x;
}

.ground.playable {
	background: none;
}

.block {
	position: relative;
	padding: 0;
	border: 0;
	background: url("/assets/game/block.svg") 0 0 / 100% 100%;
	cursor: pointer;
}

.block.top {
	background-image: url("/assets/game/block-top.svg");
}

.block::after {
	content: "";
	position: absolute;
	inset: 0;
	background: 0 0 / 100% 100% no-repeat;
}

.block[data-hits="1"]::after {
	background-image: url("/assets/game/crack-1.svg");
}

.block[data-hits="2"]::after {
	background-image: url("/assets/game/crack-2.svg");
}

.block[data-hits="3"]::after {
	background-image: url("/assets/game/crack-3.svg");
}

.block:hover,
.block:focus-visible {
	outline: 2px solid rgb(245 245 243 / 70%);
	outline-offset: -2px;
}

.block.air {
	background: none;
}

.hotbar {
	display: grid;
	grid-template-columns: repeat(9, minmax(0, 1fr));
	gap: 4px;
	max-width: 400px;
	margin: 0 auto;
	padding: 10px 12px;
}

.hotbar-slot {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	background: #19191a;
	box-shadow: inset 2px 2px 0 var(--black), inset -2px -2px 0 var(--smoke-4);
}

.hotbar-slot img {
	width: 72%;
	height: 72%;
	object-fit: contain;
}

.hotbar-slot .count {
	position: absolute;
	right: 3px;
	bottom: 0;
	font-family: var(--font-game);
	font-size: 12px;
	text-shadow: 1px 1px 0 var(--black);
}

.chat {
	max-height: 10.5em;
	overflow-y: auto;
	padding: 10px 12px;
	border-top: 1px solid var(--line-dark);
	font-family: var(--font-game);
	font-size: 14px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}

.chat-line.cmd {
	color: var(--smoke-1);
}

.chat-line.error {
	color: var(--orange);
}

.typing {
	width: max-content;
	max-width: 100%;
}

.typing::after {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 1em;
	margin-left: 4px;
	vertical-align: -0.15em;
	background: var(--orange);
}

.console {
	display: flex;
	border-top: 1px solid var(--line-dark);
}

.console input {
	flex: 1;
	min-width: 0;
	padding: 12px;
	border: 0;
	border-radius: 0;
	background: var(--black);
	color: var(--white);
	font-family: var(--font-game);
	font-size: 16px;
}

.console input:focus-visible {
	outline-offset: -2px;
}

.console button {
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: var(--orange);
	color: var(--black);
	font-family: var(--font-jp);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px;
}

.chip {
	padding: 6px 10px;
	border: 1px solid var(--smoke-4);
	border-radius: 0;
	background: #19191a;
	color: var(--white);
	font-family: var(--font-mono);
	font-size: 13px;
	cursor: pointer;
}

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

.game-hint {
	padding: 0 12px 12px;
	font-size: 12px;
	color: var(--smoke-1);
}

/* 実績の通知 */
.toasts {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 20;
	display: grid;
	gap: 8px;
	width: min(280px, calc(100vw - 32px));
	pointer-events: none;
}

.toast {
	padding: 10px 14px;
	background: var(--black);
	box-shadow: inset 0 0 0 2px var(--smoke-3), 4px 4px 0 rgb(0 0 0 / 40%);
	font-family: var(--font-game);
	line-height: 1.5;
}

.toast-title {
	font-size: 13px;
	color: var(--orange);
}

.toast-name {
	font-size: 16px;
}

/* 学びかた */
.steps {
	display: grid;
	gap: 16px;
	margin-top: 40px;
}

.step {
	padding: 28px 24px;
	background: var(--black);
	color: var(--white);
	box-shadow: 6px 6px 0 var(--line-light);
}

.step-icon {
	display: flex;
	align-items: flex-end;
	height: 64px;
	margin-bottom: 24px;
}

.step-no {
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--orange);
}

.step h3 {
	margin-top: 4px;
	font-size: 24px;
}

.step h3 + p {
	margin-top: 8px;
	font-size: 15px;
	color: rgb(245 245 243 / 78%);
}

.name-story {
	display: grid;
	gap: 32px;
	margin-top: 72px;
	align-items: center;
}

.terminal {
	background: var(--black);
	color: var(--white);
}

.terminal-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line-dark);
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--smoke-1);
}

.terminal-bar span {
	width: 10px;
	height: 10px;
	background: var(--smoke-4);
}

.terminal-bar span:nth-child(3) {
	margin-right: 8px;
}

.terminal-body {
	display: grid;
	gap: 10px;
	padding: 20px;
	font-family: var(--font-mono);
	font-size: 15px;
}

.terminal-body code {
	font-family: inherit;
	overflow-wrap: anywhere;
}

.terminal-body .old {
	color: var(--smoke-1);
	text-decoration: line-through;
	text-decoration-color: var(--smoke-3);
}

.terminal-body .new span {
	color: var(--orange);
}

.concept {
	display: grid;
	gap: 16px;
	max-width: 40em;
}

.concept h3 {
	font-size: 22px;
}

/* レベル */
.xp {
	position: relative;
	height: 14px;
	margin-top: 40px;
	background: #19191a;
	box-shadow: inset 0 0 0 2px var(--smoke-4);
}

.xp-fill {
	position: absolute;
	inset: 2px auto 2px 2px;
	width: calc(100% - 4px);
	background: var(--orange);
}

.xp::after {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), var(--black) calc(20% - 2px) 20%);
}

.levels {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 24px;
}

.levels li {
	display: flex;
	flex-direction: column;
	padding: 24px 20px;
	border: 1px solid var(--line-dark);
}

/* 2列のときは、最後のレベル（VOYAGER）を横いっぱいに置く */
.levels li:last-child {
	grid-column: 1 / -1;
}

.slot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-bottom: 24px;
	background: #19191a;
	box-shadow: inset 3px 3px 0 var(--black), inset -3px -3px 0 var(--smoke-4);
}

.level-no {
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--orange);
}

.levels h3 {
	margin-top: 4px;
	font-family: var(--font-en);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: 0.15em;
}

.level-ja {
	font-size: 13px;
	color: var(--smoke-1);
}

.level-text {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.7;
}

.patches {
	margin-top: 72px;
}

.patches-title {
	font-family: var(--font-en);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.3em;
	color: var(--orange);
}

.patch-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 32px;
}

.patch-list figure {
	margin: 0;
}

.patch-list img {
	width: 100%;
	height: auto;
}

.patch-list figcaption {
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-align: center;
	color: var(--smoke-1);
}

/* 教室の写真 */
.photos {
	display: grid;
	gap: 16px;
	margin-top: 40px;
	align-items: start;
}

.photo {
	margin: 0;
}

.photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.photo figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--smoke-3);
}

/* 呼び方と特別な日 */
.cards {
	display: grid;
	gap: 16px;
	margin-top: 40px;
}

.card {
	padding: 28px 24px;
}

.card.ink {
	background: var(--black);
	color: var(--white);
}

.card.line {
	border: 1px solid var(--smoke-3);
}

.card-term {
	font-family: var(--font-en);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.3em;
	color: var(--orange);
}

.card h3 {
	margin-top: 8px;
	font-weight: 700;
	font-size: 24px;
}

.card h3 + p {
	margin-top: 12px;
	font-size: 15px;
}

.card.ink h3 + p,
.dark .card.line h3 + p {
	color: rgb(245 245 243 / 78%);
}

.card.event {
	padding: 0;
}

.card.event img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.card-body {
	padding: 24px;
}

.avatar {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.nametag {
	padding: 1px 8px;
	background: rgb(245 245 243 / 14%);
	font-family: var(--font-game);
	font-size: 13px;
	white-space: nowrap;
}

.char {
	width: 85px;
	height: 75px;
}

.status {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	font-size: 15px;
}

/* ご案内 */
.info-inner {
	display: grid;
	gap: 32px;
	margin-top: 40px;
	align-items: start;
}

.dark .photo figcaption {
	color: var(--smoke-1);
}

.info-side .board {
	margin-top: 24px;
}

.facts {
	margin: 0;
	border-top: 1px solid var(--line-dark);
}

.facts div {
	display: grid;
	gap: 4px;
	padding-block: 16px;
	border-bottom: 1px solid var(--line-dark);
}

.facts dt {
	font-size: 13px;
	font-weight: 700;
	color: var(--smoke-1);
}

.facts dd {
	margin: 0;
	font-weight: 700;
}

.board {
	padding: 28px;
	background: #101011;
	box-shadow: inset 0 0 0 2px var(--smoke-4);
}

.board-label,
.board-date {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.2em;
}

.board-label {
	color: var(--orange);
}

.board-value {
	display: flex;
	align-items: baseline;
	gap: 2px;
	margin-block: 8px;
	font-family: var(--font-game);
	font-size: clamp(36px, 8vw, 52px);
	line-height: 1.2;
	white-space: nowrap;
}

.board-value small {
	margin: 0 10px 0 4px;
	font-size: 0.4em;
	color: var(--smoke-1);
}

.board-value span {
	color: var(--smoke-2);
}

.board-value b:last-child {
	color: var(--orange);
}

.board-date {
	color: var(--smoke-1);
}

/* ファーストビュー直後の安心材料 */
.points {
	padding-block: 20px;
	background: var(--white);
	color: var(--black);
	color-scheme: light;
	border-bottom: 1px solid var(--line-light);
}

.points-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 24px;
}

.points-list li {
	display: grid;
	gap: 2px;
	padding-left: 14px;
	border-left: 4px solid var(--black);
}

.points-key {
	font-size: 12px;
	font-weight: 700;
	color: var(--smoke-3);
}

.points-value {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

/* ゲームで遊ぶだけ？に先に答える */
.why {
	margin-top: 72px;
	max-width: 56em;
}

.why-title {
	font-size: 22px;
}

.why > p:not(.note) {
	margin-top: 12px;
}

.why-table {
	width: 100%;
	margin-top: 24px;
	border-collapse: collapse;
	font-size: 15px;
}

.why-table th,
.why-table td {
	padding: 12px 8px 12px 0;
	border-bottom: 1px solid var(--line-light);
	text-align: left;
	vertical-align: top;
}

.why-table th {
	font-size: 13px;
	color: var(--smoke-3);
}

.why-table code {
	padding: 1px 6px;
	background: var(--black);
	color: var(--white);
	font-family: var(--font-mono);
	font-size: 13px;
	white-space: nowrap;
}

/* 無料体験への導線（くり返し置く） */
.cta-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 56px;
	padding: 24px;
	background: #101011;
	color: var(--white);
	box-shadow: inset 0 0 0 2px var(--smoke-4);
}

.cta-band p {
	max-width: 36em;
	font-size: 15px;
}

.cta-band strong {
	display: block;
	font-size: 18px;
}

/* よくある質問 */
.faq {
	margin-top: 32px;
	border-top: 1px solid var(--line-light);
}

.faq details {
	border-bottom: 1px solid var(--line-light);
}

.faq summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	flex: none;
	width: 1.4em;
	font-family: var(--font-game);
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
}

.faq details[open] summary::after {
	content: "−";
}

.faq details > p {
	max-width: 44em;
	padding-bottom: 18px;
}

.faq details > p + p {
	margin-top: -8px;
}

.pending {
	color: var(--smoke-1);
}

.footer-legal {
	max-width: 60em;
	margin-top: 8px;
	font-size: 11px;
	line-height: 1.7;
	color: var(--smoke-2);
}

.dark .terminal {
	box-shadow: inset 0 0 0 1px var(--line-dark);
}

/* ミッションログ */
#log .terminal {
	margin-top: 40px;
}

.terminal-body.log {
	gap: 6px;
	font-size: 14px;
}

.log time {
	color: var(--smoke-1);
}

.log .prompt-line span {
	color: var(--orange);
}

.log .next {
	color: var(--orange);
}

/* フッター */
.site-footer {
	padding-top: 56px;
	background: var(--black);
	border-top: 1px solid var(--line-dark);
}

.footer-inner {
	display: grid;
	gap: 8px;
	padding-bottom: 40px;
}

.footer-name {
	font-family: var(--font-en);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3em;
}

.footer-ja,
.footer-copy {
	font-size: 13px;
	color: var(--smoke-1);
}

.footer-ground {
	height: 40px;
	background: url("/assets/game/block-top.svg") 0 0 / 40px 40px repeat-x;
}

/* 404 */
.not-found-main {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 24px;
	min-height: 100vh;
	min-height: 100svh;
	padding: 48px var(--gutter);
	text-align: center;
}

.not-found-main svg {
	width: 72px;
	height: 112px;
}

.not-found-main h1 {
	font-weight: 700;
	font-size: clamp(24px, 6vw, 36px);
	line-height: 1.5;
}

.not-found-main .mono {
	margin-top: 0;
	color: var(--smoke-1);
}

@media (max-width: 599px) {
	.patch-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.levels li {
		padding: 20px 16px;
	}

	.levels h3 {
		font-size: 18px;
		letter-spacing: 0.1em;
	}
}

@media (max-width: 359px) {
	.levels {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 600px) {
	.sp {
		display: none;
	}

	.levels {
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	}

	.levels li:last-child {
		grid-column: auto;
	}
}

@media (min-width: 768px) {
	:root {
		--gutter: 32px;
	}

	.site-header {
		position: sticky;
		top: 0;
		z-index: 5;
	}

	.header-inner {
		flex-wrap: nowrap;
	}

	.site-nav {
		width: auto;
		margin-inline: 0;
		overflow: visible;
		border-top: 0;
	}

	.site-nav ul {
		padding-inline: 0;
	}

	.section {
		padding-block: 112px;
		scroll-margin-top: 64px;
	}

	.steps,
	.cards.three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.points-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.cards.two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.name-story {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 48px;
	}

	.photos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.facts div {
		grid-template-columns: 9em minmax(0, 1fr);
		gap: 24px;
	}

	.info-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px;
	}

	.hero-photo img {
		aspect-ratio: 16 / 9;
	}

	.hero-text {
		padding-block: 48px 72px;
	}
}

@media (min-width: 1024px) {
	/* 左に見出し、右に写真。写真は画面の右端まで広げ、見出しは本文の左端にそろえる */
	.hero-inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		min-height: min(760px, calc(100svh - 65px));
	}

	.hero-photo {
		order: 2;
	}

	.hero-photo img {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
		object-position: 88% 50%;
	}

	.hero-text {
		align-self: center;
		padding: 56px 48px 64px max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter)));
	}

	.play-inner {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 56px;
	}
}

/*
 * ドットのアニメーション。SVG の部品をコマ（.frame）に分け、steps() で切り替える。
 * 動きを減らす設定の端末では、still の付いたコマだけを止めて見せる。移動は 1 マス（1px = 1 マス）単位
 */
.px {
	overflow: visible;
}

.frame {
	opacity: 0;
}

.frame.still {
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.px * {
		animation-timing-function: steps(1, end);
		animation-iteration-count: infinite;
	}

	/* 炎：3コマで揺れる（ヘッダーとレベルのロケットは2コマ） */
	.flame-1,
	.flame-2,
	.flame-3 {
		animation-name: frame-3;
		animation-duration: 0.45s;
	}

	.flame-2 {
		animation-delay: -0.3s;
	}

	.flame-3 {
		animation-delay: -0.15s;
	}

	.brand-mark .flame-1,
	.brand-mark .flame-2,
	.hop .flame-1,
	.hop .flame-2 {
		animation-name: frame-2;
		animation-duration: 0.5s;
		animation-delay: 0s;
	}

	.brand-mark .flame-2,
	.hop .flame-2 {
		animation-delay: -0.25s;
	}

	/* 煙：左右のかたまりが 1 マスずつ外へふくらむ */
	.smoke-left {
		animation-name: nudge-left;
		animation-duration: 1.2s;
	}

	.smoke-right {
		animation-name: nudge-right;
		animation-duration: 1.2s;
		animation-delay: -0.6s;
	}

	/* COUNTDOWN：秒針が 1 秒ごとに進む */
	.tick-1,
	.tick-2,
	.tick-3 {
		animation-name: frame-4;
		animation-duration: 4s;
	}

	.tick-2 {
		animation-delay: -3s;
	}

	.tick-3 {
		animation-delay: -2s;
	}

	/* ROCKET：小さく跳ねる */
	.hop {
		animation-name: rise;
		animation-duration: 1.6s;
	}

	/* SPACEWALK と 404：上下にただよう */
	.float {
		animation-name: float;
		animation-duration: 3.2s;
	}

	.beacon {
		animation-name: frame-2;
		animation-duration: 1.2s;
	}

	/* MOONSHOT：星が入れかわりで光る */
	.twinkle-1,
	.twinkle-2 {
		animation-name: frame-2;
		animation-duration: 1.6s;
	}

	.twinkle-1 {
		animation-delay: -0.8s;
	}

	/* VOYAGER：前へ進みながら、信号を送る */
	.drift {
		animation-name: nudge-right;
		animation-duration: 2.4s;
	}

	.signal-1 {
		animation-name: signal-1;
		animation-duration: 1.8s;
	}

	.signal-2 {
		animation-name: signal-2;
		animation-duration: 1.8s;
	}

	/* キャラクター：クルーは手を振り、キャプテンと管制官はまばたきする */
	.wave-up {
		animation-name: wave-up;
		animation-duration: 3s;
	}

	.wave-down {
		animation-name: wave-down;
		animation-duration: 3s;
	}

	.blink {
		animation-name: eye-blink;
		animation-duration: 4s;
	}

	.control .blink {
		animation-delay: -1.7s;
	}

	.console-lamp {
		animation-name: frame-2;
		animation-duration: 1s;
	}

	/* ゲームの世界：発射・宇宙・打ちかけのコマンド */
	.launching .ship {
		animation: launch 2.6s steps(10, end) 1 both;
	}

	.launching .smoke-left,
	.launching .smoke-right {
		animation-duration: 0.3s;
	}

	.in-space .ship {
		animation-name: float;
		animation-duration: 3.2s;
	}

	.world.in-space {
		animation: stars-fall 6s steps(48, end) infinite;
	}

	.ground,
	.launchpad {
		transition: transform 0.6s steps(6, end), bottom 0.6s steps(6, end);
	}

	.typing {
		animation: typing 1.6s steps(17, end) 0.6s both;
	}

	.typing::after {
		animation: cursor 1s steps(1, end) infinite;
	}

	.xp-fill {
		animation: xp 5s steps(5, jump-start) infinite;
	}

	.toast {
		animation: toast-in 0.3s steps(6, end) both;
	}

	.hotbar-slot.new img {
		animation: pop 0.4s steps(4, end) both;
	}

	.patch-list img {
		transition: transform 0.2s;
	}

	.patch-list img:hover {
		transform: translateY(-6px) rotate(-6deg);
	}
}

@keyframes frame-2 {
	0% {
		opacity: 1;
	}

	50%,
	100% {
		opacity: 0;
	}
}

@keyframes frame-3 {
	0% {
		opacity: 1;
	}

	33.333%,
	100% {
		opacity: 0;
	}
}

@keyframes frame-4 {
	0% {
		opacity: 1;
	}

	25%,
	100% {
		opacity: 0;
	}
}

@keyframes nudge-left {
	0% {
		transform: none;
	}

	50%,
	100% {
		transform: translateX(-1px);
	}
}

@keyframes nudge-right {
	0% {
		transform: none;
	}

	50%,
	100% {
		transform: translateX(1px);
	}
}

@keyframes rise {
	0% {
		transform: none;
	}

	50%,
	100% {
		transform: translateY(-1px);
	}
}

@keyframes float {
	0% {
		transform: none;
	}

	25% {
		transform: translateY(-1px);
	}

	50% {
		transform: none;
	}

	75%,
	100% {
		transform: translateY(1px);
	}
}

@keyframes signal-1 {
	0% {
		opacity: 0;
	}

	33.333%,
	100% {
		opacity: 1;
	}
}

@keyframes signal-2 {
	0% {
		opacity: 0;
	}

	66.666%,
	100% {
		opacity: 1;
	}
}

@keyframes wave-up {
	0% {
		opacity: 0;
	}

	60% {
		opacity: 1;
	}

	70% {
		opacity: 0;
	}

	80% {
		opacity: 1;
	}

	90%,
	100% {
		opacity: 0;
	}
}

@keyframes wave-down {
	0% {
		opacity: 1;
	}

	60% {
		opacity: 0;
	}

	70% {
		opacity: 1;
	}

	80% {
		opacity: 0;
	}

	90%,
	100% {
		opacity: 1;
	}
}

@keyframes eye-blink {
	0% {
		opacity: 0;
	}

	94% {
		opacity: 1;
	}

	97%,
	100% {
		opacity: 0;
	}
}


@keyframes launch {
	0% {
		transform: none;
		opacity: 1;
	}

	10% {
		transform: translateY(1px);
	}

	16% {
		transform: none;
	}

	70% {
		transform: translateY(-48px);
		opacity: 1;
	}

	71% {
		transform: none;
		opacity: 0;
	}

	88% {
		transform: none;
		opacity: 0;
	}

	100% {
		transform: none;
		opacity: 1;
	}
}

@keyframes stars-fall {
	to {
		background-position: 0 192px;
	}
}

@keyframes typing {
	from {
		clip-path: inset(0 100% 0 0);
	}

	to {
		clip-path: inset(0);
	}
}

@keyframes cursor {
	50% {
		opacity: 0;
	}
}

@keyframes xp {
	from {
		width: 0;
	}

	to {
		width: calc(100% - 4px);
	}
}

@keyframes toast-in {
	from {
		transform: translateX(110%);
	}

	to {
		transform: none;
	}
}

@keyframes pop {
	0% {
		transform: scale(0.4);
	}

	60% {
		transform: scale(1.2);
	}

	100% {
		transform: none;
	}
}

/* 宇宙では地面が下へ消え、ロケットは少し上に浮かぶ */
.in-space .ground {
	transform: translateY(100%);
}

.in-space .launchpad {
	bottom: 18%;
}

.in-space .launchpad svg > path,
.in-space .smoke-left,
.in-space .smoke-right {
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.button {
		transition: none;
	}
}
