a.wp-embed {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: #222;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: none;
  transition: opacity 0.15s ease;
}

a.wp-embed:hover {
  color: #222;
  text-decoration: none;
  opacity: 0.85;
}

a.wp-embed:hover .wp-embed-heading {
  color: #db570d;
}

/* コアの float / 余白を打ち消し */
.wp-embed-featured-image,
.wp-embed-featured-image.square,
.wp-embed-thumbnail {
  float: none;
  max-width: none;
  margin: 0;
}

.wp-embed-thumbnail {
  position: relative;
  flex: 0 0 36%;
  width: 36%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.wp-embed-thumbnail img,
.wp-embed-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
}

.wp-embed-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 1rem 1.25rem;
}

p.wp-embed-heading {
  margin: 0;
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.wp-embed-excerpt {
  margin: 0;
  color: #555;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.wp-embed-excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.wp-embed .wp-embed-more {
  display: none;
}

@media screen and (max-width: 480px) {
  a.wp-embed {
    flex-direction: column;
    align-items: stretch;
  }

  .wp-embed-thumbnail {
    flex: none;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
  }
}
