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

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.8rem;
}

body {
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #333;
  overflow-x: hidden;
}

.top-page {
  background-attachment: fixed;
  --c-0: hsla(331, 61%, 100%, 1);
  --x-0: 24%;
  --y-0: 93%;
  --c-1: hsla(332, 51%, 65%, 1);
  --x-1: 41%;
  --y-1: 80%;
  --c-2: hsla(279, 29%, 87%, 1);
  --x-2: 17%;
  --y-2: 14%;
  background-color: hsla(355.2, 36%, 73%, 1);
  background-image: radial-gradient(circle at var(--x-0) var(--y-0),
      var(--c-0) var(--s-start-0),
      transparent var(--s-end-0)),
    radial-gradient(circle at var(--x-1) var(--y-1),
      var(--c-1) var(--s-start-1),
      transparent var(--s-end-1)),
    radial-gradient(circle at var(--x-2) var(--y-2),
      var(--c-2) var(--s-start-2),
      transparent var(--s-end-2));
  animation: hero-gradient-animation 10s linear infinite alternate-reverse;
  background-blend-mode: normal, normal, normal;
}

@keyframes hero-gradient-animation {
  0% {
    --c-0: hsla(331, 61%, 100%, 1);
    --x-0: 24%;
    --y-0: 93%;
    --s-start-0: 18%;
    --s-end-0: 55%;
    --c-1: hsla(332, 51%, 65%, 1);
    --x-1: 41%;
    --y-1: 80%;
    --s-start-1: 18%;
    --s-end-1: 55%;
    --c-2: hsla(279, 29%, 87%, 1);
    --x-2: 17%;
    --y-2: 14%;
    --s-start-2: 18%;
    --s-end-2: 55%;
  }

  100% {
    --c-0: hsla(269, 60%, 72%, 1);
    --x-0: 26%;
    --y-0: 88%;
    --s-start-0: 18%;
    --s-end-0: 55%;
    --c-1: hsla(301, 52%, 91%, 1);
    --x-1: 13%;
    --y-1: 78%;
    --s-start-1: 18%;
    --s-end-1: 55%;
    --c-2: hsla(323, 48%, 82%, 1);
    --x-2: 62%;
    --y-2: 17%;
    --s-start-2: 18%;
    --s-end-2: 55%;
  }
}

@property --c-0 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsla(331, 61%, 100%, 1);
}

@property --x-0 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 24%;
}

@property --y-0 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 93%;
}

@property --s-start-0 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 18%;
}

@property --s-end-0 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 55%;
}

@property --c-1 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsla(332, 51%, 65%, 1);
}

@property --x-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 41%;
}

@property --y-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 80%;
}

@property --s-start-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 18%;
}

@property --s-end-1 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 55%;
}

@property --c-2 {
  syntax: "<color>";
  inherits: false;
  initial-value: hsla(279, 29%, 87%, 1);
}

@property --x-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 17%;
}

@property --y-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 14%;
}

@property --s-start-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 18%;
}

@property --s-end-2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 55%;
}

body.scroll-lock {
  overflow: hidden;
}


a {
  transition: 0.3s;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

a:hover {
  opacity: 0.7;
}

li {
  list-style-type: none;
}

.gnav {
  opacity: 0;
  position: fixed;
  left: 5rem;
  bottom: 5rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.gnav.visible {
  opacity: 1;
  transform: translateY(0);
}

.gnav li {
  list-style: none;
  font-size: 1.4rem;
  text-align: left;
  color: #333;
  margin-bottom: 1rem;
}

.gnav li:nth-child(1) a {
  position: relative;
  padding-right: 1rem;
  display: inline-block;
  transition: 0.3s;
}

.gnav li:nth-child(1) a:hover {
  padding-right: 1.4rem;
}

.gnav li:nth-child(1) a::after {
  content: '';
  width: 4px;
  height: 4px;
  border: 0;
  border-top: solid 1px #333;
  border-right: solid 1px #333;
  transform: rotate(45deg);
  position: absolute;
  top: -1px;
  right: 0;
  border-right-style: 0;
  bottom: 0;
  margin: auto;

}

.gnav li a {
  color: #333;
  text-decoration: none;
}

.lang_nav {
  opacity: 0;
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  z-index: 999;
}

.lang_nav.visible {
  opacity: 1;
}

header .lang_nav ul {
  display: flex;
  background-color: #ffffff60;
  backdrop-filter: blur(10px);
  border-radius: 1.3rem;
  align-items: baseline;
  padding: .5rem 1.3rem;
}

header .lang_nav ul li {
  font-size: 1.1rem;
  cursor: pointer;
}

header .lang_nav ul li.current {
  color: #777777;
  text-decoration: underline;
  pointer-events: none;
}

header .lang_nav ul li:nth-of-type(1):after {
  content: "";
  width: 1px;
  height: 0.9rem;
  display: inline-block;
  background-color: #333333;
  margin-left: .8rem;
  margin-right: .8rem;
}

.bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: -20vw;
  bottom: 0;
  width: 20vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all .5s;
  z-index: 9999;
  opacity: 0;
  padding: 8rem 2.4rem;
}

.bio.open {
  left: 0;
  opacity: 1;
}

.bio h2 {
  font-size: 1.4rem;
  font-weight: 400;
  padding-bottom: 1rem;
  margin-bottom: 24px;
  position: relative;
}

.bio h2::after {
  content: "";
  position: absolute;
  border-bottom: #333 1px solid;
  width: 20px;
  left: 0;
  top: 28px;

}

.bio p {
  text-align: justify;
  line-height: 1.6rem;
  margin-bottom: 1rem;
}

.bio p a, .detail a {
  word-wrap: break-word;
  color: #0088BF;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .gnav {
    top: 0;
    left: 0;
    width: 100%;
    max-height: 40px;
    padding: 1rem 1.6rem 0;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
  }

  header .gnav ul {
    display: flex;
    justify-content: space-around;
  }

  .gnav li {
    display: inline-block;
  }

  .gnav a {
    font-size: 1rem;
  }

  .lang_nav {
    top: auto;
    bottom: 2rem;
  }

  .bio {
    left: -60vw;
    width: 60vw;
    padding: 1.6rem;
  }
}

.toggle_btn {
  opacity: 0;
  position: fixed;
  top: 30px;
  left: 30px;
  width: 30px;
  height: 30px;
  transition: all .5s;
  cursor: pointer;
  z-index: 0;
}

.toggle_btn.open {
  opacity: 1;
  left: 330px;
  z-index: 1000;
}

.toggle_btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #333;
  border-radius: 4px;
  transition: all .5s;
}

.toggle_btn span:nth-child(1) {
  top: 4px;
}

.toggle_btn span:nth-child(2) {
  top: 14px;
}

.toggle_btn span:nth-child(3) {
  bottom: 4px;
}

.toggle_btn.open span {
  background-color: #fff;
}

.toggle_btn.open {
  -webkit-transform: rotate(360deg);
  transform: rotate(360deg);
}

.toggle_btn.open span:nth-child(1), .toggle_btn.open span:nth-child(3) {
  width: 16px;
}

.toggle_btn.open span:nth-child(1) {
  -webkit-transform: translate(-1px, 4px) rotate(-45deg);
  transform: translate(-1px, 4px) rotate(-45deg);
}

.toggle_btn.open span:nth-child(3) {
  -webkit-transform: translate(-1px, -4px) rotate(45deg);
  transform: translate(-1px, -4px) rotate(45deg);
}

@media screen and (max-width: 767px) {
  .toggle_btn.open {
    left: 250px;
  }
}

#mask {
  opacity: 0;
  transition: all .5s;
}

#mask.open {
  opacity: 1;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 2;
  cursor: pointer;
}

section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 1rem;
}

.scroll-txt-img {
  height: 100vh;
  width: 100vw;

}

.texttitle {
  font-family: "Marcellus", serif;
  font-size: 6.4rem;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: all 1s ease;
  z-index: 10;
}

.texttitle span {
  opacity: 0;
  transform: translateY(20px);
  z-index: 2;
}

.texttitle.visible span {
  animation: fadeInUp 0.5s forwards;
  animation-delay: calc(var(--char-index) * 0.1s);
  z-index: 2;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.texttitle.pinned {
  position: fixed;
  top: 60px;
  left: 50px;
  transform: none;
  font-size: 2rem;
  z-index: 4;
}

.scroll {
  opacity: 0;
  height: 100vh;
  background-color: #555;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #555;
  font-size: 14px;
  text-decoration: none;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 1px solid #555;
  border-radius: 20px;
  position: relative;
  margin-inline: 30px;
  margin-bottom: 6px;
}

.mouse-icon::before {
  content: "";
  width: 1px;
  height: 8px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #555;
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}

@media screen and (max-width: 768px) {
  .texttitle {
    font-size: 2.4rem;
    display: flex;
    align-items: flex-end;
  }

  .texttitle.pinned {
    opacity: 0;
    font-size: 1.2rem;
    top: auto;
    bottom: 80px;
    left: 20px;
  }
}

.imglogo {
  max-width: 60vw;
  max-height: 60vh;
  opacity: 0;
  position: absolute;
  top: 100vh;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  transition: all 1s ease;
  z-index: 1;
  /* box-shadow: 0 3px 10px rgb(0 0 0 / 20%); */
}

.imglogo.visible {
  opacity: 1;
}

.imglogo.centered {
  top: 70%;
  transform: translate(-50%, -50%) scale(1);
}

.imglogo.pinned {
  position: fixed;
  top: 10px;
  left: 45px;
  width: 200px;
  transform: none;
  z-index: 3;
}

@media screen and (max-width: 768px) {
  .imglogo.pinned {
    top: auto;
    bottom: 25px;
    left: 20px;
    width: 90px;
  }
}

.works {
  padding-bottom: 8rem;
}

.content {
  font-size: 1.6rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
  text-align: right;
}

.content img {
  width: 100%;
  max-width: 650px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
  transition: 0.3s;
}

.content a:hover img {
  box-shadow: 0 3px 20px rgb(0 0 0 / 20%)
}

.content.visible {
  opacity: 1;
  transform: translateY(0);
}

.content h2 {
  font-size: 2rem;
  font-weight: 400;
  margin: 50px 0 30px;
}

.work-box {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.work-box h3 {
  font-weight: 400;
  margin: 40px 0 8px;
  position: relative;
}

.work-box h3::before {
  content: "";
  position: absolute;
  border-bottom: #333 1px solid;
  width: 20px;
  right: 0;
  bottom: 35px;
}

.client {
  margin-bottom: 8px;
}

.date {
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .content h2 {
    margin: 40px 0;
  }

  .work-box h3 {
    font-size: 1.4rem;
    margin: 40px 0 6px;
  }

  .client {
    margin-bottom: 6px;
  }

  .date {
    margin-bottom: 10px;
  }
}

.arrow-outer {
  text-align: center;
  margin-bottom: 2.4rem;
}

#back-to-top {
  background-color: #00000000;
  border: none;
}

.arrow {
  position: relative;
  display: inline-block;
  width: 62px;
  height: 33px;
  cursor: pointer;
}


.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 2px);
  width: 1px;
  height: 35px;
  border-radius: 9999px;
  background-color: #333333;
  transform-origin: 50% 0;
  transition: 0.3s;
  pointer-events: none;
  z-index: -1;
}

button:hover::before, button:hover::after {
  background-color: #fff;
}

.arrow::before {
  transform: rotate(45deg);
}

.arrow::after {
  transform: rotate(-45deg);
}

footer {
  text-align: center;
  padding-bottom: 2rem;
}

small {
  font-size: 1.2rem;
}

/* 下層ページ */
.sub-page {
  background-image: linear-gradient(180deg, #0da8db, rgba(138, 195, 202, 1) 76%, rgba(249, 240, 212, 1));
}

.shutter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(180deg, rgba(20, 147, 191, 1), rgba(138, 195, 202, 1));
  z-index: 9999;
}

.shutter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  margin: auto;
  background-color: #F9F0D4;
  width: 0;
  height: 1px;
}

.shutter {
  -webkit-animation: byeShutter 1.6s forwards;
  animation: byeShutter 1.6s forwards;
}

.shutter::before {
  -webkit-animation: shutterOpen 0.4s forwards;
  animation: shutterOpen 0.4s forwards;
}

@keyframes byeShutter {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    display: none;
    z-index: -1;
  }
}

@keyframes shutterOpen {
  0% {
    width: 0;
    height: 1px;
  }

  100% {
    width: 100%;
    height: 1px;
  }

  /* 90% {
    width: 100%;
    height: 100%;
  }

  100% {
    width: 100%;
    height: 100%;
  } */
}

.work-box h1 {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 100px 0 8px;
  position: relative;
}

.work-box h1::before {
  content: "";
  position: absolute;
  border-bottom: #333 1px solid;
  width: 20px;
  right: 0;
  bottom: 35px;
}

.detail-box {
  width: 100%;
  max-width: 650px;
  margin-top: 40px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5em 1em;
}

.detail {
  display: contents;
  /* gap: 0.8rem; */
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
}

.detail h2 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
  /* width: 100%;
  max-width: 80px; */
  text-align: left;
}

.slides {
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
  position: relative;
  width: 100%;
  padding-top: 75%;
  margin-top: 2rem;
  height: 0;
  background: #eee;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slides iframe {
  pointer-events: auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.swiper {
  width: 100%;
  max-width: 650px;
  margin: 2rem auto;
  overflow: hidden;
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
}

.swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  height: auto;
  line-height: 0;
  padding: 0;
  margin: 0;

}

.swiper-slide img {
  box-shadow: none;
  display: block;
  width: 100%;
  height: auto;
}

.swiper-slide a {
  display: inline-block;
  line-height: 0;
}

.swiper-button-next, .swiper-button-prev {
  color: #fff;
}

.video {
  box-shadow: 0 3px 10px rgb(0 0 0 / 20%);
  width: 100%;
  max-width: 650px;
  margin-top: 2rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 9;
}

.video iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}


@media screen and (max-width: 768px) {
  .detail-box {
    display: flex;
    flex-direction: column;

  }

  .detail p {
    width: 100%;
    min-width: 150px;
    margin-bottom: 1.2rem;
  }

  /* 
  .swiper-slide a {
    display: block;
    line-height: 0;
  } */
}