@charset "UTF-8";
/* ニュース画像 */
.news-image {
    text-align: center;
    margin: 2rem 0 1.5rem;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* 画像ホバー時に少し浮かせる */
.news-image img:hover {
    transform: scale(1.02);
}

/* キャプション */
.caption {
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
    font-style: italic;
}

/* 全体背景：柔らかい紙面のように */
body {
    background-color: #f3f3f5;
    font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
    color: #333;
    margin: 0;
    padding: 2rem 0;
}

/* A4用紙風コンテナ */
.news-paper {
    background-color: #fff;
    width: 794px; /* A4の幅(px)基準 */
    min-height: 1123px; /* A4の高さ(px)基準 */
    margin: 2rem auto;
    padding: 60px 80px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

/* 上部タイトル部分 */
.news-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* 日付 */
.news-date {
    font-size: 1rem;
    color: #7f8c8d;
    text-align: right;
    margin-bottom: 1.5rem;
}

/* 本文 */
.news-content {
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: justify;
    letter-spacing: 0.3px;
    white-space: pre-line;
}

/* 印刷風の細い罫線 */
.news-paper::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    bottom: 40px;
    border: 1px solid rgba(0,0,0,0.08);
    pointer-events: none;
}

/* 戻るボタン */
.back-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 18px;
    background: linear-gradient(270deg, rgba(149,202,252,1) 0%, rgba(107,182,255,1) 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.back-button:hover {
    background: linear-gradient(270deg, rgba(117,188,255,1) 0%, rgba(62,159,252,1) 100%);
}

/* 見出しや本文中の要素 */
.news-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #34495e;
    border-left: 4px solid #a3c4f3;
    padding-left: 0.5rem;
}
.news-content p {
    margin: 0.8rem 0;
}

/* スマホ対応 */
@media(max-width: 820px) {
    .news-paper {
        width: 90%;
        min-height: auto;
        padding: 40px 25px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .news-title {
        font-size: 1.6rem;
    }

    .news-content {
        font-size: 1rem;
    }
}
