@import "../component-sharing-swiper/style.css";

.home-sharing {
  padding-top: 80px;
  padding-bottom: 80px;
}

.home-sharing > a {
  margin: 40px auto 0;
  display: none;
}

.home-sharing-intro {
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 60px;
  display: grid;
}

.home-sharing-title {
  z-index: 1;
  grid-column: span 5;
  position: relative;
}

.home-sharing-title > h2 {
  color: var(--color-primary-2);
  margin-bottom: 24px;
}

.home-sharing-title > h3 > span {
  font-family: inherit;
  display: block;
}

.home-sharing-title > h3 > span:nth-child(2) {
  text-align: end;
}

.home-sharing-title > .circle {
  z-index: -1;
  aspect-ratio: 1;
  background-color: var(--color-primary-3);
  border-radius: 50%;
  width: 60px;
  position: absolute;
  bottom: 57px;
  right: -30px;
}

.home-sharing-content {
  grid-column: span 6 / -1;
}

.home-sharing-content > p {
  white-space: pre-line;
  margin-bottom: 24px;
}

.home-sharing-content > a {
  margin-left: auto;
}

@media screen and (max-width: 1023px) {
  .home-sharing-title {
    grid-column: span 6;
  }

  .home-sharing-title > .circle {
    bottom: 52px;
    right: -10px;
  }
}

@media screen and (max-width: 767px) {
  .home-sharing > a {
    display: flex;
  }

  .home-sharing-intro {
    grid-template-columns: 100%;
    gap: 40px;
    margin-bottom: 40px;
  }

  .home-sharing-title {
    grid-column: auto;
    max-width: 350px;
  }

  .home-sharing-title > .circle {
    bottom: 15px;
    right: -34px;
  }

  .home-sharing-content {
    grid-column: auto;
  }

  .home-sharing-content > p {
    margin-bottom: 0;
  }

  .home-sharing-content > a {
    display: none;
  }
}

@media screen and (max-width: 575px) {
  .home-sharing {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .home-sharing-title > .circle {
    bottom: 15px;
    right: -20px;
  }
}