/* =====general===== */

:root {
  --base: #f2f3f5;
  --main: #111111;
  --accent1: #4c6fff;
  --accent2: #d9e2ff;
}

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

html {
  background-color: var(--base);
  cursor: none;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  cursor: none;
}

.light {
  font-weight: 300;
}

.regular {
  font-weight: 400;
}

.medium {
  font-weight: 500;
}

.bold {
  font-weight: 700;
}

.black {
  font-weight: 900;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

/* =====interaction===== */

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  pointer-events: none;
  will-change: opacity, filter;
}

#webgl {
  z-index: 99;
}

#webgl-cursor {
  z-index: 100;
  filter: none;
  opacity: 1;
  filter: drop-shadow(0 0 4px var(--main));
}

#node-stage {
  position: relative;
}

#node-stage section {
  position: relative;
  z-index: 2;
}

.node-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.node-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.node-line {
  fill: none;
  stroke: var(--accent2);
  stroke-width: 2;
}

.node-dot {
  fill: var(--accent2);
}

.fadein {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  will-change: opacity, transform;
}

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

/* =====firstview===== */

.firstview {
  min-height: 90vh;
  background-color: var(--main);
}

.title-container {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 90vh;
}

nav {
  position: absolute;
  top: 0;
  right: 0;
  margin: 24px 16px 0 0;

  ul {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 24px;
    column-gap: 48px;
  }
}

.nav-link {
  color: var(--base);
  font-size: 16px;
  text-shadow: 0 0 10px #ffffff;
}

.firstview-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;

  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.firstview-title {
  color: var(--base);

  font-size: clamp(24px, 7.2vw, 48px);
  letter-spacing: 0.2em;
  line-height: 1.5em;
  text-align: center;
  text-shadow: 0 0 10px #ffffff;

  span {
    font-size: clamp(16px, 3.6vw, 32px);
  }
}

.download-btn {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 24px 32px;
  margin-top: 96px;

  width: 330px;
  height: 72px;
  box-shadow: 0 0 10px var(--accent1);

  border: 1px solid var(--base);
  border-radius: 36px;

  span {
    color: var(--base);
    font-size: 16px;
    text-shadow: 0 0 10px var(--accent1);

    transition:
      color 0.3s ease,
      text-shadow 0.3s ease;
  }

  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease;
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border: 1px dashed var(--base);
  border-radius: 50%;

  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
}

.download-btn:hover {
  transform: scale(1.05);

  background-color: var(--base);
  opacity: 0.9;

  span {
    color: var(--main);
    text-shadow: none;
  }

  .btn-arrow {
    border: 1px dashed var(--main);
    animation: rotate-arrow 0.6s ease-in-out 1;
  }
}

@keyframes rotate-arrow {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@media (max-width: 1023px) {
  .firstview-wrap {
    top: 55%;
  }

  .download-btn {
    margin-top: 64px;
  }
}

@media (max-width: 767px) {
  nav {
    display: none;
  }

  .firstview-wrap {
    top: 50%;
  }

  .download-btn {
    width: clamp(120px, 50vw, 300px);

    span {
      font-size: 12px;
    }
  }

  .btn-arrow {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 430px) {
  .btn-arrow {
    display: none;
  }
}

/* =====posibility===== */

#possibility .container {
  margin-top: 240px;
  position: relative;
}

.possibility-title {
  margin-right: 240px;

  color: var(--main);

  text-align: end;
  font-size: 64px;
  letter-spacing: 0.2em;

  span {
    margin-left: clamp(24px, 3.2vw, 32px);

    font-size: 32px;
    letter-spacing: 0.2em;
  }
}

.slider {
  display: flex;
}

.slick-list {
  margin-top: 48px;
  padding-left: 48px;
}

.slider-img-wrap {
  position: relative;
  margin: 0 48px;
  width: 560px;
  height: 420px;

  background-size: cover;
  background-position: center;

  overflow: hidden;
}

.slider-0 {
  background-image: url("./images/sound.png");
}

.slider-1 {
  background-image: url("./images/three-demension.png");
}

.slider-2 {
  background-image: url("./images/control-screen_1.png");
}

.slider-3 {
  background-image: url("./images/ui-setting.png");
}

.slider-text {
  position: absolute;
  top: 24px;
  left: 24px;

  color: var(--base);

  font-size: 24px;
  letter-spacing: 0.2em;
}

@media (max-width: 1023px) {
  #possibility .container {
    margin-top: 160px;
  }

  .possibility-title {
    margin-right: clamp(60px, 12vw, 160px);
    font-size: 44px;

    span {
      margin-left: 16px;
      font-size: 24px;
    }
  }

  .slick-list {
    margin-top: 32px;
    padding-left: 16px;
  }

  .slider-img-wrap {
    width: 420px;
    height: 315px;
    margin: 0 24px;
  }

  .slider-text {
    top: 16px;
    left: 16px;
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  #possibility .container {
    margin-top: 100px;
  }

  .slider-img-wrap {
    width: min(75vw, 420px);
    height: calc(min(75vw, 420px) * 0.75); /* 560x420比率 */
    margin: 0 12px;
  }
}

@media (max-width: 430px) {
  #possibility .container {
    margin-top: 80px;
  }

  .possibility-title {
    font-size: 28px;

    span {
      font-size: 16px;
    }
  }

  .slider-img-wrap {
    width: min(92vw, 360px);
    height: calc(min(92vw, 360px) * 0.75);
    margin: 0 8px;
  }

  .slider-text {
    top: 10px;
    left: 10px;
    font-size: 14px;
  }
}

/* =====reasons===== */

#reasons .container {
  margin-top: 312px;
}

.reasons-title {
  margin-left: 240px;

  color: var(--main);

  font-size: 64px;
  letter-spacing: 0.2em;
}

.reasons-title span {
  margin-left: 32px;

  font-size: 32px;
  letter-spacing: 0.2em;
}

.detail-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 160px;

  position: relative;
  isolation: isolate;

  width: 100%;

  text-align: center;

  --bg-left-x: clamp(8px, 6vw, 120px);
  --bg-right-x: clamp(8px, 6vw, 120px);
}

.first-wrap::before,
.first-wrap::after,
.second-wrap::before,
.second-wrap::after,
.third-wrap::before,
.third-wrap::after {
  position: absolute;

  color: transparent;
  -webkit-text-stroke: 1px var(--main);
  font-size: 256px;
  opacity: 10%;
  z-index: -1;
}

.first-wrap::before {
  content: attr(data-bg-left);
  top: 0px;
  left: var(--bg-left-x);
}

.first-wrap::after {
  content: attr(data-bg-right);
  top: 100px;
  right: var(--bg-right-x);
}

.second-wrap::before,
.third-wrap::before {
  content: attr(data-bg-left);
  top: -350px;
  left: var(--bg-left-x);
}

.second-wrap::after,
.third-wrap::after {
  content: attr(data-bg-right);
  top: 60px;
  right: var(--bg-right-x);
}

.first-wrap {
  margin-top: 56px;
  z-index: 3;
}
.second-wrap {
  z-index: 2;
}

.third-wrap {
  z-index: 1;
}

.detail-header {
  color: var(--main);

  font-size: 32px;
  letter-spacing: 0.2em;
}

.detail-text {
  margin-top: 40px;

  color: var(--main);

  font-size: 16px;
  letter-spacing: 0.2em;

  span {
    display: block;
    margin: 20px 0;
  }
}

.detail-img {
  margin-top: 160px;

  width: 100%;
  height: 767px;

  background-size: cover;
  background-position: center;
}

.detail-0 {
  background-image: url("./images/node_1.png");
}

.detail-1 {
  background-image: url("./images/rendering_1.png");
}

.detail-2 {
  background-image: url("./images/pro_1.png");
}

@media (max-width: 1023px) {
  #reasons .container {
    margin-top: 232px;
  }

  .reasons-title {
    margin-left: clamp(60px, 12vw, 160px);
    font-size: 44px;

    span {
      margin-left: 16px;
      font-size: 24px;
    }
  }

  .detail-warp {
    margin-top: 120px;
  }

  .first-wrap::before,
  .first-wrap::after,
  .second-wrap::before,
  .second-wrap::after,
  .third-wrap::before,
  .third-wrap::after {
    font-size: 160px;
  }

  .first-wrap--cta::before,
  .second-wrap::before,
  .third-wrap::before {
    top: -280px;
    left: 140px;
  }

  .first-wrap::after,
  .second-wrap::after,
  .third-wrap::after {
    top: 240px;
    right: 140px;
  }

  .detail-text {
    margin: 40px 64px 0;
  }

  .detail-img {
    height: min(50vw, 540px);
  }
}

@media (max-width: 767px) {
  #reasons .container {
    margin-top: 172px;
  }

  .detail-wrap {
    margin-top: 80px;
  }

  .first-wrap::before,
  .first-wrap::after,
  .second-wrap::before,
  .second-wrap::after,
  .third-wrap::before,
  .third-wrap::after {
    display: none;
  }

  .detail-header {
    font-size: 28px;
  }

  .detail-text {
    margin-top: 24px;
    font-size: 14px;

    span {
      margin: 14px 0;
    }
  }

  .detail-img {
    margin-top: 80px;
  }
}

@media (max-width: 430px) {
  #reasons .container {
    margin-top: 152px;
  }

  .reasons-title {
    font-size: 28px;

    span {
      font-size: 16px;
    }
  }

  .detail-wrap {
    margin-top: 40px;
  }

  .detail-header {
    font-size: 20px;
  }

  .detail-text {
    font-size: 12px;
  }

  .detail-img {
    margin-top: 40px;

    min-height: 200px;
  }
}

/* =====cta===== */

#cta .container {
  margin-top: 240px;
  overflow-x: clip;
}

.cta-title {
  padding: 0 clamp(148px, 14.44vw, 208px);

  color: var(--main);

  font-size: 64px;
  letter-spacing: 0.2em;
  line-height: 1em;

  span {
    display: inline-block;
    font-size: 40px;
    letter-spacing: 0.2em;
  }
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
}

.tutorial-wrap {
  position: relative;

  width: clamp(320px, 41.7vw, 600px);
  aspect-ratio: 3 / 2;
}

.touchdesigner-ui-wrap {
  position: relative;

  width: 100%;
  height: clamp(220px, 22.15vw, 319px);
}

.beginner {
  background-image: url("./images/touchdesigner-beginner.png");
  background-size: cover;
}

.vj-loop {
  background-image: url("./images/touchdesigner-vj-loop.png");
  background-size: cover;
}

.tutorial-wrap:nth-child(1) {
  margin-top: clamp(32px, 5.56vw, 80px);
  grid-row: 1;
  grid-column: 9 / 14;
}

.tutorial-wrap:nth-child(2) {
  margin-top: clamp(64px, 11.11vw, 160px);
  grid-row: 2;
  grid-column: 2 / 7;
}

.tutorial-movie {
  position: absolute;
  top: 0px;
  right: clamp(10px, 1.8vw, 26px);
  width: clamp(260px, 33.33vw, 480px);
  aspect-ratio: 16/9;
  height: auto;
}

.tutorial-text {
  color: var(--main);

  font-size: clamp(14px, 1.67vw, 24px);
  letter-spacing: 0.2em;
}

.download-btn-under-wrap {
  margin-top: 260px;
  grid-row: 3;
  grid-column: 11 / 14;
  width: 330px;
  height: 72px;
  position: relative;
  isolation: isolate;
}

.download-btn--under {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 24px 32px;
  width: 100%;
  height: 100%;

  box-shadow: 0 0 10px var(--accent1);

  border: 1px solid var(--base);
  border-radius: 36px;

  background-color: var(--base);

  span {
    color: var(--accent1);
    text-shadow: none;

    transition:
      color 0.3s ease,
      text-shadow 0.3s ease;
  }

  .btn-arrow {
    border: 1px dashed var(--accent1);
  }

  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    opacity 0.3s ease;
}

.first-wrap--cta::before,
.second-wrap--cta::before,
.third-wrap--cta::before {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  color: transparent;
  -webkit-text-stroke: 1px var(--main);

  font-size: clamp(120px, 14vw, 256px);
  letter-spacing: 0.2em;

  opacity: 10%;
  z-index: -1;

  pointer-events: none;
  user-select: none;
  transition: none;
}

.first-wrap--cta::before {
  content: attr(data-bg-left);
  left: clamp(-900px, -52vw, -220px);
}

.second-wrap--cta::before {
  content: attr(data-bg-right);
  right: clamp(-900px, -52vw, -220px);
}

.third-wrap--cta::before {
  content: attr(data-bg-left);
  left: clamp(-900px, -52vw, -220px);
}

.download-btn--under:hover {
  transform: scale(1.05);
  background-color: var(--accent1);
  opacity: 0.9;

  span {
    color: var(--base);
    text-shadow: 0 0 10px var(--base);
  }

  .btn-arrow {
    border: 1px dashed var(--base);
    animation: rotate-arrow 0.6s ease-in-out 1;
  }
}

@media (max-width: 1023px) {
  #cta .container {
    margin-top: 160px;
  }

  .cta-title {
    font-size: 48px;

    span {
      font-size: 28px;
    }
  }

  .touchdesigner-ui-wrap {
    height: clamp(164px, 21.8vw, 220px);
  }

  .tutorial-movie {
    right: clamp(15px, 1.2vw, 20px);
    width: clamp(254px, 33.2vw, 340px);
  }

  .download-btn-under-wrap {
    margin-top: 160px;
    grid-column: 10 / 13;
    width: 300px;
    height: 64px;
  }

  .btn-text,
  .btn-arrow {
    font-size: 14px;
  }

  .btn-arrow {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 767px) {
  #cta .container {
    margin-top: 100px;
  }

  .cta-title {
    padding: 0 clamp(45px, 10vw, 80px);
    font-size: clamp(20px, 4.5vw, 36px);

    span {
      font-size: 20px;
    }
  }

  .tutorial-wrap {
    width: clamp(180px, 42vw, 320px);
  }

  .touchdesigner-ui-wrap {
    height: clamp(96px, 22vw, 170px);
  }

  .tutorial-movie {
    right: clamp(6px, 1.2vw, 12px);
    width: clamp(145px, 34vw, 260px);
  }

  .tutorial-text {
    font-size: 12px;
  }

  .first-wrap--cta::before,
  .second-wrap--cta::before,
  .third-wrap--cta::before {
    display: none;
  }

  .download-btn-under-wrap {
    grid-column: 9 / 12;
    width: clamp(145px, 34vw, 260px);
    height: clamp(52px, 8vw, 64px);
  }

  .btn-text,
  .btn-arrow {
    font-size: clamp(8px, 1.5vw, 12px);
  }

  .btn-arrow {
    width: clamp(16px, 4vw, 30px);
    height: clamp(16px, 4vw, 30px);
  }
}

/* =====footer===== */
footer {
  margin-top: 320px;
  padding: 48px;

  background-color: var(--main);

  color: var(--base);
}

.footer-title {
  margin-top: 48px;

  font-size: 32px;
  letter-spacing: 0.2em;
}

.footer-links {
  margin: 24px 0 8px;

  font-size: 24px;
  letter-spacing: 0.2em;
}

.footer-link {
  display: block;

  color: var(--base);

  font-size: 16px;
  letter-spacing: 0.2em;
}

.footer-link i {
  margin-left: 0.2em;
  font-size: 0.7em;
  line-height: 1.5rem;
}

.footer-copyright {
  margin-top: 40px;

  font-size: 12px;
  letter-spacing: 0.2em;
}

@media (max-width: 1023px) {
  footer {
    margin-top: 240px;
  }

  .footer-title {
    margin-top: 36px;
    font-size: 28px;
  }

  .footer-links {
    font-size: 20px;
  }

  .footer-link {
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  footer {
    margin-top: 120px;
  }

  .footer-title {
    margin-top: 24px;
    font-size: 24px;
  }
}
