/* ========================================
   レイアウト共通
======================================== */
.violation {
  float: unset;
  padding-left: 5px;
}
#reply-under {
  top: 0px;
}
#repon {
  padding: 5px;
  font-size: 13px;
}
.fa-commenting-o {
  font-size: 25px;
  color: #99ccff;
  position: absolute;
  top: 5px;
}
.counter {
  margin-left: 30px;
  vertical-align: top;
}
.good-top-icon {
  position: unset;
}
.comment-reply {
  padding-top: 6px;
}
.wpulike {
  padding: 0;
  float: right;
}


/* ========================================
   返信ポップアップ
======================================== */
.rep-box {
  background: #fff;
  box-shadow: rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
  -webkit-box-shadow: rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
  -moz-box-shadow: rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
  padding: 10px 10px 25px 10px;
}
.res-author {
  display: unset;
  position: unset;
  top: unset;
  float: left;
  padding-right: 5px;
}
.rep-close {
  position: absolute;
  right: 10px;
  bottom: 5px;
}
.rep-content {
  padding-top: 5px;
}
#res-popup-container {
  max-width: 800px;
  padding: 10px 10px 25px 10px;
}
.res-id,
.res-author,
.res-time {
  font-size: 12px;
  display: block;
}
.res-content {
  font-size: 13px;
}


/* ========================================
   ページネーション
======================================== */
#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
  line-height: 34px !important;
  border-radius: 30px;
}
.page-numbers {
  width: 45px;
}
@media screen and (max-width: 480px) {
  #bbpress-forums .bbp-pagination-links a,
  #bbpress-forums .bbp-pagination-links span.current {
    line-height: 22px !important;
  }
  .page-numbers {
    width: 35px;
    height: 35px;
    line-height: 34px;
  }
}


/* ========================================
   サムネイル画像（一覧）
======================================== */
.bbp-topic-relation .attachment-d4p-bbp-thumb,
.bbp-topic-relation .attachment-post-thumbnail {
  width: 100px;
  object-fit: cover;
}
.bbp-topic-thumbnail,
.attachment-post-thumbnail {
  max-width: 70px !important;
  max-height: 70px !important;
  position: absolute;
  top: 15px;
  left: 5px;
  border-radius: 5px;
  object-fit: cover;
}


/* ========================================
   トピック一覧
======================================== */
li.bbp-topic-title {
  position: relative;
}
li.bbp-topic-title a {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 10px;
  padding-left: 0px;
  min-height: 90px !important;
}
.has-post-thumbnail li.bbp-topic-title a {
  padding-left: 85px;
}
.topic li a .title,
.single .topic li a .title,
.forum .topic li a .title {
  padding-left: 85px;
  margin-bottom: 0;
}
.bbp-topic-reply-txt {
  padding-left: 3px;
  vertical-align: text-bottom;
}

/* コメント数 */
li.bbp-topic-reply-count {
  writing-mode: horizontal-tb !important;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #E9B44C;
  text-align: center;
}
li.bbp-topic-reply-count::after {
  content: "コメント";
  font-size: 12px;
  margin-left: 2px;
}

/* 最終投稿 */
li.bbp-topic-freshness,
.single-topic .bbp-topic-freshness {
  bottom: 10px;
  font-size: 10px;
  color: grey;
  text-align: right;
}

/* 参加者列を非表示 */
li.bbp-topic-voice-count,
.bbp-topic-voice-count {
  display: none;
}

/* トピック作成者・フォーラム情報を非表示 */
.bbp-topic-meta {
  display: none;
}

#bbp-topic-8016,
#bbpress-forums li.bbp-body > ul {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}


/* ========================================
   個別トピックページ
======================================== */
.single-topic .bbp-topic-reply-count {
  text-align: unset;
  float: unset;
  position: unset;
  padding-left: 0;
  padding-bottom: 10px;
}
.single-topic .attachment-post-thumbnail {
  top: 15px;
}
.single-topic a.bbp-topic-permalink {
  padding: 10px 15px 0 0;
  margin-bottom: 10px;
}
.single-topic .bbp-topic-views-cate {
  bottom: 10px;
}

/* 不要情報を非表示 */
.single-topic .bbp-topic-header,
.single-topic .bbp-reply-header,
#bbpress-forums ul.bbp-lead-topic li.bbp-header,
#bbpress-forums ul.bbp-lead-topic li.bbp-footer,
#bbpress-forums ul.bbp-replies li.bbp-header,
#bbpress-forums ul.bbp-replies li.bbp-footer {
  display: none !important;
}
.single-topic .bbp-topic-ip,
.single-topic .bbp-reply-ip,
.single-topic .violation {
  display: none !important;
}

/* アバター＋コンテンツ横並び */
#bbpress-forums ul.bbp-lead-topic li.bbp-body > div,
#bbpress-forums ul.bbp-replies li.bbp-body > div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* 著者エリア */
#bbpress-forums ul.bbp-lead-topic .bbp-topic-author,
#bbpress-forums ul.bbp-replies .bbp-reply-author {
  flex-shrink: 0;
  width: 90px !important;
  text-align: center;
  font-size: 11px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 著者名 */
#bbpress-forums ul.bbp-lead-topic .bbp-topic-author .bbp-author-name,
#bbpress-forums ul.bbp-replies .bbp-reply-author .bbp-author-name {
  text-align: left !important;
  display: block;
  width: 100%;
  margin: 0 !important;
}

/* 著者エリアのサムネイル */
#bbpress-forums ul.bbp-lead-topic .bbp-topic-author .bbp-topic-thumbnail,
#bbpress-forums ul.bbp-replies .bbp-reply-author .bbp-topic-thumbnail {
  position: static !important;
  display: block !important;
  width: 60px !important;
  height: 60px !important;
  margin-top: 5px;
}

/* コンテンツエリア */
#bbpress-forums ul.bbp-lead-topic .bbp-topic-content,
#bbpress-forums ul.bbp-replies .bbp-reply-content {
  flex: 1;
  min-width: 0;
}


/* ========================================
   添付ファイル
======================================== */
.bbp-attachments,
.bbp-attachments-errors {
  border-top: 0;
  margin-top: 0;
  padding: 0;
}
.bbp-atthumb {
  list-style-type: none;
}
#bbpress-forums .bbp-attachments ol {
  list-style: none !important;
  counter-reset: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
#bbpress-forums .bbp-attachments ol li::before {
  content: none !important;
}
#bbpress-forums .bbp-attachments li {
  list-style: none !important;
}
#bbpress-forums .bbp-attachments ol li.d4p-bbp-attachment.bbp-inline {
  margin-right: 0px !important;
}
#bbpress-forums .bbp-attachments ol li.d4p-bbp-attachment .wp-caption {
  padding: 0px;
}


/* ========================================
   投稿フォーム
======================================== */
#bbp_topic_submit,
#bbp_reply_submit {
  width: 100%;
  padding: 10px 0;
}
#bbpress-forums fieldset.bbp-form input[type=text] {
  border-radius: 0.2em;
  padding: 10px;
}
#bbpress-forums fieldset.bbp-form input[type=text]::placeholder {
  color: #ccc;
}
#bbpress-forums fieldset.bbp-form textarea::placeholder {
  color: #ccc;
  font-family: 'Noto Sans JP';
}
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
  font-size: 16px;
}
textarea {
  border-radius: 0.2em;
}

/* メール・ウェブサイト欄を非表示 */
#bbpress-forums fieldset.bbp-form p:has(#bbp_anonymous_email),
#bbpress-forums fieldset.bbp-form p:has(#bbp_anonymous_website) {
  display: none !important;
}


/* ========================================
   関連トピック
======================================== */
.bbp-relation-list {
  border-top: 0;
}
.bbp-relation-title {
  font-size: 18px;
  padding-top: 20px;
  padding-bottom: 1em;
}
.bbp-topic-relation a.bbp-topic-permalink {
  min-height: 70px;
  margin-bottom: 0px;
}
.bbp-relation-list p {
  padding-top: 0px;
}
.forum .bbp-relation-list p {
  padding-left: 125px;
}
.forum a.bbp-topic-permalink {
  padding: 10px 10px 10px 0;
  min-height: 70px !important;
}
.forum .bbp-topic-relation .attachment-post-thumbnail {
  top: 15px;
}


/* ========================================
   投稿ボタン
======================================== */
.newtbtn {
  display: inline-block;
  padding: 10px 30px;
  background: #E9B44C;
  color: #fff !important;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0px 4px 0px #c49030;
  transition: all 0.2s ease;
  -webkit-border-radius: 0.2em;
  -moz-border-radius: 0.2em;
}
.newtbtn:hover {
  background: #c49030;
  transform: translate(0, 4px);
  box-shadow: none;
}
#new-thread {
  text-align: center;
  margin: 20px 0 30px;
}


/* ========================================
   パンくず
======================================== */
.bbp-breadcrumb-bbs-home {
  padding: 0 10px;
}
.bbpress .icon-home {
  padding-right: 5px;
  color: #004e8e;
}
.bbpress .breadcrumb {
  display: none;
}
.page-id-7597 .bbp-breadcrumb {
  display: none;
}
div.bbp-breadcrumb {
  border-bottom: 0;
  padding: 10px 0;
  font-size: 14px;
}
.bbp-breadcrumb-home:after {
  font-size: 14px;
  padding-right: 10px;
}
.bbp-breadcrumb-current {
  padding: 0 10px;
}
.bbp-breadcrumb-forum {
  padding: 0 10px;
}


/* ========================================
   検索・その他
======================================== */
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
  border-radius: 0.2em;
}
.bbpress .article-header__thumbnail {
  display: none;
}


/* ========================================
   画像・ブログカード
======================================== */
.bbp-img-box {
  max-width: 50%;
}
.wp-caption img {
  width: 100%;
}
a.bbp-img-sou {
  font-size: 10px !important;
}
.rep-box img {
  margin-top: 10px;
}
.box img {
  object-fit: cover;
}
.blog-card-thumbnail img {
  max-width: 100px;
  height: 100% !important;
  object-fit: cover;
}
.blog-card-thumbnail {
  margin: 0 !important;
  border: 1px solid #eee;
  border-radius: 2px;
  padding: 2px;
}


/* ========================================
   Contact Form 7
======================================== */
input.wpcf7-submit {
  padding: 0.8em !important;
  margin: 1em 0em !important;
  background-color: #25c04a !important;
  border-radius: 5px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: bold !important;
  width: 50%;
  transition: 0.5s;
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.10);
}
input.wpcf7-submit:hover {
  background-color: #f2d500 !important;
  color: #fff !important;
}
.btn-submit {
  width: 100%;
  text-align: center;
}
.wpcf7-textarea {
  border: 1px solid #b8bcc0;
}


/* ========================================
   レスポンシブ
======================================== */
@media only screen and (max-width: 768px) {
  #res-popup-container {
    min-width: -webkit-fill-available;
  }
}
@media (max-width: 768px) {
  #block-2 {
    border-top: 0px;
    padding-top: 0px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
    margin-top: 60px;
  }
}
@media only screen and (max-width: 480px) {
  .bbp-forums-widget li {
    padding-left: 0;
  }
  #bbp_forums_widget-3 {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* NO IMAGE非表示（関連トピック） */
.bbp-topic-relation .attachment-post-thumbnail[src*="no-image"] {
  display: none !important;
}

/* スマホ：縦並び＋著者名横にNO IMAGE */
@media screen and (max-width: 600px) {
  #bbpress-forums ul.bbp-lead-topic li.bbp-body > div,
  #bbpress-forums ul.bbp-replies li.bbp-body > div {
    flex-direction: column;
  }
  #bbpress-forums ul.bbp-lead-topic .bbp-topic-author,
  #bbpress-forums ul.bbp-replies .bbp-reply-author {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    float: none !important;
    min-height: unset !important;
    padding-left: 0 !important;
    position: unset !important;
    border-bottom: none !important;
    margin: 0 !important;
  }
  #bbpress-forums ul.bbp-lead-topic .bbp-topic-author .bbp-topic-thumbnail,
  #bbpress-forums ul.bbp-replies .bbp-reply-author .bbp-topic-thumbnail {
    position: static !important;
    display: block !important;
    width: 55px !important;
    height: 55px !important;
    flex-shrink: 0 !important;
    order: -1;
  }
}

@media only screen and (max-width: 480px) {
  #bbpress-forums .bbp-body div.bbp-reply-author,
  #bbpress-forums .bbp-body div.bbp-topic-author {
    float: none !important;
    min-height: unset !important;
    padding-left: 0 !important;
    position: unset !important;
    width: 100% !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
}