@charset "utf-8";

/* ========================================================================== 
   slider.css - Petit Maison KIRISHIMA "Serenity" Edition
   - 画像の明るさを最大化し、文字の視認性をシャドウで担保した決定版
   ========================================================================== */

/* --- 1. スライダー外枠（背景を白にして画像の沈みを防止） --- */
.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1; 
    margin: 0 auto;
    overflow: hidden;
    /* 背後の色が透けて暗くならないよう白に設定 */
    background: #ffffff; 
    font-family: var(--font-jp);
}

@media (min-width: 1403px) and (max-width: 1628px) {
    .hero-slider { aspect-ratio: 27 / 10; }
}
@media (max-width: 1400px) {
    .hero-slider { aspect-ratio: 11 / 5; }
}
@media (max-width: 1100px) {
    .hero-slider { aspect-ratio: 3 / 2; }
}
@media (max-width: 768px) {
    .hero-slider { 
        aspect-ratio: 4 / 5;
        margin-top: 70px;
    } 
}

/* --- 2. スライド本体 & 背景ズーム --- */
.slider-wrapper {
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), visibility 2s;
    z-index: 1;
}

.hero-slider .slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slider .slide-img {
    width: 100%; height: 100%;
    position: relative;
}

.hero-slider .slide-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.05);
    transition: transform 12s linear;
}

.hero-slider .slide.is-active .slide-img img {
    transform: scale(1.15);
}

/* オーバーレイを極限まで薄くし、左端のみに限定（画像そのものの色を出す） */
.slide-overlay {
    position: absolute;
    inset: 0;
    /* 濃度を0.1（10%）まで下げ、25%地点で透明に消える設定 */
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 25%);
    z-index: 2;
}

/* --- 3. テキストコンテンツ & モーション --- */
.slide-content {
    position: absolute;
    top: 55%;
    left: 10%;
    transform: translateY(-50%);
    color: #ffffff;
    z-index: 3;
    pointer-events: none;
}

/* 字幕（シャンパンゴールド） */
.slide-subtitle {
    display: block;
    font-family: var(--font-en);
    font-size: clamp(12px, 1vw, 16px);
    letter-spacing: 0.5em; 
    color: var(--color-accent);
    margin-bottom: 25px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(15px);
    transition: all 1.2s ease 0.6s;
    /* 文字の輪郭を際立たせる強いシャドウ */
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* タイトル：Noto Serif JP（明朝体） */
.slide-title {
    font-family: var(--font-jp);
    font-size: clamp(26px, 4vw, 52px);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.15em;
    /* 多層シャドウで、明るい画像の上でも完璧な視認性を確保 */
    text-shadow: 
        0 2px 15px rgba(0,0,0,0.9), 
        0 0 30px rgba(0,0,0,0.5);
}

.slide-title span {
    display: inline-block;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s;
}

.slide.is-active .slide-subtitle { opacity: 1; transform: translateY(0); }
.slide.is-active .slide-title span { opacity: 1; transform: translateY(0); }

/* 2行目の遅延設定 */
.slide.is-active .slide-title .line-wrap:nth-child(3) span { transition-delay: 0.3s; }

/* 繊細なゴールドの水平線 */
.slide-decor {
    width: 80px;
    height: 1px;
    background: var(--color-accent);
    margin-top: 40px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s ease 1.5s;
    /* 線の下にも影を入れて視認性を確保 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.slide.is-active .slide-decor { transform: scaleX(1); }

/* --- 4. 背後の巨大テキスト演出 --- */
.slider-bg-text {
    position: absolute;
    bottom: -5%;
    right: -2%;
    font-family: var(--font-en);
    font-size: 20vw;
    color: rgba(255, 255, 255, 0.05); 
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

/* --- 5. UI（ナビゲーション） --- */
.slider-ui {
    position: absolute;
    bottom: 50px;
    right: 5%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 25px;
}

/* ページネーション数値 */
.slider-pagination {
    font-family: var(--font-en);
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.2em;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.slider-pagination .current { 
    color: var(--color-accent); 
    font-size: 20px;
    margin-right: 5px;
}

/* ドットナビゲーション */
.slider-dots {
    display: flex;
    gap: 12px;
}

.dot-item {
    width: 20px; 
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.4s;
    border: none;
    outline: none;
}

.dot-item.is-active { 
    background: var(--color-accent); 
    width: 40px; 
}

/* --- 6. プログレスバー --- */
.slider-progress {
    width: 100px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0;
    background: var(--color-accent);
}

/* --- 7. レスポンス調整 --- */
@media (max-width: 768px) {
    .slide-content { 
        left: 8%; 
        width: 84%; 
        top: 50%;
    }
    .slide-title { 
        font-size: 28px; 
        line-height: 1.6; 
    }
    .slider-ui { 
        bottom: 30px; 
        right: 20px;
    }
    .slider-bg-text {
        font-size: 25vw;
        bottom: 5%;
    }
}