.ad_PC{
    display: block;
}

body{
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-color: #E2C8F8;
    margin: 0px;
}

a{
    color: black;
    text-decoration: none; /* 下線を削除 */
}

p{
    margin: 0;
    padding: 0;
}

header{
    background-color: #79287E;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.header-primary{
    display: flex; /* 横並びにする */
    justify-content: space-between; /* 左右に配置 */
    align-items: center;
    margin-right: 10px;
    height: 60px;
}

.header-primary-left{
    color: white;
    padding-left: 20px;

}

.header-primary-left a {
    color: inherit;
    text-decoration: none;
}

.header-primary-right{
    color: white;
    display: flex; /* 横並びにする */
    padding-right: 20px;
    gap: 20px;
}

.header-primary-right a{
    color: inherit;
    text-decoration: none;
}

.header-secondary{
    color: white;
    height: 10px;
    display: flex; /* フレックスボックスで配置 */
    align-items: center; /* 縦方向の中央揃え */
    height: 30px;
    padding-left: 20px;
}

main{
    display: flex;
    flex-direction: column;
    padding: 5px 20px;
    background-color: white;
    margin: 5px 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-container{
    display: flex;
    flex-direction: column;
}

.main-top{
    display: flex;
    border-bottom: 2px solid #ddd;
}

.main-top-title{
    display: flex;
}

.main-top-title h2{
    font-size: 15px;
}

.main-top-title span{
    display: flex;
    align-items: center;
    margin-left: 0px; 
    color: gray;
}

.main-article_list {
    display: flex;
    flex-direction: column;
}

.main-article_list li {
    border-bottom: 1px solid #ddd;
}



.main-article_list ul {
    list-style: none;
    padding-left: 0;
    padding: 0;
    margin: 0;
}

.article-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.2;
    padding: 0;
}


.article-item h3{
font-size: 12px;
color: #333;
margin: 9px 0px;

}

.article-item h3 a{
    font-size: 12px;
    color: #333;
    }

.article-item p{
    font-size: 10px;
    margin: 0;
    }    

.link-article h3 a{
    color: red;
}


.main-pagination{
    display: flex;  /* Flexboxを使用 */
    justify-content: center;  /* 水平方向の中央揃え */
    margin-top: 5px;
}

.main-pagination-pc {
    display: flex;
    gap: 2px;
}

.main-pagination-pc a {
    font-size: 14px;
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    border: 1px solid gray;
    border-radius: 4px;
    text-decoration: none;
    color: #4d4d4d;
    background-color: #f9f9f9;
    text-align: center; /* テキストを中央に配置 */
    line-height: 20px; /
}

.main-pagination-pc a:hover {
    background-color: #e0e0e0; /* ホバー時に背景色を少し濃くする */
    border-color: #4d4d4d; /* 枠線を強調 */
}

.main-pagination-pc a.current,.main-pagination-pc a.disabled {
    color: #808080;
    background-color: #e0e0e0;
    border-color: darkgray;
    pointer-events: none; 
}  

.main-pagination-mobile {
    display: none;
}

footer{
    background-color: #79287E;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    margin-top: 20px;
}

.contact-container {
    width: 100%;
    max-width: 100%;
}

.contact-container iframe {
    width: 100%;
}

@media screen and (max-width: 768px) {
    /* スマートフォン用のスタイル */

    .header-primary{
        height: 35px;
    }

    header .header-primary-left h1 {
        font-size: 18px;
    }

    .header-primary-right a{
        font-size: 12px;
    }

    .header-secondary{
        height: 20px;
    }

    .header-secondary h4{
        font-size: 12px;
    }

    .main-top-title{
        display: flex;
    }
    
    .main-top-title h2{
        font-size: 15px;
        margin: 5px 0px;
    }
    
    .main-top-title span{
        display: flex;
        align-items: center;
        margin-left: 0px; 
    }

    .main-top-title span h2{
        font-size: 12px;
        color: gray;
        margin: 5px 0px;
    }

    .article-item p{
        display: none;
        }    

    .article-item h3 a{
        font-size: 10.5px;
        color: #333;
        }

    .link-article h3 a{
        color: red;
    }

    .main-pagination{
        display: flex;  /* Flexboxを使用 */
        justify-content: center;  /* 水平方向の中央揃え */
        margin-top: 5px;
    }

    .main-pagination-mobile {
        display: flex;
        gap: 2px;
        }
        
    .main-pagination-mobile a {
        font-size: 14px;
        display: inline-block;
        padding: 2px 8px;
        margin: 2px;
        border: 1px solid gray;
        border-radius: 4px;
        text-decoration: none;
        color: #4d4d4d;
        background-color: #f9f9f9;
        text-align: center; /* テキストを中央に配置 */
        line-height: 20px; /
    }
        
    .main-pagination-mobile a.current,.main-pagination-mobile a.disabled {
        color: #808080;
        background-color: #e0e0e0;
        border-color: darkgray;
        pointer-events: none; 
    }  

    .main-pagination-pc {
        display: none;
    }



}