.surfcam-layout-container {
    display: flex;
    flex-direction: column; /* デフォルトは縦並び（SP版用） */
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}
.wave-info-area {
    padding: 0;
}

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

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

.cam-header-title h1 {
    font-size: 32px; /* 必要に応じて調整 */
    font-weight: bold;
    letter-spacing: 8px; /* 文字間隔を指定 */
    color: black;
    margin: 0;
}

.cam-header-divider {
    height: 6px; /* 棒線の太さ */
    background-color: black; /* 棒線の色 */
    width: calc(80%); /* 左端から棒線を引く */
    position: relative; /* 自身の配置を制御 */
    margin-left: -20px; /* 左側の余白を削除 */
}
.cam-header-info {
    display: flex; /* 横並びに配置 */
    align-items: center; /* 縦方向の中央揃え */
    gap: 10px; /* アイコンとテキスト間の余白 */
    color: black; /* テキストとアイコンの色 */
}

/* 説明文 */
.cam-header-info p {
    margin: 0;
    font-size: 1rem;
    color: black;
}

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

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

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

/* ホバー時に背景色とテキストの色を変更 */
.prefecture-list a:hover {
    background-color: #0D6DFB;    /* ホバー時の背景色 */
    color: white;                 /* ホバー時のテキスト色 */
}
.prefecture-list a.selected {
    background-color: #0D6DFB;    /* 選択時の背景色 */
    color: white;                /* 選択時のテキスト色 */
}
/* containerにFlexboxのスタイルを適用 */
#container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px; /* 要素間のスペースを調整 */
    justify-content: flex-start;
    overflow-x: auto;
    scroll-behavior: smooth;
    background-color: transparent;
    padding: 20px; /* -内側の余白 20px */
}
#container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge, Opera用 */
}

/* wakuのスタイル（カメラサムネイルを含む） */
.waku {
    flex: 0 0 auto; /* 横方向にスクロール可能に設定 */
    position: relative; /* 子要素の位置基準を設定 */
    width: 100%;
    max-width: 200px; /* SPでは横幅を縮小 */
    height: 150px;
    text-align: center;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;  
}

/* camera-thumbnail（画像部分） */
.camera-thumbnail {
    position: relative;
    max-width: 400px;
    width: 100%;
    max-height: 200px;
    height: 100%; 
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* surf-point-boxを調整（画像の上に配置） */
.surfcam-point-box {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    /* padding: 10px; */
    border-radius: 0 0 10px 10px; /* 上辺は0、下辺のみ10pxの角丸 */
    width: 100%; /* 幅を少し狭める */
    height: 40%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.surfcam-star-box {
    margin-right: 10px;
}

.surfcam-star {
    font-size: 18px;
    color: gray; /* 星の色を指定 */
    padding-left:10px;
}

.surfcam-point-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* テキストを中央に配置 */
    line-height: 1;
    margin-top: 5px;
}

.surfcam-point-name {
    font-size: 12px;
    color: black;
    font-weight: bold;
    text-align: left;
    margin-bottom: 0;
}

.surfcam-wave-info {
    display: flex;
    justify-content: flex-start; /* テキストを中央に配置 */
    /* margin-bottom: 5px; */
    padding-top: 5px;

}

.surfcam-vertical-bar {
    width: 4px;
    height: 35px; /* 縦バーの高さを指定 */
    margin-right: 10px;
}

.surfcam-wave-height {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    text-align: left;
    /* padding: 10px; */
}

.surfcam-wave-condition {
    font-size: 10px;
    font-weight: bold;
    text-align: left;
    color: #ff9500; /* デフォルトの色（POORの色） */
    margin-bottom: 0;
    /* padding-bottom: 5px; */
}
/* オーバーレイ部分のスタイル */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    font-weight: bold;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* 半透明の白背景 */
    color: black;
    text-align: left;
    padding: 10px 10px; /* 上下に余白を追加 */
    box-sizing: border-box;
    font-weight: bold;
    font-size: 16px;
}

/* リンクスタイルの調整 */
.overlay-link {
    text-decoration: none; /* アンダーラインを削除 */
    color: inherit; /* 文字色を親要素に継承（黒色にする） */
    display: block; /* サムネイル全体をクリック可能に */
}

/* ホバー時の動作を制御（文字色を変化させない） */
.overlay-link:hover {
    text-decoration: none; /* アンダーラインを追加しない */
    color: inherit; /* 文字色を変更しない */
    opacity: 0.9; /* サムネイル全体の透明度を少し下げる */
}

/*******************: PC版 :*************************/
@media (min-width: 1024px) {
    .surfcam-layout-container {
        flex-direction: row; /* PC版では横並びに変更 */
        gap: 20px; /* 横並び時のセクション間の余白 */
        padding: 20px 100px;
        background-color: rgba(255, 255, 255, 0.5);
    }
    .wave-info-area {
        flex: 3; /* 幅の比率を3に設定 */
        max-width: 100%;  /* 横幅を100%に設定 */
         /* 横幅を75%に制限 */
         /* max-width: 75%; */
        background-color: transparent;
    }
}
/*******************: PC版 :*************************/