/* 記事下いいね */
.c-post-like {
  display: grid;
  align-content: start;
  row-gap: 30px;
  padding: 50px;
  background-color: var(--tcd-post-like-bg-color, #f6f6f6);
  border-radius: 5px;
  text-align: center;
}

.c-post-like-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  margin-block: var(--tcd-half-read);
}

.c-post-like-desc {
  font-size: 16px;
  line-height: 2;
  margin-block: var(--tcd-half-read);
}

.c-post-like-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  justify-self: center;
  width: 120px;
  height: 50px;
  background: #ffffff;
  border-radius: calc(infinity * 1px);
  color: var(--tcd-like-color, var(--tcd-accent-color));
  font-size: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.c-post-like-button:after {
  content: attr(data-count);
}

.c-post-like-button-icon {
  display: grid;
  font-size: 1.1em;
  width: 1em;
  height: 1em;
}

.c-post-like-button-icon:before {
  content: '';
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M479.62-171.62q-12.85 0-25.81-4.61-12.96-4.62-22.81-14.46l-57.46-52.23q-106.38-97-189.96-190.58Q100-527.08 100-634q0-85.15 57.42-142.58Q214.85-834 300-834q48.38 0 95.58 22.31 47.19 22.31 84.42 72.46 37.23-50.15 84.42-72.46Q611.62-834 660-834q85.15 0 142.58 57.42Q860-719.15 860-634q0 108.08-85 202.73-85 94.65-189.54 188.96l-56.85 51.62q-9.84 9.84-22.99 14.46-13.16 4.61-26 4.61Zm-28.39-506.84q-32.46-49.46-68.35-72.5Q347-774 300-774q-60 0-100 40t-40 100q0 48.15 31.04 100.69t77.92 104.46q46.88 51.93 101.58 101.46 54.69 49.54 101.38 92.08 3.46 3.08 8.08 3.08t8.08-3.08q46.69-42.54 101.38-92.08 54.7-49.53 101.58-101.46 46.88-51.92 77.92-104.46Q800-585.85 800-634q0-60-40-100t-100-40q-47 0-82.88 23.04-35.89 23.04-68.35 72.5-5.08 7.69-12.77 11.54-7.69 3.84-16 3.84-8.31 0-16-3.84-7.69-3.85-12.77-11.54ZM480-502.54Z"/></svg>') no-repeat center / 1.2em;
  background: currentColor;
}

[data-status="liked"]>.c-post-like-button-icon:before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M479.62-171.62q-12.85 0-25.81-4.61-12.96-4.62-22.81-14.46l-57.46-52.23q-106.38-97-189.96-190.58Q100-527.08 100-634q0-85.15 57.42-142.58Q214.85-834 300-834q48.38 0 95.58 22.31 47.19 22.31 84.42 72.46 37.23-50.15 84.42-72.46Q611.62-834 660-834q85.15 0 142.58 57.42Q860-719.15 860-634q0 108.08-85 202.73-85 94.65-189.54 188.96l-56.85 51.62q-9.84 9.84-22.99 14.46-13.16 4.61-26 4.61Z"/></svg>');
}

@media (any-hover: hover) {
  .c-post-like-button:hover {
    box-shadow: 0px 2px 25px -6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
  }
}

@media (max-width: 767px) {

  .c-post-like {
    row-gap: 25px;
    padding: 30px 25px;
  }

  .c-post-like-title {
    font-size: 16px;
  }

  .c-post-like-desc {
    font-size: 14px;
  }

  .c-post-like-button {
    font-size: 12px;
  }
}

/* いいねウィジェット */
.p-widget-post-like-list {}

.p-widget-post-like-item {
  display: grid;
  grid-template-columns: 45px 1fr;
  grid-template-rows: 90px;
  column-gap: 1px;
  background: #ffffff;
  border: 1px solid #dddddd;
  font-size: 14px;
}

*+.p-widget-post-like-item {
  position: relative;
  margin-top: -1px;
}

.p-widget-post-like-item-count {
  display: grid;
  place-content: center;
  place-items: center;
  row-gap: 0.4em;
  color: var(--tcd-accent-color);
  line-height: 1;
  background: var(--tcd-post-like-bg-color, #f6f6f6);
}

.p-widget-post-like-item-count:before {
  content: '';
  display: block;
  width: 1em;
  height: 1em;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M479.62-171.62q-12.85 0-25.81-4.61-12.96-4.62-22.81-14.46l-57.46-52.23q-106.38-97-189.96-190.58Q100-527.08 100-634q0-85.15 57.42-142.58Q214.85-834 300-834q48.38 0 95.58 22.31 47.19 22.31 84.42 72.46 37.23-50.15 84.42-72.46Q611.62-834 660-834q85.15 0 142.58 57.42Q860-719.15 860-634q0 108.08-85 202.73-85 94.65-189.54 188.96l-56.85 51.62q-9.84 9.84-22.99 14.46-13.16 4.61-26 4.61Z"/></svg>') no-repeat center / 1.2em;
  background: currentColor;
}

.p-widget-post-like-item-title {
  --tcd-line-clamp: 2;
  align-self: center;
  font-weight: 600;
  line-height: 1.8;
  height: auto;
  padding-inline: 20px;
}