/* ==========================================================================
   全体の共通設定
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9f9;
}

/* ページ全体の幅を制限するコンテナ */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   ヘッダー（背景画像 + 題字 + ナビゲーション）
   ========================================================================== */
.hero-header {
    /* TODO: 'lab-image.jpg' を実際の背景画像のパスに書き換えてください */
    background-image: url('img/2606.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
}

/* 画像の上に薄いレイヤーを重ねて文字を読みやすくする */
.header-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* 黒の50%透過 */
    padding: 60px 20px;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-letter {
    max-width: 50%;  /* 幅を制限 */
    height: auto;     /* 縦横比（アスペクト比）を維持 */
    filter: invert(100%); /* 黒い画像を「白」に変える */
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.site-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 子ページへのリンク（ナビゲーション） */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover {
    background-color: #fff;
    color: #333;
}

/* ==========================================================================
   2カラムレイアウト（メイン ＆ サイドバー）
   ========================================================================== */
.layout-wrapper {
    display: flex;
    gap: 40px; /* メインとサイドバーの間隔 */
    margin-top: 40px;
    margin-bottom: 60px;
}

/* メインコンテンツ（左側：70%幅） */
.main-content {
    flex: 7;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-content h2 {
    border-left: 5px solid #003366; /* アカデミックな紺色のアクセント */
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #003366;
}

.main-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
}

.news-list {
    list-style: none;
}

.news-list li {
    padding: 30px 0;
    border-bottom: 2px dashed #ddd;
}

.news-list .date {
    font-weight: bold;
    color: #666;
    margin-right: 15px;
}

.news-picture {
    max-width: 100%;  /* 幅を制限 */
    height: auto;     /* 縦横比（アスペクト比）を維持 */
}

.news-image-container {
  display: flex;       /* 横並びにする */
  flex-wrap: wrap;     /* 画面幅に収まらない場合は自動で折り返す */
  gap: 15px;           /* 写真と写真の間のすき間（15px） */
}

.news-image-container img {
  width: 400px;        /* 写真の横幅を統一（お好みのサイズに） */
  height: auto;        /* 縦横比を崩さない */
  object-fit: cover;   /* 必要に応じてサイズを綺麗に収める */
}

.members-container {
  display: flex;       /* 横並びにする */
  flex-wrap: wrap;     /* 画面幅に収まらない場合は自動で折り返す */
  gap: 15px;
}

.members-container img {
  width: 300px;        /* 写真の横幅を統一（お好みのサイズに） */
  height: auto;        /* 縦横比を崩さない */
  object-fit: cover;   /* 必要に応じてサイズを綺麗に収める */
}

.members-container p {
  min-width: 400px;        /* 写真の横幅を統一（お好みのサイズに） */
}

/* サイドバー（右側：30%幅） */
.sidebar {
    flex: 3;
}

.sidebar-widget {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
}

.sidebar-picture {
    max-width: 80%;  /* 幅を制限 */
    height: auto;     /* 縦横比（アスペクト比）を維持 */
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ==========================================================================
   レスポンシブ対応（スマホ表示時に1カラムにする）
   ========================================================================== */
@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column; /* 縦並びに変更 */
        gap: 20px;
    }

    .site-title {
        font-size: 1.8rem;
    }
}
