/* ============================================================
   UFO写真＆UFO動画 一覧（design/conts_photo.png 準拠）
   スコープ: body.ufo-top / クラス接頭辞 .pht-
   ============================================================ */

/* ---------- ヒーロー ---------- */
.pht-hero {
    position: relative;
    background: #060911 url("/img/design/photo/photo_hero.jpg") center 34% / cover no-repeat;
    border-bottom: 1px solid #16202f;
    overflow: hidden;
}
.pht-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(95deg, rgba(4, 7, 14, .95) 0%, rgba(4, 7, 14, .86) 34%, rgba(4, 7, 14, .34) 66%, rgba(4, 7, 14, .58) 100%),
        linear-gradient(180deg, rgba(4, 7, 14, .55) 0%, rgba(4, 7, 14, 0) 30%, rgba(4, 7, 14, .78) 100%);
}
.pht-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 66px 20px 74px;
}
.pht-hero__title {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .02em;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .92);
}
.pht-hero__title em {
    font-style: normal;
    color: #ff8a1e;
}
.pht-hero__sub {
    margin-top: 12px;
    font-size: 27px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .92);
}
.pht-hero__lead {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.9;
    color: #cfd7e3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.pht-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.pht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    padding: 13px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.pht-btn i { font-size: 15px; }
.pht-btn--primary {
    background: linear-gradient(180deg, #ff9a33 0%, #f57c00 100%);
    color: #1b0d00;
    box-shadow: 0 8px 24px rgba(255, 122, 0, .34);
}
.pht-btn--primary:hover { filter: brightness(1.07); color: #1b0d00; }
.pht-btn--ghost {
    background: rgba(10, 16, 26, .72);
    border: 1px solid #35404f;
    color: #e6ecf5;
}
.pht-btn--ghost:hover { border-color: #ff8a1e; color: #ff8a1e; }

/* ---------- レイアウト ---------- */
.pht-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 64px;
    align-items: start;
}

/* サイドバー先頭カードをヒーローに重ねる（デザイン準拠） */
.pht-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: -132px;
    position: relative;
    z-index: 2;
}

/* パンくず */
.pht-pan {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #8d99ab;
    padding: 16px 0 18px;
}
.pht-pan a { color: #cfd7e3; text-decoration: none; }
.pht-pan a:hover { color: #ff8a1e; }

.pht-intro {
    font-size: 13px;
    line-height: 1.9;
    color: #cfd7e3;
}

/* ---------- 絞り込み ---------- */
.pht-filter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px 26px;
    align-items: start;
    margin-top: 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid #16202f;
}
.pht-tabs {
    display: flex;
    gap: 10px;
}
.pht-tab {
    padding: 9px 20px;
    border-radius: 6px;
    border: 1px solid #2a3444;
    background: rgba(10, 16, 26, .6);
    color: #cfd7e3;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.pht-tab:hover { border-color: #ff8a1e; color: #ff8a1e; }
.pht-tab.is-active {
    border-color: #ff8a1e;
    background: rgba(255, 138, 30, .1);
    color: #ff8a1e;
}

.pht-filter__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pht-search {
    position: relative;
    display: flex;
}
.pht-search input {
    width: 100%;
    padding: 11px 46px 11px 16px;
    border-radius: 6px;
    border: 1px solid #2a3444;
    background: rgba(6, 10, 18, .82);
    color: #e6ecf5;
    font-size: 13px;
    font-family: inherit;
}
.pht-search input::placeholder { color: #6e7a8b; }
.pht-search input:focus { outline: none; border-color: #ff8a1e; }
.pht-search button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 44px;
    border: 0;
    background: transparent;
    color: #8d99ab;
    font-size: 14px;
    cursor: pointer;
}
.pht-search button:hover { color: #ff8a1e; }

.pht-selects {
    display: flex;
    gap: 12px;
}
.pht-selects select {
    min-width: 168px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #2a3444;
    background: rgba(6, 10, 18, .82);
    color: #e6ecf5;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}
.pht-selects select:focus { outline: none; border-color: #ff8a1e; }

/* ---------- セクション見出し ---------- */
.pht-block { margin-top: 30px; }
.pht-block[hidden] { display: none; }

.pht-secthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.pht-secttl {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
}
.pht-secttl i { margin-right: 10px; color: #ff8a1e; font-size: 20px; }
.pht-secttl em { font-style: normal; color: #ff8a1e; }

.pht-seeall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #2a3444;
    background: rgba(10, 16, 26, .6);
    color: #cfd7e3;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.pht-seeall:hover { border-color: #ff8a1e; color: #ff8a1e; }

.pht-empty {
    padding: 30px 0;
    color: #8d99ab;
    font-size: 13px;
}

/* ---------- 写真グリッド ---------- */
.pht-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 20px;
}
.pht-card__thumb {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1b2534;
    background: #0a101a;
}
.pht-card__thumb img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    transition: transform .3s;
}
.pht-card__thumb:hover img { transform: scale(1.04); }

.pht-new {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 3px 9px;
    border-radius: 4px;
    background: #f57c00;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
}

.pht-card__title {
    margin-top: 11px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}
.pht-card__title a:hover { color: #ff8a1e; }

.pht-card__meta {
    margin-top: 7px;
    font-size: 11px;
    color: #8d99ab;
}
.pht-card__stats {
    display: flex;
    gap: 16px;
    margin-top: 7px;
    font-size: 12px;
    color: #cfd7e3;
}
.pht-card__stats i {
    margin-right: 6px;
    color: #ff8a1e;
}
.pht-card__stats span:last-child i { color: #8d99ab; }

.pht-count {
    margin-top: 20px;
    font-size: 12px;
    color: #8d99ab;
}
.pht-count b { color: #ff8a1e; }

/* ページネーション（CI出力 .pagination_wrap をダークテーマに合わせる）
   現在ページは <span class="current">、他は <a>。両方を同じ箱に揃える。 */
.pht-pager { margin-top: 14px; }
.pht-pager .pagination_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 0;
}
.pht-pager .pagination_wrap > a,
.pht-pager .pagination_wrap > span,
.pht-pager .pagination_wrap > b,
.pht-pager .pagination_wrap > strong {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 9px;
    border-radius: 6px;
    border: 1px solid #2a3444;
    background: rgba(10, 16, 26, .6);
    color: #cfd7e3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}
.pht-pager .pagination_wrap > a:hover { border-color: #ff8a1e; color: #ff8a1e; }
.pht-pager .pagination_wrap > span.current,
.pht-pager .pagination_wrap > b,
.pht-pager .pagination_wrap > strong {
    border-color: #ff8a1e;
    background: rgba(255, 138, 30, .12);
    color: #ff8a1e;
}

/* ---------- 動画グリッド ---------- */
.pht-movies {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px 14px;
}
.pht-movie__thumb {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1b2534;
    background: #0a101a;
}
.pht-movie__thumb img {
    width: 100%;
    height: 218px;
    object-fit: cover;
}
.pht-movie__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 7, 14, .1) 0%, rgba(4, 7, 14, .05) 50%, rgba(4, 7, 14, .62) 100%);
}
.pht-movie__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    background: rgba(4, 7, 14, .34);
    color: #fff;
    font-size: 17px;
    padding-left: 4px;
    transition: background .2s, border-color .2s;
}
.pht-movie__thumb:hover .pht-movie__play {
    background: rgba(245, 124, 0, .8);
    border-color: #ff8a1e;
}
.pht-movie__badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(4, 7, 14, .78);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

/* ---------- サイドバー共通 ---------- */
.pht-scard {
    border: 1px solid #1b2534;
    border-radius: 10px;
    background: rgba(10, 16, 26, .94);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.pht-scard__head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 18px 4px;
    font-size: 17px;
    font-weight: 900;
    color: #ff8a1e;
}
.pht-scard__head i { font-size: 16px; }
.pht-scard__body { padding: 12px 16px 16px; }
.pht-scard__foot { margin-top: 14px; }

.pht-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #2a3444;
    color: #cfd7e3;
    font-size: 12px;
    font-weight: 700;
}
.pht-ghost:hover { border-color: #ff8a1e; color: #ff8a1e; }

/* ---------- 人気ランキング ---------- */
.pht-ranktabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 6px;
}
.pht-ranktab {
    padding: 9px 6px;
    border-radius: 6px;
    border: 1px solid #2a3444;
    background: rgba(6, 10, 18, .7);
    color: #cfd7e3;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.pht-ranktab:hover { border-color: #ff8a1e; color: #ff8a1e; }
.pht-ranktab.is-active {
    border-color: #ff8a1e;
    background: rgba(255, 138, 30, .1);
    color: #ff8a1e;
}

.pht-rank[hidden] { display: none; }
.pht-rank__item {
    display: grid;
    grid-template-columns: 22px 88px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #16202f;
}
.pht-rank__item:last-child { border-bottom: 0; }
.pht-rank__empty {
    padding: 16px 0;
    color: #8d99ab;
    font-size: 12px;
}

.pht-rank__no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #2a3444;
    background: rgba(6, 10, 18, .8);
    color: #8d99ab;
    font-size: 12px;
    font-weight: 900;
}
.pht-rank__no--1 { background: linear-gradient(180deg, #ffcb52 0%, #e0a013 100%); border-color: #ffcb52; color: #3a2500; }
.pht-rank__no--2 { background: linear-gradient(180deg, #e3e8ef 0%, #aab4c2 100%); border-color: #e3e8ef; color: #26303c; }
.pht-rank__no--3 { background: linear-gradient(180deg, #e08a3c 0%, #b0611c 100%); border-color: #e08a3c; color: #2a1400; }

.pht-rank__thumb {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #1b2534;
    background: #0a101a;
}
.pht-rank__thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}
.pht-rank__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.pht-rank__title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
}
.pht-rank__title:hover { color: #ff8a1e; }
.pht-rank__meta { font-size: 11px; color: #8d99ab; }
.pht-rank__stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: #cfd7e3;
}
.pht-rank__stats i { margin-right: 5px; color: #ff8a1e; }
.pht-rank__stats span:last-child i { color: #8d99ab; }

/* ---------- 人気のタグ ---------- */
.pht-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.pht-tags a {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 5px;
    border: 1px solid rgba(255, 138, 30, .38);
    background: rgba(255, 138, 30, .07);
    color: #ff9a3d;
    font-size: 11px;
    font-weight: 700;
}
.pht-tags a:hover {
    background: rgba(255, 138, 30, .18);
    color: #ffb163;
}

/* ---------- サイド：UFO写真ガイド（解説記事クラスタ） ---------- */
.pht-guide {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pht-guide li {
    padding-left: 15px;
    position: relative;
    line-height: 1.55;
}
.pht-guide li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff8a1e;
}
.pht-guide a {
    color: #d8d3cd;
    font-size: 12.5px;
    font-weight: 600;
}
.pht-guide a:hover {
    color: #ffb163;
    text-decoration: underline;
}

/* ---------- 投稿CTA ---------- */
.pht-cta {
    padding: 20px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 138, 30, .34);
    background: linear-gradient(160deg, rgba(46, 25, 6, .92) 0%, rgba(14, 12, 12, .94) 62%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.pht-cta__lead {
    display: flex;
    align-items: center;
    gap: 14px;
}
.pht-cta__icon {
    flex: 0 0 auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(255, 138, 30, .5));
}
.pht-cta__icon svg { display: block; }
.pht-cta__title {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    color: #fff;
}
.pht-cta__text {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.7;
    color: #cfd7e3;
}
.pht-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ff9a33 0%, #f57c00 100%);
    color: #1b0d00;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(255, 122, 0, .3);
}
.pht-cta__btn:hover { filter: brightness(1.07); color: #1b0d00; }

/* ---------- 新着コメント ---------- */
.pht-comment {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #16202f;
}
.pht-comment:last-child { border-bottom: 0; }
.pht-comment__ic {
    margin-top: 3px;
    color: #6e7a8b;
    font-size: 13px;
}
.pht-comment__text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    color: #e6ecf5;
}
.pht-comment__src {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #8d99ab;
}
.pht-comment__src:hover { color: #ff8a1e; }
.pht-comment__time {
    font-size: 10px;
    color: #6e7a8b;
    white-space: nowrap;
}

/* ---------- 投稿モーダル ---------- */
.pht-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    background: rgba(2, 4, 9, .82);
    overflow-y: auto;
}
.pht-modal.is-open { display: flex; }
.pht-modal__panel {
    width: 100%;
    max-width: 560px;
    border: 1px solid #24303f;
    border-radius: 12px;
    background: #0a101a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.pht-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #16202f;
    font-size: 15px;
    font-weight: 900;
    color: #ff8a1e;
}
.pht-modal__close {
    border: 0;
    background: transparent;
    color: #8d99ab;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.pht-modal__close:hover { color: #ff8a1e; }
.pht-modal__body { padding: 18px 20px 22px; }

.pht-field { margin-bottom: 14px; }
.pht-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #cfd7e3;
}
.pht-field input[type="text"],
.pht-field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #2a3444;
    background: rgba(6, 10, 18, .82);
    color: #e6ecf5;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.7;
}
.pht-field input[type="text"]:focus,
.pht-field textarea:focus { outline: none; border-color: #ff8a1e; }
.pht-field input[type="file"] { font-size: 12px; color: #cfd7e3; }

.pht-modal__submit {
    width: 100%;
    margin-top: 6px;
    padding: 13px 16px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, #ff9a33 0%, #f57c00 100%);
    color: #1b0d00;
    font-size: 14px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
}
.pht-modal__submit:disabled { opacity: .6; cursor: default; }
.pht-modal__msg {
    margin-top: 10px;
    font-size: 12px;
    color: #ff9a3d;
    text-align: center;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
    .pht-layout { grid-template-columns: minmax(0, 1fr); }
    .pht-aside { margin-top: 24px; }
    .pht-movies { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .pht-hero__inner { padding: 46px 20px 52px; }
    .pht-hero__title { font-size: 34px; }
    .pht-hero__sub { font-size: 19px; }
    .pht-filter { grid-template-columns: minmax(0, 1fr); }
    .pht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pht-movies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pht-movie__thumb img { height: 190px; }
}

@media (max-width: 560px) {
    .pht-hero__title { font-size: 27px; }
    .pht-hero__sub { font-size: 16px; }
    .pht-btn { flex: 1 1 100%; min-width: 0; }
    .pht-selects { flex-direction: column; }
    .pht-selects select { min-width: 0; width: 100%; }
    .pht-grid { grid-template-columns: minmax(0, 1fr); }
    .pht-movies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pht-secttl { font-size: 18px; }
}

