/**
 * コメント入力欄
**/

.single-Comment {
  margin-top: 40px;
}

.single-Comment_Head {
    font-size: 24px;
    font-weight: bold;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(34,34,34,.12);
    margin-bottom: 16px;
}

.single-Comment_Head#comments {
  padding-top: 100px;
  margin-top: -60px;
}

.single-Comment_Desc {
    font-size: 14px;
    opacity: .7;
}

.single-Comment_Desc a {
  text-decoration: underline;
  color: #226CE0;
}
.single-Comment_Desc a:hover {
  text-decoration: none;
}

.single-Comment_Form {
    padding: 40px 0;
    width: 100%;
    position: relative;
}

.single-Comment_Form textarea {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  width: 100%;
  border: 1px solid #efefef;
}

.single-Comment_Form input[type="submit"] {
  display: block;
  width: 100%;
  border: 2px solid #d3533e;
  border-radius: 100px;
  color: #fff;
  padding: 8px;
  text-align: center;
  background-color: #d3533e;
  font-size: 1.2em;
  letter-spacing: 1px;
}

.single-Comment_Form input[type="submit"]:hover {
  background-color: transparent;
  color: #d3533e;
}

.single-Comment_Form .validation-error {
  color: #D54A28;
}

.single-Comment_Form_Note {
  text-align: center;
  font-size: .9em;
  color: #d3533e;
  letter-spacing: .5px;
  margin-top: 4px;
}

.comments-Form_Cancel {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 2rem;
  line-height: 1;
}

.comments-Form_Cancel a {
  color: #aeada2;
}

.comments-Form_Add {
  margin: 1em 0;
}

/* .comments-Form_Add_Text {
  color: #d3533e;
  font-weight: bold;
}

.comments-Form_Add_Text i {
  margin-right: 4px;
  font-size: 1.5rem;
  vertical-align: top;
} */

.comments-Form_Add_Button {
  background: none;
	border: none;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
  width: 100%;
  border: 2px dashed #efefef;
  border-radius: 12px;
  padding: 1rem;
  font-weight: bold;
  text-align: center;
  font-size: 1.1em;
  color: #aeada2;
  line-height: 1.2;
  cursor: pointer;
}

.comments-Form_Add_Button span {
  font-weight: normal;
  font-size: .7em;
}

.comments-Form_Add_Button span::before {
  content: "\A" ;
	white-space: pre ;
}

.comments-Form_Add input[type="file"] {
  display: none;
}

.comments-Form_Add .preview-items,
#modal-images .preview-items,
.single-Comnent_List_Images_Item {
  display: block;
  margin-top: .5%;
  background-size: cover;
  background-position: center center;
  position: relative;
}

.comments-Form_Add .preview-items::before,
#modal-images .preview-items::before,
.single-Comnent_List_Images_Item::before {
  content: '';
  display: block;
  padding-top: 66.67%;
}

.single-Comnent_List_Images_Item:hover {
  opacity: .7;
}

.comments-Form_Add .cancel::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f057";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 2rem;
  line-height: 1;
  /* color: #aeada2; */
  color: #fff;
  cursor: pointer;
}

.comments-Form_Add #preview-images,
.comments-Form_Add .preview-images,
#modal-images,
.single-Comnent_List_Images {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.group .depth-2 .single-Comnent_List_Images {
  width: 100%;
  margin-top: 2%;
  padding-left: 38px;
}
.comments-Form_Add .preview-items,
#modal-images .preview-items,
.single-Comnent_List_Images_Item {
  width: 33%;
  /* flex-grow: 1;
  margin: 1px; */
  /* border-radius: 8px; */
}
.comments-Form_Add .preview-items:not(:nth-of-type(3n-1)),
#modal-images .preview-items:not(:nth-of-type(3n-1)),
.single-Comnent_List_Images_Item:not(:nth-of-type(3n-1)) {
  margin-left: .5%;
}
.comments-Form_Add .preview-items:first-of-type,
#modal-images .preview-items:first-of-type,
.single-Comnent_List_Images_Item:first-of-type {
  width: 100%;
  margin: 0;
}
.comments-Form_Add .preview-items:first-of-type:nth-last-child(2),
#modal-images .preview-items:first-of-type:nth-last-child(2),
.single-Comnent_List_Images_Item:first-of-type:nth-last-child(2) {
  width: 49.75%;
}
.comments-Form_Add .preview-items:last-of-type:nth-of-type(2),
#modal-images .preview-items:last-of-type:nth-of-type(2),
.single-Comnent_List_Images_Item:last-of-type:nth-of-type(2) {
  width: 49.75%;
  margin: 0;
  margin-left: .5%;
}
.comments-Form_Add .preview-items:nth-of-type(n+4),
#modal-images .preview-items:nth-of-type(n+4),
.single-Comnent_List_Images_Item:nth-of-type(n+4) {
  width: 33%;
}

/* accordion */
#accordion-comment-form {
  display: none;
}
#accordion-comment-form + label {
    color: #d3533e;
    text-align: center;
    cursor: pointer;
    display: block;
    padding: 1rem;
    border: 1px solid #d3553e;
    border-radius: 4px;
    margin-top: 16px;
    margin-bottom: 24px;
}
#accordion-comment-form ~ .single-Comment_Form {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: all 0.3s;
  max-height: 0;
  overflow: hidden;
  display: none;
}
#accordion-comment-form:checked ~ label {
  display: none;
}
#accordion-comment-form:checked ~ .single-Comment_Form {
    display: block;
  max-height: none;
}

/* コメント不可時のdisabledボタン */
.title--disabled {
    text-align: center;
    display: block;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 16px;
    margin-bottom: 24px;
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    font-size: 13px;
}

/* いいねボタンのdisabled状態 */
.like.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/**
 * コメント一覧
**/
.single-Comment_List {
  padding: 0 0 20px;
}
@media screen and (max-width: 767px) {
  .single-Comment_List {
    margin: 0 calc(50% - 50vw);
  }
}
@media screen and (max-width: 1023px) {
  .single-Comment_List.border {
    border-bottom: 1px solid #ddd;
  }
}

.single-Comment_List_Item,
.single-Comment_List_Anchor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
@media (max-width: 767px) {
    .single-Comment_List_Item {
        font-size: 14px;
    }
}

.single-Comment_List_Item.depth-1 {
  padding: 16px;
}
.single-Comment_List_Item.depth-1:not(:first-of-type) {
  border-top: 1px solid rgba(34,34,34,.12);
}
@media (min-width: 768px) {
  .single-Comment_List_Item.depth-1 {
    padding: 24px 0;
  }
}

.comments-List.children {
  width: 100%;
}

.comments-List.children {
  padding-left: 38px;
}

@media screen and (min-width:1024px) {
  .single-Comment_List_Item:not(.forum) .comments-List.children {
    padding-left: 48px;
  }
}

/* .single-Forum .depth-1 > .children,
.single-Forum .depth-1 > form { */
.depth-1 > .children,
.depth-1 > form {
  padding-left: 0;
}


.children .single-Comment_List_Item:last-of-type {
  margin-bottom: 0;
}

.children .single-Comment_List_Item.forum {
  margin: 0;
}

.single-Comment_List_Form_Col {
  display: flex;
  align-items: center;
}

.single-Comment_List_Form_Col + .single-Comment_List_Sentence {
  border: 0;
  padding: 0;
}

.single-Comment_List_Icon {
  /*width: 60px;*/
  margin-right: 8px;
  line-height: 1;
}

.single-Comment_List_Icon::before {
  content: '';
  margin: 0;
}

.single-Comment_List_Icon img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.depth-3 .single-Comment_List_Icon img,
.depth-2 .single-Comment_List_Icon img,
.single-Comment_List_Form .single-Comment_List_Icon img {
  width: 30px;
  height: 30px;
}

@media screen and (min-width:768px) {
  .single-Comment_List_Icon img {
    width: 40px;
    height: 40px;
  }
}

.single-Comment_List_Name {
    font-weight: bold;

    /* 最大行数を設定 */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* mypageのコメント一覧 */
.single-Comment_List_Name a:hover {
  text-decoration: underline;
}

.single-Comment_List_Name span {
  /*display: inline-block;*/
  background-color: #AAAAAA;
  color: #fff;
  font-size: .9em;
  padding: 2px 8px;
  border-radius: 30px;
  line-height: 1;
  font-weight: normal;
  margin-left: 4px;
}

.dragon0.single-Comment_List_Name span {
  background-color: #633D93;
}
.dragon0.single-Comment_List_Name span::before {
  content: '月龍';
}

.dragon1.single-Comment_List_Name span {
  background-color: #B28146;
}
.dragon1.single-Comment_List_Name span::before {
  content: '地龍';
}

.dragon2.single-Comment_List_Name span {
  background-color: #84A4CA;
}
.dragon2.single-Comment_List_Name span::before {
  content: '水龍';
}

.dragon3.single-Comment_List_Name span {
  background-color: #D23043;
}
.dragon3.single-Comment_List_Name span::before {
  content: '火龍';
}

.dragon4.single-Comment_List_Name span {
  background-color: #6DBDB3;
}
.dragon4.single-Comment_List_Name span::before {
  content: '風龍';
}

.dragon5.single-Comment_List_Name span {
  background-color: #4D509F;
}
.dragon5.single-Comment_List_Name span::before {
  content: '空龍';
}

.dragon_hidden.single-Comment_List_Name span {
  display: none;
}

.single-Comment_List_Date {
    color: rgba(34,34,34,.5);
    font-size: 12px;
}
@media screen and (min-width: 768px) {
  .single-Comment_List_Date {
    font-size: 14px;
  }
}

.single-Comment_List_Content {
  flex: 1;
  line-height: 1.4;
}

.single-Comment_List_Sentence {
  padding: 12px;
  margin-top: 8px;
  width: 100%;
}

.depth-1 .single-Comment_List_Sentence {
  padding: 0;
  margin-bottom: 24px;
}

.single-Comment_List_Sentence p {
  margin: 0;
  line-height: 1.7;
}

.single-Comment_List_Form_Sentence .delete {
  position: absolute;
  top: 8px;
  right: 8px;
  line-height: 1;
  color: rgba(34,34,34,.5);
  font-size: .9em;
  cursor: pointer;
}

.single-Comment_List_Item .reply {
  text-align: right;
  line-height: 1;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0;
}

/* 返信ボタン */
.single-Comment_List_Item .reply span a {
  color: rgba(34,34,34,.5);
  text-decoration: none;
}
.single-Comment_List_Item .reply a::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f3e5";
  margin-right: 2px;
}

/* いいねボタン */
.comment .like,
.comment .edit {
  transition: none;
  margin-left: .5rem;
  cursor: pointer;
  color: rgba(34,34,34,.5);
}
.comment .like::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f164";
  margin-right: 2px;
}
.comment .like.active {
  color: #D1677E;
  border-color: #D1677E;
}
.comment .like.active::before {
  font-weight: 900;
}
.comment .like ~ .count {
  display: none;
  margin-left: 4px;
  font-size: 12px;
  cursor: pointer;
  color: rgba(34,34,34,.5);
}
.comment .like ~ .count.visible {
  display: inline;
}

.comment .single-Comment_List_Form_Sentence .count {
  margin-left: 8px;
}

.single-Comnent_List_Like {
  margin-top: 1rem;
  display: inline-block;
  margin-right: .5rem;
}
.single-Comnent_List_Like .like,
.single-Comnent_List_Like .edit {
  margin: 0;
  font-size: 1rem;
  border: 1px solid rgba(34,34,34,.12);
  padding: 8px 12px;
  border-radius: 100px;
}

/*
 * いいねModal
 */
.single-Comnent_List_Like_Modal {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  padding: 12px;
}
@media screen and (min-width:768px) {
  .single-Comnent_List_Like_Modal {
    width: 400px;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%,50%);
  }
}
.single-Comnent_List_Like_Modal.open {
  visibility: visible;
  opacity: 1;
}
.single-Comnent_List_Like_Modal_Inner {
  position: relative;
  background-color: #fff;
  border-radius: 4px;
  padding: 12px 20px;
}
.single-Comnent_List_Like_Modal_Head {
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}
.single-Comnent_List_Like_Modal ul {
  overflow-y: scroll;
  max-height: 200px;
}
.single-Comnent_List_Like_Modal li {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.single-Comnent_List_Like_Modal li:not(:first-of-type) {
  border-top: 1px solid #efefef;
}
.single-Comnent_List_Like_Modal li.my {
   cursor: pointer;
}
.single-Comnent_List_Like_Modal li.my:hover {
  background-color: rgba(211, 62, 62,.2);
}
.single-Comnent_List_Like_Modal img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
}
.single-Comnent_List_Like_Modal li.my .delete {
  margin-left: 4px;
  color: #d3533e;
  vertical-align: middle;
}

/* 視聴履歴モーダル用 */
.latest-viewers-list li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.latest-viewers-list li a:hover {
  opacity: 0.7;
}
.viewer-name-wrap {
  display: flex;
  flex-direction: column;
}
.viewer-username {
  font-size: 14px;
  line-height: 1.3;
}
.viewer-realname {
  font-size: 11px;
  color: #999;
  line-height: 1.3;
}

.single-Comnent_List_Meta {
  display: flex;
  margin-top: 12px;
}
.single-Comnent_List_Meta_Item {
  color: #aeada2;
}
.single-Comnent_List_Meta_Item:not(:first-of-type) {
  margin-left: 12px;
}
.single-Comnent_List_Meta_Item span {
  cursor: pointer;
}

.single-Comnent_List_Action {
  display: flex;
  justify-content: center;
  width: 100%;
}
.single-Comnent_List_Action_Item {
  flex: 1;
  text-align: center;
  opacity: .7;
}
.single-Comnent_List_Action_Item span {
  cursor: pointer;
  font-weight: bold;
}
.single-Comnent_List_Action_Item span:hover,
.single-Comnent_List_Action_Item span.active {
  color: #db614c;
}
.single-Comnent_List_Action_Item ::before {
    margin-right: 4px;
}
.single-Comnent_List_Action_Item .like::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f164";
}
.single-Comnent_List_Action_Item .like.active::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f164";
}
.single-Comnent_List_Action_Item .comment::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 400;
  content: "\f075";
}

.single-Comnent_List_Action_Item .like-count,
.single-Comnent_List_Action_Item .comment-count {
    margin-left: 4px;
}
.single-Comnent_List_Action_Item .like:hover ~ .like-count,
.single-Comnent_List_Action_Item .like.active ~ .like-count {
  color: #db614c;
}
@media screen and (min-width: 1365px) {
  .single-Comnent_List_Action {
    justify-content: flex-start;
    padding-left: 48px;
  }
  .single-Comnent_List_Action_Item {
    flex: none;
    opacity: 1;
  }
  .single-Comnent_List_Action_Item:not(:first-of-type) {
    margin-left: 2rem;
  }
}

/* accordion */
.single-Comment_List_Sentence input[type="checkbox"] {
  display: none;
}
.single-Comment_List_Sentence .hidden-text {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: all 0.3s;
  max-height: 0;
  overflow: hidden;
}
.single-Comment_List_Sentence .hidden-text + label {
  opacity: .7;
  text-align: center;
  cursor: pointer;
}
.single-Comment_List_Sentence input[type="checkbox"]:checked + .hidden-text {
  max-height: none;
}
.single-Comment_List_Sentence input[type="checkbox"]:checked ~ label {
  display: none;
}

.single-Comment_List_Form {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.depth-2 .single-Comment_List_Form:not(.comment-form) {
  align-items: flex-start;
}
.single-Comment_List_Form textarea,
.single-Comment_List_Form button {
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.single-Comment_List_Form textarea,
.single-Comment_List_Form_Sentence {
  flex: 1;
  border-radius: 8px;
  padding: 4px 8px;
}
.single-Comment_List_Form textarea {
  border: 1px solid rgba(34,34,34,.12);
  resize: none;
  line-height: 24px;
  max-height: 200px;
  font-size: 16px;
}
.single-Comment_List_Form textarea::placeholder {
  color: #aeada2;
}
.single-Comment_List_Form textarea:focus,
.single-Comment_List_Form textarea:not(:placeholder-shown) {
  min-height: 200px;
}
.single-Comment_List_Form_Sentence {
  background-color: rgba(34,34,34,.05);
}
.single-Comment_List_Form_Sentence.target {
  background-color: #f6dcd8;
}
.single-Comment_List_Form button {
    color: #fff;
    margin-left: 8px;
    background-color: #226CE0;
    line-height: 24px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}
.single-Comment_List_Form_Sentence span.name {
  font-size: .8em;
  font-weight: bold;
  display: block;
}
.single-Comment_List_Form_Sentence span.name a {
  color: #222222;
  text-decoration: none;
}
.single-Comment_List_Form span.validation-error {
  font-size: .8em;
  color: #d3533e;
  margin-right: 8px;
}

.single-Comment_List_Form .add-images {
  line-height: 1;
  margin-right: 8px;
  font-size: 24px;
  color: #aeada2;
  cursor: pointer;
}

.single-Comment_List_Form .replyto {
  width: 100%;
  padding-left: 32px;/* icon幅+margin*/
  display: flex;
  align-items: center;
  color: #d3533e;
}
.single-Comment_List_Form .replyto .cancel{
  color: #aeada2;
  font-size: .9em;
  line-height: 1;
  margin-left: 8px;
  cursor: pointer;
  line-height: 1;
}



/**
 * グループ投稿
 */
.group .single-Comment_List {
  margin: 0;
  margin-top: 12px;
}
.group .single-Comment_List_Item.depth-1 {
  padding-bottom: 12px;
}
@media screen and (min-width: 1365px) {
  .group .single-Comment_List_Item.depth-1 {
    padding-bottom: 36px;
  }
}
.group .single-Comment_List_Item:first-of-type {
  margin-top: 0;
}

.group .single-Comment_List_Item.pickup {
  position: relative;
}
.group .single-Comment_List_Item.pickup::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: '\f08d';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 2em;
  color: #cfcfcf;
  line-height: 1;
}
.group .depth-1 .single-Comment_List_Sentence {
  margin-bottom: 12px;
}
@media screen and (min-width:1365px) {
  .group .depth-1 .single-Comment_List_Sentence {
    padding-bottom: 12px;
    padding-left: 48px;
  }
}

.group .depth-1 .single-Comment_List_Sentence a,
.single-Comment_List_Form_Sentence a {
  color: #3e8f92;
  text-decoration: underline;
}
.group .depth-1 .single-Comment_List_Sentence a:hover,
.single-Comment_List_Form_Sentence a:hover {
  text-decoration: none;
}
/* .group.own .depth-1 .single-Comment_List_Sentence {
  padding-bottom: 0;
  border: 0;
} */
.group .depth-2 {
  margin: 0;
}

@media screen and (max-width:767px) {
  .single-Comnent_List_Like_Modal {
    width: auto;
    padding: 0;
    top: 50px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    overflow: hidden;
    border-radius: 8px;
  }
}
@media screen and (min-width:768px) {
  .single-Comnent_List_Like_Modal--comment {
    width: 640px;
  }
}
.single-Comnent_List_Like_Modal_Inner {
  height: calc(100vh - 50px);
  padding: 0px 20px 120px;
  overflow-y: scroll;
}
.single-Comnent_List_Like_Modal_Head {
  position: sticky;
  top: 0;
  left: 0;
  text-align: center;
  width: 100%;
  background-color: RGBA(255,255,255,0.8);
  padding: 12px;
  border-bottom: 1px solid #efefef;
  z-index: 100;
}
.single-Comnent_List_Like_Modal_H2 {
  color: #db614c;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 20px;
}
.single-Comnent_List_Like_Modal_Inner > form {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 12px;
  background-color: #fff;
  border-top: 1px solid #efefef;
  flex-wrap: wrap;
}
.single-Comnent_List_Like_Modal_Inner > form .comments-Form_Add {
  display: none;
  width: 100%;
  margin: 0 0 8px;
}

.single-Comnent_List_Like_Modal_Inner > form .preview-images {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
}

.single-Comnent_List_Like_Modal ul {
  overflow-y: auto;
  max-height: none;
  /* margin-top: 12px; */
}
.single-Comnent_List_Like_Modal li {
  padding: 0;
  margin-top: 8px;
}
.single-Comnent_List_Like_Modal li:not(:first-of-type) {
  border: 0;
}
.group .single-Comment_List_Form textarea:focus,
.group .single-Comment_List_Form textarea:not(:placeholder-shown) {
  min-height: 120px;
}
.group .single-Comment_List_Icon img {
  margin-right: 0;
}

.single-Comnent_List_Like_Modal--edit .single-Comment_List_Item {
  padding: 12px 0 0 0;
  border: 0;
  margin: 0;
  background-color: transparent;
}
.single-Comnent_List_Like_Modal--edit textarea {
  border: 1px solid #efefef;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 24px;
}
.single-Comnent_List_Like_Modal--edit .single-Comnent_List_Images + p {
  font-size: 12px;
  margin-top: 4px;
  margin-bottom: 1rem;
}
.single-Comnent_List_Like_Modal--edit .group-Form_Meta {
  flex-direction: column;
}
.single-Comnent_List_Like_Modal--edit .group-Form_Meta button {
  width: 100%;
  border-radius: 100px;
  padding: 1rem;
  margin-top: 1.5rem;
}
.single-Comnent_List_Like_Modal--edit .group-Form_Meta button:last-of-type {
  background-color: #fff;
  color: #db614c;
}
.single-Comnent_List_Like_Modal--edit .group-Form_Checkbox {
  margin-top: 1rem;
  text-align: center;
}