/* ===== meHug NEWS（一覧・詳細ページ） ===== */

.news-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}

/* ページ見出し（meHug NEWS ロゴ動画） */
.news-page-header {
    display: flex;
    align-items: center;
    margin: 0.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #101d1a;
}
.news-page-video {
    display: block;
    width: 100%;
    height: auto;
    /* 読み込み前から動画(1280x670)の高さを確保してレイアウトのガタつきを防ぐ */
    aspect-ratio: 1280 / 670;
}

/* 一覧 */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news-list-item {
    border-bottom: 1px solid #e5e7eb;
}
.news-list-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 4px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.news-list-link:hover {
    background: #f0fdfa;
    color: inherit;
}
.news-list-date {
    flex: 0 0 auto;
    font-family: "Lato", "Noto Sans JP", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0d9488;
}
.news-list-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #101d1a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-arrow {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 0.72rem;
}
.news-empty {
    padding: 3rem 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}
.news-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* 詳細 */
.news-show-date {
    font-family: "Lato", "Noto Sans JP", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0d9488;
    margin-bottom: 0.4rem;
}
.news-show-title {
    margin: 0 0 1.25rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    color: #101d1a;
}
.news-show-body {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #1f2937;
    overflow-wrap: break-word;
}
/* 本文内に貼り付けた画像（リッチテキスト内のimgも含む） */
.news-show-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.news-body-img {
    display: block;
    margin: 14px auto;
}
/* リッチテキスト内の表がはみ出さないように */
.news-show-body table {
    max-width: 100%;
}
.news-show-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}
.news-show-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.25rem;
}
.news-show-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 48%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}
.news-show-nav a:hover {
    text-decoration: underline;
}
.news-show-nav .nav-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border: 1.5px solid #101d1a;
    border-radius: 999px;
    background: #ffffff;
    color: #101d1a;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.news-back-btn:hover {
    background: #101d1a;
    color: #ffffff;
}

/* PC（min-width:1025px はモバイルに影響しない） */
@media (min-width: 1025px) {
    .news-page {
        padding-top: 1.5rem;
    }
    .news-page-video {
        width: 100%;
        height: auto;
    }
    .news-show-title {
        font-size: 1.55rem;
    }
    .news-back-btn {
        width: auto;
        min-width: 260px;
    }
}
