/* ==========================================================================
   2. フロントページ各パーツ（ガイド・海域・レビュー・プラン一覧）
   ========================================================================== */

/* お役立ちカード（ocean-column）ベース — TOP / エリアハブ共通 */
.ocean-column-wrapper {
    font-family: var(--font-sans);
}
.ocean-column-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
}
.ocean-column-card {
    background: var(--mist-50);
    border: 1px solid var(--sys-border-light);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.ocean-column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--shadow-mid);
}
.ocean-column-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--mist-100);
    object-fit: cover;
}
.ocean-column-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mist-900);
    font-size: 13px;
}
.ocean-column-thumb--empty::after {
    content: 'No Image';
}
.ocean-column-content {
    padding: 20px;
}
.ocean-column-tag {
    display: inline-block;
    background: var(--horizon-light);
    color: var(--horizon-cta);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 2px;
    margin: 0 6px 6px 0;
    font-weight: 500;
}
.ocean-column-title {
    font-family: var(--font-serif);
    color: var(--sys-text-primary);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 10px 0;
    padding-top: 20px;
    font-weight: 600;
}
.ocean-column-lead {
    color: var(--sys-text-secondary);
    font-size: 13px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-box-orient: vertical; /* これが消えないように注意 */
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-bottom: 15px;
}
.ocean-column-footer {
    margin-top: auto;
    border-top: 1px solid var(--mist-100);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--sys-text-tertiary);
}
.ocean-more-link {
    color: var(--horizon-cta);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ocean-column-all-wrap {
    text-align: right;
    margin-top: 24px;
}
.ocean-column-all-wrap a {
    color: var(--horizon-cta);
    font-weight: 600;
    text-decoration: none;
}
.ocean-column-all-wrap a:hover {
    text-decoration: underline;
}

/* お役立ち情報セクション（ks-nav-header で統一） */
.ocean-column-wrapper .ks-nav-header {
    margin-bottom: 28px;
}

/* ============================================================
   親テーマのh3装飾リセット（共通）
   カード内タイトル・プランタイトルなど対象のh3から
   SWELL のボーダー・シャドウ・背景を一括で除去する
   ============================================================ */
:is(
  .ocean-column-wrapper .ocean-column-title,
  .ocean-column-wrapper .ocean-column-card h3,
  .report-section-wrapper .report-title,
  .report-section-wrapper .report-card h3,
  .ks-plan-section .ks-plan-name,
  .ks-plan-section .ks-plan-card h3,
  .ks-sub-plan-section .ks-sub-title-text,
  .ks-sub-plan-section .ks-sub-plan-item h3,
  .reason-section-wrapper .reason-item-title,
  .reason-section-wrapper .reason-content h3
) {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: none !important;
}

:is(
  .ocean-column-wrapper .ocean-column-title,
  .ocean-column-wrapper .ocean-column-card h3,
  .report-section-wrapper .report-title,
  .report-section-wrapper .report-card h3,
  .ks-plan-section .ks-plan-name,
  .ks-plan-section .ks-plan-card h3,
  .ks-sub-plan-section .ks-sub-title-text,
  .ks-sub-plan-section .ks-sub-plan-item h3,
  .reason-section-wrapper .reason-item-title
)::before,
:is(
  .ocean-column-wrapper .ocean-column-title,
  .ocean-column-wrapper .ocean-column-card h3,
  .report-section-wrapper .report-title,
  .report-section-wrapper .report-card h3,
  .ks-plan-section .ks-plan-name,
  .ks-plan-section .ks-plan-card h3,
  .ks-sub-plan-section .ks-sub-title-text,
  .ks-sub-plan-section .ks-sub-plan-item h3,
  .reason-section-wrapper .reason-item-title
)::after {
    display: none !important;
    content: none !important;
}

/* カード内 margin / padding の個別設定 */
.ocean-column-wrapper .ocean-column-title,
.ocean-column-wrapper .ocean-column-card h3,
.report-section-wrapper .report-title,
.report-section-wrapper .report-card h3,
.ks-plan-section .ks-plan-name,
.ks-plan-section .ks-plan-card h3 {
    margin: 12px 0 !important;
    padding: 0 !important;
}

.ks-sub-plan-section .ks-sub-title-text,
.ks-sub-plan-section .ks-sub-plan-item h3 {
    padding: 0 !important;
}

.reason-section-wrapper .reason-item-title {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

/* お役立ち情報カード：個別レイアウト調整 */
.ocean-column-wrapper .ocean-column-content {
    padding: 12px 16px !important;
}
.ocean-column-wrapper .ocean-column-tag {
    margin-bottom: 6px !important;
}
.ocean-column-wrapper .ocean-column-lead {
    padding: 0 !important;
    margin-bottom: 12px !important;
}

/* 選ばれる理由：セクション下余白（01-layoutのpaddingを上書き） */
.reason-section-wrapper {
    padding-bottom: 48px !important;
}
.reason-section-wrapper .reason-item-desc {
    border-top: none !important;
}

/* お客様の声カード：個別レイアウト調整 */
.report-section-wrapper .report-body {
    padding: 12px 16px 16px !important;
}
.report-section-wrapper .report-excerpt {
    padding: 0 !important;
    margin-bottom: 12px !important;
}

/* プランカード：個別レイアウト調整 */
.ks-plan-section .ks-plan-header {
    padding: 12px 16px !important;
}
.ks-plan-section .ks-plan-body {
    padding: 12px 16px !important;
}
.ks-plan-section .ks-plan-desc-text {
    padding: 0 !important;
    margin-bottom: 12px !important;
}

/* PC版：記事を3列表示 */
@media (min-width: 769px) {
    .ocean-column-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* はじめてのガイド */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.guide-card {
    background: var(--mist-50);
    border: 1px solid var(--sys-border-light);
    border-radius: 12px;
    padding: 20px 15px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    box-shadow: 0 4px 10px var(--shadow-soft);
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--horizon-cta);
    box-shadow: 0 8px 20px var(--shadow-cta);
}

.guide-icon {
    font-size: 24px;
    background: var(--horizon-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.guide-main {
    font-weight: bold;
    color: var(--sys-text-primary);
    font-size: 15px;
    line-height: 1.2;
    display: block;
}
.guide-sub {
    font-size: 11px;
    color: var(--sys-text-secondary);
    margin-top: 4px;
}

/* お客様の声（カルーセル：グリッドではなく横並びで最後のカードまで表示） */
/* 親で overflow: hidden がかかっていると右側が切れるため、カルーセル wrap は visible に */
.ks-carousel-wrap {
    overflow: visible;
}

/* お客様の声：セクション背景を mist-100 で横いっぱいに */
.report-section-wrapper {
    position: relative;
    z-index: 0;
}
.report-section-wrapper::before {
    content: "";
    position: absolute;
    top: -24px;
    bottom: -24px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--mist-100, #F0F5F8);
    z-index: -1;
}

/* PC時：表示幅900pxで統一。カードを広く（400px）、中央1枚全面＋左右見切れ */
@media (min-width: 769px) {
    .report-section-wrapper {
        max-width: 900px;
    }
    /* 表示幅いっぱい（コンテンツ幅860px）でカルーセル窓 */
    .report-section-wrapper .report-scroll-container {
        width: 100%;
        overflow-x: auto;
    }
    /* 中央カードを全面表示するための左右パディング（860-400）/2＝230px */
    .report-section-wrapper .report-grid {
        padding-left: 230px;
        padding-right: 230px;
    }
    .report-section-wrapper .report-card {
        flex: 0 0 400px;
    }
}

.report-scroll-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
}

/* JS で scrollLeft を補間する間はスナップを切る（mandatory だと毎フレーム吸われてアニメが見えない） */
.report-scroll-container.ks-carousel-animating,
.plan-grid-scroll-container.ks-carousel-animating {
    scroll-snap-type: none !important;
}
/* 横スクロールのスクロールバーを非表示（PC/SP共通） */
.report-scroll-container::-webkit-scrollbar,
.plan-grid-scroll-container::-webkit-scrollbar {
    display: none;
}
.report-scroll-container,
.plan-grid-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.report-grid {
    display: flex;
    gap: 20px;
    padding: 10px;
}

/* 最後のカード右側の余白（張り付き防止） */
.report-grid::after {
    content: "";
    width: 20px;
    flex-shrink: 0;
}

.report-card {
    flex: 0 0 280px;
    background: var(--mist-50);
    border: 1px solid var(--sys-border-light);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px var(--shadow-soft);
    height: 100%;
    transition: 0.3s;
    scroll-snap-align: center;
}

.report-card:hover { transform: translateY(-5px); border-color: var(--horizon-cta); }

.report-img-box { position: relative; height: 200px; background: var(--horizon-light); overflow: hidden; }
.report-img-box img { width: 100%; height: 100%; object-fit: cover; }
.report-img-box.is-icon img { object-fit: contain; padding: 20px; }

.report-label { position: absolute; bottom: 10px; left: 10px; background: var(--overlay-dark); color: var(--mist-50); padding: 3px 10px; border-radius: 4px; font-size: 10px; font-weight: bold; }

.report-body { padding: 15px 18px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.report-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.report-stars { color: var(--sacred-gold); font-size: 14px; letter-spacing: 1px; }
.report-date { color: var(--sys-text-tertiary); font-size: 12px; }

.report-title {
    font-size: 17px;
    color: var(--sys-text-primary) !important;
    font-weight: bold;
    margin: 0 0 12px 0 !important;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.report-excerpt {
    font-size: 13px;
    color: var(--sys-text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 4.8em;
}

.report-footer-link {
    font-size: 12px;
    color: var(--horizon-cta);
    font-weight: bold;
    text-align: right;
    border-top: 1px solid var(--sys-border-light);
    padding-top: 12px;
}

/* お客様の声「もっと見る」ボタン：右寄せ */
.report-section-wrapper .view-all-btn-box {
    text-align: right;
    margin-top: 16px;
}

/* 口コミアーカイブ：一覧表示（カルーセルではない） */
.review-archive.report-section-wrapper {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* アーカイブの .report-grid は折り返しグリッド（カルーセル用スタイルを上書き） */
.review-archive .report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0;
}
.review-archive .report-grid::after {
    display: none;
}
.review-archive .report-card {
    flex: none;
    width: 100%;
    max-width: 100%;
}

/* 修正：PC版の report-section-wrapper max-width */
@media (min-width: 769px) {
    .report-section-wrapper {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto; /* 中央寄せを追加 */
    }
}

/* SP：口コミアーカイブはカルーセルでなく1列グリッドのまま */
@media (max-width: 768px) {
    .review-archive .report-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .review-archive .report-card {
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* 口コミアーカイブ：エリアで絞り込みリンク */
.review-archive .review-archive-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sys-border-light);
}

.review-archive .review-area-link {
    color: var(--horizon-cta, #1B5E8C);
    font-weight: 500;
    text-decoration: none;
}

.review-archive .review-area-link:hover {
    text-decoration: underline;
}

.review-archive .review-area-link.is-current {
    font-weight: 700;
    text-decoration: underline;
}

.review-archive .review-archive-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--sys-text-secondary);
    padding: 40px 20px;
}