html, body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  width: 100%;
}

:root {
  --font: Geist, "Noto Sans JP", sans-serif;
}

.shadow {
  height: 100%;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 9999;
}

.shadow.open {
  pointer-events: auto;
}

.sidebar {
  backdrop-filter: blur(5px);
  background-color: var(--main-visual);
  border-right: 1px solid var(--border);
  font-weight: 200;
  height: 100vh;
  left: 0;
  overflow: hidden;
  padding: 20px 0;
  position: fixed;
  top: 0;
  transition:
    padding 0.5s cubic-bezier(0.22, 1.0, 0.36, 1.0),
    width 0.5s cubic-bezier(0.22, 1.0, 0.36, 1.0);
  width: 0;
  z-index: 10000;
}

.sidebar.open {
  padding: 20px;
  width: min(200px, 100%);
}

.sidebar-content {
  position: relative;
  padding-top: 44px;
}

.sidebar-close {
  position: absolute;
  right: 0;
  top: 0;
}

.svg-button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  fill: color-mix(
    in srgb,
    var(--text),
    transparent
  );
  height: 24px;
  position: relative;
  width: 24px;
}

.svg-button::before {
  background-color: var(--border);
  border-radius: 50%;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.22, 1.0, 0.36, 1.0);
  width: 100%;
}

.svg-button:hover::before {
  transform: scale(1.5);
}

header {
  align-items: center;
  backdrop-filter: blur(5px);
  background-color: var(--header);
  border-bottom: 1px solid var(--border);
  display: flex;
  font-size: 20px;
  font-weight: 150;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  position: fixed;
  width: calc(100% - 40px);
  z-index: 1000;
}

.header-button {
  -webkit-tap-highlight-color: transparent;
  border-radius: 8px;
  color: currentColor;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 10px;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.header-button::before {
  aspect-ratio: 1 / 1;
  background-color: var(--border);
  border-radius: 100%;
  content: "";
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.2s cubic-bezier(0.22, 1.0, 0.36, 1.0);
  width: 100%;
}

.header-button:hover::before {
  transform: translateY(-50%) scale(1.1);
}

main {
  width: 100%;
}

.main-visual {
  background-image: url("../imgs/cat.webp");
  background-position: center;
  background-size: cover;
  height: 100vh;
  position: relative;
  width: 100%;
}

.main-visual::before {
  background-color: var(--main-visual);
  backdrop-filter: blur(5px);
  content: "";
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.main-visual-content {
  bottom: 40px;
  left: 40px;
  position: absolute;
  z-index: 1;
}

.main-visual-name {
  color: #fff;
  font-size: 72px;
  font-weight: 100;
  letter-spacing: -0.04em;
  max-width: calc(100vw - 150px);
}

.main-visual-nickname {
  color: #fff;
  font-weight: 150;
}

.main-visual-down {
  bottom: 20px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.main-visual-scroll {
  bottom: 40px;
  right: 40px;
  position: absolute;
}

.main-visual-scroll-text {
  color: #fff;
  font-family: system-ui;
  font-weight: 150;
  letter-spacing: 0.3em;
  position: relative;
  writing-mode: vertical-rl;
}

.main-visual-scroll-text::before {
  background-color: var(--border);
  content: "";
  height: calc(100% + 40px);
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  width: 1px;
}

.main-visual-scroll-text::after {
  animation: scale 2s infinite;
  background-color: #fff;
  content: "";
  height: calc(100% + 40px);
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  width: 1px;
}

@keyframes scale {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  35% {
    transform: scaleY(1);
    transform-origin: top;
  }
  65% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.main-content {
  font-weight: 200;
  height: 200vh;
  padding: 40px 60px;
}

@media (max-width: 768px) {
  .main-content {
    padding: 40px 40px;
  }
}

section {
  border-top: 1px solid var(--border);
  margin: 30px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 150;
  letter-spacing: -0.03em;
  margin: 30px 0;
}

.profile {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .profile {
    flex-direction: column;
  }
}

.profile-card {
  background-color: var(--accent);
  border-radius: 8px;
  display: flex;
  flex-shrink: 1;
  gap: 20px;
  padding: 30px;
  width: min(350px, calc(100% - 60px));
}

.profile-icon-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  justify-content: center;
  text-align: center;
}

.profile-icon {
  border-radius: 64px;
  height: 128px;
  margin-bottom: 10px;
  width: 128px;
}

@media (max-width: 768px) {
  .profile-icon {
    width: 92px;
    height: 92px;
  }
}

.profile-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-links {
  align-items: center;
  display: flex;
  gap: 10px;
}

.profile-links a {
  text-decoration: none;
}

.profile-links svg {
  fill: var(--text);
  height: 24px;
  opacity: 0.5;
  transition: opacity 0.2s cubic-bezier(0.22, 1.0, 0.36, 1.0);
  width: 24px;
}

.profile-links svg:hover {
  opacity: 0.3;
}

.profile-title {
  font-size: 14px;
  margin: 5px 0;
}

.profile-text {
  align-items: center;
  display: flex;
  flex-shrink: 10;
}