/* リンク装飾 */
.link {
  color: rgb(91, 145, 217);
  text-decoration: underline;
}

.link-button {
  background-color: var(--surface-primary);
  border-radius: var(--rd-xl);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.link-inner {
  color: rgb(91, 145, 217);
  text-decoration: underline;
  border-top: solid var(--border-2) var(--border-base);
  border-bottom: solid var(--border-2) var(--border-base);
  padding: var(--sp-lg) 0px;
  display: block;
  position: relative;
}

.link-inner:after {
  content: "";
  position: absolute;
  display: block;
  height: 10px;
  width: 10px;
  border-bottom: solid var(--border-2) var(--border-primary);
  border-right: solid var(--border-2) var(--border-primary);
  right: 4px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* リンクカード */
.link-card {
  border: solid var(--border-1) var(--border-base);
  border-radius: var(--rd-md);
  display: flex;
  position: relative;
  width: 100%;
  height: 120px;
  /* ラベルの分マージンを取る */
  margin-top: 16px; 
}

.link-card-related-articles {
  background-color: var(--surface-primary);
  color: var(--text-white);
  font-weight: bold;
  position: absolute;
  padding: var(--sp-sm) var(--sp-base);
  left: 16px;
  top: -16px;
  border-radius: var(--rd-md);
}

.link-card-container {
  width: 80%;
  padding: var(--sp-base);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-sm);
  /* ラベルの分余白を取る */
  padding: 16px;
}

.link-card-img {
  border-radius: 0 var(--rd-md) var(--rd-md) 0;
  height: 100%;
}

@container (max-width: 600px) {
  .link-card {
    height: 100px;
  }

  .link-card-related-articles {
    font-size: var(--fs-xs);
  }

  .link-card-title {
    font-size: var(--fs-xs);
  }

  .link-card-img {
    height: 100%;
    width: 45%;
  }
}
