@charset "UTF-8";
@import url("grid.css");

:root {
    --base-color: #000;
    --back-color: #f7f7f7;
    --border-color: #ccc;
    --white-color: #fff;
    --footer-color: #e9e8ee; 
    --top-button-color: #160a57; /* トップに戻るボタンとコピーライトの背景色 */
    --text-white: #fff; /* 文字色を白に変更 */
}

img {
    max-width: 100%;
    height: auto; /* 高さ自動 */
}

a {
    display: block;
    color: var(--link-color);
    text-decoration-line: none;
}

a:hover {
    color: var(--linkhover-color);
}

/* ヘッダー */
.header {
    display: flex;
    flex-direction: row;
    padding: 2rem 0 0 0;
}

.header-box {
    margin-left: auto;
    margin-top: 8px;
}

.contact-button {
    padding: 1rem;
    border: 2px solid var(--base-color);
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
    margin: 1rem 0 0 0;
}

nav li {
    flex: 1 0 auto;
}

nav li a {
    text-decoration: none;
    text-align: center;
    width: 100%;
}

nav a:hover {
    background-color: var(--white-color); /* 変更 */
}

nav a {
    padding: 0.5rem;
}
  
 /* 画像とタイトルを横並びに配置 */
.header {
            display: flex;
            align-items: center; /* 縦方向中央揃え */
        }
        
.header img {
        width:35px; /* 画像のサイズを指定（必要に応じて調整） */
        height: auto;
        margin-right: 10px; /* 画像とテキストの間にスペースを追加 */
    }

  /* もしタイトルの高さが明確でなければ、ヘッダー内で中央揃えを確認 *
 .header h3 {
        margin: 0; /* h3タグのデフォルトのマージンをリセット */
    }

@media screen and (min-width: 768px) {
    /* PC時はMENUボタンを非表示 */
    #open, #close {
        display: none !important;
    }

    #navi {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .header #open, #close {
        position: absolute;
        top: 20px;
        right: 12px;
    }

    nav ul {
        flex-direction: column;
    }

    .header li {
        padding-top: 0;
    }

    /* スマホ時はMENUボタンを表示 */
    #open {
        display: block;
        background: url('http://fujita-hu.ac.jp/~f-ora/images/button.png');
        background-repeat: no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;
        right: 12px;
    }

    #close {
        display: block;
        background: url('http://fujita-hu.ac.jp/~f-ora/images/button2.png');
        background-repeat: no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;
        right: 12px;
    }

    /* スマホ時はメニューを非表示 */
    #navi {
        display: none;
    }
}


/*お知らせ
-------------------------------------*/
.news h2 {
    border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}
.news li {
    list-style-type: none;
	border-bottom: 1px solid var(--border-color);
	padding: 0.5rem 0;
}
/* カテゴリのスタイル */
.news-list .item .category {
    margin: 0;
    min-width: 140px; /* カテゴリの最小幅 */
    padding: 0 20px 0 0; /* 右側にパディング */
}

/* カテゴリのラベル */
.news-list .item .category span {
    background: #999; /* 背景色は灰色 */
    color: #FFF; /* 文字色は白 */
    text-align: center; /* 中央揃え */
    display: inline-block;
    padding: 5px 20px; /* パディング */
    font-size: 12px; /* 小さいフォントサイズ */
    line-height: 1; /* 行の高さを1に */
}

/* 日付のスタイル */
.news-list .item .date {
    font-size: 0.9em; /* 日付のフォントサイズ */
    color: #808080; /* 日付の色は灰色 */
}

/* リンクのスタイル */
.news-list .item a {
    display: block; /* リンクをブロック要素にしてクリック領域を広げる */
    text-decoration: none; /* 下線を削除 */
    margin-top: 5px; /* 上にスペースを追加 */
}

/* リンクのホバー時のスタイル */
.news-list .item a:hover {
    text-decoration: underline; /* ホバー時に下線を追加 */
    color:  #160a57; /* ホバー時の色を変更 */
}

/* フッター */
footer {
    background-color: var(--footer-color); /* #e9e8eeに変更 */
    padding: 5rem 0;
}

footer h4 {
    border-bottom: 1px solid var(--border-color);
}

.table {
    margin: 4rem 0;
}

.table th {
    width: 250px;
}

/* コピーライト */
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--top-button-color); /* #160a57に変更 */
    color: var(--text-white); /* 文字色を白に変更 */
}

.copyright a {
    color: var(--text-white); /* 文字色を白に変更 */
    text-decoration: none;
    display: inline;
}

/* ページトップへ戻るボタン */
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}

#pagetop a {
    display: block;
    background-color: var(--top-button-color); /* #160a57に変更 */
    color: var(--text-white); /* 文字色を白に変更 */
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}

#pagetop a:hover {
    background-color: var(--link-color);
}

/* 幅768px以下の表示 */
@media screen and (max-width: 768px) {
    /* ヘッダー */
    .header-box {
        display: none;
    }
   }

    .table td {
        display: block;
    }
}
