/****************************************************/
/* body                                             */
/****************************************************/

body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
}


/****************************************************/
/* header                                           */
/****************************************************/

/* header 全体 */
header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
}

/* header 上段 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* header 上段左 : ロゴと団体名 */
.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 64px;
    margin-right: 10px;
}

.site-name {
    font-size: 28px;
    font-weight: bold;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    color: #2c2c2c;
}

/* header 上段右 : アイコンとログイン */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right .icon {
    margin-top: 7px;
    height: 24px;
}

.login-button {
    padding: 6px 12px;
    background-color: #2c6e49;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

/* header 下段 */
.header-bottom {
    background-color: #ffffff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.header-bottom ul {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 60px; /* 高さ固定で安定させます（調整可能） */
}

.header-bottom ul li {
    flex: 1;
    display: flex;
    align-items: center;     /* 縦方向中央揃え */
    justify-content: center; /* 横方向中央揃え */
    text-align: center;
}

.header-bottom ul li a {
    display: flex;                 /* ここを追加：ブロック化＆中央揃え */
    align-items: center;           /* 縦中央揃え */
    justify-content: center;       /* 横中央揃え */
    width: 100%;                   /* リンク範囲をli全体に広げる */
    height: 100%;                  /* 高さも全体に広げる */
    text-decoration: none;
    color: #2c6e49;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.2s ease;
    line-height: 1.4;
}

.header-bottom ul li a:hover {
    background-color: #e6f0ea;
    /* border-radius: 4px; */
}


/****************************************************/
/* footer                                           */
/****************************************************/

.site-footer {
    background-color: #333;         /* 濃いグレー */
    color: #fff;                    /* 文字は白 */
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}


/****************************************************/
/* main                                             */
/****************************************************/

main {
    width: 60%;
    margin: 0 auto;
    padding: 20px 0;
}


/****************************************************/
/* index.html                                       */
/****************************************************/

/* top画像 */
.top-image {
    height: 500px;
    display: flex;
    justify-content: center;   /* 横方向中央 */
    align-items: center;       /* 縦方向中央 */
    overflow: hidden;          /* はみ出し対策 */
}

.top-image img {
    height: 100%;
    width: auto;
    object-fit: contain;       /* 画像の縦横比維持しつつ表示 */
}

/* お知らせ一覧 */
.news-head {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0px;
    padding: 5px;
}

.news-list {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 0;
    margin: 0;
}

.news-list li {
    list-style: none;
    border-bottom: 1px solid #ccc;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-item {
    display: flex;
    padding: 16px 0;
    align-items: center;
}

.news-date {
    width: 20%;
    color: #555;
    font-size: 0.95em;
    padding-left: 2ch;
}

.news-title {
    width: 80%;
    color: #2c6e49;
    font-size: 1.1em;
}

.news-list li a:hover .news-item {
    background-color: #e8f5e9;
}


/****************************************************/
/* news.html                                        */
/****************************************************/
.news-content img {
    height: 700px;
    width: auto;
    display: block;
    margin: 20px auto;
    object-fit: contain;
    border: 1px solid #ccc; /* ← これが枠線です */
    border-radius: 4px;      /* ← 角を少し丸くして柔らかい印象に（お好み） */
}


/****************************************************/
/* under_construction.html                          */
/****************************************************/

.under-construction {
    font-size: 54px;
    font-weight: bold;
    text-align: center;
    margin: 100px 0;
}


/****************************************************/
/* media query                                      */
/****************************************************/

@media (max-width: 576px) {
    .logo-image {
        height: 28px;
        margin-right: 10px;
    }
    
    .site-name {
        font-size: 14px;
    }
    
    .header-right .icon {
        margin-top: 7px;
        height: 16px;
    }
    
    .login-button {
        padding: 6px 12px;
        background-color: #2c6e49;
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        font-size: 10px;
    }
    
    .header-bottom ul {
        height: 36px;
    }
    
    .header-bottom ul li a {
        font-size: 8px;
    }
    
    .site-footer {
        font-size: 10px;
    }
    
    main {
        width: 90%;
    }
    
    .top-image {
        height: 240px;
    }
    
    .news-head {
        font-size: 14px;
        font-weight: bold;
        margin: 10px 0px;
        padding: 2px;
    }
    
    .news-date {
        width: 30%;
        font-size: 8px;
        padding-left: 2ch;
    }

    .news-title {
        width: 70%;
        font-size: 12px;
    }

    .news-content img {
        height: auto;
        width: 80%;
    }

    .under-construction {
        font-size: 36px;
        margin: 50px 0;
    }    
}

