html, body {
    overflow-x: hidden;
    /* scroll-behavior: smooth; */
}
.profile-info {
    display: flex;
    align-items: center;
    background-color: rgba(0,0,0,0.7);
    padding: 10px;
    color: #fff;
    margin-bottom: 10px;
    height: 70px;
}
.profile-icon-container {
    width: 60px;
    height: 60px;
    background-size: cover;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.profile-icon-container img {
    width: 30px; 
    height: auto;
    border-radius: 50%;
}
.profile-details h5 {
    font-size: 1.2em;
    margin: 0;
}
.profile-icon-container .badge {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.profile-details p {
    margin: 5px 0;
    font-size: 1em;
    margin-bottom: 5px;
    word-break: break-word;
    max-width: 100%;
}
.profile-details {
    flex: 1;
    word-wrap: break-word;
    width: 100%;
    margin-top: 5px;
}
.card-odd {
    background: rgba(0, 33, 71, 0.8);
}
.card-even {
    background: rgba(0, 31, 63, 0.5);
}

.l-wrapper_06 {
    margin: 0.5rem;
    width: 95%;
}
.l-wrapper_06:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 34px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
    transition: all .5s;
}
.card-img_06 {
    border-radius: 5px 5px 0 0;
    max-width: 100%;
    height: auto;
}
.card-content_06 {
    padding: 8px 20px 20px;
    border-radius: 0 0 5px 5px;
    background: #333;
}
.card-title_06 {
    font-size: 1.6em;
    color: #fff;
    font-weight: 700;
}
.card-text_06 {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0.2em;
}
.card-link_06 {
    text-align: center;
    border-top: 1px solid #333;
    padding: 20px;
    background: #333;
}
.card-link_06 a {
    text-decoration: none;
    color: #4f96f6;
    margin: 0 10px;
}
.card-link_06 a:hover {
    color: #6bb6ff;
}
.card-content_06 p {
    margin-bottom: 0;
}
.wave {
    position: relative;
}
.wave canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.selectbox-001 {
    position: relative;
}
.selectbox-001::before,
.selectbox-001::after {
    position: absolute;
    content: '';
    pointer-events: none;
}
.selectbox-001::before {
    display: inline-block;
    right: 0;
    width: 2.8em;
    height: 2.8em;
    border-radius: 0 25px 25px 0;
    background-color: #2589d0;
}
.selectbox-001::after {
    position: absolute;
    top: 50%;
    right: 1.4em;
    transform: translate(50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
}
.selectbox-001 select {
    appearance: none;
    min-width: 230px;
    height: 2.8em;
    padding: .4em 3.6em .4em .8em;
    border: none;
    border-radius: 25px;
    background-color: #e6edf3;
    color: #333;
    font-size: 1em;
    cursor: pointer;
}
.selectbox-001 select:focus {
    outline: 2px solid #2589d0;
}
.toggle {
    display: none;
}
.Label {
    padding: 1em;
    display: block;
    color: #fff;
    background: rgb(0,0,0,.5);
}
.Label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    -webkit-transform: rotate(45deg);
    position: absolute;
    top: calc(50% - 3px);
    right: 20px;
    transform: rotate(135deg);
}
.Label,
.content {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: all 0.3s;
}
.content {
    height: 0;
    margin-bottom: 5px;
    padding: 0 20px;
    background: rgb(255,255,255,.8);
    overflow: hidden;
}
.toggle:checked + .Label + .content {
    height: auto;
    padding: 20px;
    transition: all .3s;
}
.toggle:checked + .Label::before {
    transform: rotate(-45deg) !important;
}
.star-checkbox {
    display: none;
}
.star-checkbox + label {
    cursor: pointer;
    color: #ccc;
    font-size: 1.3em;
    margin-right: 10px;
}
.star-checkbox:checked + label {
    color: #ffd700;
}
.home-point-text {
    position: absolute;
    top: 40px;
    left: 8px;
    color: #ccc;
    font-size: 0.5em;
}
.hidden {
    display: none;
}

/* --- ヘッダー改修：没入デザイン --- */
.main-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 背景を透明にして、本体の背景画像を見せる */
    background: transparent !important; 
    
    /* ノッチを避けるための自動余白 */
    padding-top: calc(env(safe-area-inset-top) + 20px);
    padding-bottom: 20px;
    
    z-index: 1000;
    position: relative;
}

.main-header .main-logo {
    height: 50px !important; /* ロゴを少し大きくしてCalmのサイズ感に */
    width: auto !important;
    display: block;
    margin-top: 10px; /* ステータスバーからの微調整 */
    object-fit: contain;
}

.custom-button {
    background-color: #001f3f;
    border-color: #001f3f;
    color: #fff;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 10px;
}
.custom-button:hover {
    background-color: #187bcd;
    transform: translateY(-2px);
}
.custom-button:active {
    background-color: #104e8b;
    transform: translateY(0);
}
.modal-content {
    border-radius: 0px;
}
.modal-header, .modal-body, .modal-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #001f3f 100%);
    color: white;
}
.modal-header {
    border-bottom: 1px solid #444;
    padding: 15px;
    display: flex;
    align-items: center;
}
.modal-title {
    flex-grow: 1;
    margin-left: 5px;
}
.modal-footer {
    border-top: 1px solid #444;
    text-align: center;
    padding: 15px;
    display: flex;
    justify-content: center;
}
.modal-body {
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
    color: white;
}
.modal-body a {
    color: white;
    text-decoration: none;
}
.modal-body ul {
    list-style: none;
    padding: 0;
}
.modal-body ul li {
    background-color: #444;
    margin-bottom: 10px;
    padding: 10px;
}
.close-button {
    background-color: #444;
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}
.header-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}



/* 以下の地図やビデオ関連のスタイルも消えてしまっていたら、戻しておいてください */
#jmap, #spmap {
    width: 100%;
    height: 100%;
}
.video-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px;
    margin: 0 10px;
    justify-content: center !important;      
}
.video-slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 90%;
    max-width: 600px;
    position: relative;
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 4px;
}
/* --- ここまで --- */

/* カルーセル：画面幅いっぱいに戻して安定させる設定 */
.rss-scroll-container {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    
    /* 手動操作が気持ちよく止まるよう、スナップを「proximity（近接）」に設定 */
    scroll-snap-type: x proximity; 
    
    gap: 12px;
    padding: 10px 0 !important;
    background-color: transparent !important;
    height: 160px !important;

    /* --- 6pxの隙間を作りつつ、画面からはみ出させない魔法の計算 --- */
    margin: 0 6px !important;
    width: calc(100% - 12px) !important; 
    box-sizing: border-box !important;
    /* -------------------------------------------------------- */

    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important; 
}

/* 3. 記事カード：スナップの基準点を設定 */
.rss-card {
    flex: 0 0 240px !important;
    height: 140px !important;
    border-radius: 4px;
    overflow: hidden;
    position: relative; /* 子要素の配置の基準にします */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* タイトルを下に固定します */
    text-decoration: none !important;
    background: #000; /* 読み込み前の下地 */
}

/* 3. サムネイル画像：巨大化を防止 */
.rss-thumb {
    position: absolute; /* カード全体を覆うように配置 */
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important; /* 縦も100%に広げる */
    object-fit: cover !important;
    z-index: 1; /* 背面に送る */
}

/* 4. 記事タイトル：文字が溢れないように制限 */
.rss-title {
    position: relative; /* 画像の上に重ねるために必要 */
    z-index: 2; /* 前面に持ってくる */
    width: 100%;
    padding: 10px !important;
    font-size: 12px !important;
    font-weight: bold;
    color: #ffffff !important;
    line-height: 1.4;
    
    /* --- 透かしの黒（グラデーションにするとより読みやすいです） --- */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
    /* もしくは単純な半透明ならこちら： background: rgba(0, 0, 0, 0.6) !important; */
    
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* スクロールバーを非表示にする（任意） */
.rss-scroll-container::-webkit-scrollbar {
    display: none;
}

/* ローディング表示 */
.rss-loading {
    padding: 20px;
    color: #999;
    font-size: 14px;
}

/* --- 国内サーフエリア：コンテナ設定 --- */
.region-nav-container {
    padding: 0;
    margin: 20px 6px 30px; /* カルーセル等と横幅を合わせる */
    width: calc(100% - 12px);
    background-color: transparent;
}

/* --- タイトル（My Home Pointと完全統一） --- */
.region-main-header {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 10px 0;
    border-radius: 15px;
    font-size: 1em;
    font-weight: normal;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

/* 左側に配置するテキストのスタイル */
.header-left {
    position: absolute;
    left: 15px;        /* 左端からの距離 */
    top: 50%;
    transform: translateY(-50%); /* 垂直中央に配置 */
    font-size: 0.7rem;  /* メインより少し小さく */
    opacity: 0.9;       /* 少しだけ透過させて馴染ませる */
    letter-spacing: 0;  /* ここは文字間を詰めると読みやすい */
}

/* --- 見出し --- */
.region-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 11px 0 3px 1px;
    padding-left: 8px;
    border-left: 3px solid #00a0e9;
}

/* --- 3カラムグリッド --- */
.pref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* --- ボタン：スリム＆透過デザイン --- */
.pref-btn {
    background: rgba(0, 50, 100, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 2px; /* 高さを抑えるための数値 */
    border-radius: 7px;
    font-size: 0.9rem; /* 3列でも文字が溢れない絶妙なサイズ */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.pref-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.97);
}


/* WordPress お知らせブロック */
.wp-news-container {
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}
.wp-news-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    transition: background 0.2s;
}
.wp-news-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.wp-news-date {
    font-size: 0.8rem;
    color: #aaa;
    margin-right: 15px;
    flex-shrink: 0;
    padding-top: 2px;
}
.wp-news-title {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.4;
}

/* --- 地域ナビ：最終レイアウト調整 --- */

/* 1. タイトル行を横並びにする設定 */
.region-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 5px;
}

/* 2. ヘッダー内のマップ検索ボタン（スリム化） */
.map-header-btn {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    padding: 0px 9px;
    font-weight: bold;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.map-header-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
}

/* 3. ボタンの高さ固定（42px） */
.pref-btn, 
.oversea-btn-custom {
    height: 38px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* 4. 海外ボタンの設定（2列分） */
.oversea-stage {
    grid-column: span 2;
}

.oversea-btn-custom {
    width: 100%; 
    text-decoration: none !important;
    border-radius: 8px;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(8, 69, 132, 0.9) 0%, rgba(0, 31, 63, 0.95) 100%);
    flex-direction: column; 
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.oversea-btn-custom .sub-txt {
    font-size: 0.65rem;
    font-weight: normal;
    opacity: 0.8;
}

/* 予備：不要になった古いマップステージの設定は削除 */
.map-stage { display: none; }

/* --- お知らせエリア：ホワイト・カテゴリスライド（最終版） --- */

.news-category-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 55px 6px 5px;
    width: calc(100% - 12px);
}

.news-category-slide {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding-bottom: 5px; /* スクロールバーとの干渉避け */
    -webkit-overflow-scrolling: touch;
}

/* スクロールバーを隠す */
.news-category-slide::-webkit-scrollbar {
    display: none;
}

.news-cat-pill {
    display: inline-block;
    padding: 6px 18px;
    background-color: rgba(255, 255, 255, 0.2); /* 未選択は少し透けた白 */
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 選択中の色：ご希望の「明るい感じ」を強調 */
.news-cat-pill.active {
    background-color: #ffc107; /* 鮮やかなイエロー */
    color: #000;
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* 白背景のリストコンテナ */
.news-list-bright {
    background-color: #ffffff;
    margin: 0 6px 30px;
    width: calc(100% - 12px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); /* 浮遊感を出して明るさを強調 */
}

.news-item-light {
    display: flex;
    align-items: center;
    padding: 16px 15px;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0;
}

.news-item-light:last-child {
    border-bottom: none;
}

.news-item-date {
    font-size: 0.75rem;
    color: #aaa;
    font-family: sans-serif;
    margin-right: 15px;
    flex-shrink: 0;
}

.news-item-title {
    font-size: 0.95rem;
    color: #222; /* よりはっきりした黒 */
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- メールアドレス登録ブロック：ホワイトデザインへの刷新 --- */

/* 1. 外側のコンテナ（背景の暗がりを消して、位置を整える） */
.email-alert-backdrop {
    position: static !important; /* 画面に固定せず、通常の流れの中に置く */
    background: transparent !important;
    padding: 0 !important;
    display: none; /* デフォルトは非表示。JSの .show で表示される */
    justify-content: center;
}

/* 表示状態のとき */
.email-alert-backdrop.show {
    display: flex !important;
}

/* 2. 白い箱（お知らせエリアとデザインを統一） */
.email-alert-box {
    background-color: #ffffff !important;
    margin: 0 6px 30px !important; /* 左右6pxの余白 */
    width: calc(100% - 12px) !important;
    border-radius: 12px !important;
    padding: 25px 20px !important; /* 少しゆったりさせる */
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
    color: #333 !important; /* テキストは黒系 */
    text-align: left;
    box-sizing: border-box !important;
}

/* タイトル部分 */
.email-alert-box h6 {
    color: #000 !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

/* 本文テキスト */
.email-alert-box p {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-top: 15px !important;
}

/* 3. ボタンエリア（センター配置） */
.email-alert-buttons {
    display: flex !important;
    justify-content: center !important; /* ボタンを中央に */
    margin-top: 20px !important;
}

.email-alert-buttons .btn-primary {
    background-color: #007bff !important; /* 標準的なブルー、またはお好みの色で */
    border: none !important;
    padding: 10px 60px !important; /* 横長で押しやすい形に */
    border-radius: 25px !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* エリアページでiframeが表示されているときは、親の高さ制限を無効化する */
#rss-carousel:has(#forecast-iframe) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* 広告エリアの表示を安定させる設定 */
#ad-container-2 {
    position: relative; /* z-indexを有効にするため */
    z-index: 10;        /* 波のキャンバス(waveCanvas)より前面に出す */
    min-height: 250px;  /* 広告が読み込まれるまでのガタつき防止 */
    text-align: center;
    overflow: hidden;
}

/* 広告タグ自体の設定 */
.adsbygoogle {
    display: block !important;
    margin: 0 auto;
}

/* エリアタブバーのデザイン */
.area-tab-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    margin-bottom: 5px;
    overflow: hidden;
}

.area-tab-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 12px;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
}

.area-tab-scroll::-webkit-scrollbar {
    display: none; /* スクロールバーは隠す */
}

.area-tab-item {
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 15px;
    transition: all 0.3s;
}

/* 現在選択されているエリアのスタイル */
.area-tab-item.active {
    color: #fff !important;
    background: #00a0e9; /* なみあるカラー */
    box-shadow: 0 0 10px rgba(0, 160, 233, 0.5);
}

/* ============================================================
   エリア一覧カード（card_06）一本化：大掃除後の新ルール
   ============================================================ */

/* 1. スマホ・PC共通の基本設定 */
.card_06 {
    position: relative;            /* ★これを追加！星マークの基準地点にします */
    height: 85px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    overflow: visible !important;  /* これも重要：星がはみ出しても消えないように */
    box-sizing: border-box !important;
    border: none !important;
}

/* 2. スマホ版（1段並びを維持） */
@media (max-width: 768px) {
    .l-wrapper_06 {
        width: calc(100% - 12px) !important;
        margin: 0 6px 10px !important;
    }
    .card_06 {
        width: 100% !important;
        position: relative !important; /* 星マークの基準点をカードに固定 */
    }
}

/* 3. PC版（列数を自動調整：画面幅に合わせて300px以上のカードを並べる） */
@media (min-width: 769px) {
    #product {
        display: grid !important;
        /* 1枚あたり最小300pxを確保し、入る分だけ横に並べる（4列や5列にも対応） */
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 15px !important; 
        padding: 15px !important;
        justify-content: center !important; /* 全体を中央に寄せる */
    }

    .l-wrapper_06 {
        width: 100% !important; /* グリッドの1枠いっぱいに広がる */
        margin: 0 !important;
        flex: none !important; /* 以前の3分割ルールを解除 */
    }

    .card_06 {
        width: 100% !important;
        position: relative !important; /* 星マークの基準点をカードに固定 */
    }
}

/* 1. 星マークをカードの左端に固定する */
.star-container-fixed {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100 !important; /* ★数値を大きくして、一番手前に持ってくる */
}

.star-container-fixed label {
    margin: 0 !important;
}

/* 2. iframeをカードの高さ(85px)いっぱいに広げる */
.card-iframe-wrapper {
    flex: 1;
    height: 100%;
}

.card-iframe-wrapper iframe {
    width: 100%;
    height: 100%; /* これで85pxいっぱいに広がります */
    display: block;
}

/* 追加：トップページ専用バナーのスタイル */
.custom-banner-wrapper {
    /* 左右に6pxの隙間を空け、上下に15pxの余白 */
    margin: 15px 6px;
    width: calc(100% - 12px);
    /* 角丸6pxの設定 */
    border-radius: 6px;
    /* 角丸からはみ出る画像をカット */
    overflow: hidden;
    box-sizing: border-box;
}

.custom-banner-wrapper img {
    /* 横幅いっぱいに表示 */
    width: 100%;
    /* 画像の下にできる謎の隙間を消す */
    display: block;
}

/* ============================================================
   PCビュー最適化（SP版には一切影響しません）
   ============================================================ */
@media screen and (min-width: 1024px) {
    /* 1. 全体の土台 */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background-color: #000 !important;
    }

    /* 2. メインコンテナ（箱） */
    .main-wrapper {
        max-width: 1100px;
        margin: 0 auto !important;
        background: rgba(0, 0, 0, 0.7);
        position: relative;
        z-index: 10;
        min-height: 100vh;
        box-shadow: 0 0 40px rgba(0, 0, 0, 1);
        display: block !important;
    }

    /* --- 修正点1：ヘッダー上の隙間を少し広げる --- */
    .main-header {
        padding-top: 50px !important; /* 15pxから50pxへ。これで上に余裕が生まれます */
        padding-bottom: 20px !important;
        height: auto !important; /* 高さを固定せずパディングに任せる */
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .main-header .main-logo {
        height: 60px !important; /* ロゴを少しだけ大きくしてPCでの視認性をUP */
        margin: 0 !important;
    }

    /* --- 修正点2：ニュースカルーセルのサイズを大きくする --- */
    .rss-card {
        flex: 0 0 320px !important; /* カード幅を240pxから320pxへ */
        height: 180px !important; /* 高さを140pxから180pxへ */
    }
    .rss-scroll-container {
        height: 200px !important; /* カード拡大に合わせてコンテナの高さも調整 */
        padding: 10px 0 !important;
    }

    #top-page-banner {
        display: flex !important;
        justify-content: center !important; /* これで中央に寄ります */
        margin: 40px 0 !important;
        width: 100% !important;
    }
    #top-page-banner img {
        width: 100% !important;
        max-width: 600px !important; 
        height: auto !important;
        border-radius: 12px;
    }

    /* --- 背景のウネリ：目障りにならないようフッターへ固定 --- */
    #waveCanvas {
        position: absolute !important; /* 画面固定(fixed)をやめる */
        bottom: 0 !important;         /* 下端にピタッとくっつける */
        top: auto !important;
        left: 0 !important;
        width: 100% !important;
        height: 250px !important;      /* 高さを抑えて目障りさを解消 */
        z-index: 1 !important;
        pointer-events: none;
        opacity: 0.5;                  /* 少し透かして馴染ませる */
    }
}