

/* カラーパレット */
:root {
    
    --primary-color: #100963;
    --secondary-color: #0D114A;  
    --accent-color: #CC2414;    
    --text-color: #333;
    --bg-color: #ffffff;
    
   
    --light-bg: #1b0e4b;        
    
    --commity-bg:#280764;

    --subtle-bg: #FAF9F3;     
}
/* ベース */
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.0625em; /* ~17px */
    line-height: 2.0; 
    margin: 0;
    
    padding: 0; 
    background-color: var(--bg-color);
    color: var(--text-color);
}


/* コンテナ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px; 
}

/* リンク */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
/* 見出し (h1) */
h1 {
    color: var(--secondary-color); 
    font-size: 1.8em; 
    font-weight: 800; 
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -0.5px;
}
h1::after {
    content: '';
    display: block;
    width: 70px; 
    height: 4px; 
    background: var(--accent-color);
    margin-top: 10px;
}

/* 見出し (h2) */
h2 {
    color: var(--secondary-color); 
    font-size: 1.8em; 
    font-weight: 800;
    margin-top: auto;
    margin-bottom: 10px;
    position: relative;
    letter-spacing: -0.5px;
}
h2::after {
    content: '';
    display: block;
    width: 70px; 
    height: 4px; 
    background: var(--accent-color);
    margin-top: 10px;
}


/* ================================
   1. ヘッダーとスライダー
   ================================ */

.top-header {
    position: fixed;
    top: 0;           
    left: 0;          
    width: 100%;      
    z-index: 1000; 
    
    background: var(--subtle-bg); 
    padding: 10px 0;
    border-bottom: 1px solid #ffda0b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
    display: flex; 
    align-items: center; 
  
}
.top-header .container {
    padding: 0 30px;
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
}
.top-header .committee-title {
    font-size: 1.2em; 
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--commity-bg); 
}

/* ヒーロースライダーセクション */
#hero-slider {
    position: relative;
    height: 500px; 
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none; 
    margin-top: 0px; 
}

.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-background .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0;
    transition: opacity 1.5s ease-in-out; 
}

.slider-background .slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 2; 
}

#hero-slider .container {
    position: relative;
    z-index: 3; 
    height: 100%;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.logo-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px; 
    height: 100%;
}


.main-logo {
    max-height: 800px; 
    max-width: 900px;
    height: auto;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: none; 
}


/* ================================
   2. ナビゲーション (固定)
   ================================ */

.shortcut-nav {
    position: sticky; 
    top: 0;           
    left: 0;          
    width: 100%;      
    z-index: 1000; 
    
    background: linear-gradient(135deg, var(--commity-bg), var(--secondary-color)); 
    padding: 10px 0;
    border-bottom: 1px solid #ffda0b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
    display: flex; 
    align-items: center; 
}
.shortcut-nav .container {
    padding: 0 30px;
    width: 100%; 
    position: relative;     
}


.sticky-logo {
  
    position: absolute; 
    left: 30px; 
    top: 50%; 
    transform: translateY(-40%);
    
   
    display: block; 
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease-in-out;
    margin-right: 20px;
}

.nav-logo-img {
   
    height: 50px; 
    width: auto;
}


.sticky-logo.visible {
    opacity: 1;
    pointer-events: auto; 
}


.logo-placeholder {
    
    width: calc(40px * 1.5 + 20px); 
    height: 1px;
    flex-shrink: 0; 
}

.nav-flex {
   
    display: flex;
    justify-content: space-between; 
    
    align-items: center; 
}
.nav-left, .nav-right {
    display: flex;
    gap: 15px; 
    align-items: center; 
}

.shortcut-button {
    display: inline-flex; 
    align-items: center;
    justify-content: center; 
    
    padding: 6px 15px; 
    font-size: 0.95em;
   
}
.shortcut-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-left a, .nav-right a {
    color: rgb(255, 223, 41); 
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
    padding: 5px 0; 
}

.nav-left a:hover, .nav-right a:hover {
    color: var(--bg-color);
    text-decoration: none; 
}

/* ================================
   3. メインコンテンツ
   ================================ */

main {
    padding: 40px 0; 
}
section {
    padding: 40px 0;
    border-bottom: none;
}

.section-alt {
    background-color: var(--subtle-bg); 
}

.image-row, .half-image {
    display: none; 
}

/* お知らせセクション (白背景のカードデザイン) */
#news {
    background-color: #ffffff; 
    padding: 40px; 
    margin-top: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

/* お知らせリストのスタイル（日付分離と縦線） */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative; 
}

.news-list li {
    padding: 20px 20px; 
    margin-bottom: 15px;
    background: #ffffff;
    border-left: 5px solid var(--accent-color); 
    border-radius: 6px;
    font-size: 1.0em; 
    line-height: 1.6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: all 0.3s ease;
    display: flex; 
    align-items: center; 
}
.news-list li:hover {
    background: #fcfcfc; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.news-list strong {
    color: var(--primary-color); 
    font-weight: 700;
    min-width: 110px; 
    flex-shrink: 0; 
    margin-right: 25px;
    border-right: 1px solid #eee; 
    padding-right: 25px;
}

.news-list a {
    color: var(--text-color); 
    text-decoration: none;
    font-weight: 400;
    flex-grow: 1;
}
  
.news-list a:hover {
    text-decoration: underline;
    color: var(--accent-color); 
}

.member-list {
    list-style: none;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: none;
    margin-top: 30px;
}


.member-list > li {
    padding: 18px 25px; 
    font-size: 1.25rem; 
    font-weight: 700;
       
    margin-bottom: 20px;
    background: var(--bg-color); 
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
}

/* 役職の名前強調 */
.member-list .highlight {
    color: var(--primary-color); 
    font-weight: 900;
}

/* 五十音順メンバーのセクション */
.nested-list {
    margin-top: 20px;
    padding-left: 0 !important;
    
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 14px 24px;
}

/* 個々のメンバーカード */
.nested-list li {
    list-style: none;
    background: #ffffff; /* 白背景を維持 */
    padding: 0; /* 子要素でパディングを設定するためリセット */
    border-radius: 8px;
    border: 1px solid #e5e8f1;
    font-size: 0.97rem;
    line-height: 1.55;
    transition: all 0.25s ease;
    display: block; /* Flexを解除して、内部をブロック要素で積む */
    overflow: hidden; /* 角丸にコンテンツを収める */
}

/* ホバーで上質に浮く */
.nested-list li:hover {
    background: #f9fbff;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.member-name {
  
    background-color: var(--subtle-bg);
    color: var(--secondary-color);
    font-weight: 700;
    padding: 12px 18px;
    font-size: 1.05rem;
    line-height: 1.4;
    border-bottom: 2px solid var(--accent-color);
}

/* 専門分野・キーワードのスタイル */
.member-keywords {
    /* 白背景で専門性を分かりやすく */
    background: #fff; 
    color: #555; /* テキストを少し濃く */
    padding: 12px 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    /* 例：を消すために余分な要素は削除し、キーワードのみを表示するとさらにスッキリします */
}
/* ================================
   4. フッター
   ================================ */

footer {
  position: relative;
  background: linear-gradient(135deg, var(--commity-bg), var(--secondary-color));
  color: #ffffff;
  text-align: center;
  padding: 40px 20px; 
  border-top: 3px solid #ffda0b;
}

footer .container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-contact {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}


/* ================================
   5. レスポンシブデザイン
   ================================ */

@media (max-width: 768px) {
    /* スライダーの調整 */
    #hero-slider {
        height: 350px; 
    }
    #hero-slider .logo-flex {
        flex-direction: column;
        gap: 0px; 
    }
    .main-logo {
        max-height: 150px; 
    }
    
    /* ナビゲーションの調整 */
    .nav-flex {
        /* スマホでは縦並びにして中央揃え */
        flex-direction: column;
        gap: 10px;
    }
    /* 💡 修正: スマホではロゴを非表示にし、スペースも不要とする */
    .logo-placeholder {
        display: none; 
    }
    .sticky-logo {
        /* スマホではナビゲーションロゴも非表示 */
        display: none !important;
    }
    .nav-left {
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-right {
        justify-content: center;
    }
    
    /* コンテナの調整 */
    .container {
        padding: 0 20px;
    }

    /* お知らせリストの調整 */
    .news-list li {
        flex-direction: column; 
        align-items: flex-start;
    }
    .news-list strong {
        min-width: auto;
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 5px; 
        font-size: 0.9em;
    }

    /* h2の調整 */
    h2 {
        font-size: 1.8em;
    }
}

/* ------------------------------------------------------------------
 * フォームセクション全体のスタイル
 * ------------------------------------------------------------------ */
.contact-form-container {
    background-color: #f9f9f9; /* わずかに目立つ背景色 */
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 30px; /* メールアドレス情報との間にスペースを設ける */
}

.contact-form-container h3 {
    font-size: 1.5rem;
    color: var(--primary-color); /* ブランドカラーに近い色 */
    margin-bottom: 25px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* ------------------------------------------------------------------
 * 個別の入力グループ（ラベルとインプット）
 * ------------------------------------------------------------------ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block; /* ラベルをインプットの上に配置 */
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.required-tag {
    background-color: var(--accent-color); /* 赤色 */
    color: white;
    font-size: 0.75rem;
    padding: 3px 6px;
    margin-left: 8px;
    border-radius: 4px;
    font-weight: 400;
}

/* ------------------------------------------------------------------
 * 入力フィールド（input, select, textarea）
 * ------------------------------------------------------------------ */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%; /* 親要素の幅いっぱいに広げる */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* paddingとborderを幅に含める */
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s;
}

/* フォーカス時のデザイン */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #007bff; /* 青色で強調 */
    outline: none; /* デフォルトのアウトラインを消す */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

.contact-form textarea {
    resize: vertical; /* 垂直方向のみリサイズ可能にする */
}

/* ------------------------------------------------------------------
 * 送信ボタン
 * ------------------------------------------------------------------ */
.submit-button {
    display: block;
    width: 100%; /* 幅いっぱいに広げる */
    padding: 15px;
    background-color: var(--primary-color); /* ブランドのメインカラー */
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 30px;
}

.submit-button:hover {
    background-color: #004494; /* ホバーで少し暗く */
}



.figure-caption {
  font-size: 1.0rem;
  color: #666;
  margin-top: 10px;
}

.objectives-visual {
  text-align: center;
  margin: 30px 0 40px;
}

.objectives-visual img {
  max-width: 1000px;   /* ←これでサイズ制御 */
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


.member-list li.chair {
    border: 1px solid #e5e8f1;
    background: #fff;
    border-left: 6px solid var(--accent-color);
}

/* 名前を少し大きく＆強調 */
.member-list li.chair .member-name {
    font-size: 1.2rem;
    font-weight: 900;
}

/* 役職（Chair）を強調 */
.member-list li.chair .member-keywords:last-child {
    color: var(--accent-color);
    font-weight: 700;
}

