/* --- ベース設定 --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- 横幅の拡張（コンテナを広げる） --- */
@media (min-width: 1200px) {
  .container {
    max-width: 1320px; /* 横幅を広げて情報が窮屈にならないようにする */
  }
}

.container-fluid {
  width: 100%;
}

/* --- ヘッダー --- */
.navbar.bg-dark {
    background-color: #007B88 !important;
    /* border-bottom: 4px solid #DC9FB4; */
}

/* --- カルーセルの縦幅とスタイル --- */
.carousel-item {
    height: 26rem; 
    background-color: #222; 
    position: relative;
    overflow: hidden;
}

/* 写真（画像）だけにフィルターをかけて暗くする */
.carousel-item > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 26rem;
    object-fit: cover;
    filter: brightness(0.65); 
}

/* 写真の上にうっすら黒い半透明の帯を敷いて文字を見やすくする */
.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); 
    z-index: 1;
    pointer-events: none; 
}

/* --- カルーセル上の文字を明るく（白く）、かつ太くする設定 --- */
.carousel-caption {
    z-index: 2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); /* 文字の影で視認性を高める */
}

.carousel-caption h1 {
    color: #ffffff !important;
    font-weight: 800; /* カルーセルの大見出しを太くする */
    letter-spacing: 0.05em;
}

.carousel-caption p {
    color: #ffffff !important;
    font-weight: 600; /* カルーセルの本文（サブタイトル）を少し太くする */
}

/* --- 各セクションの見出しやテキストを太くする調整 --- */
.featurette-heading {
    font-weight: 700 !important; /* 各セクションの見出しを太く */
}

.featurette p.lead {
    font-weight: 500; /* 本文の主要な説明文を少し太くして読みやすく */
}

/* --- 各セクションの縦の余白を詰める --- */
.marketing {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.featurette {
    padding: 2rem 0; 
}

.featurette-divider {
    margin: 3rem 0; 
}

/* --- マップ・画像調整 --- */
#map {
    height: 350px; 
    width: 100%;
    border-radius: 8px;
}

.profile-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
}

/* --- ボタン --- */
.btn-primary {
    background-color: #007B88;
    border-color: #007B88;
    font-weight: 600; /* ボタンの文字も少し太く */
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #DC9FB4;
    border-color: #DC9FB4;
}

/* --- フッターを画面の横幅いっぱいに広げる --- */
footer {
    background-color: #007B88 !important;
    color: #ffffff;
    width: 100vw;            
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;      
    margin-right: -50vw;
    padding: 2.5rem 0;
    margin-top: 4rem;
    font-weight: 500;
}

footer .container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* --- ダークモード時の背景被り・視認性対策 --- */
[data-bs-theme="dark"] body,
[data-bs-theme="auto"] body {
    /* 自動切替やダークモード時に背景と文字が被らないよう確実にコントラストを保つ */
    color: #dee2e6;
}

/* ダークモード時のGitHubボタン（btn-dark）が背景に沈まないように調整 */
[data-bs-theme="dark"] .btn-dark,
[data-bs-theme="auto"] [data-bs-theme="dark"] .btn-dark {
    background-color: #383f45 !important;
    border-color: #4f5960 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-dark:hover,
[data-bs-theme="auto"] [data-bs-theme="dark"] .btn-dark:hover {
    background-color: #0366d6 !important; /* ホバー時はGitHubの青色に */
    border-color: #0366d6 !important;
}

/* --- 全セクションの見出しのメリハリと文字サイズの一括調整 --- */

/* すべての機能セクションの見出し（英語部分） */
.featurette-heading {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
}

/* 見出しの中にある日本語部分（.text-body-secondary）をひと回り小さくする */
.featurette-heading .text-body-secondary {
    font-size: 1.3rem !important;
    display: inline-block;
    margin-top: 0.3rem;
}

/* プロフィールセクション（#about）の見出しがある場合はこちらも調整 */
#about h2.fw-normal {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
}

/* 各セクションのリード文・本文のサイズ調整 */
.featurette p.lead {
    font-size: 1.05rem !important;
    line-height: 1.6;
    margin-top: 1rem;
}

/* 学会発表やプロジェクト内の強調文字を見やすくする */
#presentations p.lead strong {
    font-size: 1.1rem;
}