@charset "UTF-8";

/*-----共通部分-----*/
html{
    font-size: 100%;
}
body{
  font-family: "Noto Sans JP","Yu Gothic","Hiragino Sans",sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.7;
  color: #222222;
  background-color: #f5f5f5;
}
a{
    text-decoration: none;
}

img{
    max-width: 100%;
}

/*-----レイアウト-----*/
.wrapper{
    max-width: 400px;
    margin: auto;
    padding: 0 1.5rem;
}

/*-----見出し-----*/
.page-title,
.heading-large{
    font-size: 1rem;
    margin: 4rem auto 0;
}
.page-title{
    line-height: 1.4;
}
.heading-large{
    padding-bottom: .5rem;
}
.align-center{
    text-align: center;
}
.heading-midium{
    font-size: 1rem;
    margin: 2rem auto 1rem;
}
.heading-small{
    font-size: .95rem;
    margin: 2rem auto 0;
}

/*-----ヘッダー-----*/
.page-header{
    padding-top:  .5rem;
    align-items: center;
}
.logo{
    width: 100px;
}
.main-nav{
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-size: .5rem;
    list-style: none;
}
.main-nav li{
    border-bottom: 4px  solid #d2691e
}
.main-nav a{
    color: #222222;
    transition: .5s;

}
.main-nav a:hover{
    color: #999999
}

/*-----HOME-----*/
.slideshow {
    position: relative;
    width: 400px;
    max-width: 1200px;
    height: 250px;
    margin: 0 auto;
    overflow: hidden;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.keywords,
.about,
.news,
.location-map{
    max-width: 400px;
    padding: 0 1.5rem;
    margin: 3rem auto 0;
}
.keywords,
.about p{
    margin-bottom:1rem;
}
.btn{
    display: inline;
    font-size: 1rem;
    text-align: right;
    color: #222222;
    border-bottom: 4px  solid #d2691e;
    margin-bottom: 2rem;
    transition: .5s;
}
.btn:hover{
    color: #999999;
}

/*-----NEWS-----*/
.table-wrapper-a {
    height: 150px;
    overflow-y: auto;
    padding-right: 8px;
}
.table-wrapper-a::-webkit-scrollbar {
    width: 6px;
}
.table-wrapper-a::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}
.news-container{
    max-width: 800px;
}
.news-container a{
    color: #222222;
    transition: .5s;
}
.news-container a:hover{
    color: #999999
}

/*-----Googleマップ-----*/
.location-map{
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.location-map iframe {
    width: 100%;
    max-width: 800px;
    height: 250px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*-----フッター-----*/
.page-footer{
    width: 100%;
    text-align: center;
    color: #ffffff;
    background-color: #666666;
    margin-top: 10rem;
    padding: 20px 0;
}
.copyright{
    padding-bottom: 3rem;
}

/*-----研究内容-----*/
.table-wrapper{
    display: flex;
    justify-content: center;
}
.table-wrapper p{
    font-size: .875rem;
}
.content{
    max-width: 400px;
    padding: 0 1.5rem;
    margin: 3rem auto 0;
}
table{
    width: 100%;
    table-layout: fixed;
    margin: 0 auto;
    border-collapse: collapse;
}
tr{
   border-bottom: 2px  solid #b1b3b6;
}
td{
    font-weight: 400;
    padding: 12px 8px;
    white-space: normal;
    width: auto;
    overflow-wrap: anywhere;
    word-break: normal;
    vertical-align: top;
}
.table-wrapper a{
    color: #222222;
    transition: .5s;
}
.table-wrapper a:hover{
    color: #999999;
}

/*-----メンバー-----*/
.heading-name{
    font-size: 1rem;
    margin: 1rem auto 1rem;
}
.professor img{
    margin-top: 20px;
    width: 200px;
    height: 200px;
}
.professor{
    max-width: 500px;
    margin: 0 auto;
}
.p-wrapper{
    font-size: .5rem;
    font-weight: 350;
    color: #444444;
    max-width: 280px;
    text-align: left;
    margin: 0 auto;
}
.professor a{
    display: inline;
    font-size: .8rem;
    text-align: right;
    color: #444444;
    border-bottom: 4px  solid #d2691e;
    margin:0 auto 2rem;
    transition: .5s;
}
.professor a:hover{
    color: #999999;
}
.member{
    max-width: 400px;
    margin: 3rem auto 0;
}
.grid{
    display: grid;
    gap: 2rem 2rem;
    grid-template-columns: repeat(2,1fr);
    text-align: center;
}
.professor img,
.photo img{
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
}
.photo p{
    font-size: .875rem;
}

/*-----研究室日記-----*/
.post{
    margin-bottom: 3rem;
}
.post-title{
    font-weight: normal;
    margin-bottom: 1.25rem;
}
.post-info{
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.post-tag{
    display: flex;
    gap: 5rem;
    list-style: none;
}
.post-tag a{
    color: #222222;
    background-color: #b0c4de;
    border-radius: 8px;
    font-size: .875rem;
    padding: .4rem .75rem;
}
.post-date{
    font-size: .875rem;
}
.post-photo{
    border-radius: 16px;
    margin-bottom: 1.5rem;
}
.post p{
    margin-bottom: 1.5rem;
    line-height: 2;
}
/*-----お問い合わせ-----*/
.contact{
    max-width: 400px;
    margin: 3rem auto 0;
    padding: 0 1.5rem;
}
.form-wrapper{
    max-width: 400px;
    margin: 0 auto;
}
.form-wrapper iframe{
    width: 100%;
    border: none;
}

/*-----デスクトップ版-----*/
@media (min-width: 800px){
    /*-----見出し-----*/
    .page-title,
    .heading-large{
        font-size: 1.5rem;
    }

    /*-----レイアウト-----*/
    .wrapper{
    max-width: 800px;
    margin: auto;
    padding: 0 1.5rem;
    }

    /*-----ヘッダー-----*/
    .page-header{
        display: flex;
        justify-content: space-between;
        padding-top: 1.5rem;
        margin: 0 3rem 1rem;
    }
    .logo{
        width: 200px;
    }
    .main-nav{
        font-size: 1rem;
    }

    /*-----HOME-----*/
    .slideshow {
    position: relative;
    width: 800px;
    max-width: 1200px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    }
    .keywords,
    .about,
    .news{
    max-width: 800px;
    padding: 0 1.5rem;
    margin: 3rem auto 0;
    }
    .about{
        margin: 4rem auto 0;
    }

    .location-map{
        max-width: 800px;
    }

    .location-map iframe{
        height: 400px;
    }

    /*-----研究内容-----*/

    /*-----研究室日記-----*/
    .blog-contents{
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    .posts{
        width: 78%;
    }
    .post{
        width: 100%;
    }

    /*-----メンバー-----*/
    .heading-name{
        font-size: 1.5rem;
    }
    .professor img{
        width: 300px;
        height: 300px
    }
    .p-wrapper{
        font-size: .875rem;
        margin: 3rem auto 0;
        max-width: 800px;
    }
    .member{
    max-width: 800px;
    }
    .grid{
    gap: 3rem 2rem;
    grid-template-columns: repeat(3,1fr);
    }
    .content{
        max-width: 900px;
        padding: 0 1.5rem;
        margin: 3rem auto 0;
    }
    table{
        width: 100%;
    }
    td{
        padding: 10px 30px;
        width: 80px;
    }
    .table-wrapper p{
        font-size: .875rem;
    }

    /*-----お問い合わせ-----*/
    .contact{
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 1.5rem;
    }
    .form-wrapper{
    max-width: 800px;
    margin: 0 auto;
    }
    .form-wrapper iframe{
    width: 100%;
    border: none;
    }
}

/*-----スマホ版-----*/
@media (max-width: 799px){
    .content{
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        margin: 2rem auto 0;
    }
    .table-wrapper table{
        width: 100%;
        table-layout: fixed;
    }
    .table-wrapper td{
        padding: 10px 6px;
        font-size: 0.8rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
