﻿header {
    height: 80px;
    font-family: "Inter", sans-serif;
    width: 100%;
}
header nav {
    height: 100%;   
    padding: 10px 5px 10px 40px;
}

.header-title {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1.2;
}

@media (max-width: 767px) {
header {
    height: 70px;
    position: fixed;
    z-index: 3000;
}

    .header-title {
        flex-direction: column;
        font-size: 20px;
    }

    header .header-nav.active {
        top: 70px !important;
    }

    #map {
        position: fixed;
        top: 70px !important;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        z-index: 1;
    }

}

header .header-nav {
    display: none;
}
header .header-nav.active {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--mainColor);
    display: flex;
    flex-direction: column;
    border-top: 1px solid #fff;
    z-index: 3500;
}
header input[type=button] {
    color: #fff;
    background-color: transparent;
    border: none;
    padding: 29px 38px;
    border-bottom: 1px solid #fff;
    font-size: 20px;
    text-align: left;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-hbg {
    position: static;
    content: "";
    height: 30px;
    width: 30px;
    cursor: pointer;
    margin: 7px 20px 0 0;
}

.header-hbg span {
    display: block;
    content: "";
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: all .3s;
}
    .header-hbg span:nth-child(2) {
        margin: 7px 0;
    }

.header-hbg.close span {
    margin: 0;
    transform-origin: center;
}
.header-hbg.close span:nth-child(1) {
    margin: 12px 0 0;
    transform: rotate(45deg);
}
.header-hbg.close span:nth-child(2) {
    display: none;
}
.header-hbg.close span:nth-child(3) {
    margin: -2px 0 0;
    transform: rotate(-45deg);
}

@media (min-width: 1100px) {
    header .header-nav {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        column-gap: 32px;
    }
    .header-hbg {
        display: none;
    }
    .header-hbg span {
        display: none;
    }
    header input[type=button] {
        width: 100%;
        max-width: 120px;
        height: 40px;
        color: #5A5A5A;
        background-color: #FFFFFF;
        font-weight: 600;
        font-size: 15px;
        border: none;
        border-radius: 5px;
        flex-shrink: 0;
        padding: 0;
        text-align: center;
    }
}

@media (min-width: 768px) {
    header {
        
    }
    
    header nav {
        padding: 20px 20px 20px 45px;
    }
    
    header nav .header-wrap{
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    header nav .header-title{
        font-size: 24px;
        width: auto;
    }
}

.weather-modal {
    width: 900px;
    top: 100px;
    right: 10px;
    left: auto;
}

@media (min-width: 768px) {
    .weather-modal {
        width: 600px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 120px);
        overflow: auto;
        padding-bottom: 10px !important;
    }

    .weather-modal > div:nth-child(2) {
        margin: 12px 16px 6px !important;
        padding-left: 0 !important;
    }

    .weather-modal > hr {
        width: calc(100% - 32px) !important;
        margin: 0 auto 12px !important;
    }

    .weather-modal > table {
        margin: 12px auto !important;
        font-size: calc(1em * 11 / 12);
    }

    .weather-modal > table:nth-child(4) {
        width: calc(100% - 32px) !important;
    }

    .weather-modal > table td {
        width: auto !important;
        padding: 4px !important;
    }

    .weather-modal > div:nth-child(6) {
        margin: 12px 16px 6px !important;
        padding-left: 0 !important;
    }
}

/* ========================================
   お知らせモーダル スタイル
   ======================================== */

/* ヘッダー内お知らせボタン */
.header-notice-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    position: relative;
    color: #fff;
    background-color: transparent;
    border: none;
    padding: 29px 38px;
    border-bottom: 1px solid #fff;
    font-size: 20px;
    text-align: left;
    cursor: pointer;
    font-family: "Inter", sans-serif;
}

/* お知らせボタン内のspan要素のクリックイベントを親要素に伝播 */
.header-notice-btn span {
    pointer-events: none;
}

/* バッジ（赤い丸） */
.notice-badge {
    color: #ff3b30;
    font-size: 12px;
    margin-left: 4px;
}

/* PC版ヘッダーボタン */
@media (min-width: 1100px) {
    .header-notice-btn {
        width: 100%;
        max-width: 120px;
        height: 40px;
        color: #5A5A5A;
        background-color: #FFFFFF;
        font-weight: 600;
        font-size: 15px;
        border: none;
        border-radius: 5px;
        flex-shrink: 0;
        padding: 0;
        text-align: center;
        justify-content: center;
    }

    .notice-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        font-size: 10px;
    }
}

/* お知らせモーダル（展開状態） */
.notice-modal {
    position: fixed;
    left: 10px;
    top: 100px;
    z-index: 2500;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 560px;
    width: auto;
    font-family: "Inter", sans-serif;
}

/* モーダルヘッダー */
.notice-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 16px;
    height: 36px;
    background-color: var(--mainColor);
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 0;
}

.notice-modal-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    background-image: url("/image/btn_close.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* モーダルコンテンツ */
.notice-modal-content {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
}

/* 縮小表示モード */
.notice-marquee-container {
    width: 400px;
    height: 40px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.notice-marquee-wrapper {
    display: flex;
    width: fit-content;
    animation: marquee 10s linear infinite;
    animation-delay: 2s;
    animation-play-state: paused;
}

.notice-marquee-wrapper.animate {
    animation-play-state: running;
}

.notice-marquee-text {
    display: inline-block;
    white-space: nowrap;
    padding: 10px 50px 10px 10px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 全文表示モード */
.notice-fulltext-container {
    width: 480px;
    height: 160px;
    overflow-y: auto;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95em;
    line-height: 1.5;
}

/* 表示切り替えボタン */
.notice-toggle-btn {
    padding: 8px 12px;
    background-color: #fff;
    color: #5A5A5A;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-toggle-btn:hover {
    opacity: 0.9;
}

/* お知らせなし時の表示 */
.notice-empty-container {
    padding: 15px 20px;
    color: white;
    font-size: 0.95em;
    font-weight: bold;
    text-align: center;
}

/* 非表示 */
.notice-hidden {
    display: none !important;
}

/* スマートフォン対応 */
@media (max-width: 767px) {
    /* お知らせモーダル */
    .notice-modal {
        left: 5px;
        right: 5px;
        top: 80px;
        max-width: calc(100vw - 10px);
        width: calc(100vw - 10px);
    }

    /* モーダルヘッダー */
    .notice-modal-header {
        height: 48px;
        cursor: pointer;
    }

    /* モーダルコンテンツ */
    .notice-modal-content {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 8px;
    }

    /* マルキーコンテナ */
    .notice-marquee-container {
        width: 100%;
        max-width: 100%;
    }

    /* 全文表示コンテナ */
    .notice-fulltext-container {
        width: 100%;
        max-width: 100%;
        height: 120px;
    }

    /* 表示切り替えボタン */
    .notice-toggle-btn {
        align-self: flex-end;
    }

    /* お知らせなし時 */
    .notice-empty-container {
        font-size: 0.95em;
    }
}