/* ==========================================================================
   13. 都道府県・地方・全国ハブ（area-hub）- 背景色・レイアウト完全版
   ========================================================================== */

   .ginga-area-hub {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0px 20px 64px;
    color: var(--depth-700, #1c3a52);
}

/* SWELL 側のコンテンツ上余白を詰める */
.ginga-area-hub-main.l-content,
.ginga-area-hub-main#primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ハブ内 sticky TOC オフセット計算 */
.ginga-area-hub-main {
    --ginga-hub-sticky-offset: calc(var(--swl-headerH, 56px) + var(--swl-adminbarH, 0px));
}

@media (min-width: 960px) {
    .ginga-area-hub-main {
        --ginga-hub-sticky-offset: calc(var(--swl-fix_headerH, var(--swl-headerH, 56px)) + var(--swl-adminbarH, 0px));
    }
}

/* SWELL 側タイトルエリアの余白除去 */
body.ginga-area-hub-page #content.l-content,
body.ginga-area-hub-page #content,
body.tax-area #content,
body.tax-region #content,
#content.l-content:has(> main.ginga-area-hub-main) {
    padding-top: 0 !important;
}

/* --- ヒーローエリア --- */
.ginga-hub-hero {
    text-align: center;
    padding: clamp(28px, 5vw, 56px) 20px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(135deg, #0B1E2D 0%, #1C3A52 36%, #2E6388 72%, #5B92B3 88%, #C3DBE9 100%);
}

.ginga-hub-title {
    font-family: var(--font-serif, serif) !important;
    font-size: clamp(22px, 4vw, 32px) !important;
    letter-spacing: 0.08em;
    color: #F4FAFF !important;
    text-shadow: 0 2px 10px rgb(11 30 45 / 0.35);
    margin: 0 0 12px !important;
    border: none !important;
}

.ginga-hub-lead {
    margin: 0 auto;
    max-width: 42em;
    line-height: 1.7;
    font-size: 13px;
    color: #E8F3FA;
}

/* --- 目次（メニュー）：PC中央 / SP左端開始 --- */
.ginga-hub-toc {
    position: sticky;
    top: var(--ginga-hub-sticky-offset);
    z-index: 9999;
    background: var(--mist-50);
    border-bottom: 1px solid var(--sys-border-light, #D8E6EE);
    margin: 0 0 32px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ginga-hub-toc ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    min-height: 48px;
    max-width: 1100px;
    justify-content: center !important;
}

@media screen and (max-width: 768px) {
    .ginga-hub-toc ul {
        justify-content: flex-start !important; 
        padding-left: 10px !important;
    }
}

.ginga-hub-toc li { flex: 0 0 auto !important; }

.ginga-hub-toc a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 48px;
    color: var(--sys-text-secondary, #4a6070);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.ginga-hub-toc a.is-active {
    color: var(--horizon-cta);
    background: var(--horizon-light, #E8F2F9);
    border-bottom-color: var(--sacred-gold, #A8956A);
}

/* --- プランカード --- */
.ks-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ks-plan-card {
    background: var(--mist-50);
    border: 1px solid var(--mist-100, #e6edf2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.ginga-hub-plan-card-link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.ks-plan-thumb img { width: 100%; height: 200px; object-fit: cover; }
.ks-plan-header { padding: 20px 20px 10px; text-align: center; }
.ks-plan-name { font-size: 20px !important; font-weight: 700 !important; color: var(--depth-700) !important; margin: 0 0 12px !important; border: none !important; }

.ks-plan-body {
    padding: 0 20px 15px !important;
    flex-grow: 1 !important; 
    text-align: left;
}

.ks-plan-desc-text { font-size: 14px; line-height: 1.7; color: var(--mist-900, #3d5a6c); }

.ks-plan-footer {
    padding: 0 20px 20px !important;
    margin-top: auto !important; 
}

.ks-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--horizon-cta);
    color: #fff !important;
    height: 48px;
    border-radius: 4px;
    font-weight: 700;
}

/* --- 海域カード --- */
.ginga-hub-sea-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 960px) { .ginga-hub-sea-grid { grid-template-columns: 1fr 1fr; } }

.ginga-hub-sea-card {
    background: var(--mist-50);
    border: 1px solid var(--mist-100);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.ginga-hub-sea-card > a { display: flex !important; flex-direction: row; align-items: stretch; height: 100%; color: inherit; text-decoration: none; }
.ginga-hub-sea-card img { width: 38% !important; min-width: 140px; height: auto !important; min-height: 160px; object-fit: cover; flex-shrink: 0; }

.ginga-hub-sea-card .sea-card-body { 
    flex: 1; 
    padding: 16px 20px; 
    display: flex; 
    flex-direction: column; 
}

.ginga-hub-sea-card .sea-card-link { 
    display: block;
    text-align: right;   
    margin-top: auto;    
    padding-top: 10px;
    font-weight: 600;
    color: var(--horizon-cta, #1b5e8c);
}

/* --- 乗船場所（マップ・リスト） --- */
.ginga-hub-portmap { height: 400px; width: 100%; border: 1px solid var(--mist-100); border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); overflow: hidden; margin-bottom: 30px; }

.ginga-hub-port-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ginga-hub-port-item {
    background: var(--mist-50, #f8fafb) !important;
    border: 1px solid var(--mist-100, #e6edf2) !important;
    padding: 24px; border-radius: 10px;
}

.ginga-hub-port-item.is-highlight { background-color: #fff9e6 !important; /* sacred-gold 由来のハイライト */ border-color: var(--sacred-gold) !important; box-shadow: 0 0 20px rgba(168, 149, 106, 0.4); }

/* --- ★修正：お客様の声セクション 背景色統一 --- */

#hub-voices.ginga-hub-section {
    background-color: var(--mist-100, #f0f5f8) !important; /* サイト全体の背景色と完全に一致させる */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 60px 20px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* 見出し部分の白背景を消して透明にする */
#hub-voices .ks-nav-header,
#hub-voices .ginga-hub-section-head {
    background: transparent !important;
    background-color: transparent !important;
    margin-bottom: 40px;
}

/* 犯人の「擬似的な板（グレー帯）」を完全に消す */
#hub-voices .report-section-wrapper::before,
#hub-voices .ginga-hub-voice-carousel::before {
    display: none !important;
    content: none !important;
}

/* カルーセル自体の背景が浮かないようにする */
#hub-voices .ginga-hub-voice-carousel,
#hub-voices .report-section-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
}

#hub-voices > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 流れ（タブ機能） --- */
.ginga-hub-flow-tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.ginga-hub-flow-tab-labels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.ginga-hub-flow-tab-label {
    display: inline-flex; padding: 10px 18px; font-size: 14px; font-weight: 600;
    color: var(--depth-700); background: var(--mist-50); border: 1px solid var(--shore-sand);
    border-radius: 6px; cursor: pointer;
}

.ginga-hub-flow-tab-radio:nth-of-type(1):checked ~ .ginga-hub-flow-tab-labels .ginga-hub-flow-tab-label:nth-of-type(1),
.ginga-hub-flow-tab-radio:nth-of-type(2):checked ~ .ginga-hub-flow-tab-labels .ginga-hub-flow-tab-label:nth-of-type(2),
.ginga-hub-flow-tab-radio:nth-of-type(3):checked ~ .ginga-hub-flow-tab-labels .ginga-hub-flow-tab-label:nth-of-type(3),
.ginga-hub-flow-tab-radio:nth-of-type(4):checked ~ .ginga-hub-flow-tab-labels .ginga-hub-flow-tab-label:nth-of-type(4) {
    background: var(--horizon-cta); color: #fff; border-color: var(--horizon-cta);
}

.ginga-hub-flow-tab-panels .ginga-hub-flow-tab-panel { display: none; }
.ginga-hub-flow-tab-radio:nth-of-type(1):checked ~ .ginga-hub-flow-tab-panels .ginga-hub-flow-tab-panel:nth-of-type(1),
.ginga-hub-flow-tab-radio:nth-of-type(2):checked ~ .ginga-hub-flow-tab-panels .ginga-hub-flow-tab-panel:nth-of-type(2),
.ginga-hub-flow-tab-radio:nth-of-type(3):checked ~ .ginga-hub-flow-tab-panels .ginga-hub-flow-tab-panel:nth-of-type(3),
.ginga-hub-flow-tab-radio:nth-of-type(4):checked ~ .ginga-hub-flow-tab-panels .ginga-hub-flow-tab-panel:nth-of-type(4) {
    display: block;
}

/* --- 共通セクション設定 --- */
.ginga-hub-section { margin-bottom: 48px; scroll-margin-top: calc(var(--ginga-hub-sticky-offset, 56px) + 56px); }
.ginga-hub-section-head { margin-bottom: 24px; text-align: center; }
.ginga-hub-h2 { font-size: 22px !important; margin: 0 0 8px !important; color: var(--depth-700) !important; border: none !important; }

/* --- SP用調整 --- */
@media screen and (max-width: 768px) {
    .ginga-hub-toc a { padding: 0 10px; }
    .ginga-hub-portmap { height: 300px !important; }
    .ginga-hub-sea-card img { width: 100px !important; min-width: 100px; min-height: 100px; }
    body.ginga-area-hub-page .l-topTitleArea, body.ginga-area-hub-page .p-breadcrumb { display: none !important; }
}

/* --- 海域詳細ページ（single-sea）の乗船場所カード --- */
.js-port-item.is-clickable {
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.js-port-item.is-clickable:hover {
    background-color: var(--mist-50);
    border-color: var(--sys-border-light);
}
.ginga-hub-port-title.js-port-click-trigger {
    pointer-events: none;
}

.ginga-hub-area-map { text-align: center; margin-bottom: 30px; }
.ginga-hub-area-map img { margin-left: auto; margin-right: auto; display: block; max-width: 100%; height: auto; }