/* ============================================================
   UFO体験談 詳細（design/conts_story_detail.png 準拠）
   スコープ: body.ufo-top   .sd-*
   ============================================================ */
.sd-topbar {
    border-bottom: 1px solid #16202f;
    background:
        radial-gradient(60% 140% at 20% 0%, rgba(255, 138, 30, .12) 0%, rgba(6, 9, 17, 0) 70%),
        linear-gradient(180deg, #0a1120 0%, #060911 100%);
}

.sd-topbar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
}

.sd-pan {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #8d99ab;
}

/* $pan は <ul class="breadcrumb"><li> で出力されるため横並びにする */
.sd-pan ul,
.sd-pan ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-pan li {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.sd-pan li + li::before {
    content: "\003e";
    color: #4d5768;
    font-size: 10px;
}

.sd-pan a {
    color: #8d99ab;
    text-decoration: none;
}

.sd-pan a:hover {
    color: #ff8a1e;
}

.sd-main {
    min-width: 0;
}

/* ---------- 記事カード ---------- */
.sd-article {
    border: 1px solid #1a2434;
    border-radius: 10px;
    background: #0b1019;
    overflow: hidden;
}

.sd-hero {
    position: relative;
    display: block;
    aspect-ratio: 660 / 300;
    background: #060911;
    overflow: hidden;
}

.sd-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 17, .35) 0%, rgba(6, 9, 17, 0) 34%, rgba(6, 9, 17, .55) 100%);
    pointer-events: none;
}

.sd-hero__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 3px;
    background: #ff8a1e;
    color: #12160f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.sd-article__head {
    padding: 24px 26px 0;
}

.sd-title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.4;
    color: #fff;
    letter-spacing: .01em;
}

.sd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 16px;
    font-size: 13px;
    color: #c2ccda;
}

.sd-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sd-meta i {
    color: #ff8a1e;
    font-size: 13px;
}

/* ---------- 本文 ---------- */
.sd-body {
    margin: 22px 26px 26px;
    padding: 26px 28px;
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #0e1420;
    font-size: 15px;
    line-height: 2;
    color: #d8e0ea;
    word-break: break-word;
}

.sd-body p {
    margin: 0 0 20px;
}

.sd-body p:last-child {
    margin-bottom: 0;
}

.sd-body a {
    color: #ff9f45;
    text-decoration: underline;
    word-break: break-all;
}

.sd-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* 引用ボックス */
.sd-quote {
    position: relative;
    max-width: 620px;
    margin: 26px auto 6px;
    padding: 20px 46px;
    border: 1px solid #ff8a1e;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 138, 30, .10) 0%, rgba(255, 138, 30, .04) 100%),
        #14100a;
    text-align: center;
    font-size: 15px;
    line-height: 1.9;
    color: #ffd9b0;
}

.sd-quote::before,
.sd-quote::after {
    position: absolute;
    font-family: "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    color: #ff8a1e;
    font-size: 15px;
    opacity: .9;
}

.sd-quote::before {
    content: "\f10d";
    top: 16px;
    left: 16px;
}

.sd-quote::after {
    content: "\f10e";
    right: 16px;
    bottom: 16px;
}

/* ---------- 見出し（オレンジ縦バー） ---------- */
.sd-secttl {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-left: 11px;
    border-left: 4px solid #ff8a1e;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.sd-secttl b {
    font-size: 15px;
    color: #ff8a1e;
}

/* ---------- 投稿者が撮影した写真 ---------- */
.sd-photos {
    margin: 0 26px 26px;
    padding: 22px 24px 24px;
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #0e1420;
}

.sd-photos__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sd-photo {
    display: block;
    aspect-ratio: 4 / 3;
    border: 1px solid #22304a;
    border-radius: 6px;
    background: #060911 center / cover no-repeat;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}

.sd-photo:hover {
    border-color: #ff8a1e;
    transform: translateY(-2px);
}

.sd-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- 参考になった ---------- */
.sd-vote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 20px 26px;
    border: 1px solid #1a2434;
    border-radius: 10px;
    background: #0b1019;
}

.sd-vote__q {
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 700;
    color: #e6ecf4;
}

.sd-vote__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 176px;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid #2a3648;
    border-radius: 5px;
    background: #0f1724;
    color: #c2ccda;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

.sd-vote__btn i {
    font-size: 14px;
}

.sd-vote__btn--good {
    border-color: #ff8a1e;
    background: linear-gradient(180deg, rgba(255, 138, 30, .18) 0%, rgba(255, 138, 30, .08) 100%);
    color: #ffb066;
}

.sd-vote__btn--good i {
    color: #ff8a1e;
}

.sd-vote__btn:hover {
    border-color: #ff8a1e;
    color: #ffb066;
}

.sd-vote__btn.is-voted {
    background: #ff8a1e;
    border-color: #ff8a1e;
    color: #12160f;
    cursor: default;
}

.sd-vote__btn.is-voted i {
    color: #12160f;
}

/* ---------- セクション枠 ---------- */
.sd-section {
    margin-top: 18px;
    padding: 22px 26px 26px;
    border: 1px solid #1a2434;
    border-radius: 10px;
    background: #0b1019;
}

/* ---------- コメント ---------- */
.sd-comment {
    padding: 18px 20px;
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #0e1420;
}

.sd-comment + .sd-comment {
    margin-top: 12px;
}

.sd-comment__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sd-comment__ava {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #263041;
    color: #8d99ab;
    font-size: 17px;
}

.sd-comment__name {
    font-size: 13px;
    font-weight: 700;
    color: #e6ecf4;
}

.sd-comment__date {
    margin-left: 12px;
    font-size: 12px;
    color: #7d889a;
}

.sd-comment__text {
    margin: 10px 0 0 50px;
    font-size: 14px;
    line-height: 1.85;
    color: #cfd8e4;
    word-break: break-word;
}

.sd-comment__text p {
    margin: 0 0 8px;
}

.sd-comment__text p:last-child {
    margin-bottom: 0;
}

.sd-comment__imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 0 50px;
}

.sd-comment__imgs a {
    display: block;
    width: 116px;
    height: 84px;
    border: 1px solid #22304a;
    border-radius: 5px;
    overflow: hidden;
}

.sd-comment__imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-comment__foot {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 12px 0 0 50px;
}

.sd-clike,
.sd-creply {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: none;
    color: #97a3b4;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.sd-clike i {
    color: #ff8a1e;
    font-size: 13px;
}

.sd-creply i {
    font-size: 13px;
}

.sd-clike:hover,
.sd-creply:hover {
    color: #ffb066;
}

.sd-clike.is-voted {
    color: #ff8a1e;
}

.sd-showall {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 6px;
    border: 0;
    background: none;
    color: #ff8a1e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sd-showall i {
    margin-left: 6px;
}

.sd-empty {
    padding: 26px 0;
    text-align: center;
    font-size: 13px;
    color: #7d889a;
}

/* ---------- コメント投稿フォーム ---------- */
.sd-form textarea {
    width: 100%;
    min-height: 132px;
    padding: 14px 16px;
    border: 1px solid #22304a;
    border-radius: 6px;
    background: #0e1420;
    color: #dbe3ee;
    font-size: 14px;
    line-height: 1.8;
    font-family: inherit;
    resize: vertical;
}

.sd-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.sd-form input[type="text"],
.sd-form input[type="email"] {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #22304a;
    border-radius: 6px;
    background: #0e1420;
    color: #dbe3ee;
    font-size: 14px;
    font-family: inherit;
}

.sd-form input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #22304a;
    border-radius: 6px;
    background: #0e1420;
    color: #9aa6b6;
    font-size: 12px;
}

.sd-form textarea::placeholder,
.sd-form input::placeholder {
    color: #6b7789;
}

.sd-form textarea:focus,
.sd-form input:focus {
    outline: none;
    border-color: #ff8a1e;
}

.sd-form__files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.sd-submit {
    display: block;
    min-width: 240px;
    margin: 20px auto 0;
    padding: 13px 30px;
    border: 0;
    border-radius: 5px;
    background: #ff8a1e;
    color: #12160f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.sd-submit:hover {
    background: #ffa245;
}

.sd-submit:disabled {
    opacity: .6;
    cursor: default;
}

.sd-form__msg {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #ffb066;
    min-height: 18px;
}

/* ---------- 前後ナビ ---------- */
.sd-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid #1a2434;
    border-radius: 10px;
    background: #0b1019;
}

.sd-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.sd-nav a.is-next {
    justify-content: flex-end;
    text-align: right;
}

.sd-nav i {
    flex: none;
    color: #8d99ab;
    font-size: 20px;
}

.sd-nav a:hover i {
    color: #ff8a1e;
}

.sd-nav__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #e6ecf4;
}

.sd-nav__title {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #8d99ab;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-nav a:hover .sd-nav__title {
    color: #ffb066;
}

/* ---------- サイドバー ---------- */
.sd-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid #1a2434;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.sd-card__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #ff8a1e;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.sd-card__more:hover {
    color: #ffb066;
}

/* ランキング行 */
.sd-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.sd-rank + .sd-rank {
    border-top: 1px solid #141d2b;
}

.sd-rank__no {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #7d889a;
}

.sd-rank__no--1 { background: #ff8a1e; color: #12160f; }
.sd-rank__no--2 { background: #98a4b5; color: #12160f; }
.sd-rank__no--3 { background: #c07a3c; color: #12160f; }

.sd-rank__thumb {
    flex: none;
    width: 56px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #101724;
    display: block;
}

.sd-rank__body {
    display: block;
    min-width: 0;
}

.sd-rank__title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #e2e9f2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sd-rank:hover .sd-rank__title {
    color: #ff8a1e;
}

.sd-rank__meta {
    margin-top: 3px;
    font-size: 11px;
    color: #7d889a;
}

.sd-rank__meta i {
    margin-right: 5px;
    color: #ff8a1e;
}

/* タグクラウド */
.sd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-tags a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ff8a1e;
    border-radius: 4px;
    color: #ffb066;
    font-size: 12px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.sd-tags a:hover {
    background: #ff8a1e;
    color: #12160f;
}

/* 関連記事 */
.sd-relart {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}

.sd-relart + .sd-relart {
    border-top: 1px solid #141d2b;
}

.sd-relart__ic {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1px solid #ff8a1e;
    border-radius: 3px;
    color: #ff8a1e;
    font-size: 10px;
}

.sd-relart__body {
    display: block;
    min-width: 0;
}

.sd-relart__title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #e2e9f2;
}

.sd-relart:hover .sd-relart__title {
    color: #ff8a1e;
}

.sd-relart__date {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #7d889a;
}

/* サイドCTA */
.sd-cta {
    position: relative;
    border: 1px solid #ff8a1e;
    border-radius: 8px;
    background: #0d1119;
    overflow: hidden;
    text-align: center;
}

.sd-cta__body {
    position: relative;
    z-index: 2;
    padding: 22px 20px 16px;
}

.sd-cta__title {
    font-size: 15px;
    font-weight: 700;
    color: #ffb066;
    line-height: 1.6;
}

.sd-cta__text {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.8;
    color: #b6c1d0;
}

.sd-cta__btn {
    display: block;
    margin-top: 16px;
    padding: 13px 10px;
    border-radius: 5px;
    background: #ff8a1e;
    color: #12160f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}

.sd-cta__btn:hover {
    background: #ffa245;
}

.sd-cta__img {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: cover;
    opacity: .85;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
    .sd-article__head { padding: 18px 18px 0; }
    .sd-title { font-size: 24px; }
    .sd-body { margin: 18px; padding: 20px; }
    .sd-photos { margin: 0 18px 18px; padding: 18px; }
    .sd-vote { padding: 16px 18px; }
    .sd-section { padding: 18px; }
    .sd-form__row,
    .sd-form__files { grid-template-columns: 1fr; }
    .sd-comment__text,
    .sd-comment__foot,
    .sd-comment__imgs { margin-left: 0; }
    .sd-nav { grid-template-columns: 1fr; }
    .sd-nav a.is-next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
}

@media (max-width: 560px) {
    .sd-photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-meta { gap: 14px; font-size: 12px; }
    .sd-quote { padding: 18px 24px; }
    .sd-vote__btn { min-width: 0; flex: 1 1 auto; }
}

