/* ============================================================
   掲示板（UFO体験談 掲示板） design/conts_bbs.png 準拠
   スコープ: body.ufo-top
   ============================================================ */
.bbs-hero {
    position: relative;
    background: #060911 url("/img/design/hero_wide.jpg") center 32% / cover no-repeat;
    overflow: hidden;
    border-bottom: 1px solid #16202f;
}

.bbs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(4, 7, 14, .95) 0%, rgba(4, 7, 14, .82) 34%, rgba(4, 7, 14, .4) 70%, rgba(4, 7, 14, .72) 100%);
}

.bbs-hero__inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 20px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: end;
}

.bbs-pan {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #7d8798;
}

.bbs-pan a {
    color: #9aa6b8;
}

.bbs-pan a:hover {
    color: #ff8a1e;
}

.bbs-pan ul,
.bbs-pan ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bbs-hero__title {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.2;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .8);
}

.bbs-hero__lead {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.9;
    color: #c8d2e0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.bbs-hero__cta {
    display: block;
    padding: 22px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff8a1e, #ff6f00);
    color: #12160f;
    box-shadow: 0 12px 30px rgba(255, 122, 24, .3);
}

.bbs-hero__cta:hover {
    color: #12160f;
    filter: brightness(1.06);
}

.bbs-hero__cta-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
}

.bbs-hero__cta-note {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.6;
    color: #3a2408;
}

/* ---------- レイアウト ---------- */
.bbs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 26px;
    padding: 30px 20px 10px;
    max-width: 1240px;
    margin: 0 auto;
}

/* ---------- タブ + 検索 ---------- */
.bbs-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a2434;
}

.bbs-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 2px;
    font-size: 13px;
    font-weight: 700;
    color: #9aa6b8;
    border-bottom: 2px solid transparent;
    margin-bottom: -13px;
}

.bbs-tab i {
    font-size: 13px;
}

.bbs-tab:hover {
    color: #e6ecf5;
}

.bbs-tab.is-active {
    color: #ff8a1e;
    border-bottom-color: #ff8a1e;
}

.bbs-tab__new {
    padding: 1px 6px;
    border-radius: 3px;
    background: #ff3d3d;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.bbs-tabsearch {
    display: flex;
    margin-left: auto;
    min-width: 260px;
}

.bbs-tabsearch input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #22304a;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    background: #0f1724;
    color: #e6ecf5;
    font-size: 13px;
}

.bbs-tabsearch input::placeholder {
    color: #66738a;
}

.bbs-tabsearch button {
    flex: none;
    width: 46px;
    border: 0;
    border-radius: 0 4px 4px 0;
    background: #ff8a1e;
    color: #12160f;
    font-size: 15px;
    cursor: pointer;
}

/* ---------- スレッド一覧 ---------- */
.bbs-listhead,
.bbs-thread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px 60px 72px 132px;
    gap: 14px;
    align-items: center;
}

.bbs-listhead {
    padding: 12px 6px;
    font-size: 11px;
    color: #8d99ab;
    border-bottom: 1px solid #1a2434;
}

.bbs-listhead span:not(:first-child),
.bbs-thread__meta {
    text-align: center;
}

.bbs-thread {
    padding: 16px 6px;
    border-bottom: 1px solid #151f2e;
    color: inherit;
}

.bbs-thread:hover {
    background: #0b1220;
}

.bbs-thread__main {
    display: flex;
    gap: 15px;
    min-width: 0;
}

.bbs-thread__thumb {
    flex: none;
    width: 108px;
    height: 74px;
    border-radius: 5px;
    object-fit: cover;
    background: #0a0e17;
    border: 1px solid #1a2434;
}

.bbs-thread__body {
    min-width: 0;
}

.bbs-thread__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #e6ecf5;
}

.bbs-thread:hover .bbs-thread__title {
    color: #ff8a1e;
}

.bbs-thread__title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbs-new {
    flex: none;
    padding: 1px 6px;
    border-radius: 3px;
    background: #ff3d3d;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
}

.bbs-thread__text {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.65;
    color: #8d99ab;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bbs-thread__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    font-size: 11px;
    color: #7d8798;
}

.bbs-thread__sub span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bbs-thread__sub i {
    color: #556072;
}

/* カテゴリバッジ */
.bbs-cat {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.bbs-cat--sight {
    color: #ffb066;
    border-color: #6b4a22;
    background: #1d1409;
}

.bbs-cat--contact {
    color: #ff8fa8;
    border-color: #6b2338;
    background: #1e0d13;
}

.bbs-cat--light {
    color: #c39bff;
    border-color: #402c66;
    background: #150e22;
}

.bbs-cat--mystery {
    color: #7fb5ff;
    border-color: #22406b;
    background: #0b1626;
}

.bbs-thread__num {
    font-size: 15px;
    font-weight: 700;
    color: #e6ecf5;
}

.bbs-thread__last {
    font-size: 11px;
    line-height: 1.5;
    color: #8d99ab;
    text-align: left;
}

.bbs-thread__last b {
    display: block;
    font-weight: 400;
    color: #c8d2e0;
}

.bbs-thread__last i {
    color: #556072;
    margin-right: 4px;
}

/* ---------- ページネーション ---------- */
.bbs-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 26px 0 6px;
}

.bbs-pager a,
.bbs-pager strong,
.bbs-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid #22304a;
    border-radius: 4px;
    font-size: 13px;
    color: #c8d2e0;
    background: #0c111c;
}

.bbs-pager a:hover {
    border-color: #ff8a1e;
    color: #ff8a1e;
}

.bbs-pager strong,
.bbs-pager .current {
    border-color: #ff8a1e;
    background: #ff8a1e;
    color: #12160f;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(255, 138, 30, .35);
}

/* ---------- サイドバー ---------- */
.bbs-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bbs-card {
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #0c111c;
    overflow: hidden;
}

.bbs-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid #1a2434;
    font-size: 14px;
    font-weight: 700;
}

.bbs-card__head i {
    color: #ff8a1e;
    font-size: 13px;
}

.bbs-card__body {
    padding: 14px 16px 16px;
}

/* 絞り込み検索 */
.bbs-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bbs-filter select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #22304a;
    border-radius: 4px;
    background: #0f1724;
    color: #d4dbe6;
    font-size: 13px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff8a1e' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.bbs-filter__btn {
    height: 42px;
    margin-top: 4px;
    border: 0;
    border-radius: 4px;
    background: #ff8a1e;
    color: #12160f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.bbs-filter__btn:hover {
    filter: brightness(1.07);
}

/* 最近投稿された体験談 */
.bbs-recent {
    display: flex;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid #151f2e;
}

.bbs-recent:first-child {
    padding-top: 0;
}

.bbs-recent:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.bbs-recent__thumb {
    flex: none;
    width: 62px;
    height: 46px;
    border-radius: 4px;
    object-fit: cover;
    background: #0a0e17;
}

.bbs-recent__title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #d4dbe6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bbs-recent:hover .bbs-recent__title {
    color: #ff8a1e;
}

.bbs-recent__date {
    margin-top: 4px;
    font-size: 10px;
    color: #7d8798;
}

/* 人気タグ */
.bbs-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bbs-tagcloud a {
    padding: 5px 11px;
    border: 1px solid #2a3850;
    border-radius: 3px;
    font-size: 11px;
    color: #a4b0c2;
}

.bbs-tagcloud a::before {
    content: "#";
    color: #ff8a1e;
    margin-right: 2px;
}

.bbs-tagcloud a:hover {
    border-color: #ff8a1e;
    color: #ff8a1e;
}

/* ランキング */
.bbs-rank {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid #151f2e;
}

.bbs-rank:first-child {
    padding-top: 0;
}

.bbs-rank:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.bbs-rank__no {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1c2636;
    color: #9aa6b8;
    font-size: 12px;
    font-weight: 700;
}

.bbs-rank:nth-child(1) .bbs-rank__no {
    background: #ff8a1e;
    color: #12160f;
}

.bbs-rank:nth-child(2) .bbs-rank__no {
    background: #b9c3d2;
    color: #12160f;
}

.bbs-rank:nth-child(3) .bbs-rank__no {
    background: #a4703c;
    color: #12160f;
}

.bbs-rank__title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #d4dbe6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bbs-rank:hover .bbs-rank__title {
    color: #ff8a1e;
}

.bbs-rank__meta {
    margin-top: 3px;
    font-size: 10px;
    color: #7d8798;
}

.bbs-rank__meta i {
    color: #ff8a1e;
    margin: 0 3px 0 6px;
}

.bbs-card__foot {
    margin-top: 14px;
    text-align: center;
}

/* ---------- 下部CTAバナー ---------- */
.bbs-bottomcta {
    position: relative;
    max-width: 1200px;
    margin: 24px auto 40px;
    padding: 30px 34px;
    border: 1px solid #4a331c;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1108 0%, #14100c 55%, #0d1017 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}

.bbs-bottomcta__title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .02em;
}

.bbs-bottomcta__text {
    margin-top: 8px;
    font-size: 13px;
    color: #a9b4c4;
}

/* ---------- 投稿モーダル ---------- */
.bbs-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
    background: rgba(3, 5, 10, .78);
    backdrop-filter: blur(3px);
}

.bbs-modal.is-open {
    display: flex;
}

.bbs-modal__panel {
    width: 100%;
    max-width: 560px;
    border: 1px solid #22304a;
    border-radius: 10px;
    background: #0c111c;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.bbs-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #1a2434;
    font-size: 16px;
    font-weight: 700;
}

.bbs-modal__close {
    border: 0;
    background: none;
    color: #9aa6b8;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.bbs-modal__close:hover {
    color: #ff8a1e;
}

.bbs-modal__body {
    padding: 20px;
}

.bbs-field {
    margin-bottom: 16px;
}

.bbs-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #d4dbe6;
}

.bbs-field input[type="text"],
.bbs-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #22304a;
    border-radius: 6px;
    background: #060911;
    color: #e6ecf5;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
}

.bbs-field textarea {
    resize: vertical;
}

.bbs-field input:focus,
.bbs-field textarea:focus {
    outline: none;
    border-color: #ff8a1e;
    box-shadow: 0 0 0 2px rgba(255, 138, 30, .18);
}

.bbs-field input[type="file"] {
    font-size: 12px;
    color: #9aa6b8;
}

.bbs-modal__submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, #ff8a1e, #ff6f00);
    color: #12160f;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.bbs-modal__submit:disabled {
    opacity: .6;
    cursor: default;
}

.bbs-modal__msg {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    min-height: 1.2em;
    color: #ffb066;
}

.bbs-empty {
    padding: 40px 10px;
    text-align: center;
    font-size: 13px;
    color: #8d99ab;
}

/* ---------- 掲示板レスポンシブ ---------- */
@media (max-width: 980px) {
    .bbs-hero__inner {
        grid-template-columns: 1fr;
    }

    .bbs-hero__cta {
        max-width: 360px;
    }

    .bbs-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .bbs-hero__title {
        font-size: 30px;
    }

    .bbs-listhead {
        display: none;
    }

    .bbs-thread {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bbs-thread__meta {
        display: none;
    }

    .bbs-thread__main {
        gap: 12px;
    }

    .bbs-tabsearch {
        margin-left: 0;
        width: 100%;
    }

    .bbs-bottomcta {
        padding: 24px 20px;
    }
}

