/* ==========================================================
   心霊写真一覧ページ専用ダークテーマ (design/conts_photo.png 準拠)
   body.dark-top.dt-bbs.dt-photo 配下のみに適用
   共通の .dtb-* 系（コンテナ・右カラム・カード・ランキング）は bbs.css を再利用
   ========================================================== */

/* ---------- ヒーロー ---------- */
.dt-photo .dtp-hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(8, 7, 9, .94) 0%, rgba(8, 7, 9, .6) 55%, rgba(8, 7, 9, .35) 100%),
        url(/img/design/privacy_hero.jpg) center 32% / cover no-repeat;
    border-bottom: 1px solid #1c1b20;
}

.dt-photo .dtp-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 16px 40px;
}

.dt-photo .dtp-hero__title {
    font-family: "Shippori Mincho", serif;
    font-size: 48px;
    font-weight: 800;
    color: #f2f0ed;
    letter-spacing: .08em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .95);
}

.dt-photo .dtp-hero__lead {
    margin-top: 14px;
    font-family: "Shippori Mincho", serif;
    font-size: 15px;
    color: #d5d2d8;
    letter-spacing: .03em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}

.dt-photo .dtp-hero__count {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e8b3b5;
}

.dt-photo .dtp-hero__count i {
    color: #d0161f;
}

.dt-photo .dtp-hero__count strong {
    font-family: "Shippori Mincho", serif;
    font-size: 18px;
    color: #f2f0ed;
}

/* 検索バー */
.dt-photo .dtp-search {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    max-width: 680px;
}

.dt-photo .dtp-search input {
    flex: 1;
    height: 48px;
    padding: 0 18px;
    background: rgba(12, 11, 14, .82);
    border: 1px solid #35333a;
    border-radius: 8px;
    color: #f2f0ed;
    font-size: 14px;
}

.dt-photo .dtp-search input::placeholder {
    color: #86828b;
}

.dt-photo .dtp-search input:focus {
    outline: none;
    border-color: #d0161f;
}

.dt-photo .dtp-search button {
    flex-shrink: 0;
    padding: 0 30px;
    height: 48px;
    background: #d0161f;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-photo .dtp-search button:hover {
    background: #b01219;
}

/* ---------- カテゴリチップ ---------- */
.dt-photo .dtp-catbar {
    background: #0c0b0e;
    border-bottom: 1px solid #1c1b20;
}

.dt-photo .dtp-cats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    gap: 10px;
}

.dt-photo .dtp-cat {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    background: #131217;
    border: 1px solid #232228;
    border-radius: 8px;
    text-align: center;
    transition: border-color .15s, background .15s;
}

.dt-photo .dtp-cat i {
    font-size: 20px;
    color: #d0161f;
}

.dt-photo .dtp-cat__name {
    font-size: 12px;
    color: #e6e3e8;
    white-space: nowrap;
}

.dt-photo .dtp-cat__count {
    font-size: 11px;
    color: #9a969f;
}

.dt-photo .dtp-cat:hover {
    border-color: rgba(208, 22, 31, .5);
    background: #17151b;
}

.dt-photo .dtp-cat.is-active {
    border-color: #d0161f;
    background: rgba(208, 22, 31, .12);
}

/* ---------- 一覧見出し・ツールバー ---------- */
.dt-photo .dtp-listhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.dt-photo .dtp-listtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Shippori Mincho", serif;
    font-size: 22px;
    font-weight: 800;
    color: #f2f0ed;
}

.dt-photo .dtp-listtitle i {
    color: #d0161f;
    font-size: 18px;
}

.dt-photo .dtp-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-photo .dtp-sort {
    display: flex;
    gap: 6px;
}

.dt-photo .dtp-sort a {
    padding: 6px 14px;
    font-size: 12px;
    color: #b7b3bb;
    background: #131217;
    border: 1px solid #232228;
    border-radius: 6px;
}

.dt-photo .dtp-sort a.is-active {
    background: #d0161f;
    border-color: #d0161f;
    color: #fff;
}

.dt-photo .dtp-sort a:hover {
    color: #f2f0ed;
}

.dt-photo .dtp-viewtoggle {
    width: 34px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #131217;
    border: 1px solid #232228;
    border-radius: 6px;
    color: #b7b3bb;
}

/* ---------- 写真グリッド ---------- */
.dt-photo .dtp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dt-photo .dtp-card {
    display: flex;
    flex-direction: column;
    background: #131217;
    border: 1px solid #232228;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}

.dt-photo .dtp-card:hover {
    border-color: rgba(208, 22, 31, .5);
    transform: translateY(-2px);
}

.dt-photo .dtp-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a090b;
}

.dt-photo .dtp-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dt-photo .dtp-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(208, 22, 31, .92);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
}

.dt-photo .dtp-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.dt-photo .dtp-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #f2f0ed;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-photo .dtp-card__pref {
    font-size: 11px;
    color: #9a969f;
}

.dt-photo .dtp-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #b7b3bb;
}

.dt-photo .dtp-card__meta i {
    margin-right: 3px;
    color: #7f7b84;
}

.dt-photo .dtp-card__stars {
    color: #d0161f;
    letter-spacing: 1px;
}

.dt-photo .dtp-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dt-photo .dtp-tag {
    padding: 2px 8px;
    font-size: 10px;
    color: #c9c6cd;
    background: #1b1a20;
    border: 1px solid #2c2b32;
    border-radius: 4px;
}

.dt-photo .dtp-card__foot {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid #232228;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #86828b;
}

/* ---------- 右カラム：人気タグ・人気地域 ---------- */
.dt-photo .dtp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dt-photo .dtp-chips a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    font-size: 12px;
    color: #c9c6cd;
    background: #17161b;
    border: 1px solid #2c2b32;
    border-radius: 16px;
}

.dt-photo .dtp-chips a i {
    color: #d0161f;
    font-size: 10px;
}

.dt-photo .dtp-chips a small {
    color: #86828b;
    font-size: 11px;
}

.dt-photo .dtp-chips a:hover {
    border-color: rgba(208, 22, 31, .5);
    color: #f2f0ed;
}

/* ---------- 右カラム：最近投稿された写真 ---------- */
.dt-photo .dtp-recent li {
    border-bottom: 1px solid #1f1e24;
}

.dt-photo .dtp-recent li:last-child {
    border-bottom: 0;
}

.dt-photo .dtp-recent a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.dt-photo .dtp-recent__thumb {
    width: 48px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #0a090b;
}

.dt-photo .dtp-recent__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-photo .dtp-recent__body {
    flex: 1;
    min-width: 0;
}

.dt-photo .dtp-recent__title {
    display: block;
    font-size: 12px;
    color: #e6e3e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt-photo .dtp-recent__pref {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #86828b;
}

.dt-photo .dtp-recent__time {
    flex-shrink: 0;
    font-size: 11px;
    color: #86828b;
}

.dt-photo .dtp-recent a:hover .dtp-recent__title {
    color: #fff;
}

/* ---------- 右カラム：投稿CTA ---------- */
.dt-photo .dtp-cta {
    display: block;
    padding: 26px 20px;
    text-align: center;
    background:
        linear-gradient(rgba(10, 9, 11, .72), rgba(10, 9, 11, .82)),
        url(/img/design/privacy_hero.jpg) center / cover no-repeat;
    border: 1px solid #2c2b32;
    border-radius: 10px;
}

.dt-photo .dtp-cta__title {
    font-family: "Shippori Mincho", serif;
    font-size: 18px;
    font-weight: 800;
    color: #f2f0ed;
    line-height: 1.5;
}

.dt-photo .dtp-cta__text {
    margin-top: 10px;
    font-size: 12px;
    color: #b7b3bb;
}

.dt-photo .dtp-cta__btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    background: #d0161f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
}

.dt-photo .dtp-cta:hover .dtp-cta__btn {
    background: #b01219;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
    .dt-photo .dtp-cats {
        flex-wrap: wrap;
    }

    .dt-photo .dtp-cat {
        flex: 0 0 calc(20% - 8px);
    }

    .dt-photo .dtp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dt-photo .dtp-hero__title {
        font-size: 34px;
    }

    .dt-photo .dtp-cat {
        flex: 0 0 calc(33.333% - 7px);
    }

    .dt-photo .dtp-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 写真投稿フォーム ---------- */
.dt-photo .dtp-post {
    margin-top: 28px;
    padding: 24px 22px;
    background: #16151a;
    border: 1px solid #2c2b32;
    border-radius: 10px;
    scroll-margin-top: 80px;
}

.dt-photo .dtp-post__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: "Shippori Mincho", serif;
    font-size: 20px;
    font-weight: 800;
    color: #f5f4f7;
}

.dt-photo .dtp-post__title i {
    color: #d0161f;
}

.dt-photo .dtp-post__lead {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: #9b99a3;
}

.dt-photo .dtp-post__error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 11px 14px;
    background: rgba(208, 22, 31, .12);
    border: 1px solid #d0161f;
    border-radius: 8px;
    font-size: 13px;
    color: #ff8a8f;
}

.dt-photo .dtp-post__row {
    margin-bottom: 16px;
}

.dt-photo .dtp-post__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #d8d6de;
}

.dt-photo .dtp-post__label span {
    padding: 2px 7px;
    background: #d0161f;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.dt-photo .dtp-post__row input[type="text"],
.dt-photo .dtp-post__row input[type="file"],
.dt-photo .dtp-post__row textarea {
    width: 100%;
    padding: 11px 13px;
    background: #0f0e12;
    border: 1px solid #38363f;
    border-radius: 8px;
    font-size: 14px;
    color: #f5f4f7;
}

.dt-photo .dtp-post__row textarea {
    min-height: 140px;
    line-height: 1.7;
    resize: vertical;
}

.dt-photo .dtp-post__row input[type="text"]:focus,
.dt-photo .dtp-post__row textarea:focus {
    outline: none;
    border-color: #d0161f;
}

.dt-photo .dtp-post__row input::placeholder,
.dt-photo .dtp-post__row textarea::placeholder {
    color: #6b6975;
}

.dt-photo .dtp-post__hint {
    margin-top: 6px;
    font-size: 12px;
    color: #7c7a85;
}

.dt-photo .dtp-post__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: #d0161f;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.dt-photo .dtp-post__submit:hover {
    background: #b01219;
}

.dt-photo .dtp-post__note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.7;
    color: #7c7a85;
}

/* 一覧ヒーロー：投稿ボタン */
.dt-photo .dtp-hero__post {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 13px 28px;
    background: #d0161f;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.dt-photo .dtp-hero__post:hover {
    background: #b01219;
}

/* 一覧ヒーロー：写真募集の訴求 */
.dt-photo .dtp-hero__wanted {
    max-width: 640px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border: 1px solid rgba(208, 22, 31, .5);
    border-radius: 8px;
    background: rgba(208, 22, 31, .1);
    font-size: 13px;
    line-height: 1.8;
    color: #d5d2d8;
    text-align: left;
}

.dt-photo .dtp-hero__wanted-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 10px;
    border-radius: 4px;
    background: #d0161f;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.dt-photo .dtp-hero__wanted strong {
    color: #f2f0ed;
    font-weight: 700;
}

/* 投稿ページ：入力補助 */
.dt-photo .dtp-post__counter {
    margin-top: 6px;
    text-align: right;
    font-size: 12px;
    color: #7c7a85;
}

.dt-photo .dtp-post__preview {
    margin-top: 12px;
    padding: 10px;
    background: #0f0e12;
    border: 1px solid #2c2b32;
    border-radius: 8px;
}

.dt-photo .dtp-post__preview img {
    display: block;
    max-width: 100%;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 6px;
}

.dt-photo .dtp-post__lead a {
    color: #e8898d;
    text-decoration: underline;
}
