/* ====== 共通設定 ====== */

/* 線の色（メイン） */
.sg-border-main {
    border-color: var(--sg-color-main) !important;
}
/* 背景色（メイン） */
.sg-bg-main {
    background-color:  var(--sg-color-main);
}
/* 背景色（グラデーション） */
.sg-bg-gradation {
    background: linear-gradient(to right,  var(--sg-color-main) 0%, #5e6bab 100%);
}
/* ボタンの幅 */
.sg-btn {
    width: 110px;
}
/* ボタンの形のリンク背景色 */
.sg-btn-bg {
    background-color: rgba(184,193,236,0.5);
}
/* ボタンの形のリンクホバー時の背景色 */
a.sg-btn-bg:hover {
    color: #b8c1ec !important;
}

/* ====== ヘッダー ====== */

/* ヘッダータイトルのフォント */
.sg-font-header-title {
    font-size: 2rem;
    color: rgba(var(--bs-white-rgb), 1);
}
/* ヘッダーのフォント */
.sg-font-header {
    font-size: 16px;
    color: rgba(var(--bs-white-rgb), 1);
}
/* 言語切替のフォント */
.sg-font-language {
    color: #38406a;
}
/* ヘッダー（スマホ用）タイトルの最大幅 */
.sg-blk-header-title-phone {
    max-width: 90%;
    z-index: 1100;
}
/* ヘッダー（スマホ用） */
.sg-blk-header-phone {
    z-index: 999;
    width: 100%;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    background-color: #232946;
    color: white;
    padding: 10px 15px;
    min-height: 84px;
}

/* ====== メニュー ====== */

/* メニュー（スマホ用） */
.nav-list {
    position: absolute;
    right: 0;
    margin: 0;
    top: 84px;
    background: linear-gradient(to bottom, #232946 0%, #5e6bab 100%);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding-top: 20px;
    z-index: 999;
    visibility: hidden;
    list-style: none;
    opacity: 0;
    transition: 0.3s;
    padding-left: 0;
}
/* メニューの間隔 */
.nav-list li {
    padding: 15px;
}
/* メニューのフォント */
.sg-font-nav-menu {
    text-decoration: none;
    color: white;
}
/* メニューの言語切替のフォント */
.sg-font-nav-language {
    color: rgba(var(--bs-white-rgb), 1);
}
/* メニューの言語切替(ボタン)のフォント */
.sg-font-nav-language-menu {
    font-size: 1.25rem;
    color: rgba(var(--bs-white-rgb), 1);
}
/* メニューの開閉ボタン */
.sg-menu-toggle {
    flex-direction: column;
    cursor: pointer;
    display: flex;
}
/* メニューの開閉ボタンデザイン */
.sg-menu-toggle .bar {
    height: 3px;
    width: 25px;
    margin: 3px 0;
    background-color: white;
    transition: 0.3s;
}
/* メニューの開閉ボタン動き */
.toggle .bar:nth-child(1), .toggle .bar:nth-child(3) {
    transform: translateX(-5px);
}
/* メニューの開閉ボタン動き */
.toggle .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}
/* メニューの開閉ボタン動き */
.toggle .bar:nth-child(2) {
    opacity: 0;
}
/* メニューの開閉ボタン動き */
.toggle .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -7px);
}
/* メニューの開閉 */
.nav-active {
    visibility: visible;
    opacity: 1;
}
/* ページスクロール停止 */
.no-scroll {
    overflow: hidden;
    height: 100%;
}

/* ====== スライド ====== */

/* スライド内コンテンツの設定 */
.sg-slide-content {
    max-height: calc(100% - 112px);
    padding: 0px;
}
/* スライド切替ボタン */
.carousel-control-next, .carousel-control-prev {
    width: 50px;
    height: 50px;
    top: 50%;
    margin: 0 10px;
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: #6073cc;
}
/* スライド切替ボタン大きさ */
.carousel-control-next-icon, .carousel-control-prev-icon {
    background-size: 180%;
}
/* スライド切替ボタンホバー時の色 */
.carousel-control-next:focus, .carousel-control-next:hover, .carousel-control-prev:focus, .carousel-control-prev:hover {
    opacity: 0.7;
}
/* スライド下部の切り替えボタン */
.carousel-indicators [data-bs-target] {
    border-radius: 50%;
    height: 12px;
    width: 12px;
    margin: 0px 6px;
}

/* ====== 背景画像 ====== */

/* 背景画像 */
.sg-slide-img {
    background-image: var(--bg-slide-img);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100dvh;
}
/* クレジット */
.sg-photo-credit {
    font-size: 14px;
    color: #fff;
    background: #23294699;
    padding: 4px 8px;
    width: 100%;
    height: fit-content;
    text-align: left;
}
/* 説明文の背景色 */
.sg-bg-explanation {
    background: #23294699;
}
/* 説明文のフォント */
.sg-font-explanation {
    font-size: 20px;
    color: rgba(var(--bs-white-rgb), 1);
}

/* ====== 災害発生MAP ====== */

/* 災害発生MAPの位置 */
.sg-blk-map {
    position: absolute;
    right: 70px;
    bottom: 0px;
    z-index: 50;
    width: 26%;
    height: 110%;
}
/* 災害発生MAPの背景色 */
.sg-bg-map {
    background: rgba(244, 251, 255, 0.9);
    border-radius: 10px;
}
/* 災害発生MAPの地図の影色 */
.sg-map-area {
    stroke-width: 0;
}
/* 災害発生MAPの地図ホバー時の色 */
a:hover .sg-map-area {
    cursor: pointer;
    fill: rgb(239 255 186 / 80%);
    stroke-linejoin: round;
}
/* 災害発生MAPの地図の事案が発生している場合のホバー時の色 */
a:hover .sg-map-area.sg-map-disaster {
    cursor: pointer;
    fill: rgb(255 118 146 / 80%);
    stroke-linejoin: round;
}
/* 災害発生MAPの地図リンクがない場合の色 */
.sg-map-no-link .sg-map-area {
    fill: #a89cb3;
    filter: none;
}
/* 災害発生MAPの地図リンクがない場合 */
.sg-map-no-link {
    pointer-events: none;
    color: #ffffff !important;
}
/* 災害発生MAP（スマホ用） */
.sg-blk-map-phone {
    background-image: url("/img/background/map.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}
/* 災害発生MAPのタイトルのフォント */
.sg-font-map-title {
    font-size: 1.5rem;
    color: rgba(var(--bs-light-rgb), 1);
    font-weight: 700;
}
/* 災害発生MAPの説明のフォント */
.sg-font-map-explanation {
    font-size: 12px;
    color: rgba(var(--bs-light-rgb), 1);
}
/* 災害発生MAPの市区町村のフォント */
.sg-font-map-shiku {
    font-size: 16px;
    font-weight: 700;
}
/* 注釈文字(災害発生あり/なし)のフォント */
.sg-font-map-comment {
    font-size: 13.6px;
    font-weight: 700;
    color: var(--sg-color-main);
}

/* ====== お知らせ ====== */

/* お知らせの設定 */
.sg-blk-news {
    /* 背景色 */
    background-color: #eef5ff;
    /* 背景画像 */
    background-image: linear-gradient(rgba(238, 245, 255, 0.3), rgba(238, 245, 255, 0.3)), url("/img/background/topBackground.png");
    background-position: center;
}
/* お知らせタイトルのデザイン */
.sg-blk-news-title {
    border-radius: 10px 100px 10px 100px;
}
/* 大きいアイコンの大きさ */
.sg-font-big-icon {
    font-size: 39px;
}
/* お知らせタイトルのフォント */
.sg-font-news-title {
    font-size: 35px;
    color: rgba(var(--bs-white-rgb), 1);
    font-weight: 700;
}
/* NEWアイコン */
.sg-new-ribbon-big {
    padding-top: 1px;
    width: 82px;
    position: absolute;
    top: -5px;
    left: 8px;
    box-sizing: border-box;
    background-color: #e14f4f;
    border-right: solid 2px;
    border-bottom: solid 2px;
    border-color: #e1e1e1;
    padding: 0;
    border-radius: 2px;
}
/* NEWアイコン文字 */
.sg-new-title {
    margin: 0;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    font-size: 13px;
}
/* 掲載開始日時の設定 */
.sg-news-date {
    min-width: 189px;
}
/* 掲載開始日時のフォント */
.sg-font-news-date {
    font-weight: 700;
}
/* お知らせ情報がないときの文字フォント */
.sg-font-no-news {
    font-size: 1.5rem;
    color: var(--sg-color-wahu-black);
    font-weight: 700;
}

/* ====== 重要なお知らせ ====== */

/* 重要なお知らせの最大高さ */
#important-news-area {
    max-height: var(--height-important-news);
}

/* ====== 新着情報 ====== */

/* アイコン色 */
.sg-blk-new .sg-font-big-icon {
    color: #ffdd8d;
}
/* 新着情報の最大高さ */
#new-news-area {
    max-height: var(--height-new-news);
}

/* ====== 消防本部アクセス先 ====== */

/* 消防本部アクセス先タイトルのフォント */
.sg-font-access-title {
    font-size: calc(1.375rem + 1.5vw);
    color: rgba(var(--bs-white-rgb), 1);
    font-weight: 700;
}
/* 消防本部アクセス先タイトルの字間(日本語) */
.sg-letter-spacing {
    letter-spacing: 0.27em
}
/* 消防本部アクセス先の最大幅 */
.sg-blk-access-card {
    max-width: 1200px;
}
/* カードの設定 */
.card-body {
    padding: 0;
    min-height: 215px;
    min-width: 300px;
}
/* カード内の各消防本部名の最小高さ */
.sg-access-honbu {
    min-height: 52px;
}
/* 消防本部アクセス先のリンク位置 */
.sg-access-link {
    position: absolute;
    left: 50%;
    width: 100%;
    transform: translate(-50%, 0%);
    bottom: 10px;
}
/* き章 */
.sg-icon-mark::before {
    content: '';
    display: inline-block;
    width: 31px;
    height: 35px;
    margin-right: 5px;
    background: var(--icon-mark);
    background-size: contain;
    vertical-align: 8px;
    background-repeat: no-repeat;
    margin-bottom: -19px;
}
/* 消防本部名のフォント */
.sg-font-access-honbu {
    font-size: 20px;
    color: rgba(var(--bs-light-rgb), 1);
    text-decoration: none;
}
/* アクセス先のフォント */
.sg-font-access-zip,
.sg-font-access-address,
.sg-font-access-tell,
.sg-font-access-fax {
    font-size: 16.5px;
    color: rgba(var(--bs-light-rgb), 1);
}
/* リンクボタンのフォント */
.sg-font-access-link {
    font-size: 16.5px;
    color: rgba(var(--bs-light-rgb), 1);
    font-weight: 700;
}

/* ====== フッター ====== */

/* フッターの設定 */
.sg-blk-footer {
    /* 背景色 */
    background: linear-gradient(to right,  #b8c1ec 0%, #5e6bab 100%);
}
/* フッター上部の線の色 */
.sg-border-footer {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    border-color: #b8c1ec !important;
    border-width: 17px !important;
}
/* フッターのシステムタイトルのフォント */
.sg-font-footer-systitle {
    font-size: 1.5rem;
    color: rgba(var(--bs-white-rgb), 1);
}
/* フッターのタイトルのフォント */
.sg-font-footer-title {
    font-weight: 700;
}
/* フッターのフォント */
.sg-font-footer {
    color: #ffffff;
}

/* ====== トップへ戻る ====== */

/* トップへ戻るボタン */
.sg-btn-top-return {
    color: rgba(var(--bs-light-rgb), 1);
    background-color: rgba(188,192,227,0.7);
    z-index: 999;
    width: 50px;
    height: 50px;
}
/* トップへ戻るリンクホバー時の背景色 */
.sg-blk-top-return a:hover, .sg-blk-top-return a:focus-visible{
    background-color: rgba(133,93,172,0.7);
}

/* ====== 各サイズごとの調整 ====== */

/* 1590px以下の場合 */
@media (max-width:1590px) {
    /* 災害発生MAPの大きさ */
    .sg-blk-map {
        max-width: 23%;
    }
}
/* 1300px以下の場合 */
@media (max-width:1300px) {
    /* ヘッダー文字の大きさ */
    .sg-font-header {
        font-size: 14px;
    }
}
/* 1190px以下の場合 */
@media (max-width:1190px) {
    /* ヘッダー文字の大きさ */
    .sg-font-header {
        font-size: 12px;
    }
    /* 消防本部アクセス先大きさ */
    .sg-blk-access-card .col-md-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
}
/* 1110px以下の場合 */
@media (max-width:1110px) {
    /* ヘッダータイトルの文字の大きさ */
    .sg-font-header-title {
        font-size: 1.5rem !important;
    }
}
/* 991px以下（PC以外）の場合 */
@media (max-width:991px) {
    /* 重要なお知らせ、新着情報の最大高さ */
    #important-news-area, #new-news-area {
        max-height: none;
    }
}
/* 800px以下の場合 */
@media (max-width:800px) {
    /* 消防本部アクセス先大きさ */
    .sg-blk-access-card .col-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}
/* 767px以下の場合 */
@media (max-width:767px) {
    /* 説明文の大きさ */
    .sg-font-explanation {
        font-size: 1rem;
    }
    /* お知らせタイトル文字の大きさ */
    .sg-font-news-title {
        font-size: 28px;
    }
    /* 消防本部アクセス先文字の大きさ */
    .card-body p, .card-body a {
        font-size: 15px;
    }
}
/* 390px以下の場合 */
@media (max-width:390px) {
    /* ヘッダー（スマートフォン用）タイトルの文字の大きさ */
    .sg-font-header-title {
        font-size: 19px !important;
    }
    /* お知らせタイトル文字の大きさ */
    .sg-font-news-title {
        font-size: 25px;
        padding-top: 3px;
        padding-bottom: 3px;
    }
    /* 大きいアイコンの大きさ */
    .sg-font-big-icon {
        font-size: 30px;
    }
}
/* 340px以下の場合 */
@media (max-width:340px) {
    /* NEWアイコン幅 */
    .sg-new-ribbon {
        width: 67px;
    }
    /* ボタンアイコンの余白 */
    .ion-ios-arrow-forward.me-2 {
        margin-right: 0.22rem !important;
    }
    /* お知らせタイトル文字の大きさ */
    .sg-font-news-title {
        font-size: 21px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}
