/*
 * ヒーローセクション手動スライドショー - 矢印ボタン付き
 * 手動で画像を切り替えるスライドショーを実装
 */

/* ヒーローセクションの基本設定 */
.hero {
    position: relative !important;
    background: #1B3A5C !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

/* 背景要素を再表示してスライドショーコンテナとして使用 */
.hero .hero-background {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

/* スライド画像（すべて重ねて配置） */
.hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: opacity 0.8s ease-in-out !important;
    z-index: 1 !important;
}

/* アクティブなスライドを表示 */
.hero-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

/* スライド1: top01.png */
.hero-slide-1 {
    background-image: url('slide-image/top01.png') !important;
}

/* スライドショーコントロールとインジケーターを非表示 */
.hero-slideshow-controls,
.hero-slide-indicators {
    display: none !important;
}

/* オーバーレイは最上層に維持 */
.hero .hero-overlay {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        135deg,
        rgba(20, 40, 60, 0.3) 0%,
        rgba(30, 50, 70, 0.5) 30%,
        rgba(40, 60, 80, 0.3) 60%,
        rgba(20, 40, 60, 0.4) 100%
    ) !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

/* コンテンツ領域の位置調整とテキスト強調 */
.hero .hero-content {
    position: relative !important;
    z-index: 10 !important;
    text-align: center !important;
    padding: 40px 20px 60px 20px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
}

/* メインタイトルの強調 */
.hero h1 {
    color: #ffffff !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.3) !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 40px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}

/* タグライン（説明文）の視認性向上 */
.hero .tagline p {
    color: #f5f5f5 !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 2px 6px rgba(0, 0, 0, 0.7) !important;
    font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(2px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 強調テキスト（太字部分）をさらに目立たせる */
.hero .tagline b {
    color: #ffd700 !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 1),
        0 0 10px rgba(255, 215, 0, 0.5) !important;
    font-weight: 800 !important;
}

/* ボタンエリアの調整 */
.hero .hero-buttons {
    margin-top: 40px !important;
    z-index: 15 !important;
    position: relative !important;
}

/* プライマリボタンの強化 */
.hero .btn-primary {
    background: linear-gradient(135deg, #c9aa71, #e6d294) !important;
    color: #2c3e50 !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    padding: 15px 35px !important;
    font-size: 1.1rem !important;
    border: 2px solid #ffd700 !important;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #e6d294, #f4e5b8) !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 6px 20px rgba(255, 215, 0, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* 和風装飾要素の調整 */
.hero .washi-texture,
.hero .byobu-pattern,
.hero .byobu-pattern-left {
    opacity: 0.1 !important;
    z-index: 2 !important;
}

/* PC専用の中央配置強化 */
@media (min-width: 769px) {
    .hero {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 500px !important;
        height: auto !important;
        margin-top: 60px !important;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll !important;
        margin-top: 0 !important;
        padding-top: 80px !important;
        padding-bottom: 40px !important;
        margin-bottom: 40px !important;
    }

    .hero .hero-content {
        padding: 40px 15px 40px 15px !important;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 30px !important;
    }

    .hero .tagline p {
        font-size: clamp(0.9rem, 4vw, 1.1rem) !important;
        padding: 12px 20px !important;
        margin-bottom: 15px !important;
    }

    .hero .btn-primary {
        padding: 12px 28px !important;
        font-size: 1rem !important;
    }

    .hero-slide {
        background-size: cover !important;
        background-position: center !important;
    }

    /* モバイル用のコントロール調整 */
    .hero-slideshow-controls {
        bottom: 20px !important;
        right: 20px !important;
        gap: 10px !important;
    }

    .hero-slide-btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }

    .hero-slide-btn .material-symbols-outlined {
        font-size: 24px !important;
    }

    .hero-slide-indicators {
        bottom: 20px !important;
        gap: 10px !important;
    }

    .hero-slide-indicator {
        width: 10px !important;
        height: 10px !important;
    }
}

/* 印刷対応 */
@media print {
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto !important;
    }

    .hero-background,
    .hero-overlay,
    .hero-slideshow-controls,
    .hero-slide-indicators {
        display: none !important;
    }

    .hero h1,
    .hero .tagline p {
        color: black !important;
        text-shadow: none !important;
        background: none !important;
    }
}
