body{
margin:0;
font-family:"Yu Gothic",sans-serif;
background:#f5f5f5;
}

/*
header{
background:#1f4b8f;
color:white;
text-align:center;

height:180px;
padding:20px;
}
*/
header{
background-image:url("../images/main.png");
background-size:cover;
background-position:70% center;

color:white;
text-align:center;
height:180px;
padding:20px;
}

header h1{
color:white;
font-weight:bold;

text-shadow:
-2px -2px 0 #002244,
2px -2px 0 #002244,
-2px 2px 0 #002244,
2px 2px 0 #002244,
4px 4px 8px rgba(0,0,0,0.4);
}

header p{
color:white;
font-weight:bold;

text-shadow:
-2px -2px 0 #002244,
2px -2px 0 #002244,
-2px 2px 0 #002244,
2px 2px 0 #002244,
4px 4px 8px rgba(0,0,0,0.4);
}

.container{
align-items:flex-start;
max-width:1400px;
margin:20px auto;

gap:40px;
}

/* 本文 */
main{
max-width:1200px;

padding:40px;

background:white;

border:1px solid #d0d0d0;
border-radius:8px;

box-shadow:0 4px 12px rgba(0,0,0,0.10);

margin-left:20px;
margin-right:300px;
margin-top:20px;
margin-bottom:20px;
}

.sidebar{
position:fixed;

right:20px;
top:240px;
width:250px;

border:1px solid #bdbdbd; /* 枠線 */
border-radius:8px; /* 角丸 */
background:#ffffff;

box-shadow:0 4px 12px rgba(0,0,0,0.15); /* 影 */
overflow:hidden;

background:white;
border:1px solid #d0d0d0;
border-radius:8px;
box-shadow:0 4px 12px rgba(0,0,0,0.10);

transition:all 0.2s;
}

.sidebar.compact{
top:20px;
}

/* メニュー */
.tab-menu{
list-style:none;
margin:0;
padding:0;
}

.tab-menu li{
margin:0;
}

.tab-menu a{
display:block;
padding:20px;
text-decoration:none;

color:#333;
background:#f5f5f5;

border-bottom:1px solid #ddd;
}

.tab-menu a:hover{
background:#dbe8f8;
}

.tab-menu a.active{
background:#1f4b8f;
color:white;
}

/* セクション区切り */
h2{
color:#1f4b8f;
border-bottom:3px solid #1f4b8f;
padding-bottom:8px;
}

h3{
border-left:4px solid #1f4b8f;
border-bottom:1px solid #1f4b8f;
padding-left:10px;
}

h4{
border-left:4px solid #1f4b8f;
padding-left:10px;
}

/* 図 */
.misc-photo img{
width:200px;
height:auto;

border:1px solid #ccc;
border-radius:8px;
}

/* スクロールボックス */
.news-box{
height:200px; /* 表示高さ */
overflow-y:auto; /* 縦スクロール */

border:1px solid #d0d0d0;
border-radius:8px;

background:#fafafa;

padding:15px;
}

.news-box ul{
margin:0;
padding-left:20px;
}

.news-box li{
margin-bottom:10px;
}

/* Map */
.map-container{
width:100%;
}

.map-container iframe{
width:100%;
height:450px;
border:none;
}

.map-button{
display:inline-block;
background:#1f4b8f;
color:white;
padding:10px 20px;
text-decoration:none;
border-radius:5px;
}

/* home */
.home{
display:flex;
flex-direction:row-reverse;
align-items:flex-start;

gap:30px;

margin-top:20px;
margin-bottom:30px;
}

.home-photo img{
width:230px;
height:auto;

border:1px solid #ccc;
border-radius:8px;
}

.home-text{
flex:1;

line-height:1.8;
}

/* research */
.research-photo img{
max-width:300px;
height:auto;

border:1px solid #ccc;
}

.research-text{
flex:1;

line-height:1.8;
}

/* profile */
.profile{
display:flex;
align-items:flex-start;

gap:30px;

margin-top:20px;
margin-bottom:30px;
}

.profile-photo img{
width:150px;
height:auto;

border:1px solid #ccc;
border-radius:8px;
}

.profile-text{
flex:1;

line-height:1.8;
}

/* member table */
.member-table{
width:100%;
border-collapse:collapse;
margin-top:20px;
}

.member-table th{
background:black;
color:white;
padding:12px;
}

.member-table td{
padding:12px;
}

.member-table th,
.member-table td{
border:1px solid #ccc;
}

.member-table tr:nth-child(even){
background:#f7f7f7;
}

/* 論文リスト */
.paper-list{
margin-top:15px;
}

.paper-item{
margin-bottom:10px;
}

.paper-title{
font-weight:bold;
}

.paper-author,
.paper-journal{
padding-left:35px;
}

.myname{
text-decoration:underline;
}

/* 発表リスト */
.presentation-list{
margin-top:15px;
}

.presentation-item{
margin-bottom:10px;
}

.presentation-title{
font-weight:bold;
}

.presentation-author,
.presentation-conference{
padding-left:35px;
}

/* 競争的資金リスト */
.fund-list{
margin-top:15px;
}

.fund-item{
margin-bottom:10px;
}

.fund-title{
font-weight:bold;
}

.fund-member,
.fund-org{
padding-left:35px;
}