*{
    margin:0;
    padding:0;
}

body{
    font-family: "Segoe UI",  "Yu Gothic",  "Hiragino Sans", "Meiryo", sans-serif;
    width:min(95%, 1440px);
    min-height:100vh;
    margin:0 auto;
    font-size:1rem;
}

main{
    flex:1;
}

h1{
    color:#365B56;
    font-size:2rem;
}
h2{
    color: #365B56;
    font-size: 1.6rem;
}

h3{
    color:#365B56;
    font-size:1.2rem;
}

.italic{
    font-style: italic;}

    .page{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.page main{
    flex:1;
}

img{
    max-width:100%;
    height:auto;
}
.sp-br{
    display:none;
}


/*ヘッダー*/
header{
    background-color:#fff;
    display:flex;
    justify-content: space-between;
    align-items:center;
    height:100px;
}

.header-ex{
    position:sticky;
    top:0;
    z-index:1000;

}

.title-second{
    display:inline;
}

nav{
    width: 50%;
    font-size:18px;
    font-weight:bold;
    margin-left:auto;
}

nav ul{
    display:flex;
    justify-content:flex-end;
    list-style-type: none;
    gap:60px;
}

a:link{
    text-decoration:none;
    color:#365B56;
}

nav a:visited{
    color:#365B56;
}

nav a:hover{
    color:#5F8A83;
}

.topimage{
    display:flex;
    justify-content:center;

}

.topimage img{
    width:100%;
    height:auto;
    display:block;
}

/*==========================
  ハンバーガーメニュー
==========================*/

#menu-btn{
    display:none;
}

.menu-icon{
    display:none;
}

/*====*/
.menu-icon span{
    position:relative;
    display:block;
    width:28px;
    height:3px;
    background:#365B56;
    border-radius:3px;
    transition:.3s;
}

.menu-icon span::before,
.menu-icon span::after{

    content:"";
    position:absolute;
    left:0;

    width:28px;
    height:3px;

    background:#365B56;
    border-radius:3px;

    transition:.3s;

}

.menu-icon span::before{
    top:-8px;
}

.menu-icon span::after{
    top:8px;
}

/*フッター*/
.footer{
    padding:15px 0px;
    height:65px;
}

.footer2{
    padding:15px 0px;
    height: 200px;
    background-image:url("./image/footer-bg.png");
    background-size:cover;
    background-position:center;

    position:relative;

}
.footer-liner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-right: 3%;
    padding-left: 3%;

}

.footer-liner2{
    display:flex;
    justify-content:space-between;
    align-items:center;
    
    width:100%;
    box-sizing:border-box;
    background:rgba(255,255,255,.65);

    padding-right:3%;
    padding-left:3%;
    
    position:absolute;
    bottom:0;

}

.footer-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.footer-logo{
    width:75px;
    height:auto;
}

.footer-link{
    line-height:1.5;
    font-size:20px;
}
.footer-link a{
    color:#365B56;
    font-size:20px;
    font-weight:bold;

}

.footer-link a:hover{
    color:#5F8A83;
}

.footer-address{
    letter-spacing:1px;
    font-size:16px;
    font-weight:bold;
    color:#365B56;
}

.address{
    background-color: #deeced;
    padding:3px;
}

.address2{
    padding:3px;
}

/*message*/
.border{
    border-bottom: solid 3px #365B56;
    padding-top:50px;
    padding-bottom:10px;
}


.bunner-message{
    display:flex;
    justify-content:center;
}

.main-message{
    width:90%;
    margin:auto;
}

.container-message{
    display:flex;
    gap:80px;
    align-items:flex-start;
   
}

.container-message .message{
    flex:1;
    padding-top:20px;
    padding-bottom:20px;
}

.date{
    text-align: right;
    margin-top:40px;
}

.photo{
    display:flex;
    align-items: top;
    padding-top:20px;
    
    width: 280px;
    flex-shrink:0;

}

.photo img{
    width: 70%;
    height:auto;
    display:block;
}


/*member*/
.bunner-member{
    display:flex;
    justify-content:center;

}

.container-member{
    width:90%;
    margin:0 auto;
    position:relative;
    display:flex;
    gap:50px;
    padding:50px 0;
    align-items:flex-start;

}

.container-member::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: 80%;
    height: 1px;
    background-color: #ddd;
}



.member-photo{
    width:190px;
    aspect-ratio:3/4;
    overflow:hidden;
}


.member-photo img{
    width:100%;
    height:auto;
    object-fit:cover;
}

.photoTN img{
    transform:scale(1.7)  translateY(60px);
    transform-origin:center;
}

.container-contents{
    flex:1;
}

.position{
    color:#365B56;
    font-weight:bold;
    margin-bottom:8px;
}

.name-ja{
    font-size:2rem;
    font-weight:bold;
    margin-bottom:5px;
}

.name-en{
    color:#888;
    margin-bottom:15px;
}

.career{
    margin-bottom:35px;
}

.study-theme{
    background:#f5fbfd;
    border-left:5px solid #4f8aa8;
    padding:18px 22px;
    margin-bottom:30px;
}

.study-theme p:first-child{
    font-weight:bold;
    margin-bottom:10px;
}

.researchmap-etc{
    display:flex;
    gap:18px;
}

.researchmap-etc img{
    height:30px;
    transition:.3s;
}

.researchmap-etc img:hover{
    transform:translateY(-3px);
}
.section-title{
    text-align:center;
    margin:70px 0 40px;
}

.section-title-ja{
    font-size:2rem;
    color:#365B56;
    font-weight:bold;
}

.section-title-en{
    display:block;
    font-size:1rem;
    color:#777;
    letter-spacing:0.15em;
    margin-top:6px;
}

.students{
    margin-top:80px;
    margin-bottom:80px;
}

.students h2{
    text-align:center;
    margin-bottom:40px;
}

.lab-photo{
    max-width:900px;
    margin:0 auto 50px;
    text-align:center;
}

.lab-photo img{
    width:100%;
    border-radius:12px;
}

.lab-photo figcaption{
    margin-top:10px;
    color:#666;
    font-size:0.9rem;
}

.student-wrapper{
    display:grid;
    gap:30px;
}

.student-card{
    background:#fff;
    border-radius:12px;
    padding:30px;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.student-card h3{
    color:#365B56;
    border-bottom:2px solid #365B56;
    padding-bottom:10px;
    margin-bottom:20px;
}

.student-card ul{
    list-style:none;
    padding:0;
    margin:0;
}

.student-card li{
    padding:8px 0;
}

.undergraduate ul{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px 40px;
}

/*study*/
.year{
    margin-left:25px;

}

.title{
    padding:0.5em;
    font-weight:bold;
}

.underline{
    text-decoration: underline;
}


.container-in li{
    margin-top:10px;
    margin-bottom:10px;
}
.page-title{
    text-align:center;
    margin:50px 0 40px;
}

.page-subtitle{
    display:block;
    color:#5D91B3;
    font-size:0.95rem;
    letter-spacing:0.2em;
    margin-bottom:8px;
}

.study3th{
    display:inline-block;
    color:#365B56;
    padding: 3rem 5rem;
}


/*タブデザイン*/
.tab-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
}

.tab-2 > label {
    
    flex: 1 1;
    order: -1;
    opacity: .5;
    min-width: 70px;
    padding: .6em 1em;
    border-radius: 5px 5px 0 0;
    background-color:#5D91B3;
    color: #fff;
    font-size: 1.2em;
    font-weight:bold;
    text-align: center;
    cursor: pointer;
}

.tab-2 > label:hover {
   background:#4C82A3;
}

.tab-2 input {
    display: none;
}

.tab-2 > div {
    display: none;
    width: 100%;
    padding: 1.5em 1em;
    background-color: #fff;
    border-top:4px solid #365B56;
}

.tab-2 label:has(:checked) {
    opacity: 1;
    background:#365B56;
    color:#fff;
}

.tab-2 label:has(:checked) + div {
    display: block;
}

/*リスト*/
.graduation li{
    line-height:1.8em;
    margin-left:60px;
}

.master li{
    line-height:1.8em;
    margin-left:60px;
}

.conference li{
    line-height:1.8em;
    margin-left:60px;
}

.paper li{
    line-height:1.8em;
    margin-left:60px;
}


/*コンテナ*/
.container{
    --box-color:#365B56;
    background:#FCFEFE;
    margin:2em auto;
    position:relative;
    border:2px solid #D8E7E4;
    border-radius:8px 8px 0 0 ;
    max-width:1200px;
}

.container .year{
    background:var(--box-color);
    color:#fff;
    padding:0.2em 1em;
    position:absolute;
    top:-0.7em;
    left:0.7em;
    display:inline-block;
    font-weight:bold;
    border-radius:3px;
    max-width:calc(100%-2em);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.container .container-in{
    padding:2.5em 2em 2em;
}

/*links*/
.main-links{
    width:85%;
    margin:auto;
    padding-top:20px;
}


.link-list{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:25px;

    list-style:none;
    padding-top:15px;
    margin:0;
    padding-bottom:15px;
}

.link-list strong{
    font-size:1.1rem;
    color:#365B56;
}

.link-list span{
    color:#666;
    font-size:0.9rem;
}

.link-list li{
    margin-bottom:20px;
}

.link-list a{
    display:block;
    position:relative;

    padding:22px 60px 22px 25px;

    background:#fff;
    border:2px solid #d8e4e8;
    border-radius:10px;

    color:#333;
    text-decoration:none;

    transition:.3s;
}

.link-list a:hover{
    background:#f5fbfd;
    border-color:#4f8aa8;

    transform:translateY(-2px);

    box-shadow:0 8px 18px rgba(0,0,0,.08);
}

.link-list a::after{
    content:"↗";

    position:absolute;

    right:22px;
    top:50%;

    transform:translateY(-50%);

    color:#4f8aa8;

    font-size:1.2rem;
}


/*レスポンシブデザイン*/
@media screen and (min-width: 1025px) {
    body {
        min-width: 1200px;
    }
}

/* iPad */
@media screen and (min-width:768px) and (max-width:1024px){
    h1{
        font-size:1.8rem;
    }

    h2{
        font-size:1.1rem;
    }

    h3{
        font-size:0.8rem;
    }

    .footer-logo{
        width:50px;
    }
}

@media screen and (max-width:900px){
    body{
        min-width:1200px;
    }
    .title-second{
    display:block;
}


    nav{
        width:60%;
        font-size:16px;
    }

    h2{
        font-size:clamp(1rem, 3.5vw, 1.35rem);
    }

    h3{
        font-size:clamp(0.7rem, 2.5vw, 0.95rem);
    }
    .sp-br{
    display:block;
}

/*message*/
.container-message{    
    gap:40px;
}

.photo{
    width:220px;
}

.photo img{
    width:100%;
}


/*member*/
.container-member{
    gap:35px;
    padding:40px 0;
}

.member-photo{
    width:150px;
}

.name-ja{
    font-size:1.7rem;
}
}



/* スマホ */
@media screen and (max-width:767px){
body{
        width:95%;
        min-width: 0;
        margin:0 auto;
    } 

/*ヘッダー*/
header{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    height:auto;
    padding:15px 0;
}

.logo{
    flex:1;
    min-width:0;
    padding-right:10px;
}

.menu-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    cursor:pointer;
}

h1{
    font-size:clamp(1.5rem, 4vw, 1.8rem);
}

 h2{
    font-size:clamp(1rem, 3.5vw, 1.35rem);
    line-height:1.3;
}

 h3{
    font-size:clamp(0.7rem, 2.5vw, 0.95rem);
    margin-top:2px;
}


nav{
    width:100%;
}

nav ul{
    flex-direction:column;
    display:none;
    margin-top:10px;
    gap:0;
}

nav li{
    border-top:1px solid #ddd;

}

nav li a{
    display:block;
    padding:15px;
}

#menu-btn:checked + .menu-icon + nav ul{
    display:flex;
}

#menu-btn:checked + .menu-icon span{
    background:transparent;
}

#menu-btn:checked + .menu-icon span::before{
    transform:rotate(45deg);
    top:0;
}

#menu-btn:checked + .menu-icon span::after{
    transform:rotate(-45deg);
    top:0;
}

/*フッター*/
.footer{
    height:auto;
    padding:25px 5%;
}

.footer-liner{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    text-align:right;
    gap:15px;
}


.footer-left{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
}


.footer-logo{
    width:42px;
}


.footer-link{
    font-size:0.8rem;
    line-height:1.6;
}


.footer-link a{
    font-size:0.8rem;
}

.sp-br{
    display:block;
}

.footer-address{
    font-size:0.75rem;
    margin-top:10px;
}

.footer2{
    height:auto;
    min-height:180px;
    padding:20px 5%;
}


.footer-liner2{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    text-align:right;
    gap:15px;

    position:static;

    background:rgba(255,255,255,.65);
    padding:15px;
}

/*message*/
.message{
    font-size:0.95rem;
}

.container-message{
    flex-direction:column-reverse;
    gap:15px;
}

.photo{
    width:45%;
    max-width:180px;
    min-width:110px;
    margin:0 auto;
    padding-top:20px;
}

.photo img{
    width:100%;
}

.border{
    padding-top:30px;
}

/*member*/
.container-member{
    flex-direction:column;
    align-items:center;
    gap:20px;
    padding:35px 0;
    text-align:center;
}

.member-photo{
    width:140px;
}

.container-contents{
    width:100%;
}

.position{
    margin-bottom:6px;
}

.name-ja{
    font-size:1.5rem;
}

.name-en{
    margin-bottom:12px;
}

.career{
    margin-bottom:25px;
}

.study-theme{
    text-align:left;
}
.researchmap-etc{
    display:flex;
    flex-direction:column;
    justify-content:center;
    row-gap:15px; /* 縦の間隔 */    
}

.container-member::after{
    width:100%;
}

.undergraduate ul{
    grid-template-columns:1fr;
}

/*study*/
.study3th{
    display:block;
    text-align:center;
    padding:2rem 1rem;
}

.tab-2{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.tab-2 > label{
    flex:0 0 calc(50% - 4px);
    box-sizing:border-box;
    font-size:0.95rem;
    padding:12px 8px;
}


.graduation li,
.master li,
.conference li,
.paper li{
    margin-left:20px;
}

.container .container-in{
    padding:2.5em 1.2em 1.5em;
}

.container{
    font-size:0.95rem;
    margin:1.5em auto;
}

.container li{
    line-height:2;
}

.title{
    word-break:break-word;
}

/*links*/
.link-list{
    grid-template-columns:1fr;
    gap:18px;
}
.main-links{
    width:92%;
}
.link-list a{
    padding:18px 45px 18px 18px;
}

}