/* ダイアログ操作時 */
html:has(dialog[open]) {
  overflow: hidden;
}

.item__detail:has(dialog[open]) {
  overflow: hidden;
}

.ctg.original .item__detail .btn.option {
  margin-top: 30px !important;
}

/* modal */
.open-modal {
  color: #fff;
  display: block;
  padding: 10px 0;
}

.ugc-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 3;
  border: none;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  height: 350px;
  width: 800px;
  background-color: #fefefe;
}

span.closeModal {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  right: 0;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  width: 50px;
  height: 50px;
}

.modal-content h3 {
  letter-spacing: 1px;
}

@media screen and (max-width:1200px) {

  .modal-content {
    max-width: 85%;
    height: auto;
  }

  .modal-content .row {
    row-gap: 2rem;
  }
}

@media screen and (max-width:767px) {

  .open-modal {
    padding: 0;
  }

  span.closeModal {
    font-size: 25px;
    right: -1.7%;
    width: 40px;
    height: 40px;
  }
}

/* modal以外 */
.ugc_area {
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
}

.ugc_area p {
  margin-bottom: 0;
}

.ugc-area_grid {
  column-gap: 16px;
  row-gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: inline-grid;
}

.ugc_box {
  border-radius: 3px;
  border: 1px solid #ccc;
  margin: auto;
}

.ugc_box .txt--area {
  padding: 1rem;
  flex-direction: column;
  flex: 1 1 0%;
  display: flex;
}

.ugc_box .txt--area h3 {
  font-size: 14px;
  line-height: 20px;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity));
  font-weight: 500;
  margin-bottom: .5rem;
}

.ugc_box h3 .user-area {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.ugc_box h3 .user-area img {
  border-radius: 999px;
  --tw-border-spacing-x: 2rem;
  --tw-border-spacing-y: 2rem;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
  padding: .125rem;
  border-width: 2px;
  --tw-border-opacity: 1;
  border-color: rgb(220 38 38 / var(--tw-border-opacity));
  width: 2.5rem;
}

.ugc_box h3 .user-area .user-detail {
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  align-items: center;
  --tw-space-x-reverse: 0;
  margin-right: calc(.5rem* var(--tw-space-x-reverse));
  margin-left: calc(.5rem* calc(1 - var(--tw-space-x-reverse)));
}

.ugc_box h3 .user-area .user-detail p.userid {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 0;
  font-weight: bold;
}

.ugc_box h3 .user-area .user-detail p.userid {
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 0;
  font-weight: bold;
}

.ugc_box h3 .user-area .user-detail p.follower {
  font-size: 11px;
  line-height: 16px;
  margin-bottom: 0;
}

.ugc_box .txt--area .post-txt {
  position: relative;
}

.ugc_box .txt--area .post-txt p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity));
  line-height: 16px;
  font-size: 12px;
  margin-bottom: 0;
}

.ugc_box .txt--area .post-reaction {
  display: none;
  /* --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity));
    line-height: 20px;
    font-weight: 500;
    font-size: 14px;
    padding-top: .75rem;
    justify-items: center;
    justify-content: flex-end;
    flex-direction: column;
    flex: 1 1 0%;
    display: flex;
    margin-top: auto; */
}

.ugc_box .txt--area .post-reaction .reaction--detail {
  justify-content: space-around;
  flex-direction: row;
  display: flex;
}

.ugc_box .txt--area .post-reaction .good,
.ugc_box .txt--area .post-reaction .comment {
  align-items: center;
  flex-direction: row;
  display: flex;
}

.ugc_box .txt--area .post-reaction .good img,
.ugc_box .txt--area .post-reaction .comment img {
  width: 16px;
  display: inline;
}

.ugc_box .txt--area .post-reaction .good span,
.ugc_box .txt--area .post-reaction .comment span {
  --tw-space-x-reverse: 0;
  margin-right: calc(.25rem* var(--tw-space-x-reverse));
  margin-left: calc(.25rem* calc(1 - var(--tw-space-x-reverse)));
  width: .25rem;
}


.modal-content h2.user-area {
  padding-right: 3rem;
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity));
  line-height: 28px;
  font-weight: 700;
  font-size: 18px;
  column-gap: .5rem;
  align-items: center;
  flex-direction: row;
  width: 100%;
  display: flex;
}

.modal-content .user-area img {
  padding: .125rem;
  --tw-border-opacity: 1;
  border-color: rgb(220 38 38 / var(--tw-border-opacity));
  border-width: 2px;
  border-radius: 9999px;
  --tw-border-spacing-x: 2rem;
  --tw-border-spacing-y: 2rem;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
  width: 2.5rem;
  display: inline;
}

.modal-content .user-area {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  flex-grow: 1;
  display: flex;
}

.modal-content .user-area .user-detail {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  flex-grow: 1;
  display: flex;
}

.modal-content .user-area .user-detail p.userid {
  font-size: 16px;
  line-height: 24px;
}

.modal-content .user-area .user-detail p.follower {
  font-size: 14px;
  line-height: 20px;
}

.modal-content .date {
  display: none;
  /* --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity));
    line-height: 20px;
    font-size: 14px; */
}

.modal-content .post-txt {
  position: relative;
}

.modal-content .post-txt p {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity));
  line-height: 20px;
  font-size: 14px;
  padding-right: 1rem;
  white-space: pre-line;
  overflow-y: auto;
  max-height: 100%;
  height: 25rem;
  display: block;
  -webkit-box-orient: horizontal;
  -webkit-line-clamp: none;
}

@media screen and (max-width:640px) {

  .ugc-area_grid {
    column-gap: 12px;
    row-gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: inline-grid;
  }

  .ugc_box .txt--area .post-txt p {}


  .modal-content .post-txt p {}
}


/* modal内のスライダー */
.modal-content .swiper-button-next {
  color: #666;
  background: #fff;
  top: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 50px;
}

.modal-content .swiper-button-prev {
  color: #666;
  background: #fff;
  top: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 50px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
}

.modal-content .swiper-pagination-bullet-active {
  opacity: var(--swiper-pagination-bullet-opacity, 1);
  background: #fff !important;
}

.swiper-slide video {
  max-width: 100%;
  max-height: 100%;
}

/* ミュートボタン */
.swiper-slide.volume-on::before {
  background-image: url(../../img/ugc/common-parts/volume-ON.png);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: top center;
  content: "";
  display: block;
  position: fixed;
  top: 80%;
  right: 0;
  bottom: 0;
  left: 75%;
  z-index: 4;
}

.swiper-slide.volume-off::before {
  background-image: url(../../img/ugc/common-parts/volume-OFF.png);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: top center;
  content: "";
  display: block;
  position: fixed;
  top: 80%;
  right: 0;
  bottom: 0;
  left: 75%;
  z-index: 4;
}

@keyframes blurAnime {
  from {
    opacity: 1;
    display: block;
  }

  to {
    opacity: 0;
    display: none;
  }
}