/* ── oEmbed ブログカード ─────────────────── */

.wp-embed {
  position: relative;
  font-family:
    "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic",
    sans-serif;
}

.wp-embed a {
  display: block;
  text-decoration: none;
  color: #323232;
  transition: 0.3s;
}

.wp-embed-wrapper {
  border: 1px solid #ccc;
  padding: 20px 20px 16px;
}

.wp-embed-inner {
  position: relative;
  display: flex;
}

.wp-embed-img {
  width: 30%;
  flex-shrink: 0;
  aspect-ratio: 210 / 118;
  align-self: start;
}

.wp-embed-img picture {
  display: block;
  height: 100%;
}

.wp-embed-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-embed-contents {
  margin-left: 24px;
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wp-embed-heading {
  font-size: 16px;
  font-weight: bold;
  margin: 16px 0 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wp-embed-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 5px;
}

.wp-embed-site-title {
  font-size: 12px;
}

.wp-embed-site-title a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wp-embed-site-title img {
  width: 16px;
  height: 16px;
}

.wp-embed-site-title span {
  margin-left: 6px;
}

.wp-embed-more {
  margin: 0;
}

.wp-embed-more a {
  position: relative;
  text-decoration: none;
  font-size: 13px;
  padding-right: 10px;
  text-align: right;
  color: #777;
}

.wp-embed-more a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: solid 1px;
  border-right: solid 1px;
  transform: translateY(-50%) rotate(45deg);
}

.screen-reader-text {
  display: none;
}

@media (hover: hover) {

  .wp-embed a:hover,
  .wp-embed-more a:hover {
    color: #1349c8;
    text-decoration: underline;
  }
}

@media screen and (max-width: 768px) {
  .wp-embed-contents {
    margin-left: 12px;
  }

  .wp-embed-heading {
    font-size: 13px;
    margin-top: 8px;
  }

  .wp-embed-wrapper {
    padding: 12px 12px 8px;
  }

  .wp-embed-img {
    width: 38%;
  }

  .wp-embed-footer {
    flex-direction: column-reverse;
    align-items: flex-end;
    margin-top: 0;
  }

  .wp-embed-site-title {
    font-size: 10px;
  }

  .wp-embed-site-title img {
    width: 12px;
    height: 12px;
  }

  .wp-embed-site-title span {
    margin-left: 4px;
  }

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