@charset "UTF-8";
/* Root */

:root {
  --primary: #4907f4;
  --white-color: #f5f5f5;
  --black-color: #0a0a0a;
  --light-gray: #aaa;
  --dark-gray: #555;
}
/* *ALL */

html,
body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  background-color: var(--black-color);
  font-family: "urw-din-condensed", sans-serif;
  scroll-behavior: smooth;
  color: var(--white-color);
  overflow-x: hidden;
}

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

::selection {
  color: var(--primary);
  background-color: var(--white-color);
}

/* Keyframes */

@keyframes scale {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes shrinkDisappear {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0);
    opacity: 0;
    border-radius: 60px;
  }
}

/* Loading CSS */
#wrapper {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.4);
  -webkit-backdrop-filter: blur(24px); /* Safari 9+, iOS Safari 9+ に対応 */
  backdrop-filter: blur(24px);
  z-index: 999;
  transition: opacity 1.6s ease;
}

#wrapper.loading {
  opacity: 0;
  pointer-events: none;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  width: 90px;
  height: 90px;
  color: var(--white-color);
}

.square {
  width: 30px;
  height: 30px;
  border: rgba(10, 10, 10, 0.8) solid 0.8px;
  background-color: var(--primary);
  opacity: 1;
  animation: shrinkDisappear 1.6s infinite ease-in-out;
  transition: opacity 1.6s ease;
}

/* 3x3グリッド内での個々の四角形に対するアニメーション遅延を設定 */
.square:nth-child(1) {
  animation-delay: 0.1s;
}
.square:nth-child(2) {
  animation-delay: 0.3s;
}
.square:nth-child(3) {
  animation-delay: 0.5s;
}
.square:nth-child(4) {
  animation-delay: 0.3s;
}
.square:nth-child(5) {
  animation-delay: 0.5s;
}
.square:nth-child(6) {
  animation-delay: 0.7s;
}
.square:nth-child(7) {
  animation-delay: 0.5s;
}
.square:nth-child(8) {
  animation-delay: 0.7s;
}
.square:nth-child(9) {
  animation-delay: 0.9s;
}

/* Cursor CSS */

.cursor {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary);
  position: fixed;
  pointer-events: none;
  transition: transform 0.3s ease-out;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.cursor::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  background-color: var(--primary);
  opacity: 0; /* 初期状態では不透明度を0に設定 */
  transition: opacity 0.3s ease-out; /* 不透明度の変化にトランジションを設定 */
  pointer-events: none; /* クリックイベントを無視 */
}

.cursor-leave::after {
  animation: scale 1.2s infinite ease-out; /* アニメーションを適用 */
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background-color 0.4s ease-in-out;
  z-index: 5000; /* カーソルより下になるようにz-indexを調整 */
  pointer-events: none;
}

/* Header */

.header {
  width: 100%;
  padding: 1rem 4rem;
  position: fixed;
  z-index: 9999 !important;
  top: 0;
  left: 0;
  background-color: rgba(10, 10, 10, 0.4);
  -webkit-backdrop-filter: blur(32px); /* Safari 9+, iOS Safari 9+ に対応 */
  backdrop-filter: blur(32px);
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-pc {
  height: 32px;
  width: auto;
}

.logo-sp {
  display: none;
}

/* Main Content */
.main-wrapper {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 4rem;
  display: grid;
  place-items: center;
}

.title {
  font-family: "urw-din-condensed", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 100px;
  white-space: nowrap;
  color: var(--white-color);
  letter-spacing: 8px;
  inset: 0;
}

/* About-me */

#about-me.about-me {
  padding: 80px 4rem 64px;
  display: flex;
  justify-content: center;
}

.container {
  width: 720px;
}

.typing {
  font-family: "urw-din-condensed", sans-serif;
  font-size: 2.5rem;
  width: 11ch;
  overflow: hidden;
  animation: typing 1.8s steps(11) infinite alternate;
  white-space: nowrap;
  color: var(--white-color);
  letter-spacing: 2px;
}

.about-container {
  display: flex;
}

.me {
  display: flex;
  column-gap: 40px;
  margin-top: 3.2rem;
  align-items: flex-start;
}

.avatar {
  position: relative;
  width: 140px;
  height: 140px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(245, 245, 245, 0.32);
  z-index: 1;
}

.avatar:hover .nickname {
  display: block;
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 3px 0 4px 0;
  text-align: center;
  background-color: rgba(245, 245, 245, 0.16);
  -webkit-backdrop-filter: blur(4px); /* Safari 9+, iOS Safari 9+ に対応 */
  backdrop-filter: blur(4px);
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  color: var(--black-color);
  font-weight: 500;
  transition: 0.8s ease-in-out;
}

.nickname {
  display: none;
  transition: 0.8s ease-in-out;
}

.name-more {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  margin-top: 1.6rem;
}

.name,
.birthday,
.location {
  font-size: 14px;
  color: var(--light-gray);
}

.small-name {
  font-size: 12px;
}

.belief {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.business {
  font-size: 1.6rem;
  letter-spacing: 2.4px;
}

.label {
  color: var(--light-gray);
}
.keyword {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.self-introduction {
  margin-top: 3rem;
  letter-spacing: 2.4px;
  line-height: 1.8rem;
  color: var(--light-gray);
}

/* Social-icons */
.social-icon {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.icon {
  width: auto;
  height: 48px;
  display: flex;
  align-items: center;
  column-gap: 8px;
  margin-top: 16px;
  flex-direction: row-reverse;
  transition: opacity 0.5s ease-in-out;
}

a.link {
  display: block;
  width: 48px; /* .iconの幅に合わせる */
  height: 48px; /* .iconの高さに合わせる */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
}

a.link:hover {
  background-color: rgba(245, 245, 245, 0.04);
  border-radius: 8px;
  transition: all 0.4s;
  transform: translateX(-8px);
}

.social-label {
  background-color: rgba(245, 245, 245, 0.16);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 14px;
  visibility: hidden;
  transform: translateX(16%); /* 右にずれる */
  transition: visibility 0s, transform 0.5s ease;
}
.icon:hover .social-label {
  visibility: visible;
  transform: translateX(0); /* 元の位置に戻る */
  transition-delay: 0s; /* visibilityの遅延をなくす */
  margin-right: 8px;
  opacity: 1;
}

span.small-label {
  color: var(--white-color);
  font-size: 12px;
}

.copy {
  font-size: 14px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
  display: block;
  text-align: center;
  letter-spacing: 1.2px;
}
@media screen and (max-width: 1024px) {
  .cursor,
  .overlay {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  /* 959px以下に適用されるCSS（タブレット用） */
  .header {
    width: 100%;
    padding: 1rem 80px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(10, 10, 10, 0.4);
    -webkit-backdrop-filter: blur(32px); /* Safari 9+, iOS Safari 9+ に対応 */
    backdrop-filter: blur(32px);
    z-index: 9999 !important;
  }

  .logo-pc {
    display: none;
  }

  .logo-sp {
    display: block;
    height: 32px;
    width: auto;
  }
  .cursor,
  .overlay {
    display: none;
  }
  #about-me.about-me {
    padding: 100px 80px 64px;
    display: flex;
    justify-content: center;
  }
  .me {
    flex-direction: column;
    row-gap: 40px;
    margin-top: 2.4rem;
  }

  .avatar-name {
    display: flex;
    column-gap: 32px;
  }
  .name-more {
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    margin-top: 1rem;
  }

  .name,
  .birthday,
  .location {
    font-size: 16px;
    color: var(--light-gray);
  }

  .keyword {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  .typing {
    font-family: "urw-din-condensed", sans-serif;
    font-size: 2rem;
    width: 11ch;
    white-space: nowrap;
    color: var(--white-color);
    letter-spacing: 2px;
  }
  .container {
    width: 560px;
  }
  .belief {
    display: flex;
    flex-direction: column;
    row-gap: 1.2rem;
  }
  .self-introduction {
    margin-top: 3.2rem;
    letter-spacing: 1px;
    line-height: 1.8rem;
    color: var(--light-gray);
  }
  .keyword {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  .social-icon {
    position: fixed;
    right: 12px;
    top: auto;
    bottom: 40px;
    transform: translateY(0%);
  }

  .icon {
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    column-gap: 8px;
    margin-top: 16px;
    flex-direction: row-reverse;
    transition: opacity 0.5s ease-in-out;
  }

  a.link {
    display: block;
    width: 40px; /* .iconの幅に合わせる */
    height: 40px; /* .iconの高さに合わせる */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
  }
  .avatar-img {
    z-index: 1;
  }
}

@media screen and (max-width: 480px) {
  /* 480px以下に適用されるCSS（スマホ用） */
  .header {
    width: 100%;
    padding: 1rem 32px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(10, 10, 10, 0.4);
    -webkit-backdrop-filter: blur(32px); /* Safari 9+, iOS Safari 9+ に対応 */
    backdrop-filter: blur(32px);
    z-index: 9999 !important;
  }
  .typing {
    font-family: "urw-din-condensed", sans-serif;
    font-size: 1.6rem;
    width: 11ch;
    white-space: nowrap;
    color: var(--white-color);
    letter-spacing: 2px;
  }
  .avatar {
    position: relative;
    width: 80%;
    height: 80%;
  }

  #about-me.about-me {
    padding: 100px 32px 88px;
    display: flex;
    justify-content: center;
  }
  .avatar-name {
    display: flex;
    flex-direction: column;
    column-gap: 32px;
  }
  .avatar:hover .nickname {
    display: block;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 3px 0 4px 0;
    text-align: center;
    background-color: rgba(245, 245, 245, 0.16);
    -webkit-backdrop-filter: blur(4px); /* Safari 9+, iOS Safari 9+ に対応 */
    backdrop-filter: blur(4px);
    overflow: hidden;
    border-radius: 0 0 15px 15px;
    color: var(--black-color);
    font-weight: 500;
    transition: 0.8s ease-in-out;
    font-size: 2rem;
  }

  .social-icon {
    position: fixed;
    left: 50%;
    right: 50%;
    top: auto;
    bottom: 56px;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    width: 90%;
    justify-content: space-around;
    background-color: rgba(245, 245, 245, 0.04);
    -webkit-backdrop-filter: blur(40px); /* Safari 9+, iOS Safari 9+ に対応 */
    backdrop-filter: blur(40px);
    border-radius: 24px;
  }

  .icon {
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    column-gap: 80px;
    margin-top: 16px;
    margin-bottom: 16px;
    flex-direction: row-reverse;
    transition: opacity 0.5s ease-in-out;
  }

  .social-label {
    display: none;
  }
  .icon:hover .social-label {
    visibility: visible;
    transform: translateX(0); /* 元の位置に戻る */
    transition-delay: 0s; /* visibilityの遅延をなくす */
    /* margin-right: 8px; */
    opacity: 1;
  }
  a.link:hover {
    background-color: rgba(245, 245, 245, 0.04);
    border-radius: 8px;
    transition: all 0.4s;
    transform: translateY(-8px);
  }
  .avatar-img {
    z-index: 1;
  }
}
