/* リンクセクション */
#links {
  z-index: 100;
}

.about-links {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 3020px;
  flex-direction: column;
  padding: var(--section-padding);
  z-index: -5;
}

.about-links h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
}

.about-links-bg-image {
  position: absolute;
  width: 3000px;
  height: 4220px;
  top: -850px;
  background-image: url(../../images/topPage/qk_links_background.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center top;
  z-index: -10;
  pointer-events: none;
}

.about-links-bg-decoration {
  position: absolute;
  display: flex;
  align-self: center;
  justify-content: center;
  width: 1361px;
  height: 1047px;
  top: -750px;
  left: 50%;
  transform: translateX(-45%);
  z-index: -5;
  background-image: url(../../images/topPage/qk_links_decoration.svg);
  background-repeat: no-repeat center;
  background-size: 100%;
  margin-top: 500px;
  pointer-events: none;
}


.about-category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 320px;
  height: 600px;
  margin-top: 1100px;
  margin-bottom: 60px;
  gap: 60px;
}

.about-category h2 {
  margin-top: 100px;
}

.about-category p {
  font-family: var(--secondary-font);
  font-size: 14px;
  font-weight: bold;
  line-height: 41px;
  color: var(--text-color);
  text-align: left;
  color: #4e4e4e;
}

.about-category-title {
  font-family: var(--primary-font);
  font-size: 24px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #4e4e4e;
}

.about-qk-title {
  margin-left: 260px;
  font-size: 24px;
}

.about-bg-image {
  position: absolute;
  width: 1292px;
  height: 880px;
  right: -150%;
  transform: translateY(-20%);
  background-image: url(../../images/topPage/qk_decoration.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  z-index: -5;
  pointer-events: none;
}

/* リンクカテゴリー */
.links-category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 565px;
  height: 1454px;
  margin-top: 280px;
  margin-bottom: 60px;
  gap: 30px;
}

.links-category .title {
  font-size: 72px;
  color: #201F1C;
  text-align: center;
  margin-bottom: 0px;
}

.links-category h3 {
  font-family: var(--primary-font);
  font-size: 24px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #CB281D;
  text-align: left;
  margin-bottom: 20px;
}

.links-category p {
  font-family: var(--secondary-font);
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--text-color);
}

.links-bg-image {
  position: absolute;
  width: 1033px;
  height: 1100px;
  top: -130px;
  left: 0;
  transform: translateX(-20%);
  background-image: url(../../images/topPage/links_decoration.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
  z-index: -5;
  pointer-events: none;
}

.links-content-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 185px;
  padding: 0px 10px;
}

.links-category-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* リンク項目コンテナ */
.link-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  z-index: 100;
}

/* 個別リンク項目 */
.link-item {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  align-items: flex-start;
  width: 256px;
  gap: 16px;
  transition: box-shadow 0.3s ease;
}

.link-item:hover {
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-decoration: underline;
}

.link-item img {
  width: 256px;
  height: 192px;
  object-fit: cover;
  border-radius: 4px;
}

/* リンク情報 */
.link-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  pointer-events: auto;
}

.link-info h4 {
  font-family: var(--secondary-font);
  font-size: 1rem;
  text-align: left;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--text-color);
}

.link-info p {
  font-family: var(--secondary-font);
  font-size: 0.7rem;
  text-align: left;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--text-color);
}

/* リンクタイトル */
.link-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.link-title h4 {
  width: 100%;
}

.link-icon {
  width: 16px;
  height: 16px;
  margin: 0px 0px 0px 4px;
  transition: transform 0.3s ease;
}

.link-item:hover .link-icon {
  transform: translateX(2px);
}

/*ふわっとアニメーション用*/
.about-bg-image,
.about-category,
.links-category {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.about-category h2,
.about-category p {
  opacity: 0;
  transform: translateY(0px);
  transition: all 0.8s ease-out;
}

.about-bg-image.visible {
  opacity: 1;
  transform: translateY(-20%);
}

.about-category.visible,
.links-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-category.visible h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.about-category.visible p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}


/* レスポンシブ対応 */
/* PC表示のレスポンシブ */
@media screen and (min-width: 3000px) {
  .about-links-bg-image {
    width: 100%;
    height: 120%;
  }
}


/* スマホ表示のレスポンシブ */
@media (max-width: 700px) {
  .about-links {
    height: 2200px;
    background-color: #47C8B7;
  }

  .about-links .title {
    font-size: 40px;
    margin-bottom: 0px;
  }

  .about-links-bg-image {
    width: 100%;
    height: 2500px;
    top: -250px;
    background-repeat: no-repeat;
    background-size: 100%;
  }

  .about-bg-image {
    width: 534px;
    height: 590px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(../../images/topPage/sp_qk_decoration.svg);
  }

  .about-bg-image.visible {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
    left: 50%;
  }

  .about-links-bg-decoration {
    width: 427px;
    height: 341px;
    background-repeat: no-repeat;
  }

  .about-qk-title {
    margin-left: 130px;
    font-size: 16px;
  }

  .about-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
    gap: 5px;
  }

  .about-category p {
    width: 168px;
    font-size: 12px;
    font-weight: bold;
    line-height: 27px;
    letter-spacing: 0.05em;
  }

  .about-category-title {
    justify-content: flex-end;
  }

  .links-content-container {
    align-items: center;
    gap: 80px;
  }

  .links-category-container {
    width: 256px;
    align-items: flex-start;
  }

  .links-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    gap: 25px;
  }

  .links-category h3 {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    margin-left: 10px;
    text-align: left;
  }

  .links-bg-image {
    width: 387px;
    height: 1540px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(../../images/topPage/sp_links_decoration.svg);
  }

  .link-items {
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
  }

  .link-item {
    flex-direction: column;
    align-items: flex-start;
    width: 256px;
    height: 256px;
    gap: 10px;
  }

  .link-info {
    gap: 14px;
  }

  .link-info h4 {
    font-size: 16px;
  }

  .link-item img {
    width: 256px;
    height: 192px;
  }
}