/* ===========================
   ReFLiA - News Detail Page Styles
   =========================== */

/* ===========================
   パンくず上部余白（ヒーロー削除により追加）
   =========================== */
.news-breadcrumb {
    margin-top: 80px; /* 固定ヘッダーの高さ分を確保 */
}

/* ===========================
   パンくずリスト
   =========================== */
.news-breadcrumb {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 180, 220, 0.20);
    padding: 12px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
}

.breadcrumb-list li {
    font-size: 0.82rem;
    color: #5a8aaa;
}

.breadcrumb-list li + li::before {
    content: '›';
    margin: 0 8px;
    color: #9ab8cc;
    font-size: 1rem;
}

.breadcrumb-list a {
    color: #5a8aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #2a5a7a;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #2a3a4a;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================
   メインコンテンツ
   =========================== */
.news-detail-main {
    padding: 48px 0 80px;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

/* ===========================
   記事本文
   =========================== */
.news-detail-article {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 40px 44px;
    border: 1px solid rgba(100, 180, 220, 0.18);
    box-shadow: 0 4px 24px rgba(42, 90, 122, 0.06);
    min-height: 300px;
}

/* 記事ヘッダー */
.article-header {
    border-bottom: 2px solid rgba(100, 180, 220, 0.25);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #7a9ab8;
    letter-spacing: 0.05em;
}

.article-category-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.article-category-badge.live  { background: rgba(90, 184, 216, 0.15); color: #2a7a9a; border: 1px solid rgba(90, 184, 216, 0.35); }
.article-category-badge.info  { background: rgba(80, 160, 120, 0.15); color: #2a6a4a; border: 1px solid rgba(80, 160, 120, 0.35); }
.article-category-badge.goods { background: rgba(200, 140, 60, 0.15); color: #8a5a1a; border: 1px solid rgba(200, 140, 60, 0.35); }

.article-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #1a2a3a;
    line-height: 1.6;
    margin: 0;
}

/* 記事本文スタイル */
.article-body {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #2a3a4a;
}

.article-body p {
    margin: 0 0 1.4em;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body strong {
    font-weight: 700;
    color: #1a2a3a;
}

.article-body .text-red {
    color: #d33;
}

.article-body a {
    color: #3a8ab8;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.article-body a:hover {
    color: #1a5a8a;
}

.article-body ul,
.article-body ol {
    padding-left: 1.6em;
    margin: 0 0 1.4em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2a3a;
    border-left: 4px solid #5ab8d8;
    padding-left: 14px;
    margin: 2em 0 1em;
}

.article-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a3a4a;
    margin: 1.6em 0 0.8em;
}

.article-body blockquote {
    border-left: 3px solid rgba(90, 184, 216, 0.5);
    padding: 12px 20px;
    margin: 1.4em 0;
    background: rgba(90, 184, 216, 0.06);
    border-radius: 0 8px 8px 0;
    color: #4a6a8a;
}

/* アイキャッチ画像（本文冒頭、画像がある場合のみ表示） */
.article-eyecatch {
    margin: 0 0 32px;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
}

.article-eyecatch__img {
    width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

/* ローディング */
.news-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 80px 20px;
    color: #7ab8d4;
    font-size: 0.95rem;
}

.news-detail-error {
    text-align: center;
    padding: 60px 20px;
    color: #aa6a6a;
}

.news-detail-error .error-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===========================
   サイドバー
   =========================== */
.news-detail-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(100, 180, 220, 0.18);
    box-shadow: 0 2px 16px rgba(42, 90, 122, 0.05);
}

.sidebar-widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #5a8aaa;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(100, 180, 220, 0.20);
}

/* カテゴリリスト */
.sidebar-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-category-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #3a5a7a;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sidebar-category-list a:hover {
    background: rgba(90, 184, 216, 0.12);
    color: #1a4a6a;
}

/* 最新ニュースリスト */
.sidebar-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-news-item {
    border-bottom: 1px solid rgba(100, 180, 220, 0.12);
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-item a {
    display: block;
    padding: 10px 4px;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-news-item a:hover .sidebar-news-title {
    color: #1a4a6a;
}

.sidebar-news-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    color: #9ab8cc;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.sidebar-news-title {
    font-size: 0.82rem;
    color: #2a3a4a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-news-loading {
    text-align: center;
    padding: 20px;
    color: #7ab8d4;
}

/* ===========================
   SNSシェアボタン
   =========================== */
.news-share {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid rgba(100, 180, 220, 0.20);
    border-bottom: 1px solid rgba(100, 180, 220, 0.20);
    margin-bottom: 40px;
}

.news-share-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #7a9ab8;
    margin: 0;
    flex-shrink: 0;
}

.news-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}

.share-x {
    background: #000;
    color: #fff;
}

.share-x:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.share-line {
    background: #06c755;
    color: #fff;
}

.share-line:hover {
    background: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.35);
}

/* ===========================
   前後記事ナビ
   =========================== */
.news-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.prev-next-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(100, 180, 220, 0.18);
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(42, 90, 122, 0.05);
}

.prev-next-item:hover {
    background: rgba(255, 255, 255, 0.90);
    border-color: rgba(90, 184, 216, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 90, 122, 0.10);
}

.prev-next-item.prev {
    flex-direction: row;
}

.prev-next-item.next {
    flex-direction: row-reverse;
    text-align: right;
}

.prev-next-icon {
    font-size: 0.9rem;
    color: #7ab8d4;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.prev-next-item.prev:hover .prev-next-icon {
    transform: translateX(-3px);
}

.prev-next-item.next:hover .prev-next-icon {
    transform: translateX(3px);
}

.prev-next-content {
    flex: 1;
    min-width: 0;
}

.prev-next-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #9ab8cc;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.prev-next-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2a3a4a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prev-next-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #c8e8f4, #e8f4fc);
}

.prev-next-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #c8e8f4 0%, #e8f4fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7ab8d4;
    font-size: 1.2rem;
}

/* ===========================
   ニュース一覧に戻るボタン
   =========================== */
.news-back-link {
    text-align: center;
    margin-top: 8px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(90, 184, 216, 0.35);
    color: #3a6a8a;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 0.03em;
}

.btn-back:hover {
    background: rgba(90, 184, 216, 0.12);
    border-color: rgba(90, 184, 216, 0.55);
    color: #1a4a6a;
    transform: translateX(-3px);
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 900px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .news-detail-article {
        padding: 28px 22px;
    }

    .news-prev-next {
        grid-template-columns: 1fr;
    }

    .news-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .breadcrumb-current {
        max-width: 275px;
    }
}
