@charset "utf-8";

/* Reset */

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

@supports not (min-height: 100vh) {
	html {
		height: 100%;
	}
}

html {
	font-family: sans-serif;
	line-height: 1.5;
	overflow-wrap: break-word;
	-moz-tab-size: 4;
	tab-size: 4;
	-webkit-tap-highlight-color: transparent;
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	min-height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	text-rendering: optimizeSpeed;
}

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

ol[role="list"],
ul[role="list"] {
	list-style: none;
	padding: 0;
}

a:not([class]) {
	text-decoration-skip-ink: auto;
}

picture,
img,
iframe,
embed,
object,
video,
audio,
svg,
canvas {
	display: block;
}

picture,
img,
video,
svg {
	height: auto;
	max-width: 100%;
}

svg:not([fill]) {
	fill: currentColor;
}

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

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-delay: -1ms !important;
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		background-attachment: initial !important;
		scroll-behavior: auto !important;
		transition-delay: 0s !important;
		transition-duration: 1ms !important;
	}
}

/* Variables */

:root {
	--c-base: #fcfcfc;
	--c-solid: #000;
	--c-grey: #808080;
	--c-contrast: #e6e6e6;
}

@media (prefers-color-scheme: dark) {
	:root {
		--c-base: #f2f2f2;
	}
}

/* Elements */

body {
	background-color: var(--c-base);
	color: var(--c-solid);
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
	font-size: 1rem; /* 16px */
}

a {
	color: var(--c-solid);
	text-decoration: none;
}

/* Hero */

.site-hero {
	align-items: center;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	height: 100vh;
	height: 100svh;
	justify-content: center;
	min-height: 320px;
	min-width: 320px;
	position: relative;
}

.hero-1 {
	background-image: url(../img/img-hero-01.jpg);
}

.hero-2 {
	background-image: url(../img/img-hero-02.jpg);
}

.hero-3 {
	background-image: url(../img/img-hero-03.jpg);
}

.hero-4 {
	background-image: url(../img/img-hero-04.jpg);
}

.hero-5 {
	background-image: url(../img/img-hero-05.jpg);
}

.hero-6 {
	background-image: url(../img/img-hero-06.jpg);
}

.hero-7 {
	background-image: url(../img/img-hero-07.jpg);
}

.hero-8 {
	background-image: url(../img/img-hero-08.jpg);
}

.hero-9 {
	background-image: url(../img/img-hero-09.jpg);
}

.hero-10 {
	background-image: url(../img/img-hero-10.jpg);
}

.site-title {
	color: var(--c-base);
	font: 80px/1 "Bebas Neue", sans-serif;
	font-style: normal;
	font-weight: 400;
	margin-top: -.75em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.down {
	animation: down-float 1.2s ease-out infinite;
	background-color: var(--c-base);
	border-radius: 56px 56px 0 0;
	bottom: 0;
	height: 56px;
	left: calc(50% - 56px);
	position: absolute;
	width: 112px;
}

@keyframes down-float {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(8px);
	}
	100% {
		transform: translateY(0);
	}
}

.down a {
	align-items: center;
	display: flex;
	height: 56px;
	justify-content: center;
}

.down svg {
	margin-top: 4px;
}

@media screen and (max-width: 767px) {
	.site-title {
		font-size: 64px;
	}
}

/* Content */

.site-main,
.site-footer {
	min-width: 320px;
	width: 100%;
}

.site-main {
	line-break: strict;
	padding: 80px 0;
	scroll-margin-top: -32px;
}

.site-footer {
	background-color: var(--c-solid);
	color: var(--c-contrast);
}

.about,
.blog,
.footer-content {
	margin-left: auto;
	margin-right: auto;
	max-width: 1280px;
}

.blog {
	margin-top: 80px;
}

@media screen and (max-width: 1407px) {
	.about,
	.blog,
	.footer-content {
		max-width: calc(100% - 128px);
	}
}

@media screen and (max-width: 1023px) {
	.about,
	.blog,
	.footer-content {
		max-width: calc(100% - 64px);
	}
}

@media screen and (max-width: 767px) {
	.site-main {
		padding: 56px 0;
		scroll-margin-top: -24px;
	}

	.blog {
		margin-top: 56px;
	}
}

@media screen and (max-width: 479px) {
	.about,
	.blog,
	.footer-content {
		max-width: calc(100% - 40px);
	}
}

/* Main */

.section-title {
	border-bottom: 1px solid var(--c-solid);
	font: 48px/1 "Bebas Neue", sans-serif;
	font-style: normal;
	font-weight: 400;
	margin: 0 auto;
	text-align: center;
	width: 200px;
}

.avatar {
	margin: 28px auto 0;
	width: 160px;
}

.avatar img {
	border-radius: 999px;
}

.section-min-title {
	font-size: 1.125rem; /* 18px */
	margin: 24px 0 0;
	text-align: center;
}

.about-text {
	font-size: 1.125rem; /* 18px */
	hanging-punctuation: allow-end;
	line-height: 2;
	margin: 20px auto 0;
	max-width: 720px;
	text-align: justify;
}

.social-navigation {
	margin: 28px auto 0;
	width: 300px;
}

.social-navigation ul {
	display: flex;
	height: 48px;
	justify-content: space-between;
}

.social-navigation a {
	display: block;
}

.obfuscated-mail-link {
	cursor: pointer;
}

.recent-posts-list {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin: 24px 0 0;
}

.recent-post {
	position: relative;
	width: calc((100% - 64px) / 3);
}

.post-thumbnail {
	border-radius: 4px;
	overflow: hidden;
}

.post-thumbnail img {
	aspect-ratio: 3 / 2;
	min-width: 100%;
	object-fit: cover;
}

.post-date {
	color: var(--c-grey);
	font-size: .8125rem; /* 13px */
	margin: 12px 0 0;
}

.sticky .post-date {
	align-items: center;
	display: flex;
}

.post-date svg {
	margin: 0 2px 0 0;
}

.post-title {
	font-feature-settings: "palt";
	font-size: 1rem; /* 16px */
	margin: 4px 0 0;
}

.post-link {
	display: block;
}

.post-link::after {
	content: "";
	inset: 0;
	position: absolute;
}

.blog-link {
	line-height: 1;
	margin: 40px 0 0;
}

.blog-link a {
	align-items: center;
	border: 1px solid var(--c-solid);
	border-radius: 999px;
	display: flex;
	font-weight: bold;
	height: 56px;
	justify-content: center;
	margin: 0 auto;
	max-width: 720px;
	position: relative;
}

.blog-link a::after {
	border-right: 2px solid var(--c-solid);
	border-top: 2px solid var(--c-solid);
	content: "";
	display: block;
	height: 10px;
	margin-top: -5px;
	position: absolute;
	right: 16px;
	top: 50%;
	transform: rotate(45deg);
	width: 10px;
}

@media screen and (max-width: 1023px) {
	.recent-posts-list {
		gap: 24px;
	}

	.recent-post {
		width: calc((100% - 48px) / 3);
	}

	.blog-link a {
		margin-left: calc((100% - 48px) * .1666666667);
		margin-right: calc((100% - 48px) * .1666666667);
	}
}

@media screen and (max-width: 767px) {
	.section-title {
		font-size: 44px;
	}

	.recent-post {
		width: calc(50% - 12px);
	}

	.blog-link {
		font-size: .9375rem; /* 15px */
	}

	.blog-link a {
		height: 48px;
		margin: 0;
		width: 100%;
	}
}

@media screen and (max-width: 479px) {
	.social-navigation {
		width: 272px;
	}

	.social-navigation ul {
		height: 44px;
	}

	.social-navigation li {
		width: 44px;
	}

	.recent-posts-list {
		gap: 16px;
	}

	.recent-post {
		width: calc(50% - 8px);
	}
}

@media (hover: hover) and (pointer: fine) {
	.social-navigation a {
		transition: color .3s ease-out;
	}

	.x-link a:hover,
	.threads-link a:hover {
		color: var(--c-grey);
	}

	.facebook-link a:hover {
		color: #1877f2;
	}

	.instagram-link a:hover {
		color: #d93175;
	}

	.mail-link a:hover {
		color: #994400;
	}

	.recent-post img {
		transition: filter .8s ease-out;
		will-change: filter;
	}

	.recent-post:hover img {
		filter: grayscale(1);
	}

	.blog-link a {
		transition: background-color .3s ease-out, color .3s ease-out;
	}

	.blog-link a:hover {
		background-color: var(--c-solid);
		color: var(--c-contrast);
	}

	.blog-link a::after {
		transition: border-color .3s ease-out;
	}

	.blog-link a:hover::after {
		border-color: var(--c-contrast);
	}
}

/* Footer */

.footer-content {
	align-items: center;
	display: flex;
	height: 100px;
	justify-content: center;
}

.legal {
	display: flex;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: .9375rem; /* 15px */
	gap: 16px;
	justify-content: center;
}

.legal-link a {
	color: var(--c-contrast);
	display: inline-block;
}

.legal-copyright small {
	font-size: inherit;
}

@media screen and (max-width: 767px) {
	.legal {
		flex-wrap: wrap;
		font-size: .875rem; /* 14px */
		gap: 4px 16px;
	}
}

@media (hover: hover) and (pointer: fine) {
	.legal-link a {
		position: relative;
	}

	.legal-link a::after {
		background-color: var(--c-grey);
		bottom: 0;
		content: "";
		display: block;
		height: 1px;
		left: 0;
		opacity: 0;
		position: absolute;
		transform: scale(0, 1);
		transform-origin: left top;
		transition: opacity .3s ease-out, transform .3s ease-out;
		width: 100%;
	}

	.legal-link a:hover::after {
		opacity: 1;
		transform: scale(1, 1);
	}
}

/* In view */

.fadein {
	opacity: .01;
	transition: opacity 1.2s ease-out;
}

.fadein.inview {
	opacity: 1;
}

.fadein.moveup {
	transform: translateY(30px);
	transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fadein.moveup.inview {
	transform: translateY(0);
}

.recent-post.fadein.moveup:nth-child(2),
.recent-post.fadein.moveup:nth-child(5) {
	transition-delay: .2s;
}

.recent-post.fadein.moveup:nth-child(3),
.recent-post.fadein.moveup:nth-child(6) {
	transition-delay: .4s;
}

@media screen and (max-width: 767px) {
	.recent-post.fadein.moveup:nth-child(odd) {
		transition-delay: 0s;
	}

	.recent-post.fadein.moveup:nth-child(even) {
		transition-delay: .2s;
	}
}
