@charset "UTF-8";

:root {
  --main-font: freight-big-pro, serif;
  --sub-font: nort, Yu Gothic UI, sans-serif;
  --bg-color: #FDFDFD;
  --black: #1D1D1D;
  --white: #FFFFFF;
  --gray: #727272;
  --LOADING_INDEX: 70;
  --BUTTON_INDEX: 60;
  --NAV_INDEX: 50;
  --HEADER_INDEX: 40;
  --BG_INDEX: 30;
  --MAIN_INDEX: 20;
  --FOOTER_INDEX: 10;
}


/* common */
html {
  font-size: 62.5%;
}

body {
  background-color: var(--bg-color);
  color: var(--black);
  font-family: var(--sub-font);
  line-height: 1;
  font-size: 16px;
}

main {
  overflow-x: hidden;
  flex: 1;
}

h1,h2,h3 {
  font-weight: normal;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.sp-only {
  display: block;
}

.pc-only {
  display: none;
}

@media(min-width: 768px) {
  .sp-only {
    display: none;
  }

  .pc-only {
    display: block;
  }
}


/* loading */
body.is-fixed,
body.is-open {
  overflow: hidden;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--LOADING_INDEX);
  width: 100%;
  height: 100%;
  background-color: #1d1d1d;
  pointer-events: none;
}

.loading_logo-wrapper {
  display: grid;
}

.loading_logo {
  display: none;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  width: 140px;
}

/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--HEADER_INDEX);
  width: 100%;
  background-color: transparent;
  mix-blend-mode: difference;
}

.header_inner {
  padding-inline: 24px;
  padding-block: 20px;
}

.header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_logo {
  width: 27px;
  height: 33px;
  z-index: var(--BUTTON_INDEX);
}

.header_button {
  position: relative;
  z-index: var(--BUTTON_INDEX);
  color: var(--white);
  font-size: 1.2rem;
}

.header_close {
  display: none;
}

.header_nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100dvh;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: var(--NAV_INDEX);
  padding: 30px;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  transition-property: opacity, visibility;
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
}

.header_list {
  margin-bottom: 46px;
}

.header_item:not(:last-of-type) {
  margin-bottom: 14px;
}

.header_link {
  display: flex;
  overflow: hidden;
  opacity: 0;
  color: var(--white);
}

.header_wrapper {
  display: inline-flex;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.header_text {
  display: inline-block;
  margin-right: 6px;
  font-size: 4.8rem;
  font-family: var(--main-font);
  letter-spacing: 0.03em;
}

.header_number {
  display: inline-block;
  margin-top: 8px;
}

.bg {
  height: 100dvh;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: var(--BG_INDEX);
  width: 100%;
  height: 100%;
  background-color: var(--black);
  transition-property: opacity, visibility;
  transition-duration: 0.4s;
  transition-timing-function: ease-out;
}

.is-open .header_nav {
  opacity: 1;
  visibility: visible;
}

.is-open .header_link {
  opacity: 1;
}

.is-open .header_wrapper {
  opacity: 1;
  transform: translateY(0);
}

.is-open .header_menu {
  display: none;
}

.is-open .header_close {
  display: block;
}

.is-open .bg {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
  .header_inner {
    padding-inline: 66px;
    padding-block: 40px;
  }

  .header_logo {
    width: 39px;
    height: 47px;
  }

  .header_button {
    display: none;
  }

  .header_nav {
    opacity: 1;
    visibility: visible;
    position: relative;
    width: auto;
    padding: 0;
    background-color: transparent;
  }

  .header .sns-list {
    display: none;
  }

  .header_list {
    display: flex;
    margin-bottom: 0;
  }

  .header_item:not(:last-of-type) {
    margin-right: 60px;
    margin-bottom: 0;
  }

  .header_link {
    position: relative;
    padding: 8px;
    overflow: visible;
    opacity: 1;
  }

  .header_link::after {
    position: absolute;
    content: "";
    left: 8px;
    bottom: 2px;
    width: calc(100% - 16px);
    height: 1px;
    background-color: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 0.61, 0.36, 1);
  }

  .header_link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .header_wrapper {
    display: inline-flex;
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .header_text {
    margin-right: 0;
    font-size: 1.4rem;
    font-weight: 300;
    font-family: var(--sub-font);
  }

  .header_number {
    display: none;
  }
}


/* footer */
.footer {
  width: 100vw;
  height: 20vw;
  display: block;
  background-color: #191919;
  position: relative
}

.footer_inner {
  height: 100%
}

.footer_inner_copy {
  color: #e5e5de;
  font-size: 1.3vw;
  font-family: 'PT Sans Narrow', sans-serif;
  font-weight: bold;
  letter-spacing: .5em;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%)
}

@media screen and (max-width: 768px) {
  .footer {
    height: 53vw
  }
  .footer_inner_copy {
    width: 100vw;
    text-align: center;
    font-size: 2.7vw
  }
}

.heading--about,
.heading--works,
.heading--strength {
  margin-bottom: 50px;
}

.heading--skills {
  margin-bottom: 70px;
}

.heading--skills .heading_jp,
.heading--biography .heading_jp {
  color: var(--gray);
}

.heading--works .heading_en
.split-text_wrapper:first-of-type {
  margin-right: -5px;
}

.heading--biography {
  margin-bottom: 90px;
}

.heading--biography .heading_en {
  font-size: 3.6rem;
}

.heading_wrapper {
  margin-bottom: -8px;
  margin-right: 8px;
}

.heading_en {
  font-size: 4.8rem;
  font-family: var(--main-font);
  letter-spacing: 0.02em;
}

.heading_jp {
  padding-bottom: 10px;
  font-size: 1.2rem;
  transition-delay: 0.4s;
}

.works-list_item:not(:last-of-type) {
  margin-bottom: 48px;
}

.works-list_link {
  display: flex;
  flex-direction: column;
  color: var(--black);
}

.works-list_category {
  margin-bottom: 8px;
  color: var(--gray);
  font-size: 1.2rem;
}

.works-list_title {
  font-size: 1.5rem;
}

.works-list_image {
  order: -1;
  margin-bottom: 16px;
  overflow: hidden;
  text-align: center;
}

.works-list_image img {
  width: 340px;
  height: 235px;
  object-fit: cover;
}

.loop-text {
  position: absolute;
  display: flex;
  top: 50%;
  left: calc(50% - 50vw);
  z-index: -1;
  transform: translateY(-50%);
}

.loop-text_inner {
  padding-right: 20px;
  font-family: var(--main-font);
  font-size: 7.0rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--bg-color);
  text-shadow: 1px 0 0 var(--black), 0 1px 0 var(--black), -1px 0 0 var(--black), 0 -1px 0 var(--black);
  white-space: nowrap;
  animation: slideText 20s linear infinite;
}

@media (min-width: 768px) {
  .heading--about,
  .heading--works,
  .heading--strength {
    margin-bottom: 80px;
  }

  .heading--skills {
    margin-bottom: 90px;
  }

  .heading--works .heading_en
  .split-text_wrapper:first-of-type {
    margin-right: -8px;
  }

  .heading--biography {
    margin-bottom: 140px;
  }

  .heading--biography .heading_en {
    font-size: 6.0rem;
  }

  .heading_wrapper {
    margin-bottom: -13px;
    margin-right: 16px;
  }

  .heading_en {
    font-size: 8.0rem;
  }

  .heading_jp {
    font-size: 1.6rem;
  }

  .works-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 63px 30px;
  }

  .works-list_item {
    width: calc((100vw - 140px) / 3);
    max-width: 340px;
  }

  .works-list_item:not(:last-of-type) {
    margin-bottom: 0;
  }

  .works-list_title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .works-list_image img {
    transition: transform 0.3s ease-out;
    width: 340px;
    height: 235px;
    object-fit: cover;
  }

  .works-list_link:hover .works-list_image img {
    transform: scale(1.1);
  }

  .cursor {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 6vw;
    height: 6vw;
    opacity: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
  }

  .cursor_text {
    font-size: 0.8vw;
    letter-spacing: 0.04em;
  }

  .cursor--works {
    background-color: var(--black);
  }

  .cursor--works .cursor_text {
    color: var(--white);
  }

  .cursor--footer {
    background-color: var(--white);
  }

  .cursor--footer .cursor_text {
    color: var(--black);
  }

  .loop-text_inner {
    font-size: 11.0rem;
  }
}


/* animation */
.animation-fadein {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.animation-fadein.is-show {
  opacity: 1;
}


/* keyframes */
@keyframes slideText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes rotateCircle {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
