@charset "utf-8";



/* $msg: 全体にフォントを適用 */
body {
    font-family: "Zen Maru Gothic", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* $msg: 太字が必要な箇所へのウェイト指定 */
.page-main-title,
.section-heading,
.filter-button,
.file-row-title,
.file-download-button {
    font-weight: 700; /* Zen Maru Gothicの太字を適用 */
}

/* ========================================
   $msg: 専用ページの全体レイアウト
   ======================================== */
.content-area {
    max-width: 1100px;
    margin: 150px auto;
    padding: 0 20px;
}

/* $msg: 導入部分（黄色背景） */
.parents-page-intro {
    text-align: center;
    padding: 60px 40px;
    margin-bottom: 50px;
    background-color: #F8F6D7;
    border-radius: 20px;
}

.page-main-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #e8a36d;
    margin-bottom: 15px;
}

/* $lbl: セクション見出し */
.section-heading {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: #59a779;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

/* ========================================
   $btn: カテゴリーフィルター
   ======================================== */
.news-categories-filter, .file-categories-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-button {
    padding: 8px 22px;
    border: 2px solid #59a779;
    background: #fff;
    color: #59a779;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-button.active {
    background-color: #59a779;
    color: #fff;
}

/* ========================================
   $msg: お知らせグリッド
   ======================================== */
.news-section-main {
    margin-bottom: 100px; /* 💡 下側にも余白を追加 */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f9f9f9;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 15px;
}

.news-card-date {
    font-size: 0.85rem;
    color: #999;
}

.news-card-title {
    font-size: 1.1rem;
    margin: 5px 0 0;
}

.news-card-title a {
    text-decoration: none;
    color: #333;
}

/* ========================================
   $msg: 資料共有リスト
   ======================================== */
/* 💡 ここに余白を追加して、上のセクションと離しました */
.files-section-main {
    margin-top: 100px; 
    padding-top: 50px;
    border-top: 1px solid #eee; /* 💡 境界線を入れてより分かりやすくしています */
}

.files-list-container {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 10px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 💡 ボタンを右寄せにする設定 */
    padding: 20px 0;
    border-bottom: 1px dashed #ddd;
}

.file-row:last-child { border-bottom: none; }

.file-row-date {
    font-size: 0.9rem;
    color: #999;
    min-width: 80px;
}

.file-row-content {
    flex-grow: 1; /* 💡 タイトルエリアを最大まで広げる */
}

.file-row-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #333;
}

/* $btn: ダウンロードボタン */
.file-download-button {
    flex-shrink: 0; /* 💡 ボタンが潰れないように固定 */
    margin-left: 20px;
    background-color: #e8a36d;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.file-download-button:hover { background-color: #d18d56; }

/* $msg: スマホ対応 */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .file-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .file-download-button { width: 100%; margin-left: 0; }

    /* $msg: タイトルサイズの調整 */
    .page-main-title {
        font-size: 1.6rem; /* 2.2remから縮小 */
    }

    .section-heading {
        font-size: 1.4rem; /* 1.8remから縮小 */
        margin-bottom: 30px;
    }

    .content-area {
        margin: 150px auto; /* 上下の大きな余白をスマホ向けに調整 */
    }

    .parents-page-intro {
        padding: 40px 20px;
    }

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

    .file-row { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px; 
    }

    .file-download-button { 
        width: 100%; 
        margin-left: 0; 
        text-align: center;
    }
}