/*Template designed by Saiyo Design*/

/* ご説明  -------------------------------------------------------------------------------
メインの画像と色を変更できます。
-----------------------------------------------------------------------------------------*/

/*トップページのスライド画像
---------------------------------------------------------------------------------------------------------------------------*/
/*ヒーローイメージ/スライド*/
.slide_hero_img:nth-child(2) {
  background-image: url("../img/00_01.jpg"); /* 1番目の画像を設定 */
  background-position: right 25% top 50%; /* 背景画像の位置を設定 */
}
.slide_hero_img:nth-child(3) {
  background-image: url("../img/00_02.jpg"); /* 2番目の画像を設定 */
  background-position: right 30% top 50%; /* 背景画像の位置を設定 */
}
.slide_hero_img:nth-child(4) {
  background-image: url("../img/00_03.jpg"); /* 3番目の画像を設定 */
  background-position: right 25% top 50%; /* 背景画像の位置を設定 */
}
/*各カテゴリーのアイキャッチ画像
---------------------------------------------------------------------------------------------------------------------------*/
/*日本防菌防黴学会について*/
#society .eye_catch {
    background-image: url("../img/01.jpg"); /* 画像を設定 */
    background-position: left; /* 画像の位置を左に設定 */
}

/* 年次大会セクションの背景動画設定 */
#meeting.eye_catch {
    position: relative; /* 動画の基準位置にする */
    overflow: hidden; /* はみ出た動画をカット */
    /* background-image: url("../img/01.jpg"); 不要なら消す */
    /* --- ここから追加 --- */
    border-top-left-radius: 50px; /* 左上を丸くする */
    isolation: isolate; /* 動画が角丸を突き破るのを防ぎ、埋もれにくくする */
    z-index: 1; /* 階層を明示 */
    /* ------------------ */
}

    #meeting .eye_catch video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* 画像の background-size: cover; と同じ効果 */
        object-position: left; /* 画像の background-position: left; と同じ効果 */
        z-index: 0; /* 背面に配置 */
        /* --- ここも追加 --- */
        border-top-left-radius: 50px; /* 動画自体も念のため丸くする */
    }

/*学会誌*/
#journals .eye_catch {
  background-image: url("../img/06.jpg"); /* 画像を設定 */
  background-position: left; /* 画像の位置を左に設定 */
}
/*関連情報*/
#information .eye_catch {
  background-image: url("../img/10.jpg"); /* 画像を設定 */
  background-position: left; /* 画像の位置を左に設定 */
}
/*関連情報の上の画像（パララックス画像）
---------------------------------------------------------------------------------------------------------------------------*/
.parallax {
  background-image: url("../img/09.jpg"); /* 画像を設定 */
  background-position: left; /* 画像の位置を左に設定 */
}
/*メインカラーの色変更
---------------------------------------------------------------------------------------------------------------------------*/ 
:root {
  --key_color_text: #3B8DAF; /* テキストカラーを設定 */
  --key_color_back: #3B8DAF; /* 背景色を設定 */
}
/*contactボタンの色変更　
-----------------
    ----------------------------------------------------------------------------------------------------------*/
:root {
    --key_color_back_contact: #000000; /* 背景色を設定 */
    --key_color_back_contact_hover: #C70069; /* 背景色を設定 */
}

/*トップページ緑枠の場所
-----------------
    ----------------------------------------------------------------------------------------------------------*/
.news_select_wrapper {
    display: none;
}

.news_box.scroll_x {
    display: flex !important;
    flex-wrap: nowrap !important; /* 絶対に縦にならない */
    overflow-x: auto;
    gap: 12px;
    padding: 15px 5px;
    /* スクロールバーを消す（モダンな見た目にするため） */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    /* スクロールバーを非表示（Chrome, Safari） */
    .news_box.scroll_x::-webkit-scrollbar {
        display: none;
    }

.news_item_x {
    flex: 0 0 auto; /* 縮ませない */
    padding: 5px 22px;
    background-color: rgba(255, 255, 255, 0.15); /* 半透明の白 */
    border: 1px solid rgba(255, 255, 255, 0.3); /* 薄い枠線 */
    border-radius: 50px; /* まるで囲むデザイン */
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease; /* ホバー時にふわっとさせる */
}

    /* ホバーした時に少し明るくする */
    .news_item_x:hover {
        background-color: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.6);
        transform: translateY(-2px); /* 少し浮き上がらせる */
    }

/* スマホ用デザイン修正 */
@media (max-width: 1000px) {
    .news_box.scroll_x {
        display: none !important;
    }

    .news_select_wrapper {
        display: block;
        position: relative;
        margin: 10px;
    }

    .news_select_mobile {
        appearance: none; /* デフォルトのダサい矢印を消す */
        -webkit-appearance: none;
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        background-color: rgba(255, 255, 255, 0.15); /* PCのボタンと同じ色味 */
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50px; /* カプセル型に */
        cursor: pointer;
    }

    /* 右側に白い「▼」のアイコンを擬似的に作る */
    .news_select_wrapper::after {
        content: "▼";
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        color: #fff;
        font-size: 10px;
        pointer-events: none; /* クリックを邪魔しない */
    }

    /* セレクトボックスの中身（文字）を見やすく */
    .news_select_mobile option {
        background-color: #2c4a3e; /* 背景の緑に近い色にする */
        color: #fff;
    }
}



/* スクロールバーを細く（Chrome系） */
.news_box.scroll_x::-webkit-scrollbar {
    height: 6px;
}

.news_box.scroll_x::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
}

/* 菌泳ぐ */
.free-insect {
    position: fixed !important;
    width: 60px !important; /* サイズを固定 */
    height: auto !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    top: -100px; /* JSが動くまでは隠す */
    left: -100px;
}

/* 組織セクション カスタムスタイル */
.org_wrapper {
    margin-top: 40px;
    font-family: 'Arial', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* 会長・副会長カード */
.org_main_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.org_card {
    padding: 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

    .org_card.president {
        background: var(--key_color); /* common.cssのメイン色を使用 */
        color: #fff;
    }

    .org_card.vice_president {
        background: #fff;
        border: 2px solid var(--key_color);
        color: var(--key_color_text);
    }

.org_label {
    font-size: 10px;
    letter-spacing: 3px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.org_card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    padding-right: 50px;
}

.org_card.vice_president h4 {
    border-bottom: 1px solid var(--key_color);
}

.org_card .name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.org_card .affiliation {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 理事・監事リスト */
.org_list_container {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.org_list_block h5 {
    color: var(--key_color_text);
    font-size: 1.1rem;
    border-left: 5px solid var(--key_color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.member_list {
    list-style: none;
    line-height: 2;
}

    .member_list li {
        font-size: 0.95rem;
        border-bottom: 1px dashed #eee;
        padding: 5px 0;
    }

    .member_list span {
        font-weight: bold;
        margin-right: 8px;
    }

.mt_30 {
    margin-top: 30px;
}

/* 編集委員会 */
.editorial_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.editorial_box {
    background: rgba(255,255,255,0.5);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

    .editorial_box h6 {
        font-weight: bold;
        color: var(--key_color_text);
        margin-bottom: 15px;
        font-size: 1rem;
    }

    .editorial_box dl dt {
        font-size: 0.8rem;
        color: #888;
    }

    .editorial_box dl dd {
        font-weight: bold;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

.honorable_mention {
    text-align: right;
    margin-top: 30px;
    color: #777;
}

@media (max-width: 768px) {
    .org_list_container {
        padding: 20px;
    }
}

/* 学会品目 */
.howtoread {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
}

    .howtoread h2 {
        text-align: center;
        font-size: 28px;
        margin-bottom: 30px;
    }

.howtoread-grid {
    display: flex;
    flex-direction: column; /* ← これ追加 */
    gap: 30px;
}

.howtoread-card {
    flex: 1;
    min-width: 320px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .howtoread-card h3 {
        border-left: 5px solid #C70069;
        padding-left: 12px;
        margin-bottom: 15px;
    }

.example {
    font-size: 32px;
    font-weight: bold;
    color: #C70069;
    margin: 10px 0 20px;
}

.howtoread-card ul {
    font-size: 14px;
    line-height: 1.8;
    padding-left: 20px;
}

.note {
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}