/* すべての要素のデフォルト設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ページ全体の背景 */
body {
    background-color: #f4f4f4;
    text-align: center;
}

/* ロード時の全画面画像 */
#loadingScreen {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8); /* 半透明にする */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1.5s ease-out;
}

/* ローディング画像 */
#loadingScreen img {
    max-width: 80%;
    max-height: 80%;
}

/* フェードアウトアニメーション */
.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* メインコンテンツ（初期は非表示） */
.container {
    padding-top: 150px;
    opacity: 0;
    display: block;
    transition: opacity 1.5s ease-in;
    will-change: opacity;
   
}


/* ↓ このセレクタは不要なので削除 */
/* #loadingScreen.fade-out + .container {
    opacity: 1 !important;
} */

/* メイン画像設定 */
img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* ナビゲーションバー */
.navbar {
    background-color: #0056b3;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ナビゲーションコンテナ */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

/* ロゴ */
.logo {
    font-size: 20px;
    font-weight: bold;
}

/* ナビゲーションメニュー */
.nav-links {
    list-style: none;
    display: flex;
}

/* メニューの各リンク */
.nav-links li {
    padding: 0 15px;
}

/* リンクのスタイル */
.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* モバイル用メニューアイコン */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0056b3;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 15px 0;
    }
}
#slideshow {
    position: relative;
    width: 100vw;               
    max-width: 80vw;            /* 最大幅を制限しない */
    aspect-ratio: 16 / 7;       /* 高さを自動で比率に応じて調整 */
    margin: 10px auto 40px auto;      /* 上にナビバーの分の余白 */
    overflow: hidden;
}

#slideshow img {
    position: absolute;
    width: 100%;
    height: 100%;
    /*object-fit: cover;         /* 画面いっぱいに表示・切り抜き */
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#slideshow img.active {
    opacity: 1;
    z-index: 1;
}

