#mainvisual {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
}
#mainvisual .hero {
  margin-top: var(--space-medium);
  text-align: center;
  line-height: 2;
}
#mainvisual section {
  text-align: center;
  margin-top: var(--space-small);
}
@media (min-width: 600px) {
  br.mobile {
    display: none;
  }
}

#technologies {
  margin-top: var(--space-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroller {
  max-width: 100%;
  --gap: min(9vw, 100px);
}
.scroller-inner svg {
  flex-shrink: 0;
  min-width: 40px;
}
@media (prefers-color-scheme: dark) {
  #technologies path {
    fill: var(--gray);
  }
}

.scroller[data-animated=true] {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg,
      transparent,
      var(--foreground) 20%,
      var(--foreground) 80%,
      transparent);
  mask: linear-gradient(90deg,
      transparent,
      var(--foreground) 20%,
      var(--foreground) 80%,
      transparent);
}
.scroller-inner {
  padding-block: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem var(--gap);
}
.scroller[data-animated=true] .scroller-inner {
  width: fit-content;
  flex-wrap: nowrap;
  animation: scroll var(--animation-duration, 40s)
  var(--animation-direction, forwards)
  linear infinite;
}
.scroller[data-direction="right"] {
  --animation-direction: reverse;
}
@keyframes scroll {
  to {
    transform: translate(calc(-50% - calc(var(--gap) / 2)));
  }
}

#service {
  margin-top: var(--space-large);
}
#service .cards {
  display: flex;
  justify-content: space-between;
}
#service .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  background-color: var(--card);
  width: max(30%, 11rem);
  padding: 2rem 0;
  border-radius: var(--radius-medium);

  margin-top: var(--space-small);
}
#service .card .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 599px) {
  #service .cards {
    flex-direction: column;
    align-items: center;
  }
  #service .card {
    width: 100%;
  }
}

#product {
  margin-top: var(--space-large);
}
.trust-care-card {
  margin-top: var(--space-small);
  width: 100%;
  height: auto;
  background-color: var(--card);
  border-radius: var(--radius-large);
  padding: 3rem 5%;
  
  display: flex;
  align-items: center;
  gap: clamp(1rem, -3rem + 10.67vw, 3rem);
}
.trust-care-card .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, -0.5rem + 4vw, 2.5rem);
}
.trust-care-card .text .header {
  display: flex;
  gap: 1em;
  align-items: baseline;
  flex-wrap: wrap;
}
.trust-care-card img {
  width: 45%;
  margin: auto 0;
  border-radius: var(--radius-medium);
}
@media (max-width: 599px) {
  .trust-care-card {
    flex-direction: column;
  }
  .trust-care-card .text {
    text-align: left;
  }
  .trust-care-card h3,
  .trust-care-card .caption {
    max-width: 20rem;
  }
  .trust-care-card img {
    width: 100%;
    max-width: 24rem;
    margin-top: clamp(1rem, -0.5rem + 4vw, 2.5rem);
  }
}

#information {
  margin-top: var(--space-large);
}
#information .cards {
  display: flex;
  justify-content: space-between;
}
#information .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  background-color: var(--card);
  width: 48%;
  padding: 2rem 0;
  border-radius: var(--radius-medium);

  margin-top: var(--space-small);
}
#information .card .button {
  background-color: var(--foreground);
  color: var(--background);
  padding: 0.5rem 1.4rem;
  border-radius: 1.4rem;
}
#information .card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#information .card li {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, -3.125rem + 10vw, 2.5rem);
}
@media (max-width: 599px) {
  #information .cards {
    flex-direction: column;
    align-items: center;
  }
  #information .card {
    width: 100%;
  }
}

footer {
  color: #fff;
}
footer .arrow path {
  stroke: #fff;
}
footer .wrapper {
  margin-top: var(--space-large);
  position: relative;
}
footer .image img {
  border-radius: var(--radius-large);
  width: 100%;
  height: 600px;
  object-fit: cover;

  position: absolute;
  top: 0;
  left: 0;
}
footer .contents {
  height: 540px;
  position: absolute;
  top: clamp(3.125rem, 1.458rem + 6.67vw, 5.625rem);
  left: 10%;
  right: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
footer .contents .text {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
footer .contents .text h3:hover {
  opacity: 1;
  color: var(--accent);
}
footer .en {
  margin-top: clamp(0.5rem, 2.67vw, 1rem);
}
footer .contents .logo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}
footer .contents .logo img {
  text-align: center;
  max-width: 90%;
}
@media (max-width: 599px) {
  footer .contents .text {
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
}

/* scroll */
@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
* {
  animation: appear 0.5s ease-out both;
}
@supports (animation-timeline: view()) {
  * {
    animation: appear ease;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }
}
