@charset "utf-8";

.body {
    font: 13px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif;

}

.bg-image {
    border-bottom: #1c1c1c;
}

/* Reset style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* color: #8fbc8f; */
    color: #1c1c1c;
    list-style: none;
    text-decoration: none;
}

/* 背景画像を設定 */






/* Normal header style */
.header_bg {
    /* background: #f5f5f5; */
    width: 100%;
    height: 100px;
    background-color: #f5f5f5;
    /* font: 13px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; */
}

.header_contents {
    width: 100%;
    max-width: 1024px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

/* 研究室ロゴ */
.titlelogo {
    width: 70%;
}

.header_nav_lists {
    display: flex;
}

.header_nav_lists li {
    margin: 0 40px 0 0;
}

.nav_link {
    font-size: 20px;
}

/* Responsive menu button */
.responsive_btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 40px 0 0;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.menu_line {
    background: #8fbc8f;
    border-radius: 5px;
    width: 100%;
    height: 5px;
    margin: 4px 0;
}

/* Responsive style */
@media screen and (max-width: 768px) {

    .responsive_btn {
        display: flex;
    }

    .header_bg {
        position: relative;
    }

    .titlelogo {
        width: 40%;
    }

    .header_nav {
        background: #f5f5f5;
        width: 100%;
        height: 100vh;
        padding: 80px 0 0 0;
        position: absolute;
        top: 0;
        right: -100%;
        transition: .5s;
        z-index: 2;
        /* z-indexを追加 */
    }

    .menu_active {
        right: 0;
    }

    .swiper {
        position: relative;
        /* 位置をrelativeに変更 */
        z-index: 1;
        /* スライドショーのz-indexをメニューより低く設定 */
    }

    .header_nav_lists {
        display: block;
        text-align: center;
    }

    .header_nav_lists li {
        margin: 0 0 40px;
        text-align: center;
    }

    .nav_link {
        font-size: 20px;
    }
}

/* js function "menuToggle" starting only */
.menu_active {
    right: 0;
}


/* イベント情報のcss */
.content{
    max-width: 1024px;
    margin: auto;
}

.event {
    padding-left: 5%;
    padding-right: 5%;
}

h2{
    margin-top: 15px;
}


/* 新しいイベント欄デザイン */
.event-box {
    display: flex; /* flexbox */
    align-items: center; /* 垂直方向 */
    margin: 2%;
    padding: 2%;
    border-bottom: 2px solid #8fbc8f;

}
.event-img{
    width: 200px;
    height: auto;
    margin-right: 5%;
}

a:hover{
    opacity: 0.7;
}

.news_list_item a {
    position: relative;
    display: flex;
    justify-content: space-between;
    /* 子要素を均等に配置 */
    align-items: center;
    padding-right: 30px;
    width: 100%;
    box-sizing: border-box;
    /* パディングとボーダーを幅に含める */
}

.event-box a:hover {
    opacity: 0.65;
}

.news_list_date {
    font-size: 15px;
    width: auto;
    /* 必要に応じて幅を調整 */
    margin-right: 15px;
    /* 適切な余白を設定 */
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* フレックスボックスの収縮を防ぐ */
}

.news_list_date h3{
    margin-left: 40px;
}

.news_list_sentence {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    margin: 5% 2% 2% 0;
}

.news_item {
    background: #a8d6a8;
    border-radius: 14px;
    width: 6em;

    text-align: center;
    margin-left: 20px;
}





@media screen and (max-width: 768px) {
    .event-box {
        display: block;
        /* フレックスボックスの方向を縦に変更 */
        text-align: center;
    }

    .event-flex{
        margin-top: 5px;
    }
   
    .news_list_date h3 {
        margin-left: 4%;
    }
    .news_list_sentence{
        text-align: left;
        margin: 2% 2% 2% 0;
    }


}






/* 昔のcss */
.box {
    position: relative;
    padding: 1rem;
    border-top: 3px solid #8fbc8f;
    background-image: linear-gradient(-45deg, transparent 10px, #efefef 10px);
    color: #212121;
    overflow: hidden;
    margin-top: 10px;
    margin-left: 3%;
    margin-right: 3%;
}

.box::before {
    position: absolute;
    content: '';
    right: 0px;
    bottom: 0px;
    border-width: 0px 0px 15px 15px;
    border-style: solid;
    border-color: transparent transparent transparent #8fbc8f;
    box-shadow: 0 0 5px #000;
}

.box p {
    color: #333;
    line-height: 1.5;
    margin-top: 5px;
    margin-bottom: 0;
}

.box h3 {
    margin-top: 0;
    margin-bottom: 0;

}

.event h2 {
    border-bottom: solid;
    border-color: #8fbc8f;
    border-width: 5px;
}

.eventtitle {
    border-bottom: solid;
    border-color: #8fbc8f;
    border-width: 2px;
}

.box-block {
    display: flex;
}

.event .box img {
    width: 300px;
    height: auto;
    padding-left: 40%;
}









/* フッターのcss */
.content {
    min-height: calc(100vh - 180px);
    /*ヘッダーとフッターの最低の高さを設定*/
}

footer {
    background-color: #f5f5f5;
    width: 100%;
    /* height: 120px; */
}

.footer-class {
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
}

.footer-title {
    padding-top: 30px;
    margin-bottom: 5px;

    font-size: 20px;
    color: #333333;
}

.addres {
    font-size: 17px;
    margin-top: 0;
    color: #333333;
}

.copyright {
    padding-top: 20px;
    text-align: center;
    font-size: 15px;
    color: #c0c0c0;
}


/* フォントサイズのレスポンシブルデザイン */

/* 画面サイズが768px以下のときのスタイル */
@media screen and (max-width: 768px) {
    .header_nav_lists li {
        margin: 0 0 40px;
        text-align: center;
    }

    .nav_link {
        font-size: 16px;
        /* ナビゲーションリンクのフォントサイズを小さくする */
    }

    h1 {
        font-size: 24px;
        /* h1要素のフォントサイズを小さくする */
    }

    h2 {
        font-size: 20px;
        /* h2要素のフォントサイズを小さくする */
    }

    h3 {
        font-size: 16px;
        /* h3要素のフォントサイズを小さくする */
    }

    p {
        font-size: 14px;
        /* 段落のフォントサイズを小さくする */
    }
}