/* ===============================
   NEWS 個別ページ（single-post.php）
   既存デザイン踏襲：濃紺グラデ背景＋白文字
   =============================== */

:root {
    /* 既存の変数を利用（定義済みを想定） */
    --main-color: #effeff;
    --accent-color: hsla(198, 100%, 63%, 0.792);
    --base-color: #FFFFFF;
    --text-color: #ffffff;
}






/* ヘッダー：日付→タイトル */
.news-single__header {
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    padding: clamp(16px, 2.2vw, 24px) clamp(8px, 1.2vw, 12px) clamp(18px, 2.4vw, 28px);
    margin: 0 7rem 0 7rem;
}

.news-single__date {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    opacity: .9;
    font-size: clamp(.95rem, 2.4vw, 1rem);
}

.news-single__title {
    margin: .3rem 0 0;
    font-weight: 800;
    line-height: 1.25;
    font-size: clamp(1.6rem, 4.8vw, 2.4rem);
}

/* 本文 */
.news-single__content,
.news-single__back {
    padding: clamp(20px, 3vw, 32px) clamp(8px, 1.2vw, 12px) clamp(28px, 3.2vw, 40px);
    line-height: 1.9;
    color: var(--text-color);
    font-size: clamp(1rem, 2.2vw, 1.06rem);
    margin: 0 7rem 0 7rem;
}

/* 本文要素トーン調整（白背景サイトからの移植を想定） */
.news-single__content p,
.news-single__content li {
    color: var(--text-color);
}

.news-single__content a {
    color: var(--main-color);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.news-single__content h2,
.news-single__content h3,
.news-single__content h4 {
    font-weight: 700;
    line-height: 1.35;
    margin: 2em 0 .6em;
}

.news-single__content h2 {
    font-size: clamp(1.3rem, 4.4vw, 1.8rem);
}

.news-single__content h3 {
    font-size: clamp(1.15rem, 3.6vw, 1.4rem);
}

.news-single__content h4 {
    font-size: clamp(1.05rem, 3.2vw, 1.2rem);
}

.news-single__content blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.2em 1.2em 1.1em;
    background: rgba(255, 255, 255, .06);
    border-left: 3px solid rgba(255, 255, 255, .45);
    border-radius: 6px;
}

.news-single__content img,
.news-single__content figure,
.news-single__content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2rem auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.news-single__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: .98em;
    overflow: hidden;
    border-radius: 8px;
}

.news-single__content th,
.news-single__content td {
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .7em .9em;
}

.news-single__content th {
    background: rgba(255, 255, 255, .08);
    font-weight: 700;
}

.news-single__content code,
.news-single__content pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
}

.news-single__content code {
    padding: .15em .35em;
}

.news-single__content pre {
    padding: 1em 1.1em;
    overflow: auto;
}




.news-single__prev a,
.news-single__next a {
    display: inline-block;
    padding: .6rem 1rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.news-single__prev a:hover,
.news-single__next a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .6);
}






/* アクセシビリティ */
.news-single a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .85);
    outline-offset: 3px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .news-single {
        padding: clamp(8px, 3vw, 16px);
        /* ← さらに縮小 */
    }

    .news-single__pager {
        grid-template-columns: 1fr;
    }

}

/* タブレット以下でマージン縮小 */
@media (max-width: 1024px) {

    .news-single__header,
    .news-single__content,
    .news-single__back {
        margin: 0 0.5rem;
        /* ← 1rem → 0.5rem */
    }

}

/* スマホでさらに小さく（clampで端末幅に追従） */
@media (max-width: 768px) {

    .news-single__header,
    .news-single__content,
    .news-single__back {
        margin: 0 clamp(8px, 3vw, 12px);
        /* ← 最小値を小さく */
    }



    /* 本文の左右パディングも軽めに調整 */
    .news-single__content,
    .news-single__back {
        padding: clamp(12px, 3vw, 16px);
        /* ← 少し軽め */
    }
}