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

:root {
	--color-background: #f3ecee;
	--color-text: #211c22;
	--color-text-muted: rgba(33, 28, 34, 0.62);
	--color-border: #8f7c87;
	--color-surface: #efe6e8;
	--color-surface-hover: #faf4f5;
	--color-linkbtn-background: #f3ecee;
	--color-linkbtn-background-hover: #fbf5f6;
	--color-linkbtn-border: #8f7c87;
	--color-linkbtn-text: #211c22;
	--color-page-background-top: #ddd2d9;
	--color-page-background-mid: #7a6974;
	--color-page-background-bottom: #0f1014;
	--color-main-background: #151319;
	--color-heading-background: #d8ccd2;
	--color-heading-text: #1f1a20;
	--color-heading-background-strong: #655461;
	--color-heading-text-strong: #fbf4f6;
	--color-footer-background: #100f13;
	--color-body-background-center: var(--color-heading-background-strong);
	--color-body-background-edge: #d2ccd0;
	--color-ticker-background: #050508;
	--color-ticker-text: #f8f3f5;
	--shadow-button: 0 8px 24px rgba(0, 0, 0, 0.08);
	--shadow-button-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
	--radius-pill: 8px;
	--space-page: 16px;
	--space-page-sp: 12px;
	--space-section-y: 48px;
	--space-section-y-sp: 32px;
	--space-section-gap: 48px;
	--space-section-gap-sp: 32px;
	--space-heading-bottom: 24px;
	--space-heading-frame-y: 16px;
	--space-heading-frame-x: 20px;
	--space-bio-gap: 20px;
	--space-bio-text-gap: 8px;
	--space-gallery-gap: 8px;
	--space-footer-y: 24px;
	--space-footer-y-sp: 16px;
	--space-button-y: 24px;
	--space-button-x: 40px;
	--space-button-y-sp: 16px;
	--space-button-x-sp: 16px;
	--space-button-gap: 16px;
	--main-max-width: 480px;
	--content-max-width: 640px;
	--button-max-width: 480px;
	--body-gradient-center-half-width: var(--main-max-width);
	--body-gradient-feather-width: 180px;
	--button-font-size: 1rem;
	--heading-font-size: clamp(1.25rem, 4vw, 1.3rem);
	--footer-font-size: 0.75rem;
	--button-icon-size: 20px;
	--bio-header-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
	--bio-header-icon-size: 48px;
	--bio-header-ratio-width: 1.41421356;
	--bio-avatar-overlap: 72px;
	--bio-avatar-overlap-sp: 60px;
	--bio-avatar-size: 144px;
	--bio-avatar-icon-size: 56px;
	--bio-text-font-size: 0.75rem;
	--bio-text-line-height: 1.9;
	--bio-text-max-width: 34rem;
	--gallery-item-radius: 8px;
	--gallery-item-min-size: 180px;
	--gallery-placeholder-icon-size: 36px;
	--gallery-placeholder-line-width: 56px;
	--gallery-placeholder-line-height: 2px;
	--focus-outline: 3px solid #f3ecee;
	--focus-outline-offset: 4px;
	--transition-button: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	padding: 0;
}

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

button,
input,
textarea,
select {
	font: inherit;
}

button {
	padding: 0;
	background: none;
	border: none;
}



body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: "Courier Prime", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
	font-weight: 400;
	background-color: var(--color-heading-background-strong);
	overflow-x: hidden;
	color: var(--color-text);
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	/* gap: var(--space-section-gap); */
	flex: 1;
	width: 100%;
	max-width: var(--main-max-width);
	margin: 0 auto;
	min-height: 100vh;
	padding: 1px;
	/* padding: var(--space-section-y) var(--space-page); */
	background-color: var(--color-main-background);
}

.bio-section,
.ticker-section,
.link-section,
.gallery-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: var(--content-max-width);
}

.bio-section__heading,
.link-section__heading,
.gallery-section__heading {
	width: 100%;
	/* margin-bottom: var(--space-heading-bottom);
	padding: var(--space-heading-frame-y) var(--space-heading-frame-x); */
	text-align: center;
	font-size: var(--heading-font-size);
	font-weight: 700;
	line-height: 1.4;
	background: var(--color-heading-background);
	color: var(--color-heading-text);
	/* border: 1px solid transparent; */
	border-radius: var(--radius-pill);
	padding: 48px 16px;
}

.bio-section__heading {
	/* font-size: 1.2rem; */
	background: var(--color-heading-background-strong);
	color: var(--color-heading-text-strong);
}

.bio-section__identity {
	display: grid;
	grid-template-columns: var(--bio-avatar-size) minmax(0, 1fr);
	align-items: stretch;
	gap: 1px;
	width: 100%;
	padding: 1px 0;
	margin-top: 0;
	border-radius: var(--radius-pill);
	overflow: hidden;
}

.bio-section__headerimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: var(--bio-header-ratio-width) / 1;
	background: var(--color-main-background);
	border-radius: var(--radius-pill);
	color: var(--color-text-muted);
	overflow: hidden;
}

.bio-section__headerimage-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bio-section__heading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--bio-avatar-size);
	padding: 0 20px;
	margin-bottom: 0;
}

.bio-section__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	border: none;
	border-radius: 50%;
	background-color: var(--color-surface);
	box-shadow: none;
	color: var(--color-text-muted);
	overflow: hidden;
	position: relative;
	z-index: 1;
}

.bio-section__avatar img,
.bio-section__avatar picture {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bio-section__avatar-icon {
	font-size: var(--bio-avatar-icon-size);
	line-height: 1;
}

.bio-section__textgroup {
	max-width: var(--bio-text-max-width);
	text-align: center;
	background-color: var(--color-background);
	width: 100%;
	padding: 24px;
	border-radius: var(--radius-pill);
	margin-bottom: 1px;
}

.bio-section__text {
	font-size: var(--bio-text-font-size);
	line-height: var(--bio-text-line-height);
	
}

.ticker {
	width: 100%;
	overflow: hidden;
	padding: 14px 0;
	border-radius: var(--radius-pill);
	background-color: var(--color-ticker-background);
	box-shadow: inset 0 0 0 1px rgba(248, 243, 245, 0.08);
	color: var(--color-ticker-text);
}

.ticker__track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: ticker-scroll 32s linear infinite;
}

.ticker__content {
	flex: 0 0 auto;
	padding-right: 2rem;
	white-space: nowrap;
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
}

.linkbtn-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 1px 0;
	width: 100%;
}

.linkbtn {
	display: grid;
	grid-template-columns: var(--button-icon-size) 1fr var(--button-icon-size);
	align-items: center;
	column-gap: var(--space-button-gap);
	width: min(100%, var(--button-max-width));
	padding: var(--space-button-y) var(--space-button-x);
	border: none;
	border-radius: var(--radius-pill);
	background-color: var(--color-linkbtn-background);
	box-shadow: none;
	color: var(--color-linkbtn-text);
	font: inherit;
	font-size: var(--button-font-size);
	/* font-weight: 600; */
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition-button);
}

.linkbtn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--button-icon-size);
	height: var(--button-icon-size);
	color: currentColor;
	flex-shrink: 0;
}

.linkbtn__icon--start {
	justify-self: start;
	font-size: var(--button-icon-size);
	line-height: 1;
}

.linkbtn__icon--end {
	justify-self: end;
}

.linkbtn__svg {
	width: 100%;
	height: 100%;
}

.linkbtn__label {
	text-align: center;
}

.linkbtn:hover {
	background-color: var(--color-linkbtn-background-hover);
	box-shadow: none;
	transform: none;
}

.linkbtn:focus-visible {
	outline: var(--focus-outline);
	outline-offset: var(--focus-outline-offset);
}

.gallery-section__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-flow: row dense;
	gap: 1px;
	padding: 1px 0;
	width: 100%;
}

.gallery-section__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	border-radius: var(--gallery-item-radius);
	background-color: var(--color-surface);
	overflow: hidden;
}

.gallery-section__item:nth-child(2),
.gallery-section__item:nth-child(6) {
	grid-column: span 2;
	aspect-ratio: 2 / 1;
}

.gallery-section__item--circle {
	border-radius: 50%;
}

.gallery-section__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: filter 0.2s ease;
}

.gallery-section__item:hover .gallery-section__image {
	filter: none;
}

.gallery-section__item:empty::before,
.gallery-section__item:empty::after {
	content: "";
	position: absolute;
	left: 50%;
	background-color: rgba(17, 17, 17, 0.18);
	transform: translateX(-50%);
}

.gallery-section__item:empty::before {
	top: calc(50% - 14px);
	width: var(--gallery-placeholder-icon-size);
	height: var(--gallery-placeholder-icon-size);
	border: 2px solid rgba(17, 17, 17, 0.18);
	border-radius: 50%;
	background-color: transparent;
}

.gallery-section__item:empty::after {
	top: calc(50% + 32px);
	width: var(--gallery-placeholder-line-width);
	height: var(--gallery-placeholder-line-height);
	border-radius: 999px;
}

.site-footer {
	padding: var(--space-page) var(--space-footer-y);
	text-align: center;
	background-color: var(--color-footer-background);
}

.site-footer__copyright {
	display: block;
	font-size: var(--footer-font-size);
	line-height: 1.5;
	color: var(--color-heading-background);
}

.back-to-top {
	display: none;
	position: fixed;
	right: 24px;
	bottom: 24px;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 50%;
	background-color: #000000;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
	color: #ffffff;
	cursor: pointer;
	z-index: 20;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top:hover {
	background-color: #161616;
	transform: translateY(-1px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.back-to-top:focus-visible {
	outline: var(--focus-outline);
	outline-offset: var(--focus-outline-offset);
}

.back-to-top__icon {
	font-size: 28px;
	line-height: 1;
}

@keyframes ticker-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ticker__track {
		animation: none;
	}
}

@media (min-width: 800px) {
	.back-to-top {
		display: flex;
	}
}

@media (max-width: 480px) {
	.link-section__heading,
	.gallery-section__heading {
		padding: 48px 16px;
	}

	.bio-section__identity {
		grid-template-columns: 120px minmax(0, 1fr);
		margin-top: 0;
	}

	.bio-section__heading {
		min-height: 120px;
		padding: 0 16px;
	}

	.site-footer {
		padding: var(--space-page-sp) var(--space-footer-y-sp);
	}


	.linkbtn {
		padding: var(--space-button-y-sp) var(--space-button-x-sp);
	}

}
