@charset "UTF-8";

/* ========================================================= */
/* Anegasaki Ganka Main Slider CSS                          */
/* Version: 2.0.0                                            */
/* コンテンツと表示順を分離した新仕様対応版                    */
/* ========================================================= */

/* ========================================================= */
/* --- 1. Root: Theme Colors & Variables --- */
/* ========================================================= */
:root {
    --color-main: #005B98;
    /* メインの青色 (Theme primary) */
    --color-dark: #004a7c;
    /* ホバー時などの濃い青 */
    --color-accent: #e6f2f9;
    /* 淡いアクセント色 */
    --color-light-purple: #005B98;
    /* ナビゲーションボタン用カラー */
    --shadow-slider: 0 -10px 40px rgba(0, 0, 0, 0.08);
    /* 影を上方向に変更 */
}

/* ========================================================= */
/* --- 2. Swiper Container: Layout --- */
/* ========================================================= */
.hero.swiper-container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 450px;
}

/* ========================================================= */
/* --- 3. Hero Slide Styles --- */
/* ========================================================= */
.swiper-slide.hero-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    /* 底辺に配置 */
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* PCでの高さを確保 */
    height: 880px;
    min-height: 500px;

    /* ヘッダーとの重なりを考慮した上部余白 */
    padding-top: 80px;

    /* 下の隙間を無くすため padding-bottom を 0 に設定 */
    padding-bottom: 0 !important;

    /* 背景画像を無効化（別要素で管理するため） */
    background-image: none !important;
}

/* ========================================================= */
/* --- 3-1. 背景画像の切り替え設定 (PC/Tablet/SP対応) --- */
/* ========================================================= */

/* 背景画像の基本スタイル */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* デフォルト（PC表示）: PC用画像を表示、タブレット用とSP用を非表示 */
.hero-slide-bg-pc {
    display: block;
}

.hero-slide-bg-tablet {
    display: none;
}

.hero-slide-bg-sp {
    display: none;
}

/* タブレット表示時（769px〜1024px）: タブレット用画像を表示、PC用とSP用を非表示 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slide-bg-pc {
        display: none;
    }

    .hero-slide-bg-tablet {
        display: block;
    }

    .hero-slide-bg-sp {
        display: none;
    }
}

/* スマホ表示時（768px以下）: SP用画像を表示、PC用とタブレット用を非表示 */
@media (max-width: 768px) {
    .hero-slide-bg-pc {
        display: none;
    }

    .hero-slide-bg-tablet {
        display: none;
    }

    .hero-slide-bg-sp {
        display: block;
    }
}

/* 背景画像への透過オーバーレイ */
.swiper-slide.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* ========================================================= */
/* --- 4. Hero Content Box --- */
/* ========================================================= */

/* ラッパー要素を中央に配置する設定 */
.hero-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    /* 中の hero-content を中央に寄せる */
    z-index: 10;
    position: relative;
}

/* コンテンツボックス本体 */
.hero-content {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(2px);
    padding: 20px 45px 50px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    max-width: 1000px !important;
    width: 100%;
    box-shadow: var(--shadow-slider);
    box-sizing: border-box;

    /* 左右のマージンを auto にして中央配置を確実にする */
    margin: 0 auto !important;
}

/* コンテンツ内のタイトル */
.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-family: "Noto Serif JP", serif;
}

/* コンテンツ内のテキスト */
.hero-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

/* --- スライド内ボタン --- */
.hero-button {
    display: inline-block;
    background-color: var(--color-main);
    color: #fff;
    padding: 12px 45px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 91, 152, 0.2);
}

.hero-button:hover {
    background-color: var(--color-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 91, 152, 0.3);
}

/* ========================================================= */
/* --- 5. Swiper Pagination (インジケーター) --- */
/* ========================================================= */
.swiper-pagination {
    /* 白枠の上に重なるよう位置を調整 */
    bottom: 10px !important;
    z-index: 20;
    margin-bottom: 0 !important;
}

.swiper-pagination-bullet {
    background: #ccc !important;
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--color-main) !important;
    opacity: 1;
}

/* ========================================================= */
/* --- 6. Swiper Navigation Buttons (矢印) --- */
/* ========================================================= */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-light-purple);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    transition: all 0.3s;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.8;
    z-index: 30;
    font-size: 1.5rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

/* ========================================================= */
/* --- 7. Responsive (Tablet) --- */
/* ========================================================= */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero.swiper-container {
        height: 700px;
        min-height: 500px;
    }

    .swiper-slide.hero-slide {
        height: 700px;
        min-height: 500px;
    }

    .hero-content {
        padding: 15px 35px 40px;
        max-width: 900px !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .hero-button {
        padding: 10px 40px;
        font-size: 1rem;
    }
}

/* ========================================================= */
/* --- 8. Responsive (Mobile) --- */
/* ========================================================= */
@media (max-width: 768px) {
    .hero.swiper-container {
        height: 550px;
        min-height: 450px;
    }

    .swiper-slide.hero-slide {
        height: auto;
        min-height: 450px;
        padding-top: 60px;
        /* スマホでも底に接地させる */
        padding-bottom: 0 !important;
    }

    .hero-content {
        padding: 10px 20px 20px;
        max-width: 100% !important;
        width: 100%;
        margin: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.5) !important;
    }

    .hero-title {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .hero-text {
        font-family: fot-tsukuardgothic-std, sans-serif !important;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero-button {
        padding: 8px 45px;
        font-size: 0.9rem;
    }

    .swiper-pagination {
        display: none !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* ========================================================= */
/* --- 9. 管理画面用スタイル（オプション） --- */
/* ========================================================= */
/* 
 * WordPress管理画面でのプレビューや設定画面で
 * 必要に応じて追加のスタイルを定義できます
 */