/* リンクカード用スタイル */
.link-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
}

.link-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.link-card a {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 12px;
}

.link-card-content {
  flex: 1;
  padding-right: 12px;
  min-height: 80px;
}

.link-card-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

.link-card-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.link-card-domain {
  font-size: 0.8rem;
  color: #999;
}

.link-card-image {
  width: 100px;
  min-width: 100px;
  height: 100px;
  background-color: #f5f5f5;
}

.link-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.link-card.loading {
  background: #f8f8f8;
  animation: loading-pulse 1.5s infinite;
}
/* 画像がない場合のスタイル */
.link-card:not(:has(.link-card-image)) .link-card-content {
    padding-right: 0;
}

/* ダークモード */
html[theme="dark"]{
.link-card {background: #2a2a2a;}
.link-card:hover {box-shadow: 0 2px 8px rgba(0,0,0,0.3);}
.link-card-title{color: #c6c6c6;}
  .link-card-description{color: #aaa;}
}


  /* -------------- */
  /* ▼埋め込み動画 */
  /* -------------- */

/* [VIDEO]キャプションあり・外側要素 */
figure.embeddedvideo {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column-reverse;
}

/* [VIDEO]キャプション部分 */
.videotitle {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--usu-mozi-iro);
  padding: 0.2rem;
}

/* [VIDEO]video要素 */
video.embeddedvideo {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
}