body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%; /* ページ全体の高さを確保 */  
    align-items: center;
    justify-content: center;  
}

/* コンテナのスタイル(サイドバーとヘッダー、メイン) */
.container {
    width: 1000px;
        background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
}

/* スマートフォン向けのスタイル */
@media (max-width: 600px) {
    body {
        background-color: white;
    }
    .container {
        width: 100%;
        padding: 10px;
    }
}

/* タブレット向けのスタイル */
@media (min-width: 601px) and (max-width: 1024px) {
    body {
        background-color: white;
    }
    .container {
        width: 80%;
        padding: 20px;
    }
}

/* デスクトップ向けのスタイル */
@media (min-width: 1025px) {
    body {
        background-color: white;
    }
    .container {
        width: 60%;
        padding: 30px;
    }
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

header {
   /* background: linear-gradient(135deg, #1e5799 0%, #207cca 50%, #2989d8 100%);*/
    color: rgb(36, 20, 99);
    padding: 15px;
    margin-left: 0px; /* メインの左余白を設定 */
}

.header-container {
  text-align: left;
margin-left: 30px;
}

.small-text {
    font-size: 12px;
    margin: 5;
}

/* 日本語のチーム名 */
h1 {
    font-size: 26px;
    margin-top: 10px;
    margin-bottom: 5px;

}

/* 英語のチーム名 */
h2 {
    font-size: 26px;
    font-style: italic;
    margin-top: 0px;
    margin-bottom: 1px;

}


.sidebar {
    width: 200px;               /* ナビゲーションの幅を設定 */
    /*background-color: #f4f4f4; */ /* 背景色を設定 薄い灰色になる*/
       padding: 0px;
       left: 0;
       top: 0;
       overflow-y: auto;
       background-color: #ffffff;      /* 背景色を白に */
       border-right: 1px solid rgba(0, 0, 0, 0.2); /* 右側に薄い黒の線 */ 
       box-shadow: 3px 0 5px rgba(0, 0, 0, 0.1); /* 右側に薄い影 */
}

.menu-1 {
    text-align: center;
    margin-top: 80px; /* メインの上端からの余白を設定 */
    margin-left: 0px; /* メインの左余白を設定 */
    line-height: 2.3;
    font-size: 16px;
}



.menu-2 {
    display: block; /* 横並びにする */
        text-align: center;

}

.menu-2 a {
    text-decoration: none; /* 下線を削除 */
    color: black; /* 文字色を黒に設定 */
    font-size: 16px;
}

.menu-3  {
    text-align: center;
    margin-top: 50px; /* メインの上端からの余白を設定 */
    margin-left: 0px; /* メインの左余白を設定 */
    line-height: 2;
    padding: 20px;              /* 内側に余白を追加 */
    font-size: 14px;

}

.menu-4  {
    text-align: left;
    margin-top: 0px; /* メインの上端からの余白を設定 */
    margin-left: 0px; /* メインの左余白を設定 */
    line-height: 0.5;
    padding: 10px;              /* 内側に余白を追加 */
    font-size: 11.5px;


}

/* メニューの外部リンクのスタイル */
h3 {
    font-size: 16px;
    font-style: bold;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 10px;

}

/* ナビゲーションメニューのリストのスタイルを初期化 */
nav ul {
   list-style-type: none;  /* リストのドットを消す */
    padding: 0;		     /* パディングを初期化 */

}

/* ナビゲーションメニューのリストアイテムを縦に並べる */
nav ul li {
    /*margin-bottom: 10px; */       /* リンク間にスペースを追加 */
}

/*ナビゲーションメニューのリンクのスタイル */
nav ul li a {
    color: black;		/* テキストカラーを設定 */
    text-decoration: none;　/* リンクの下線を消す */
    padding: 10px;
    display: block;
    /*background-color: #8989d8;*/
}

/* ナビゲーションメニューのホバー時のスタイル */
nav ul li a:hover {
    color: #007BFF;             /* ホバー時にテキストカラーを青に変更 */
}


/* メインの設定 */
main {
    flex: 1; /* フッターを最下部に固定するために、メインコンテンツ部分を伸縮可能に */
    padding: 20px;
    margin-top: 0px; /* メインの左余白を設定 */
}


/* 研究装置のスタイル */
h {
    /*background-color: #2989d8;*/
    margin-top: 0px;
    color: black;
    padding: 10px;
    font-size: 16px;            /* フォントサイズを調整 */

    width: 97%; /* メインの幅 */
    margin-left: 0px;
    padding-bottom: 10px; /* 下線との間隔 */
    border-bottom: 3px solid #47acff; /* 下線の色と太さ */
}

/* グリッドコンテナのスタイル */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列 */
    grid-template-rows: repeat(5, auto); /* 5行 */
    gap: 10px; /* 各グリッドアイテム間の余白 */
    padding: 20px;
        width: 90%;     /* 画面の90%の幅 */
        max-width: 800px; /* 最大幅を1200pxに制限 */
        margin-left: 0px;
        margin-top: 20px;      /* 各メンバーの間隔 */


}
@media (max-width: 768px) {
.grid-container {
    grid-template-columns: repeat(2, 1fr); /* タブレット用: 2列 */
  }
}

@media (max-width: 480px) {
.grid-container {
    grid-template-columns: 1fr; /* スマホ用: 1列 */
  }
}



/* グリッドアイテムのスタイル */
.grid-item {
    border: 1px solid #d3d3d3; /* 薄い灰色の枠線 */
    padding: 15px;
    text-align: center;
    background-color: #f9f9f9; /* アイテムの背景色 */

}

/* 装置名のスタイル */
.device-name {
    font-size: 14px;
    font-style: bold;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 10px;
    line-height: 1.5; /* 行間を1.5倍 */
    min-height: 48px; /* 2行分の高さ（例：16px * 1.5行間 * 2行） */
}

/* 装置写真のスタイル */
.device-photo {
    width: 80%;
    height: auto;
   /* max-height: 150px;  写真の最大高さ */
    /* object-fit: cover; /* 画像の表示領域に合わせる */
    justify-content: center; /* 横方向中央揃え */
    margin-bottom: 10px;
}

/* 装置説明のスタイル */
.device-description {
    font-size: 12px;
    color: #555;
}



footer {
    background-color: #333;
    font-size: 12px;
    padding: 10px 0; /* 上下のパディングを10pxに設定 */
    color: white;
    text-align: center;
    padding: 1px;
    position: relative;
    margin-top: auto; /* メインコンテンツが短い場合でも、フッターを画面の下に配置 */
    width: 1000px;

}
