/*==========================================
  掲示板返信カード
==========================================*/
.bbs-comment {
    width: 60%;
    margin: 0 auto 20px;
    border: 1px solid #45B035;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
}
.bbs-comment-title {
    font-weight: bold;
    margin-bottom: 5px;
}
.bbs-comment-meta {
    margin-bottom: 15px;
}
.bbs-comment-content {
    margin-left: 20px;
}

/* ==========================================
   掲示板 返信フォーム
========================================== */
.bbs-reply-form {
    width: 66.6667%;
    margin: 30px auto 0 !important;
    box-sizing: border-box;
    border: 1px solid #45B035;
    border-radius: 8px;
    padding: 20px;
}

.bbs-reply-form-title {
    font-size: 16px;
    font-weight: normal;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #45B035;
}

.comment-form-organization,
.comment-form-bbs-name,
.comment-form-comment {
    margin-bottom: 10px;
}

.comment-form-organization label,
.comment-form-bbs-name label,
.comment-form-comment label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form-organization input,
.comment-form-bbs-name input,
.comment-form-comment textarea {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    background: #fff;
    box-sizing: border-box;
}

.comment-form-organization input,
.comment-form-bbs-name input {
    height: 45px;
}

.comment-form-comment textarea {
    min-height: 300px;
    resize: vertical;
}

/* ==========================================
   掲示板 新規投稿ボタン
========================================== */
.bbs-new-post-button {
    min-width: 220px;
    padding: 0;
    border: none;
    background: transparent;
}

.bbs-new-post-button {
transform: translateX(-50px);
}

.bbs-new-post-button a {
    display: inline-block;
    min-width: 160px;
    box-sizing: border-box;
    padding: 13px 30px;
    border: none;
    border-radius: 6px;
    background: #45B035;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.bbs-new-post-button a:hover {
    opacity: 0.85;
}

/* ==========================================
   掲示板 ページ送り
========================================== */
.bbs-pagination {
    justify-content: flex-end;
    margin-top: 30px;
}

.bbs-pagination a,
.bbs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    box-sizing: border-box;
    margin-left: 6px;
    padding: 0 10px;
    border: 1px solid #45B035;
    border-radius: 6px;
    background: #fff;
    color: #45B035;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.bbs-pagination .current {
    background: #45B035;
    color: #fff;
}

.bbs-pagination a:hover {
    background: #45B035;
    color: #fff;
}

.bbs-pagination .next {
    padding: 0 14px;
}

/* ==========================================
   掲示板 一覧
========================================== */
.bbs-post-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    transition: .25s;
}

/* 投稿タイトル */
.bbs-post-card h2 {
    margin: 0 0 8px !important;
    font-size: 22px !important;
    font-weight: 400 !important;

    line-height: 1.4;
}

.bbs-post-card h2 a {
    color: #45B035 !important;
    text-decoration: none !important;
}

.bbs-post-card h2 a:hover {
    color: #1b5e20 !important;
    text-decoration: underline;
}

/* 投稿タイトル 外部リンクアイコン表示 */
.bbs-post-card h2 a::after {
    display: inline-block;
    content: "\f35d";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    margin-left: 5px;
    padding: 0;
}

/* 投稿本文 */
.bbs-post-card .wp-block-post-excerpt {
    background: #f0f8ed;
    padding: 10px 15px;
    margin: 0 0 5px !important;
    border-radius: 5px;
    color: #333;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* 投稿本文内の段落 */
.bbs-post-card .wp-block-post-excerpt p {
    margin-top: 0 !important;
}

/* 投稿日 */
.bbs-post-card .wp-block-post-date,
.bbs-post-card .wp-block-post-date a {
    color: #45B035 !important;
    font-size: 14px;
}

/* 掲示板 外側カード内の最後の要素の余白を調整 */
.bbs-post-card > *:last-child {
    margin-bottom: 0 !important;
}

/* 掲示板 一覧 投稿カード ホバー */
.bbs-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* ==========================================
   掲示板 投稿外側カード
========================================== */
.bbs-post-outer {
    background: #fff;
    padding: 0;
    margin-bottom: 20px;
}

/* ==========================================
   掲示板 詳細ページ タイトル
========================================== */
.wp-block-group.is-vertical > .wp-block-post-title {
    background: #CDE8C5 !important;
    color: #333 !important;
    padding: 15px 20px !important;
    margin: 20px 0 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    font-size: 24px !important;
	font-weight: 700 !important;
    text-align: left !important;
}

/* ==========================================
   交流掲示板 詳細 Post Meta
========================================== */

.single-post .wp-block-post-date,
.single-post .wp-block-post-date a {
    font-size:14px !important;
    color:#666 !important;
}

.single-post .wp-block-post-date.has-large-font-size {
    font-size:14px !important;
}

.single-post .wp-block-post-date {
    margin:0 !important;
    padding:0 !important;
    line-height:1.2 !important;
}


/* ==========================================
   掲示板 詳細ページ 日付下の余白調整
========================================== */
main > .wp-block-group:has(.wp-block-post-title) {
    margin-bottom: 10px !important;
}




/* ==========================================
   掲示板 投稿者情報
========================================== */
.bbs-meta {
    width: 66.6667%;
    margin: 0 auto 25px !important;
    padding: 18px 25px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.8;
}

/* 投稿者情報の見出し */
.bbs-meta::before {
    content: "投稿者情報";
    display: block;
    margin-bottom: 10px;
    color: #45B035;
    font-weight: bold;
    font-size: 16px;
}

/* ==========================================
   掲示板 投稿本文
========================================== */
.bbs-content {
    width: 66.6667% !important;
    max-width: 66.6667% !important;
    margin: 30px auto !important;
    box-sizing: border-box;
    background: #f0f8ed;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px;
}

/* 投稿本文内の段落間隔 */
.bbs-content p {
    margin: 0 0 1em !important;
}

.bbs-content p:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================
   掲示板 返信タイトル
========================================== */
.bbs-reply-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

/* ==========================================
   掲示板 返信送信ボタン
========================================== */
.bbs-reply-form .form-submit {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.bbs-reply-form .form-submit #submit {
    display: inline-block;
    margin: 0 !important;
    background: #45B035 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 40px !important;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.bbs-reply-form .form-submit + p {
    display: none !important;
}

.bbs-reply-form .form-submit #submit:hover {
    opacity: 0.85;
}

/* ==========================================
   掲示板 返信フォーム ラベル間隔調整
========================================== */
.bbs-reply-form .comment-form label + br {
    display: none;
}

/* ==========================================
   掲示板 新規投稿フォーム 全体の幅
========================================== */
.wpuf-form-add.wpuf-form-layout1:not(.wpuf-theme-style) {
    width: 80% !important;
    max-width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================
   掲示板 新規投稿フォーム 入力エリア
   add.css から移動
========================================== */
.wpuf-fields {
    width: 100% !important;
    max-width: 100% !important;
}

/* ==========================================
   掲示板 新規投稿フォーム 入力エリア余白
========================================== */
ul.wpuf-form .wpuf-fields {
    width: calc(100% - 80px) !important;
    max-width: calc(100% - 80px) !important;
    margin-left: 40px !important;
    margin-right: 40px !important;
}

/* ==========================================
   掲示板 新規投稿フォーム 各項目の縦間隔
========================================== */
.wpuf-form-add.wpuf-form-layout1:not(.wpuf-theme-style) ul.wpuf-form li {
    margin-bottom: 10px !important;
}

/* ==========================================
   掲示板 新規投稿フォーム 入力項目全体の位置
========================================== */
ul.wpuf-form.form-label-above > li.wpuf-el {
    transform: translateY(30px);
}

/* ==========================================
   掲示板 新規投稿フォーム タイトル・本文共通
========================================== */
.wpuf-fields input[type="text"],
.wpuf-fields textarea {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    background: #fff;
    box-sizing: border-box;
    transition: all .25s ease;
}

/* ==========================================
   掲示板 新規投稿フォーム タイトル入力欄
========================================== */
.wpuf-fields input[type="text"] {
    height: 45px;
}

/* ==========================================
   掲示板 新規投稿フォーム 本文入力欄
========================================== */
.wpuf-fields textarea {
    min-height: 300px;
    resize: vertical;
}

/* ==========================================
   掲示板 新規投稿フォーム 入力中（フォーカス）
========================================== */
.wpuf-fields input[type="text"]:focus,
.wpuf-fields textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76,175,80,.25);
    outline: none;
}

/* ==========================================
   掲示板 新規投稿フォーム 投稿ボタン
========================================== */
.wpuf-form-add.wpuf-form-layout1:not(.wpuf-theme-style) ul.wpuf-form .wpuf-submit input[type="submit"] {
    background: #45B035 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 36px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer;
}

/* ==========================================
   掲示板 新規投稿フォーム 掲示板一覧へ戻るボタン
========================================== */
.bbs-new-post-back-link {
	margin-top: 20px;
	text-align: left !important;
	transform: translate(120px, -40px);
}

.bbs-new-post-back-link a {
    display: inline-block;
    background: #45B035 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

/* ==========================================
   掲示板 新規投稿 投稿完了後の画面
========================================== */
/* 「掲示板一覧へ戻る」ボタン */
#bbs-post:has(.wpuf-success) .bbs-new-post-back-link {
    transform: none;
    text-align: center !important;
}

/* 投稿完了後のメッセージ */
#bbs-post:has(.wpuf-success) .wpuf-success {
    text-align: center;
}

/* ==========================================
   掲示板 新規投稿フォーム 全体（カード化）
========================================== */
ul.wpuf-form {
    background: #fff !important;
    padding: 40px 40px 10px !important;
    border-radius: 12px !important;
    border: 1px solid #45B035 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.08) !important;
}

/* ==========================================
   掲示板 新規投稿フォーム ラベル余白
========================================== */
ul.wpuf-form .wpuf-label {
    margin-left: 40px !important;
    margin-right: 40px !important;
}

/* ==========================================
   掲示板 新規投稿フォーム ラベル表示
========================================== */
.wpuf-form .wpuf-label label {
    font-weight: bold !important;
    color: #333 !important;
    font-size: 16px !important;
}

/* ==========================================
   掲示板 新規投稿フォーム 投稿ボタン位置
========================================== */
.wpuf-form-add.wpuf-form-layout1:not(.wpuf-theme-style) ul.wpuf-form .wpuf-submit {
    text-align: center !important;
    transform: translateY(-10px);
	margin-bottom: 50px !important;
	height: 54px !important;
}

/* ==========================================
   掲示板 詳細ページ 投稿掲示板に戻るボタン
========================================== */
.bbs-back-link {
    text-align: center;
    margin: 20px 0 !important;
}

.bbs-back-link a {
    display: inline-block;
    background: #45B035;
    color: #fff;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.bbs-back-link a:hover {
    opacity: 0.85;
}

/* ==========================================
   掲示板 詳細ページ メイン幅
========================================== */
.single-bbs_post main {
    width: 100%;
}

/* ==========================================
   交流掲示板 一覧
   投稿テンプレートの「・」を非表示
========================================== */

.wp-block-post-template .wp-block-post {
    list-style: none !important;
}

/* ==========================================
   交流掲示板 一覧
   投稿一覧の横幅
========================================== */

.wp-block-post-template {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bbs-post-outer {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* ==========================================
   交流掲示板 ページ送り
========================================== */
.bbs-pagination {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================
   掲示板 投稿削除 右寄せ
========================================== */
.bbs-delete-link {
    text-align: right;
    padding-right: 10px;
    box-sizing: border-box;
}

/* ==========================================
   掲示板 投稿削除 リンク
========================================== */
.bbs-delete-link a {
    color: #333;
    text-decoration: underline;
	font-size: 14px;
}

/* ==========================================
   掲示板 投稿削除 確認画面
========================================== */
.bbs-delete-confirm {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    box-sizing: border-box;
}

/* ==========================================
    掲示板 投稿削除 確認ボタン
========================================== */
.bbs-delete-confirm-button {
    display: inline-block;
    min-width: 180px;
    padding: 12px 30px;
    background: #45B035;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

/* ==========================================
   掲示板 投稿削除 キャンセルボタン
========================================== */
.bbs-delete-cancel {
    color: #333;
    font-size: 14px;
    text-decoration: underline;
}

/* ==========================================
    掲示板 投稿削除 注意書きメッセージ
========================================== */
.bbs-delete-confirm > p {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ==========================================
   掲示板 投稿削除 確認画面タイトル
========================================== */
.bbs-delete-confirm h1 {
    color: red;
    font-size: 26px;
    font-weight: bold;
}

/* ==========================================
   掲示板 返信先指定
========================================== */

.bbs-comment-reply {
    text-align: right;
}

.bbs-comment-reply a {
    text-decoration: underline;
}

/* ==========================================
   掲示板 返信先指定ステータス
========================================== */

.bbs-reply-status {
    font-weight: bold;
    color: red;
}

/* ==========================================
   掲示板 返信先表示
========================================== */

.bbs-comment-parent {
    font-weight: bold !important;
}

/* ==========================================
   交流掲示板
   NEW! 表示
   STEP 2-1
========================================== */

.bbs-new-label {
	color: #e60000;
	margin-right: 6px;
}

/* ==========================================
   交流掲示板
   コメントあり表示
   STEP 2-3
========================================== */

.bbs-comment-new-label {
	color: #e60000;
}


/* スマホ対応：掲示板 */
@media screen and (max-width:768px) {
	
	/* 掲示板一覧 */
    .wp-block-post-template {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .bbs-new-post-button {
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    .wp-block-post-excerpt__excerpt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
    }

    /* 新規投稿 */
    .bbs-new-post-back-link {
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 投稿詳細：タイトル */
    .wp-block-group.is-vertical > .wp-block-post-title {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
	
    /* 投稿詳細：投稿日 */
    .wp-block-post-date {
        margin-left: 15px !important;
    }
	
	/* 投稿詳細：返信を書く */
    .bbs-reply-title {
        margin-left: 15px !important;
    }
	
	/* 投稿詳細：その他の枠 */
    .bbs-meta,
    .bbs-content,
    .bbs-reply-form {
        width: 90% !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

	/* 投稿詳細：返信カード */
    .bbs-comment {
        width: 90% !important;
    }
	
}


