/**
 * Section: banner
 *
 * 抽出 元：resources/views/front/index.blade.php の inline style / <style> ブロック
 *
 * variants:
 *   - hero_slider  : Swiper 使用 の メイン スライダー
 *   - feature_grid : 3 連 の 静止 バナー グリッド
 *   - floating     : （現状 は hero_slider と 同 じ 描画）
 *   - static       : （現状 は hero_slider と 同 じ 描画）
 *
 * 参照 する デザイン トークン（layout の :root で 定義、テナント は admin テーマ 設定 で 変更 可）：
 *   --theme-primary       : CTA ボタン 背景
 *   --theme-font-heading  : 見出し フォント
 *
 * 微 調整 は テナント の admin > 設定 > カスタム コード（Monaco CSS）で 直接 上書き 可能。
 */

/* ===========================================
   feature_grid（旧 sub_3col）：3 連 バナー
   =========================================== */
.top-feature-banners {
    padding: 40px 0;
}
.top-feature-banners .banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.top-feature-banners .banner-item {
    position: relative;
}
.top-feature-banners .banner-item a {
    text-decoration: none;
    color: inherit;
}
.top-feature-banners .banner-item .banner-thumb {
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.top-feature-banners .banner-item .banner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-feature-banners .banner-item .banner-caption {
    font-size: 12px;
    margin-top: 8px;
    color: #333;
}

/* ===========================================
   hero_slider（旧 main_slider）：Swiper 使用
   =========================================== */
.main-slider .pc-slider {
    position: relative;
}
.main-slider .swiper-container {
    overflow: hidden;
}

.flexbx-hero-slide {
    position: relative;
    height: var(--slide-height, auto);
}
.flexbx-hero-slide > a {
    display: block;
    height: 100%;
    text-decoration: none;
}
.flexbx-hero-slide .photo {
    position: relative;
    height: 100%;
}
.flexbx-hero-slide picture,
.flexbx-hero-slide picture img {
    display: block;
    width: 100%;
    height: 100%;
}
.flexbx-hero-slide picture img {
    object-fit: cover;
}

/* オーバーレイ 用 の 半透明 マスク */
.flexbx-hero-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--mask-opacity, 0));
    pointer-events: none;
}

/* オーバーレイ（テキスト + CTA）*/
.flexbx-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 48px;
}
.flexbx-hero-overlay[data-position="left"]   { align-items: flex-start; text-align: left;   }
.flexbx-hero-overlay[data-position="center"] { align-items: center;     text-align: center; }
.flexbx-hero-overlay[data-position="right"]  { align-items: flex-end;   text-align: right;  }

.flexbx-hero-overlay[data-color="light"] {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.flexbx-hero-overlay[data-color="dark"] {
    color: #111;
    text-shadow: none;
}

.flexbx-hero-overlay .flexbx-hero-heading {
    font-size: var(--flexbx-hero-heading-size, 36px);
    font-weight: 700;
    margin: 0 0 12px;
    font-family: var(--theme-font-heading);
    max-width: var(--flexbx-hero-heading-max, 600px);
}
.flexbx-hero-overlay .flexbx-hero-sub {
    font-size: 16px;
    margin: 0 0 20px;
    max-width: 500px;
    line-height: 1.6;
}

/* CTA ボタン（色 は data-color、種別 は data-style で 分岐）*/
.flexbx-hero-cta {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.flexbx-hero-cta[data-style="primary"] {
    background: var(--theme-primary, #2563eb);
    color: #fff;
    border: 0;
}
.flexbx-hero-cta[data-style="secondary"] {
    background: #fff;
    color: #111;
    border: 0;
}
.flexbx-hero-cta[data-style="outline"][data-color="light"] {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.flexbx-hero-cta[data-style="outline"][data-color="dark"] {
    background: transparent;
    color: #111;
    border: 2px solid #111;
}
.flexbx-hero-cta[data-style="text"][data-color="light"] {
    background: transparent;
    color: #fff;
    border: 0;
    text-decoration: underline;
    padding: 8px 0;
}
.flexbx-hero-cta[data-style="text"][data-color="dark"] {
    background: transparent;
    color: #111;
    border: 0;
    text-decoration: underline;
    padding: 8px 0;
}
