.surf-map-wrapper {
    display: flex;
    flex-direction: column; /* デフォルトは縦並び（SP版用） */
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}
.tabs-container {
    background-color: #09153C;
}

.tabs {
    display: flex;
    border-bottom: 4px solid #ddd;
    justify-content: space-between;
}

.tab-button {
    flex: 1; /* モバイルでは均等に横幅を広げる */
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: #555;
    transition: color 0.3s, border-bottom 0.3s;
}

.tab-button.active {
    color: white;
    border-bottom: 4px solid white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* PC用調整 */
@media (min-width: 768px) {
    .tabs {
        justify-content: flex-start;
    }
    .tab-button {
        flex: unset;
        width: 150px; /* 固定幅 */
    }
}
.chart-buttons {
    display: flex;
    justify-content: space-between; /* ボタン間の余白を均等に配置 */
    align-items: center;
    gap: 10px; /* ボタン間の間隔 */
    padding: 10px; /* 内側の余白を追加 */
}

.chart-button {
    flex: 1; /* 各ボタンが均等な幅を持つ */
    display: flex; /* フレックスボックスを使用 */
    align-items: center; /* 垂直方向に中央揃え */
    justify-content: center; /* 水平方向に中央揃え */
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: white; /* 非アクティブ時の背景色 */
    color: gray; /* 非アクティブ時の文字色 */
    border-radius: 30px; /* 角丸 */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s; /* スムーズな変化 */
    height: 30px; /* ボタンの高さを固定 */
}

.chart-button.active {
    background-color: #0D6DFB; /* アクティブ時の背景色（青） */
    color: white; /* アクティブ時の文字色 */
}

/* ボタンのサイズを揃える */
.chart-button {
    height: 50px; /* 縦サイズを統一 */
    line-height: 50px; /* テキストを中央揃え */
}


/* 最寄りポイントをグレーアウト */
.near-point {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #FFFF; /* グレーアウト */
}

/* surf-map-headerデザインの調整 */
.surf-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px; /* 必要に応じて調整 */
    background-color: #09153C;
    position: relative; /* レイアウト基準を設定 */
}

/* header-titleの修正 */
.header-title {
    display: flex;
    flex-direction: column; /* 縦方向に配置 */
    gap: 8px; /* テキストと棒線の間隔 */
    position: relative;
}

/* h1 と i を一つのブロックで横並びに */
.header-title > div:first-child {
    display: flex;
    align-items: center; /* 縦方向で中央揃え */
}

.header-title h1 {
    font-size: 32px; /* 必要に応じて調整 */
    font-weight: bold;
    letter-spacing: 8px; /* 文字間隔を指定 */
    color: white;
    margin: 0; /* 余白を取り除く */
    padding: 0; /* 余白を取り除く */
}

.header-title i {
    font-size: 24px; /* アイコンのサイズ */
    color: white;
    margin: 0; /* 余白を取り除く */
    padding: 0; /* 余白を取り除く */
    cursor: pointer; /* クリックできるように */
}

/* header-dividerの修正 */
.header-divider {
    height: 6px; /* 棒線の太さ */
    background-color: white; /* 棒線の色 */
    width: calc(100%); /* 左端から棒線を引く */
    position: relative; /* 自身の配置を制御 */
    margin-left: -20px; /* 左側の余白を削除 */
}

/* header-infoの修正 */
.header-info {
    display: flex;
    align-items: center; /* 縦方向で中央揃え */
    gap: 10px; /* アイコンとテキスト間の余白 */
    color: white; /* テキストとアイコンの色 */
    padding: 10px; /* テキストとの余白 */
    text-align: left; /* テキストを左揃え */
}

.header-info p {
    margin: 0; /* 余白を取り除く */
    font-size: 1rem; /* フォントサイズ */
    color: white; /* テキストの色 */
}

/* ポップアップ全体のスタイル */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 背景を半透明に */
    display: none; /* 初期は非表示 */
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

/* ポップアップの枠 */
.popup-content {
    position: relative;
    background-color: #333; /* ポップアップの背景色 */
    border-radius: 20px; /* 角を丸くする */
    padding: 20px;
    color: white;
    max-width: 400px;
    width: 90%;
    text-align: center; /* 内容を中央揃え */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease; /* 表示時のアニメーション */
}

/* ✖️ボタン */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-popup img {
    width: 30px;
    height: 30px;
}

/* ポップアップ内容のスタイル */
.popup-body {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

/* 表示時のアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* カスタムマーカーのスタイル (ズーム5~10倍) */
.custom-marker .circle-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(72, 70, 70, 0.5);
    border: 3px solid #8be9fd;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* カスタムマーカーのスタイル (ズーム10倍以上) */
.custom-marker-zoom10 .circle-marker {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(11, 214, 116, 0.7);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.surf-map {
    position: relative;
    height: auto; /* 必要に応じて調整 */
    margin: 0; /* 余分な余白を削除 */
    padding: 0; /* パディングも不要なら削除 */
}

/* マップの高さを調整 */
#map {
    height: 63vh; /* 必要に応じて高さを調整 */
    width: calc(100% - 20px); /* -両サイドに10pxずつ余白を設定 */
    /* width: 100vw; */
    margin: 0 auto; /* 余白を中央に配置 */
    padding: 0;
    max-width: 100%; /* 必要に応じて最大幅を制限 */
}

.dropdown-trigger {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 220px;
    z-index: 900;
}

.dropdown-trigger button {
    padding: 20px 20px;
    border-radius: 25px;
    width: 110%;
    height: 30px;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* モーダルのスタイル */
/* モーダルのスタイル */
.dropdown-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* 初期は非表示 */
    justify-content: center;
    align-items: center;
    z-index: 1001;
    flex-direction: column;
    padding: 20px;
}

.dropdown-header {
    display: flex; /* フレックスボックスでレイアウト */
    justify-content: space-between; /* 子要素を左右に配置 */
    align-items: center; /* 子要素を上下中央揃え */
    color: white; /* テキスト色 */
    font-size: 20px; /* フォントサイズ */
    width: 90%; /* ヘッダーの幅を調整 */
    max-width: 600px; /* 最大幅を設定 */
    padding: 10px 30px; /* 内側の余白を設定 */
    position: relative; /* 子要素の配置を正確に制御 */
    text-align: center; /* spanのテキストを中央に揃える */
}

.dropdown-header span {
    flex: 1; /* スペースを均等に使用 */
    text-align: center; /* テキストを中央揃え */
    color: white;
    font-size: 20px; /* テキストを大きく見やすく */
    font-weight: bold;
    margin-right: 20px;
}

.dropdown-header button {
    background-color: transparent; /* 背景を透明に */
    border: none; /* ボーダーを削除 */
    cursor: pointer; /* クリック可能に設定 */
    padding: 0; /* 余白を削除 */
    position: absolute; /* ボタンを`span`の右側に配置 */
    top: 50%; /* 上下中央揃え */
    transform: translateY(-50%); /* 中央揃えを完全にする */
}

.dropdown-header button img {
    width: 30px; /* 画像サイズを調整 */
    height: 30px;
}

.button-grid {
    display: flex;
    flex-wrap: wrap; /* ボタンを複数行に折り返す */
    justify-content: flex-start; /* ボタン間のスペースを均等に */
    gap: 20px;
    max-width: 600px; /* 最大幅を設定 */
    width: 100%;
    padding: 20px;
    max-height: 350px;
    overflow-x: auto;
}

.button-grid button {
    flex: 1 1 22%; /* ボタン幅を調整 */
    max-width: 120px;
    height: 50px;
    background-color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button-grid button:hover {
    background-color: #F5FF7D; /* ホバー時の色 */
}

.button-grid button.active {
    background-color: yellow;
}

/* wave-info-boxコンテナのスタイル */
.wave-info-box-container {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center; /* 中央揃え（左右） */
    width: 100%; /* 全幅を使用 */
    background-color: #09153C;
    padding: 15px 0;
    color: white;
    margin-bottom: 0; /* 余計な余白を取り除く */
    padding-bottom: 20px; /* もしパディングが不要なら削除 */
}

/* wave-info-boxのスタイル（横スクロール有効） */
.wave-info-box {
    display: flex;
    flex-wrap: nowrap; /* アイテムが折り返さないように設定 */
    overflow-x: auto; /* 横スクロールを有効化 */
    gap: 10px; /* カード同士の間隔 */
    padding: 10px 20px; /* -左右20px追加　上下の余白　 */
    justify-content: flex-start; /* 左から表示（中央揃え不要） */
    width: 100%; /* 横幅を最大化 */
    scroll-behavior: smooth; /* スムーズなスクロール */
}

/* スクロールバーを非表示 */
.wave-info-box::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge, Opera用 */
}
.surf-point-box {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 8px 8px; /* パディングを縮小 */
    border-radius: 8px; /* 角を少し小さく */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    width: 100%;
    max-width: 200px; /* 幅を縮小 */
    height: auto; /* 高さを縮小 */
    position: relative; /* ボタンを重ねるためにrelativeに */
}
.surf-point-box a {
    text-decoration: none; /* 通常時 */
    color: inherit; /* 親要素の色を引き継ぐ場合 */
}

.star-box {
    margin: 8px; /* マージンを縮小 */
}

.star {
    font-size: 1.5em; /* フォントサイズを小さく */
    color: gray;
}

/* point-infoの設定 */
.point-info {
    display: flex;
    flex-direction: column;
    height: 70px; /* 高さを調整 */
    padding: 0; /* パディングを縮小 */
    gap: 5px;
}

/* サーフポイント名の設定 */
.point-name {
    font-size: 14px; /* フォントサイズを小さく */
    color: black;
    margin-bottom: 10px; /* マージンを縮小 */
    font-weight: bold;
    line-height: 1.2;
    padding-left: 0; /* vertical-bar と揃えるためのパディング */
    text-align: left;
}

/* 波情報の設定 */
.wave-info {
    display: flex;
    align-items: center;
    height: 30px; /* 高さを縮小 */
}

/* 縦線バーの設定 */
.vertical-bar {
    display: inline-block;
    width: 8px; /* 幅を縮小 */
    height: 47px; /* 高さを縮小 */
    margin-right: 8px; /* マージンを縮小 */
    font-weight: bold;
    border-radius: 4px;
}

/* 波の詳細情報の設定 */
.wave-details {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 内容を中央に配置 */
    padding-top: 5px; /* パディングを縮小 */
}

.wave-height {
    font-size: 1.4em; /* フォントサイズを小さく */
    font-weight: bold;
    color: #333;
    margin: 0;
    text-align: left;
}

.wave-condition {
    font-size: 14px; /* フォントサイズを小さく */
    margin-top: 0;
    font-weight: bold;
    text-align: left;
}
.wave-info-area {
    padding: 20px;
    /* background-color: #fff; */
}

.wave-info-area h2 {
    text-align: center;
    color: black;
    font-size: 20px;
    margin-bottom: 20px;
}

/* 横スクロール可能にするための設定 */
.prefecture-list {
    display: flex;                 /* Flexboxで横並び */
    flex-wrap: nowrap;             /* 折り返しなし */
    justify-content: flex-start;   /* 左揃え */
    gap: 5px;                      /* 要素間の余白 */
    overflow-x: auto;              /* 横スクロールを有効にする */
    scroll-behavior: smooth;       /* スムーズなスクロール */
    padding-bottom: 10px;          /* スクロールバーの代わりに少し余白 */
    white-space: nowrap;           /* ボタンが改行されないようにする */
}

/* スクロールバーを非表示にする */
.prefecture-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge でスクロールバーを非表示 */
}

/* リスト内のリンクのスタイル */
.prefecture-list a {
    display: inline-flex;          /* Flexboxに変更 */
    align-items: center;           /* 垂直方向の中央揃え */
    justify-content: center;       /* 水平方向の中央揃え */
    padding: 10px 15px;            /* 幅を固定せず、パディングでボタンサイズを調整 */
    height: 40px;                  /* 高さを固定 */
    text-align: center;            /* テキストを中央揃え */
    text-decoration: none;         /* リンクの下線を消す */
    border-radius: 20px;           /* 丸みをつける */
    color: #333;                   /* テキストの色 */
    background-color: white; /* 初期状態の背景色 */
    transition: background-color 0.3s ease; /* ホバー時の背景色変更を滑らかに */
    white-space: nowrap;           /* テキストを改行させない */
}

/* ホバー時に背景色とテキストの色を変更 */
.prefecture-list a:hover {
    background-color: #0D6DFB;    /* ホバー時の背景色 */
    color: white;                 /* ホバー時のテキスト色 */
}


/* SP用スタイル調整 */
@media (max-width: 768px) {
    #chartFrame {
       width:calc(100% - 20px); /* -両サイドに10pxずつ余白を設定 */
       margin: 0 auto; /* 余白を中央に配置 */
       height: 450px;
       display:block;
      
       }
}


/*******************: PC版 :*************************/
/* PC版のスタイル調整 */
@media (min-width: 1200px) {
    #map {
        height: 587px; /* 必要に応じて高さを調整 */
        width: 100%; /* 両サイドに20pxずつ余白を設定 */
        margin: 0 auto; /* 余白を中央に配置 */
        padding: 0;
        max-width: 100%; /* 必要に応じて最大幅を制限 */
    }

    #chartFrame {
        width:100%;
        height:530px;
    }

    .surf-map-wrapper {
        flex-direction: row; /* PC版では横並びに変更 */
        gap: 20px; /* 横並び時のセクション間の余白 */
        padding: 20px 100px;
        background-color: #041733;
        justify-content: center;
        align-items: flex-start;
    }
    /* 左側のサーフマップ */
    .surf-map {
        flex: 3; /* 幅の比率を3に設定 */
        max-width: 75%; /* 横幅を75%に制限 */
        background-color: transparent;
    }
    .header-divider {
        height: 6px; /* 棒線の太さ */
        background-color: white; /* 棒線の色 */
        width: calc(100%); /* 左端から棒線を引く */
        position: relative; /* 自身の配置を制御 */
        left: 10px;
    }

    /* 右側の波情報ボックス */
    .wave-info-box-container {
        flex: 1; /* 幅の比率を1に設定 */
        display: flex; /* 縦並びにするためにフレックスボックスを使用 */
        flex-direction: column; /* 子要素を縦並びに配置 */
        gap: 15px; /* 子要素間のスペースを設定 */
        padding: 10px; /* 内側の余白 */
        background-color: transparent;
        max-height: 750px;
        max-width: 25%; /* 横幅を25%に制限 */
    }

    /* near-pointのスタイリング */
    .near-point {
        text-align: center; /* 中央揃え */
        font-size: 24px;
        font-weight: bold;
        color: #FFFF; /* グレーではなく少し濃い色 */
        margin-bottom: 10px; /* 下に余白を追加 */
    }

    /* wave-info-box のスタイル */
    .wave-info-box {
        display: flex;
        flex-direction: column; /* 子要素を縦並びに変更 */
        gap: 10px; /* 各 `surf-point-box` 間の余白 */
        overflow-y: auto; /* 縦方向のスクロールを有効化 */
        max-height: 100vh; /* 最大高さを画面の高さに制限 */
        padding: 10px; /* 内側の余白 */
    }

    /* surf-point-box のスタイリング */
    .surf-point-box {
        display: flex;
        align-items: center;
        background-color: white;
        padding: 8px 8px; /* パディングを縮小 */
        border-radius: 8px; /* 角を少し小さく */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
        width: 100%;
        max-width: 300px; /* 幅を縮小 */
        height: auto; /* 高さを縮小 */
        position: relative; /* ボタンを重ねるためにrelativeに */
    }
    /* サーフポイント名の設定 */
    .point-name {
        font-size: 16px; /* フォントサイズを小さく */
    }
    .wave-height {
        font-size: 18px; /* フォントサイズを小さく */
    }
    .wave-condition {
        font-size: 14px; /* フォントサイズを小さく */
    }

    /* スクロールバーのスタイリング */
    .wave-info-box::-webkit-scrollbar {
        width: 8px; /* スクロールバーの幅 */
    }

    .wave-info-box::-webkit-scrollbar-thumb {
        background: #ccc; /* スクロールバーの色 */
        border-radius: 4px; /* 丸みを付ける */
    }

    .wave-info-box::-webkit-scrollbar-track {
        background: #f0f0f0; /* トラックの色 */
    }
}


/*******************: PC版 :*************************/