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

.dt-photod .dtpd-container {
    padding-top: 18px;
}

/* ---------- パンくず ---------- */
.dt-photod .dtpd-pan {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #86828b;
}

.dt-photod .dtpd-pan a {
    color: #c98c3c;
}

.dt-photod .dtpd-pan a:hover {
    color: #e0a355;
    opacity: 1;
}

.dt-photod .dtpd-pan i {
    font-size: 10px;
    color: #57545c;
}

/* ---------- メイン写真 ---------- */
.dt-photod .dtpd-photo {
    background: #121116;
    border: 1px solid #232228;
    border-radius: 8px;
    padding: 12px;
}

.dt-photod .dtpd-photo__frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: #0a090b;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    cursor: zoom-in;
}

/* タップで拡大のヒント（PCはホバーで表示、タッチ端末は常時表示） */
.dt-photod .dtpd-photo__zoomhint {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(10, 9, 11, .82);
    border: 1px solid #3a383f;
    border-radius: 4px;
    font-size: 11px;
    color: #e6e3e8;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}

.dt-photod .dtpd-photo__zoomhint i {
    color: #c98c3c;
}

.dt-photod .dtpd-photo__frame:hover .dtpd-photo__zoomhint {
    opacity: 1;
}

@media (hover: none) {
    .dt-photod .dtpd-photo__zoomhint {
        opacity: 1;
    }
}

.dt-photod .dtpd-photo__frame img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    margin: 0 auto;
}

.dt-photod .dtpd-photo__no {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    background: rgba(10, 9, 11, .82);
    border: 1px solid #3a383f;
    border-radius: 4px;
    font-size: 11px;
    color: #e6e3e8;
}

/* 写真下のアクションバー */
.dt-photod .dtpd-photo__acts {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dt-photod .dtpd-act {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    background: #17161b;
    border: 1px solid #2c2b32;
    border-radius: 6px;
    font-size: 13px;
    color: #d5d2d8;
    transition: border-color .15s, color .15s;
}

.dt-photod .dtpd-act i {
    font-size: 12px;
    color: #c98c3c;
}

.dt-photod .dtpd-act:hover {
    border-color: rgba(201, 140, 60, .6);
    color: #fff;
    opacity: 1;
}

.dt-photod .dtpd-act.is-disabled {
    color: #5c5960;
    cursor: default;
}

.dt-photod .dtpd-act.is-disabled i {
    color: #4a474f;
}

.dt-photod .dtpd-act--report i {
    color: #d0161f;
}

.dt-photod .dtpd-act--report:hover {
    border-color: rgba(208, 22, 31, .6);
}

/* ---------- タイトル・タグ ---------- */
.dt-photod .dtpd-title {
    margin-top: 26px;
    font-family: "Shippori Mincho", serif;
    font-size: 28px;
    font-weight: 800;
    color: #f2f0ed;
    line-height: 1.45;
    letter-spacing: .03em;
}

.dt-photod .dtpd-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dt-photod .dtpd-tag {
    padding: 4px 12px;
    font-size: 11px;
    color: #c9c6cd;
    background: #1b1a20;
    border: 1px solid #2c2b32;
    border-radius: 4px;
}

.dt-photod .dtpd-tag:hover {
    border-color: rgba(201, 140, 60, .5);
    color: #f2f0ed;
    opacity: 1;
}

/* ---------- 基本情報 ---------- */
.dt-photod .dtpd-info {
    margin-top: 18px;
    padding: 18px 20px;
    background: #121116;
    border: 1px solid #232228;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}

.dt-photod .dtpd-info__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.dt-photod .dtpd-info__item dt {
    flex-shrink: 0;
    width: 84px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #9a969f;
}

.dt-photod .dtpd-info__item dt i {
    color: #c98c3c;
    font-size: 12px;
}

.dt-photod .dtpd-info__item dd {
    color: #e6e3e8;
    line-height: 1.6;
}

/* ---------- 本文パネル共通 ---------- */
.dt-photod .dtpd-panel {
    margin-top: 20px;
    padding: 20px;
    background: #121116;
    border: 1px solid #232228;
    border-radius: 8px;
}

.dt-photod .dtpd-panel__title {
    font-family: "Shippori Mincho", serif;
    font-size: 17px;
    font-weight: 800;
    color: #f2f0ed;
    letter-spacing: .04em;
    padding-bottom: 12px;
    border-bottom: 1px solid #232228;
    margin-bottom: 16px;
}

.dt-photod .dtpd-panel__title span {
    font-size: 13px;
    font-weight: normal;
    color: #9a969f;
}

.dt-photod .dtpd-panel__sub {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #1f1e24;
    font-size: 15px;
    font-weight: bold;
    color: #f2f0ed;
    margin-bottom: 12px;
}

.dt-photod .dtpd-panel__sub--editor {
    color: #c98c3c;
}

.dt-photod .dtpd-panel__text p {
    font-size: 13px;
    color: #c9c6cd;
    line-height: 1.95;
}

.dt-photod .dtpd-panel__text p + p {
    margin-top: 10px;
}

/* ---------- 拡大ビューア ---------- */
.dt-photod .dtpd-zoom__body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.dt-photod .dtpd-zoom__stage {
    flex: 1;
    min-width: 0;
    height: 240px;
    background: #0a090b;
    border: 1px solid #232228;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dt-photod .dtpd-zoom__stage {
    cursor: zoom-in;
    touch-action: none;
}

.dt-photod .dtpd-zoom__stage.is-zoomed {
    cursor: grab;
}

.dt-photod .dtpd-zoom__stage.is-dragging {
    cursor: grabbing;
}

.dt-photod .dtpd-zoom__stage img {
    max-width: 100%;
    max-height: 100%;
    transition: transform .12s ease-out;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.dt-photod .dtpd-zoom__stage.is-dragging img {
    transition: none;
}

.dt-photod .dtpd-zoom__side {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dt-photod .dtpd-zoom__ctrls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dt-photod .dtpd-zoom__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    background: #17161b;
    border: 1px solid #2c2b32;
    border-radius: 6px;
    font-size: 12px;
    color: #d5d2d8;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.dt-photod .dtpd-zoom__btn i {
    font-size: 12px;
    color: #c98c3c;
}

.dt-photod .dtpd-zoom__btn:hover {
    border-color: rgba(201, 140, 60, .6);
    color: #fff;
}

.dt-photod .dtpd-zoom__thumb {
    position: relative;
    height: 84px;
    background: #0a090b;
    border: 1px solid #2c2b32;
    border-radius: 6px;
    overflow: hidden;
}

.dt-photod .dtpd-zoom__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ルーペ：ステージ上のカーソル位置を拡大表示する */
.dt-photod .dtpd-zoom__loupe {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .12s;
    pointer-events: none;
}

.dt-photod .dtpd-zoom__loupe.is-active {
    opacity: 1;
}

.dt-photod .dtpd-zoom__hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6f6b74;
    line-height: 1.5;
}

.dt-photod .dtpd-zoom__hint i {
    color: #c98c3c;
}

/* ---------- 気になったポイント ---------- */
.dt-photod .dtpd-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.dt-photod .dtpd-points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: #c9c6cd;
    line-height: 1.6;
}

.dt-photod .dtpd-points li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 12px;
    color: #c98c3c;
}

/* ---------- みんなの反応 ---------- */
.dt-photod .dtpd-reactions {
    margin-top: 20px;
    padding: 14px 20px;
    background: #121116;
    border: 1px solid #232228;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dt-photod .dtpd-reactions__label {
    flex-shrink: 0;
    font-family: "Shippori Mincho", serif;
    font-size: 14px;
    font-weight: 800;
    color: #f2f0ed;
    letter-spacing: .04em;
}

.dt-photod .dtpd-reactions__list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dt-photod .dtpd-reactions__list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: #17161b;
    border: 1px solid #2c2b32;
    border-radius: 6px;
}

.dt-photod .dtpd-reactions__emoji {
    font-size: 20px;
    line-height: 1;
}

.dt-photod .dtpd-reactions__name {
    display: block;
    font-size: 11px;
    color: #c9c6cd;
    white-space: nowrap;
}

.dt-photod .dtpd-reactions__count {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: bold;
    color: #f2f0ed;
}

/* ---------- コメント一覧 ---------- */
.dt-photod .dtpd-empty {
    padding: 26px 0;
    text-align: center;
    font-size: 13px;
    color: #86828b;
    line-height: 1.9;
}

.dt-photod .dtpd-comment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #1f1e24;
}

.dt-photod .dtpd-comment:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dt-photod .dtpd-comment__avatar {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #232228;
    border-radius: 50%;
    color: #86828b;
    font-size: 13px;
}

.dt-photod .dtpd-comment__body {
    flex: 1;
    min-width: 0;
}

.dt-photod .dtpd-comment__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dt-photod .dtpd-comment__name {
    font-size: 12px;
    font-weight: bold;
    color: #e6e3e8;
}

.dt-photod .dtpd-comment__date {
    font-size: 11px;
    color: #6f6b74;
}

.dt-photod .dtpd-comment__text {
    margin-top: 5px;
    font-size: 12px;
    color: #c9c6cd;
    line-height: 1.75;
}

.dt-photod .dtpd-comment__like {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #17161b;
    border: 1px solid #2c2b32;
    border-radius: 4px;
    font-size: 11px;
    color: #9a969f;
}

/* ---------- コメント投稿フォーム ---------- */
.dt-photod .dtpd-form__area {
    position: relative;
}

.dt-photod .dtpd-form__area textarea {
    width: 100%;
    height: 110px;
    padding: 14px 16px;
    background: #0e0d11;
    border: 1px solid #2c2b32;
    border-radius: 6px;
    color: #f2f0ed;
    font-size: 13px;
    line-height: 1.7;
    resize: vertical;
}

.dt-photod .dtpd-form__area textarea::placeholder {
    color: #6f6b74;
}

.dt-photod .dtpd-form__area textarea:focus {
    outline: none;
    border-color: #c98c3c;
}

.dt-photod .dtpd-form__counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    color: #6f6b74;
}

.dt-photod .dtpd-form__row {
    margin-top: 12px;
    display: flex;
    gap: 12px;
}

.dt-photod .dtpd-form__row input[type="text"] {
    flex: 0 0 40%;
    height: 42px;
    padding: 0 14px;
    background: #0e0d11;
    border: 1px solid #2c2b32;
    border-radius: 6px;
    color: #f2f0ed;
    font-size: 13px;
}

.dt-photod .dtpd-form__row input[type="text"]::placeholder {
    color: #6f6b74;
}

.dt-photod .dtpd-form__row input[type="text"]:focus {
    outline: none;
    border-color: #c98c3c;
}

.dt-photod .dtpd-form__submit {
    flex: 1;
    height: 42px;
    background: #d97a1e;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background .15s;
}

.dt-photod .dtpd-form__submit:hover {
    background: #c06a15;
}

.dt-photod .dtpd-form__note {
    margin-top: 10px;
    text-align: right;
    font-size: 11px;
    color: #6f6b74;
}

/* ---------- みんなの評価 ---------- */
.dt-photod .dtpd-raty {
    margin-top: 20px;
}

/* ---------- 右カラム：関連記事 ---------- */
.dt-photod .dtpd-related li {
    border-bottom: 1px solid #1f1e24;
}

.dt-photod .dtpd-related li:last-child {
    border-bottom: 0;
}

.dt-photod .dtpd-related a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
}

.dt-photod .dtpd-related__thumb {
    position: relative;
    width: 76px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #0a090b;
}

.dt-photod .dtpd-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dt-photod .dtpd-related__kind {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 9px;
    color: #fff;
}

.dt-photod .dtpd-related__kind.is-story {
    background: rgba(208, 22, 31, .92);
}

.dt-photod .dtpd-related__kind.is-photo {
    background: rgba(60, 58, 66, .92);
}

.dt-photod .dtpd-related__body {
    flex: 1;
    min-width: 0;
}

.dt-photod .dtpd-related__title {
    display: block;
    font-size: 12px;
    color: #e6e3e8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-photod .dtpd-related__meta {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #86828b;
}

.dt-photod .dtpd-related a:hover .dtpd-related__title {
    color: #fff;
}

/* ---------- 右カラム：同じ地域の心霊写真 ---------- */
.dt-photod .dtpd-area li {
    border-bottom: 1px solid #1f1e24;
}

.dt-photod .dtpd-area li:last-child {
    border-bottom: 0;
}

.dt-photod .dtpd-area a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
}

.dt-photod .dtpd-area__thumb {
    width: 76px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #0a090b;
}

.dt-photod .dtpd-area__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dt-photod .dtpd-area__body {
    flex: 1;
    min-width: 0;
}

.dt-photod .dtpd-area__title {
    display: block;
    font-size: 12px;
    color: #e6e3e8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-photod .dtpd-area__pref,
.dt-photod .dtpd-area__meta {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #86828b;
}

.dt-photod .dtpd-area a:hover .dtpd-area__title {
    color: #fff;
}

/* ---------- 右カラム：投稿ガイド ---------- */
.dt-photod .dtpd-guide li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 7px 0;
    font-size: 12px;
    color: #c9c6cd;
    line-height: 1.6;
}

.dt-photod .dtpd-guide li i {
    flex-shrink: 0;
    margin-top: 5px;
    font-size: 5px;
    color: #d97a1e;
}

/* ---------- 右カラム：投稿前の注意事項 ---------- */
.dt-photod .dtpd-caution li {
    position: relative;
    padding: 7px 0 7px 14px;
    font-size: 12px;
    color: #9a969f;
    line-height: 1.6;
}

.dt-photod .dtpd-caution li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 7px;
    color: #6f6b74;
}

/* ---------- 右カラム：投稿CTA（photo.css の .dtp-cta を詳細用に微調整） ---------- */
.dt-photod .dtp-cta__btn {
    background: #d97a1e;
}

.dt-photod .dtp-cta:hover .dtp-cta__btn {
    background: #c06a15;
}

/* ---------- ライトボックス（メイン写真のタップ拡大） ---------- */
body.dtpd-noscroll {
    overflow: hidden;
}

.dt-photod .dtpd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    flex-direction: column;
    background: rgba(6, 5, 7, .96);
}

.dt-photod .dtpd-lightbox.is-open {
    display: flex;
}

.dt-photod .dtpd-lightbox__bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(18, 17, 22, .92);
    border-bottom: 1px solid #232228;
}

.dt-photod .dtpd-lightbox__caption {
    font-family: "Shippori Mincho", serif;
    font-size: 14px;
    color: #f2f0ed;
    letter-spacing: .03em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-photod .dtpd-lightbox__ctrls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dt-photod .dtpd-lightbox__scale {
    min-width: 52px;
    text-align: center;
    font-size: 12px;
    color: #9a969f;
}

.dt-photod .dtpd-lightbox__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #17161b;
    border: 1px solid #2c2b32;
    border-radius: 6px;
    color: #d5d2d8;
    font-size: 15px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.dt-photod .dtpd-lightbox__btn:hover {
    border-color: rgba(201, 140, 60, .6);
    color: #fff;
}

.dt-photod .dtpd-lightbox__close {
    margin-left: 6px;
}

.dt-photod .dtpd-lightbox__close:hover {
    border-color: rgba(208, 22, 31, .7);
}

.dt-photod .dtpd-lightbox__stage {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    touch-action: none;
}

.dt-photod .dtpd-lightbox__stage.is-zoomed {
    cursor: grab;
}

.dt-photod .dtpd-lightbox__stage.is-dragging {
    cursor: grabbing;
}

.dt-photod .dtpd-lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    transition: transform .12s ease-out;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.dt-photod .dtpd-lightbox__stage.is-dragging img {
    transition: none;
}

.dt-photod .dtpd-lightbox__hint {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    text-align: center;
    font-size: 11px;
    color: #6f6b74;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
    .dt-photod .dtpd-info {
        grid-template-columns: 1fr;
    }

    .dt-photod .dtpd-reactions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dt-photod .dtpd-reactions__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .dt-photod .dtpd-zoom__body {
        flex-direction: column;
    }

    .dt-photod .dtpd-zoom__side {
        width: 100%;
    }

    .dt-photod .dtpd-zoom__ctrls {
        flex-direction: row;
    }

    .dt-photod .dtpd-zoom__btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .dt-photod .dtpd-title {
        font-size: 22px;
    }

    .dt-photod .dtpd-photo__acts {
        grid-template-columns: 1fr 1fr;
    }

    .dt-photod .dtpd-points {
        grid-template-columns: 1fr;
    }

    .dt-photod .dtpd-form__row {
        flex-direction: column;
    }

    .dt-photod .dtpd-form__row input[type="text"] {
        flex: 1 1 auto;
    }

    .dt-photod .dtpd-lightbox__caption {
        display: none;
    }

    .dt-photod .dtpd-lightbox__bar {
        justify-content: flex-end;
    }
}
