:root {
	--ink: #231815;
	--paper: #f3f5f4;
	--accent: #c8d3f5;
	--line: #231815;
	--soft: #e4e8e6;
	--header-h: 70px;
	--nav-h: 84px;
	--art-m: clamp(16px, 3vh, 40px);
	--ui-down: 48px;
	--letter-font: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .1 0 0 0 0 .09 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
	color-scheme: light;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
	line-height: 1.9;
	font-size: 16px;
}

.logo-path {
	fill: var(--ink);
	fill-rule: evenodd;
}

/* ---------- サイトヘッダー ---------- */

.site-header {
	display: none;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 30;
	height: var(--header-h);
	padding: 10px 16px;
	background: var(--paper);
}

.site-header svg {
	height: 50px;
	width: auto;
}

.menu-toggle {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hamburger {
	position: relative;
	display: block;
	flex: none;
	width: 46px;
	height: 46px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--accent);
	cursor: pointer;
}

.hamburger span {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform .25s, opacity .2s;
}

.hamburger span:nth-child(1) {
	transform: translate(-50%, calc(-50% - 6px));
}

.hamburger span:nth-child(2) {
	transform: translate(-50%, -50%);
}

.hamburger span:nth-child(3) {
	transform: translate(-50%, calc(-50% + 6px));
}

.menu-toggle:focus-visible~.hamburger {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

.menu-toggle:checked~.hamburger span:nth-child(1) {
	transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle:checked~.hamburger span:nth-child(2) {
	opacity: 0;
}

.menu-toggle:checked~.hamburger span:nth-child(3) {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- ドロワーメニュー ---------- */

.drawer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
	z-index: 20;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 28px;
	background: var(--accent);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .25s, transform .25s, visibility .25s;
}

.menu-toggle:checked~.drawer {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.drawer a[href] {
	flex: none;
	display: block;
	padding: 18px 4px;
	border-radius: 0;
	border-bottom: 2px solid var(--ink);
	text-align: left;
	font-size: 24px;
	letter-spacing: .04em;
}

.drawer a[href]:first-child {
	border-top: 2px solid var(--ink);
}

.drawer a[href]:hover,
.drawer a[href]:focus-visible {
	background: var(--paper);
}

/* ---------- ヒーロー ---------- */

.hero {
	padding-top: clamp(28px, 5vw, 72px);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-end;
	position: relative;
	min-height: calc(100vh - var(--nav-h));
	min-height: calc(100svh - var(--nav-h));
	overflow: hidden;
}

.ui {
	position: absolute;
	inset: var(--art-m) 0;
	display: grid;
	place-items: center;
	pointer-events: none;
}

.svg-ui {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.svg-ui path {
	fill: none;
	stroke: #000;
	stroke-width: 12;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1 2;
	animation: draw-line var(--draw-t, 1s) cubic-bezier(.65, 0, .35, 1) var(--draw-d, 0s) both;
}

.svg-ui path:nth-of-type(1) {
	--draw-t: .4s;
	--draw-d: .2s;
}

.svg-ui path:nth-of-type(2) {
	--draw-t: 1s;
	--draw-d: .6s;
}

.svg-ui path:nth-of-type(3) {
	--draw-t: 1s;
	--draw-d: 1.6s;
}

.hero-right {
	position: relative;
	z-index: 1;
	padding: 50px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.hero .vol {
	font-size: 25px;
	padding-block: 5px 20px;
	padding-right: 10px;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 196px;
}

.hero .vol::before {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(35, 24, 21, .5);
}

.hero .lead .hl {
	color: var(--hl, #e60012);
}

.hero .lead {
	text-align: right;
}

/* ---------- 分野ナビ（PC） ---------- */

.nav {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 5;
	display: flex;
	align-items: center;
	height: var(--nav-h);
	padding: 0 16px;
	background: linear-gradient(var(--paper) 70%, transparent);
}

.nav nav {
	width: 100%;
	max-width: 750px;
	margin: 0 auto;
	background: var(--accent);
	border-radius: 999px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 6px;
	overflow-x: auto;
}

nav a {
	flex: 1;
	white-space: nowrap;
	text-align: center;
	text-decoration: none;
	color: var(--ink);
	font-weight: 900;
	font-size: 15px;
	letter-spacing: .04em;
	padding: 10px 18px;
	border-radius: 999px;
	transition: background .2s;
}

nav a:hover,
nav a:focus-visible {
	background: var(--paper);
	outline: none;
}

nav a[href$="#graphic"] {
	font-family: Montserrat, sans-serif;
	font-weight: 800;
}

nav a[href$="#anime"] {
	font-family: Anton, Impact, sans-serif;
	font-weight: 400;
	font-size: 18px;
	letter-spacing: .06em;
}

nav a[href$="#web"] {
	font-family: "DM Sans", sans-serif;
	font-weight: 800;
}

nav a[href$="#vfx"] {
	font-family: Orbitron, sans-serif;
	font-weight: 900;
}

nav a[href$="#cg"] {
	font-family: Michroma, sans-serif;
	font-weight: 900;
	font-size: 14px;
}

main {
	max-width: 1100px;
	margin: 0 auto;
	padding: clamp(56px, 8vw, 112px) 20px;
}

.field {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 40px;
	padding: 48px 0;
	border-top: 2px solid var(--line);
}

.field header {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: start;
	gap: 8px;
	position: sticky;
	top: calc(env(safe-area-inset-top, 0px) + 96px);
}

.field h2 {
	margin: 0 0 0 -6px;
	display: inline-block;
	padding: 0 6px;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: .02em;
	background: linear-gradient(transparent 62%, var(--accent) 62%);
}

#graphic h2 {
	font-family: Montserrat, sans-serif;
	font-weight: 800;
}

#anime h2 {
	font-family: Anton, Impact, sans-serif;
	font-weight: 400;
	letter-spacing: .05em;
	font-size: clamp(34px, 3.8vw, 46px);
}

#web h2 {
	font-family: "DM Sans", sans-serif;
	font-weight: 800;
}

#vfx h2 {
	font-family: Orbitron, sans-serif;
	font-weight: 900;
	letter-spacing: .06em;
}

#cg h2 {
	font-family: Michroma, sans-serif;
	font-weight: 400;
	font-size: clamp(22px, 2.4vw, 28px);
}

.field header p {
	font-size: 14px;
	font-weight: 500;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0 8px 8px 0;
	display: grid;
	gap: 30px;
}

.class {
	background: #fff;
	border: 2px solid var(--line);
	border-radius: 28px;
	padding: 24px 28px 8px;
	box-shadow: 8px 8px 0 var(--accent);
}

.head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 16px;
}

.class h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
}

.who {
	margin: 2px 0 0;
	font-size: 14px;
	color: #5b5350;
}

.who a,
.pg-who a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	text-underline-offset: .22em;
	transition: color .2s ease, text-decoration-color .2s ease;
}

.who a:hover,
.who a:focus-visible,
.pg-who a:hover,
.pg-who a:focus-visible {
	color: var(--ink);
	text-decoration-color: currentColor;
}

.view {
	background: var(--ink);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 9px 22px;
	border-radius: 999px;
	transition: background .2s;
}

.view:hover,
.view:focus-visible {
	background: var(--accent);
	color: var(--ink);
	box-shadow: inset 0 0 0 2px var(--ink);
	outline: none;
}

details {
	border-top: 1.5px solid var(--soft);
}

summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	cursor: pointer;
	font-weight: 700;
	font-size: 15px;
}

summary::-webkit-details-marker {
	display: none;
}

summary:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	border-radius: 8px;
}

summary i {
	position: relative;
	width: 30px;
	height: 30px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--accent);
	flex: none;
	transition: background .2s, transform .25s;
}

summary i::before,
summary i::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 2px;
	background: var(--ink);
	transform: translate(-50%, -50%);
}

summary i::after {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: transform .25s;
}

details[open] summary i {
	background: var(--ink);
	transform: rotate(180deg);
}

details[open] summary i::before,
details[open] summary i::after {
	background: #fff;
}

details[open] summary i::after {
	transform: translate(-50%, -50%) rotate(0);
}

.body {
	padding: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.95;
	max-width: none;
	line-break: strict;
	word-break: auto-phrase;
	text-wrap: pretty;
}

.body p {
	margin: 0 0 1em;
}

footer {
	text-align: center;
	background: var(--accent);
	color: var(--ink);
	padding: 56px 20px calc(36px + env(safe-area-inset-bottom, 0px));
}

footer h2 {
	margin: 32px 0 18px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
}

footer .archive {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0;
	margin: 0;
}

footer .archive a {
	display: block;
	padding: 8px 26px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--accent);
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	transition: background .2s, color .2s;
}

footer .archive a:hover,
footer .archive a:focus-visible {
	background: var(--ink);
	color: #fff;
	outline: none;
}

footer svg {
	width: 50px;
	margin: 20px auto;
}

footer .notice {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 500;
}

footer small {
	display: block;
	font-size: 11px;
	opacity: .8;
}

.totop {
	display: block;
	position: relative;
	width: 52px;
	height: 52px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--accent);
	border: 2px solid var(--line);
	transition: transform .2s;
}

.totop::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 52%;
	width: 12px;
	height: 12px;
	border-left: 3px solid var(--line);
	border-top: 3px solid var(--line);
	transform: translate(-50%, -50%) rotate(45deg);
}

.totop:hover,
.totop:focus-visible {
	transform: translateY(-4px);
	outline-offset: 3px;
}

.open-letter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding: 10px 22px 10px 18px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--accent);
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.open-letter:hover,
.open-letter:focus-visible {
	background: var(--ink);
	color: #fff;
}

.open-letter:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

/* ---------- 手紙のオーバーレイ ---------- */

html.modal-open {
	overflow: hidden;
}

.letter {
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
	color: var(--ink);
}

.letter::backdrop {
	background: color-mix(in srgb, var(--accent) 94%, #fff);
}

.letter-scroll {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: auto;
	overscroll-behavior: contain;
	padding: var(--start, 62vh) 16px 0;
}

.letter-scroll::after {
	content: "";
	display: block;
	height: calc(24vh + var(--shift-max, 0px));
}

.letter.is-static .letter-scroll::after {
	height: 24vh;
}

.sheet {
	--px: clamp(24px, 7vw, 72px);
	position: relative;
	width: min(720px, 100%);
	margin: 0 auto;
	font-family: var(--letter-font);
	transform: translate3d(0, var(--shift, 0px), 0);
	will-change: transform;
}

.sheet-fold {
	position: relative;
	perspective: 3200px;
}

.sheet-stage {
	position: relative;
	transform-style: preserve-3d;
}

.sheet-top,
.sheet-rest,
.face {
	background: var(--grain), #fbf9f4;
	box-shadow: 0 18px 30px rgba(35, 24, 21, .16);
}

.sheet-top {
	position: relative;
	min-height: var(--fold-h, 0px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(40px, 6vw, 64px) var(--px) clamp(24px, 4vw, 40px);
	border-radius: 6px 6px 0 0;
}

.sheet-top p:last-child {
	margin-bottom: 0;
}

.sheet-flap {
	position: relative;
	transform-origin: 50% 0;
	transform-style: preserve-3d;
	will-change: transform;
}

.flap1 {
	margin-top: -1px;
	transform: translateZ(calc((1 - var(--f1, 1)) * 6px)) rotateX(calc((1 - var(--f1, 1)) * 180deg));
}

.flap2 {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	right: 0;
	transform: translateZ(calc((1 - var(--f2, 1)) * 2px)) rotateX(calc((1 - var(--f2, 1)) * 180deg));
}

.face {
	padding: 20px var(--px);
	backface-visibility: hidden;
	border-radius: 0 0 calc(var(--sx, 0) * 90px) calc(var(--sx, 0) * 90px);
}

.flap1>.face {
	--sx: var(--s1, 0);
}

.flap2>.face {
	--sx: var(--s2, 0);
}

.face.front {
	position: relative;
	min-height: var(--fold-h, 0px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.flap2>.face.front {
	justify-content: flex-start;
}

.face.front::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(rgba(35, 24, 21, .06) 50%, rgba(255, 255, 255, .8) 50%);
}

@property --s1 {
	syntax: "<number>";
	inherits: false;
	initial-value: 0;
}

@property --s2 {
	syntax: "<number>";
	inherits: false;
	initial-value: 0;
}

.face.back {
	position: absolute;
	inset: 0;
	transform: rotateX(180deg);
}

.face::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--ink);
	opacity: 0;
	pointer-events: none;
}

.flap1>.face::after {
	opacity: var(--s1, 0);
}

.flap2>.face::after {
	opacity: var(--s2, 0);
}

.sheet-rest {
	margin-top: calc(var(--fold-h, 0px) - 1px);
	padding: 20px var(--px) clamp(48px, 6vw, 72px);
	font-size: clamp(14px, 1.5vw, 15.5px);
	border-radius: 0 0 6px 6px;
	opacity: clamp(0, calc((var(--f2, 1) - .8) * 5), 1);
}

.slice {
	overflow: hidden;
}

.sheet.no-rest .sheet-rest {
	padding: 0;
}

.sheet.no-rest .flap2>.face {
	border-radius: 0 0 max(6px, calc(var(--sx, 0) * 90px)) max(6px, calc(var(--sx, 0) * 90px));
}

.letter.is-static .letter-scroll {
	padding-top: clamp(72px, 12vh, 120px);
}

.letter-hint {
	position: absolute;
	left: 50%;
	top: calc(var(--start, 62vh) + var(--fold-h, 0px) / 2);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0;
	transform: translate(-50%, -50%);
	font: 700 11px / 1 var(--letter-font);
	letter-spacing: .3em;
	padding-left: .3em;
	opacity: clamp(0, calc(1 - var(--p, 1) * 5), 1);
	pointer-events: none;
	animation: hint-bob 1.6s ease-in-out infinite;
}

.letter-hint::after {
	content: "";
	width: 20px;
	height: 44px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 44' fill='none' stroke='%23231815' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2v38M3 33l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.letter-emblem {
	display: grid;
	place-items: center;
	width: 112px;
	height: 112px;
	margin: 0 auto 28px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--accent);
}

.letter-emblem svg {
	width: 66px;
	height: auto;
}

.sheet h2 {
	margin: 0;
	text-align: center;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	letter-spacing: .2em;
}

.sheet .sub {
	margin: 6px 0 40px;
	text-align: center;
	font-weight: 700;
	font-size: 14px;
}

.sheet .sub::before,
.sheet .sub::after {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	margin: 0 12px;
	background: var(--ink);
	vertical-align: middle;
}

.sheet p {
	margin: 0 0 2.2em;
	font-size: clamp(14px, 1.5vw, 15.5px);
	font-weight: 500;
	line-height: 2.2;
	line-break: strict;
	word-break: auto-phrase;
	text-wrap: pretty;
}

.sheet p br {
	display: none;
}

.sheet p.poem br {
	display: inline;
}

.sheet .mark {
	text-align: center;
	letter-spacing: .4em;
}

.sheet .last {
	margin-bottom: 0;
	text-align: center;
	font-weight: 700;
	font-size: 1.1em;
}

.letter-close {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 14px);
	right: 16px;
	z-index: 3;
	width: 48px;
	height: 48px;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--paper);
	cursor: pointer;
	transition: background .2s;
}

.letter-close::before,
.letter-close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 2px;
	background: var(--ink);
	transform: translate(-50%, -50%) rotate(45deg);
}

.letter-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.letter-close:hover,
.letter-close:focus-visible {
	outline-offset: 3px;
	background: var(--accent);
}

/* ---------- はじめに ---------- */

.hello {
	margin-top: 24px;
	padding: clamp(56px, 8vw, 104px) 20px;
	background: var(--accent);
	text-align: center;
}

.hello-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(20px, 3vw, 32px);
}

.envelope {
	--pl: 15%;
	--pw: 70%;
	--sw: 6px;
	position: relative;
	width: min(860px, 100%);
	aspect-ratio: 1000 / 980;
}

.env {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.env-back {
	z-index: 1;
}

.env-front {
	z-index: 3;
}

.env * {
	stroke: var(--ink);
	stroke-width: var(--sw);
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.e-body {
	fill: #e3e8fa;
}

.e-front {
	fill: #f7f8fc;
}

.e-fold {
	fill: none;
}

.env-paper {
	position: absolute;
	z-index: 2;
	left: var(--pl);
	width: var(--pw);
	top: 3.9%;
	height: 75.7%;
	border: var(--sw) solid var(--ink);
	border-radius: clamp(28px, 7vw, 60px) clamp(28px, 7vw, 60px) 0 0;
	background: var(--grain), #fbf9f4;
	font-family: var(--letter-font);
	pointer-events: none;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.env-text {
	height: 100%;
	overflow: hidden;
	padding: 6% 8% 0;
	text-align: left;
	-webkit-mask-image: linear-gradient(#000 50%, transparent 96%);
	mask-image: linear-gradient(#000 50%, transparent 96%);
}

.env-text h2 {
	margin: 0;
	text-align: center;
	font-size: clamp(16px, 2.4vw, 24px);
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1.6;
}

.env-text .sub {
	margin: 2px 0 clamp(10px, 2vw, 20px);
	text-align: center;
	font-weight: 700;
	font-size: clamp(10px, 1.3vw, 13px);
}

.env-text .sub::before,
.env-text .sub::after {
	content: "";
	display: inline-block;
	width: 20px;
	height: 2px;
	margin: 0 8px;
	background: var(--ink);
	vertical-align: middle;
}

.env-text p:not(.sub) {
	margin: 0 0 1.4em;
	font-size: clamp(11px, 1.5vw, 15px);
	font-weight: 500;
	line-height: 2.1;
}

.env-hit {
	position: absolute;
	z-index: 4;
	left: var(--pl);
	width: var(--pw);
	top: 3.9%;
	height: 43.9%;
	padding: 0;
	border: 0;
	border-radius: clamp(28px, 7vw, 60px) clamp(28px, 7vw, 60px) 0 0;
	background: transparent;
	cursor: pointer;
}

.env-hit:hover~.env-paper,
.env-hit:focus-visible~.env-paper {
	transform: translateY(-4%);
}

.env-hit:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 4px;
}

.hello .open-letter {
	background: #fff;
}

.hello .open-letter:hover,
.hello .open-letter:focus-visible {
	background: var(--ink);
}

@keyframes draw-line {
	from {
		stroke-dashoffset: 1.05;
	}

	to {
		stroke-dashoffset: 0;
	}
}

@keyframes hint-bob {

	0%,
	100% {
		transform: translate(-50%, -50%);
	}

	50% {
		transform: translate(-50%, calc(-50% + 8px));
	}
}

@media (max-width: 760px) {
	.nav {
		display: none;
	}

	.site-header {
		display: flex;
	}

	.hero {
		padding-top: 8px;
		min-height: calc(100vh - var(--header-h));
		min-height: calc(100svh - var(--header-h));
		justify-content: flex-start;
	}

	.ui {
		position: relative;
		inset: auto;
		flex: 1 1 0;
		min-height: 160px;
		width: 100%;
		padding-top: calc(var(--ui-down) * 2);
	}

	.hero-right {
		align-self: stretch;
		align-items: center;
	}

	.hero .vol {
		padding-right: 0;
		justify-content: center;
	}

	.hero .vol::after {
		content: "";
		flex: 1;
		height: 1px;
		background: rgba(35, 24, 21, .5);
	}

	.hero .lead {
		font-size: 13px;
		text-align: center;
	}

	.field {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 36px 0;
	}

	.field header {
		position: static;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.class {
		padding: 20px 20px 4px;
		border-radius: 22px;
	}
}

@media (max-width: 600px) {
	.envelope {
		--pl: 9%;
		--pw: 82%;
		--sw: 4px;
		aspect-ratio: 1000 / 1160;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.svg-ui path {
		animation: none;
		stroke-dasharray: none;
	}
}

/* ---------- 手紙 ---------- */

.letter.css-scroll {
	timeline-scope: --letter-t;
}

.letter.css-scroll .letter-scroll {
	scroll-timeline: --letter-t y;
}

.letter.css-scroll .sheet {
	animation: letter-rise linear both;
	animation-timeline: --letter-t;
	animation-range: 0 var(--range, 100vh);
}

.letter.css-scroll .flap1 {
	animation: letter-open1 cubic-bezier(.455, .03, .515, .955) both;
	animation-timeline: --letter-t;
	animation-range: calc(var(--range, 100vh) * .08) calc(var(--range, 100vh) * .5);
}

.letter.css-scroll .flap2 {
	animation: letter-open2 cubic-bezier(.455, .03, .515, .955) both;
	animation-timeline: --letter-t;
	animation-range: calc(var(--range, 100vh) * .5) calc(var(--range, 100vh) * .92);
}

.letter.css-scroll .flap1>.face::after {
	animation: letter-shade ease-in-out both;
	animation-timeline: --letter-t;
	animation-range: calc(var(--range, 100vh) * .08) calc(var(--range, 100vh) * .5);
}

.letter.css-scroll .flap2>.face::after {
	animation: letter-shade ease-in-out both;
	animation-timeline: --letter-t;
	animation-range: calc(var(--range, 100vh) * .5) calc(var(--range, 100vh) * .92);
}

.letter.css-scroll .sheet-rest {
	animation: letter-fade-in cubic-bezier(.25, .46, .45, .94) both;
	animation-timeline: --letter-t;
	animation-range: calc(var(--range, 100vh) * .787) calc(var(--range, 100vh) * .92);
}

.letter.css-scroll .letter-hint {
	animation: hint-bob 1.6s ease-in-out infinite, letter-hint-fade linear both;
	animation-timeline: auto, --letter-t;
	animation-range: normal, 0 calc(var(--range, 100vh) * .2);
}

@keyframes letter-rise {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(0, var(--shift-max, 0px), 0);
	}
}

@keyframes letter-open1 {
	from {
		transform: translateZ(6px) rotateX(180deg);
	}

	to {
		transform: translateZ(0) rotateX(0deg);
	}
}

@keyframes letter-open2 {
	from {
		transform: translateZ(2px) rotateX(180deg);
	}

	to {
		transform: translateZ(0) rotateX(0deg);
	}
}

@keyframes letter-shade {

	0%,
	100% {
		opacity: 0;
	}

	50% {
		opacity: .4;
	}
}

@keyframes letter-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes letter-hint-fade {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

/* ---------- ローディング画面 ---------- */
.loading {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
	height: 4px;
	background: var(--soft);
	transition: opacity .2s ease;
}

.loading-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 4px;
	background: var(--ink);
	transition: width .2s ease-out;
}

.loading-logo {
	position: fixed;
	inset: 0;
	z-index: 9999;
	width: 160px;
	height: 58px;
	margin: auto;
	transition: opacity .2s ease;
}

.loading-logo svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 767px) {
	.loading-logo {
		width: 120px;
		height: 44px;
	}
}

.loading.is-done,
.loading-logo.is-done {
	opacity: 0;
	pointer-events: none;
}

/* 読み込み中は本体を隠し、完了後に1秒でフェードイン */
body > *:not(.loading):not(.loading-logo):not(script):not(noscript) {
	transition: opacity 1s ease;
}

html.is-loading body > *:not(.loading):not(.loading-logo):not(script):not(noscript) {
	opacity: 0;
}

html.is-loading .svg-ui path {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.loading,
	.loading-logo,
	.loading-bar,
	body > * {
		transition: none !important;
	}
}
