@import url(lower.css);

.contents {
  width: min(100%, 700px);
  margin-inline: auto;
}
.contents h3 {
  font: 500 1.6em var(--weight-variable);
  margin-bottom: 1em;
}
.contents p {
  line-height: 1.8;
}
.contents p ~ p {
  margin-top: 1em;
}
.figure {
  width: fit-content;
  margin: max(5vw, 50px) auto 0;
  display: flex;
  gap: 4vw;
}
.figure li {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
}
.figure li span {
  position: relative;
  font: 400 1rem var(--weight-variable);
  translate: 0 20px;
  opacity: 0;
  transition: 0.6s;
}
.figure li.show span {
  translate: 0 0;
  opacity: 1;
}
.figure li:first-child span {
  transition-delay: 0.6s;
}
.figure li:nth-child(2) span {
  transition-delay: 0.8s;
}
.figure li:last-child span {
  transition-delay: 1s;
}
.figure li::before {
  position: absolute;
  content: "";
  inset: 1px;
  border-radius: 50%;
  background-color: #fff;
}

.hero ~ section {
  padding-bottom: max(7vw, 60px);
}
.service ~ section h2 {
  font: 500 max(2.8vw, 2em) var(--weight-variable);
  margin-bottom: max(3vw, 1.6rem);
  width: fit-content;
  position: relative;
  padding: 0.2em 2em;
  overflow: hidden;
  transition: 0.8s;
}
.service ~ section h2::before {
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 1;
}
.service ~ section.show h2 {
  padding-left: 0;
}
.service ~ section.show h2::before {
  animation: over-shape 0.8s forwards;
}
.service ~ section h2::after {
  content: attr(data-en);
  display: block;
  font-size: 1.4rem;
  font-weight: 200;
  padding-top: 0.2em;
  white-space: nowrap;
}

.ses,
.in-house {
  background-color: var(--bg-c);
}
.cards {
  margin-top: max(5vw, 50px);
  display: flex;
  flex-wrap: wrap;
  margin-inline: auto;
  gap: max(3vw, 1em);
  justify-content: center;
}
.card {
  display: flex;
  padding: max(2vw, 1.4em);
  background-color: #fff;
  border-radius: 2em;
  width: 380px;
  place-items: center;
  place-content: center;
  gap: max(2vw, 1.4em);
  opacity: 0;
  translate: 0 20px;
  transition: 0.6s;
}
.cards.show .card {
  opacity: 1;
  translate: 0;
}
.card img {
  width: 40%;
  order: 1;
  order: 1;
}
.card:first-child img,
.card:nth-child(5) img {
  width: 34%;
}
.card:nth-child(3) img,
.card:nth-child(4) img {
  scale: -1 1;
}
.card .info {
  flex: 1;
}
.info .type {
  padding-top: 0.2em;
  display: flex;
  gap: 0.4em;
}
.type span {
  padding: 0.2em 0.8em;
  border-radius: 2em;
  color: #fff;
  font-weight: 500;
  background: linear-gradient(-45deg, var(--friend-c), var(--light-c));
}
.card:last-child .type span {
  font: 500 1rem var(--weight-variable);
}
.prof {
  border-bottom: 1px solid;
  padding-bottom: 0.4em;
  margin-bottom: 0.6em;
}

.works {
  margin-top: max(5vw, 50px);
}
.works h3 {
  width: fit-content;
  margin-inline: auto;
  font-size: max(7vw, 48px);
  font-weight: 600;
  background: linear-gradient(
    0deg,
    var(--primary-c),
    var(--font-c) 50%,
    var(--primary-c) 50%,
    var(--secondary-c)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  line-height: 0.8;
  margin-bottom: max(8vw, 50px);
}
.works h3:before {
  position: absolute;
  content: attr(data-text);
  inset: auto 0 -95%;
  background: linear-gradient(0deg, var(--primary-c), #fff 70%);
  background-clip: text;
  -webkit-background-clip: text;
  opacity: 0.2;
  scale: 1 -1;
  translate: 7%;
  transform: skew(-30deg);
}
.works-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.works-link a {
  flex: 1;
  aspect-ratio: 16/9;
  display: flex;
  padding: max(2vw, 1em) max(4vw, 1em);
  justify-content: space-between;
  line-height: 0.8;
  align-items: end;
  color: #fff;
  font-size: max(3.4vw, 2em);
  position: relative;
}
.works-link a::before {
  position: absolute;
  content: "";
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: 0.4s;
}
.works-link a:hover::before {
  opacity: 1;
}
.works-link a > * {
  position: relative;
}
.works .site {
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, .8) 70%, rgba(0, 0, 0, .9)),
    url(../img/site.jpg) center center/cover;
}
.works .system {
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, .8) 70%, rgba(0, 0, 0, .9)),
    url(../img/system.jpg) center center/cover;
}
.works-link h4 {
  font-weight: 500;
}
.works-link h4:after {
  display: block;
  font-size: 1rem;
  content: attr(data-ja);
  margin-top: 1em;
  opacity: 0.6;
}
.works-link a span {
  display: grid;
  place-items: center;
  width: 3em;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid;
  translate: -12px;
  transition: 0.4s;
}
.works-link a:hover span {
  translate: 0;
}

.released {
  display: flex;
  gap: 5%;
  margin-top: max(5vw, 50px);
  align-items: start;
}
.released img {
  display: block;
  width: 40%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 2em;
}
.released h3 {
  font: 500 1.6em var(--weight-variable);
  padding-bottom: 0.6em;
  margin-bottom: 0.8em;
  position: relative;
}
.released h3::before {
  position: absolute;
  content: "";
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, var(--light-c), var(--primary-c));
  scale: 0 1;
  transform-origin: left;
  transition: 4s;
}
.released h3.show::before {
  scale: 1 1;
}
.released .more-btn {
  margin: 10px 0 auto auto;
}
.released .more-btn span {
  rotate: -45deg;
}
.released p {
  line-height: 1.8;
}
.all-assist .more-btn {
  padding: 1em 1.6em;
  font: 500 1.2em var(--weight-variable);
  color: #999;
  border-radius: 0;
}

@media (width < 1024px) {
  .hero h1::after {
    width: 210px;
  }
  .card {
    width: 334px;
  }
  .card img {
    width: 36%;
  }
  .card:first-child img,
  .card:nth-child(5) img {
    width: 30%;
  }
  .released {
    flex-direction: column;
    width: min(100%, 460px);
    margin-inline: auto;
  }
  .released img {
    width: 100%;
    margin-bottom: 1.6em;
  }
}

@media (width < 768px) {
  .hero h1 {
    font-size: 2.8em;
    line-height: 1.2;
    padding-bottom: .4em;
  }
  .hero h1::after {
    top: -1.6em;
  }
  .service ~ section h2::after {
    font-size: 1.2rem;
  }  
  .figure li {
    width: 100px;
  }
  .contents h3 {
    font-size: 1.3em;
  }
}