@charset "UTF-8";

/* =========================================
   style_news_detail.css - ニュース詳細ページ専用
   sub-section-header / sub-prose を流用し、
   サムネイル・外部リンク・戻るリンクのみ追加定義
   ========================================= */

/* ===== 記事詳細のh1にsub-section-headerのh3と同じスタイルを適用 ===== */
.sub-section-header h1 {
    display: flex;
    flex-direction: column;
}

.sub-section-header h1 .en-title {
    font-size: var(--font-xx-large);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    color: rgba(var(--color-key-1), 1);
}

.sub-section-header h1 .ja-title {
    font-size: var(--font-x-large);
    line-height: var(--lh-body);
    margin-top: 0.25rem;
}

/* ===== カテゴリ（見出しの上） ===== */
.news-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== サムネイル ===== */
.news-article-thumbnail {
    width: 100%;
    margin-bottom: 3rem;
    overflow: hidden;
}

.news-article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 画像ギャラリー ===== */
.news-article-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 3rem;
}

.news-article-gallery-item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.news-article-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.news-article-gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1080px) {
    .news-article-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 動画埋め込み ===== */
.news-article-video {
    margin: 3rem 0;
    width: 100%;
}

.news-article-video video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    background-color: rgba(var(--color-black), 1);
    opacity: 1;
}

/* ===== 外部リンクエリア ===== */
.news-article-link {
    margin-top: 4rem;
    padding: 2rem 0;
    position: relative;
}

.news-article-link::before,
.news-article-link::after {
    content: "";
    display: block;
    width: 3rem;
    height: 2px;
    background: rgba(var(--color-key-1), 1);
}

.news-article-link::before {
    margin-bottom: 1.5rem;
        width: 6rem;
    height: 2px;
}

.news-article-link::after {
    margin-top: 1.5rem;
}

.news-article-link-label {
    font-size: var(--font-x-small);
    color: rgba(var(--color-black), 1);
    margin-bottom: 0.75rem;
}

.news-article-link a {
    font-size: var(--font-middle);
    color: rgba(var(--color-key-1), 1);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.news-article-link a:hover {
    color: rgba(var(--color-key-1), 1);
}

/* ===== 一覧に戻る ===== */
.news-article-back {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(var(--color-black), 0.08);
}

.news-article-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-x-middle);
    color: rgba(var(--color-black), 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-article-back a:hover {
    color: rgba(var(--color-key-1), 1);
}

/* ===== SP対応 ===== */
@media (max-width: 1080px) {

    .news-article-link a {
        font-size: var(--font-middle);
    }
}
