/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 20 2026 | 05:55:12 */
/* =========================================================
   記事個別ページ：カード型デザイン
   対象：school_news / important
   ========================================================= */

/* タイトルから本文まで全体をカードで囲む */
.single-school_news article.entry,
.single-important article.entry,
.single-dept_news article.entry {
    background: #fff !important;
    border: 1.5px solid #5c8da8 !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 16px rgba(92, 141, 168, 0.15) !important;
    margin-top: 20px !important;
}

/* 部署表示を非表示 */
.single-school_news .entry-meta-data-list--department,
.single-important .entry-meta-data-list--department,
.single-dept_news .entry-meta-data-list--department {
    display: none !important;
}

@media (max-width: 768px) {

    /* 記事カード枠を除去 */
    .single-school_news article.entry,
    .single-important article.entry,
    .single-dept_news article.entry {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin-top: 8px !important;
    }

    /* container系のpaddingを全て除去 */
    .single-school_news .site-body-container,
    .single-important .site-body-container,
    .single-dept_news .site-body-container,
    .single-school_news .site-body-container.container,
    .single-important .site-body-container.container,
    .single-dept_news .site-body-container.container,
    .single-school_news .main-section,
    .single-important .main-section,
    .single-dept_news .main-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* タイトル帯を全幅に */
    .single-school_news .entry-header,
    .single-important .entry-header,
    .single-dept_news .entry-header {
        border-radius: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* 本文に余白を戻す */
    .single-school_news .entry-body,
    .single-important .entry-body,
    .single-dept_news .entry-body {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* モバイル：本文末尾の空白段落を除去 */
@media screen and (max-width: 768px) {
    .single-school_news .entry-footer,
    .single-important .entry-footer,
    .single-dept_news .entry-footer {
        margin-bottom: 0 !important;
    }

    .single-school_news .main-section,
    .single-important .main-section,
    .single-dept_news .main-section {
        margin-bottom: 0 !important;
    }

    .single-school_news .site-body,
    .single-important .site-body,
    .single-dept_news .site-body {
        padding-bottom: 0 !important;
    }

    .single-school_news #main,
    .single-important #main,
    .single-dept_news #main {
        margin-bottom: 0 !important;
    }
}