/* 基本リセット */
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body { 
    font-family: "Segoe UI", "Meiryo", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "palt";
    font-weight: 500;
    letter-spacing: 0.03em;
}


/* ボタン色の変更 */
.btn-primary {
    background-color: #0056b3; /* ボタンの背景色 */
    border-color: #004085; /* ボタンのボーダー色 */
}

.btn-primary:hover {
    background-color: #004085; /* ホバー時の背景色 */
    border-color: #002752; /* ホバー時のボーダー色 */
}

.btn-secondary {
    background-color: #320505; /* ボタンの背景色 */
    border-color: #6c757d; /* ボタンのボーダー色 */
    color: white; /* ボタンのテキスト色 */
}

.btn-secondary:hover {
    background-color: #5a6268; /* ホバー時の背景色 */
    border-color: #545b62; /* ホバー時のボーダー色 */
    color: white; /* ホバー時のテキスト色 */
}



/* カルーセル */
.gallery {
    background: #EEE;
    margin-bottom: 2rem;
}

.gallery-cell {
    width: 100%;
    margin-right: 10px;
}

@media (min-width: 992px) {
    .gallery-cell {
        width: 66%;
        margin-right: 10px;
        transform: scale(0.8);
        opacity: 0.5;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .gallery-cell.is-selected {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-cell img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 見出し */
.section-header {
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 10px 0px;
    text-align: center;
}

.section-header h2 {
    margin: 0;
    color: #333;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

/* フッター */
.footer-nav .nav-item:not(:last-child) {
    position: relative;
}

.footer-nav .nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    height: 60%;
    width: 1px;
    background: #ffffff;
    transform: rotate(15deg);
}

.footer-nav .nav-link {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.footer-nav .nav-link:hover::after,
.footer-nav .nav-link:focus::after {
    transform: scaleX(1);
}

@media (max-width: 991.98px) {
    .footer-nav .nav-item:not(:last-child)::after {
        display: none;
    }

    .footer-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-nav .nav-link {
        display: block;
        text-align: center;
    }

    .footer-nav .nav-link::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
    }

    .footer-nav .nav-link:hover::after,
    .footer-nav .nav-link:focus::after {
        transform: translateX(-50%) scaleX(1);
    }
}

/* トップページバナーのカスタマイズ */
.card-img-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 50%; /* 400:200のアスペクト比を維持 */
    overflow: hidden;
}

.card-img-container video.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% + 1px); /* 1ピクセル分広げる */
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* スマートフォン向けの追加調整 */
@media (max-width: 576px) {
    .card {
        overflow: hidden; /* カードからはみ出した部分を隠す */
    }
    .card-img-container {
        margin-right: -1px; /* 右側の1ピクセルの隙間を埋める */
    }
}

/* ナビゲーションロゴの調整 */
.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-brand .img-height-50 {
    max-height: 50px;
    height: auto;
    display: block;
}

/* ジャンプナビゲーションのボタンの余白調整 */
.jump-nav ul li {
    margin: 0; /* 各ボタンの外側の余白をゼロに */
}

.jump-nav ul li a {
    padding: 0.1rem; /* ボタン内の余白を半分に */
    margin: 0rem;  /* ボタン間の余白を調整 */
}


/* ジャンプナビゲーションの行間調整 */
.jump-nav ul {
    margin-bottom: 0rem; /* 各行の間の余白を狭く */
}

/* ヘッダーナビゲーション */
@media (max-width: 992px) {
    .navbar-nav.nav-with-dividers {
        display: none; /* デフォルトでは非表示 */
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .navbar-collapse.show .navbar-nav.nav-with-dividers {
        display: flex; /* トグルされたときに表示 */
    }

    .navbar-nav.nav-with-dividers .nav-item {
        flex: 1 0 50%; /* 1行に2個ずつ表示 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 0.2rem; /* 行間を少なく */
        margin-bottom: 0.2rem; /* 行間を少なく */
    }

    .navbar-nav.nav-with-dividers .nav-link {
        display: block;
        padding: 0.25rem 0;
        color: #ffffff;
        background-color: #6c757d;
        border-radius: 4px;
        margin: 0.2rem; /* 行間を少なく */
    }

    .navbar-nav.nav-with-dividers .nav-link:hover,
    .navbar-nav.nav-with-dividers .nav-link:focus {
        background-color: #007bff;
        color: #fff;
    }
}
