/**
 * JUNO こだわりスライダー CSS
 * 既存のデザインシステムに統合されたスタイル
 */

/* JUNOのこだわり見出し */
.juno-section-header {
    margin: 60px 0 40px 0;
    text-align: center;
}

.juno-title dt {
    font-size: 2.2rem;
    font-weight: 700;
    color: #989477;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    padding: 0 40px;
}

.juno-title dt::before,
.juno-title dt::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: #989477;
    transform: translateY(-50%);
}

.juno-title dt::before {
    left: 0;
}

.juno-title dt::after {
    right: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .juno-section-header {
        margin: 40px 0 30px 0;
    }
    
    .juno-title dt {
        font-size: 1.8rem;
        padding: 0 30px;
    }
    
    .juno-title dt::before,
    .juno-title dt::after {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .juno-title dt {
        font-size: 1.5rem;
        padding: 0 25px;
    }
    
    .juno-title dt::before,
    .juno-title dt::after {
        width: 15px;
    }
}

/* スライダーコンテナ */
.juno-slider-section {
    margin: 20px 0 40px 0;
    padding: 0 20px;
}

/* 説明文スタイル */
.juno-description {
    text-align: center;
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.juno-slider {
    position: relative;
    max-width: 1060px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* スライド画像エリア */
.juno-slides-container {
    position: relative;
    width: 100%;
    height: 47.17vw; /* 1060px幅で500pxの比率を維持 */
    max-height: 500px;
    min-height: 250px;
    overflow: hidden;
}

.juno-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.juno-slide.active {
    opacity: 1;
}

/* プレースホルダー画像スタイルを削除 */

/* スライド画像スタイル */
.juno-slide-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.juno-slide-image img {
    width: 88%;
    height: 88%;
    object-fit: cover;
    object-position: center;
}

/* PC/SP画像切り替え */
.juno-slide-image .sp-image {
    display: none;
}

.juno-slide-image .pc-image {
    display: block;
}

/* 各スライドの背景色を削除（透明に） */
.initial-slide,
.slide-1,
.slide-2,
.slide-3,
.slide-4,
.slide-5,
.slide-6 {
    background: transparent;
}

/* ナビゲーションボタン */
.juno-nav-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 30px;
    background: #f8f8f8;
}

.juno-nav-btn {
    background-color: #989477;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 35px;
    padding: 18px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(152, 148, 119, 0.3);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    outline: none !important;
    position: relative;
}

.juno-nav-btn .sp-text {
    display: none;
}

.juno-nav-btn .pc-text {
    display: inline;
}

.juno-nav-btn::before,
.juno-nav-btn::after {
    content: '';
    position: absolute;
    left: 35px;
    right: 35px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
}

.juno-nav-btn::before {
    top: 12px;
}

.juno-nav-btn::after {
    bottom: 12px;
}

.juno-nav-btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 4px 8px rgba(184, 160, 130, 0.3) !important;
}

.juno-nav-btn:active {
    outline: none !important;
    border: none !important;
}

.juno-nav-btn:focus-visible {
    outline: none !important;
    border: none !important;
}

.juno-nav-btn:hover {
    background-color: #878367;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(152, 148, 119, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.juno-nav-btn.active {
    background-color: #767257;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 114, 87, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.juno-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(152, 148, 119, 0.3);
}

/* 矢印ボタン */
.juno-arrow-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
}

.juno-prev {
    left: -35px;
}

.juno-next {
    right: -35px;
}

.juno-arrow-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(152, 148, 119, 0.9);
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-indent: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(152, 148, 119, 0.3);
    z-index: 51;
    position: relative;
    outline: none !important;
}

.juno-arrow-btn:hover {
    background: rgba(135, 131, 103, 0.9);
    transform: scale(1.1);
}

.juno-arrow-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.juno-arrow-btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.juno-arrow-btn:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.juno-arrow-btn:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.juno-prev .juno-arrow-btn {
    text-indent: 28px;
}

.juno-next .juno-arrow-btn {
    text-indent: -28px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .juno-slider-section {
        padding: 0 15px;
    }
    
    .juno-slider {
        max-width: 100%;
    }
    
    .juno-description {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .juno-slides-container {
        height: auto;
        min-height: 200px;
        transition: height 0.3s ease-in-out;
        position: relative;
        overflow: visible;
        display: flex;
        align-items: flex-start;
    }
    
    .juno-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
        display: flex;
        align-items: flex-start;
        background: transparent;
    }
    
    .juno-slide.active {
        position: relative;
        opacity: 1;
        visibility: visible;
    }
    
    .juno-slide-image {
        margin: 0;
        font-size: 1rem;
        height: auto;
        width: 100%;
        background: transparent;
    }
    
    .juno-slide-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block;
    }
    
    .juno-nav-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
    }
    
    .juno-nav-btn {
        padding: 15px 12px;
        font-size: 0.85rem;
        min-height: 60px;
    }
    
    .juno-nav-btn .pc-text {
        display: none;
    }
    
    .juno-nav-btn .sp-text {
        display: inline;
    }
    
    .juno-nav-btn::before,
    .juno-nav-btn::after {
        display: none;
    }
    
    .juno-slide-image .pc-image {
        display: none;
    }
    
    .juno-slide-image .sp-image {
        display: block;
    }
    
    .juno-prev {
        left: -30px;
    }
    
    .juno-next {
        right: -30px;
    }
    
    .juno-arrow-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* note */
.juno-note {
    gap: 15px;
    padding: 10px 40px;
    background: #f8f8f8;
    font-size: 12px;
}


@media (max-width: 480px) {
    .juno-slides-container {
        height: auto;
        min-height: 180px;
        max-height: 1500px;
        position: relative;
        overflow: visible;
        display: flex;
        align-items: flex-start;
    }
    
    .juno-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
        display: flex;
        align-items: flex-start;
        background: transparent;
    }
    
    .juno-slide.active {
        position: relative;
        opacity: 1;
        visibility: visible;
    }
    
    .juno-slide-content {
        padding: 25px 15px;
    }
    
    .slide-title {
        font-size: 1.3rem;
    }
    
    .slide-description {
        font-size: 0.85rem;
    }
    
    .juno-nav-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .juno-nav-btn {
        padding: 12px 10px;
        font-size: 0.8rem;
        min-height: 55px;
    }
    
    .juno-nav-btn .pc-text {
        display: none;
    }
    
    .juno-nav-btn .sp-text {
        display: inline;
    }
    
    .juno-nav-btn::before,
    .juno-nav-btn::after {
        display: none;
    }
    
    .juno-slide-image .pc-image {
        display: none;
    }
    
    .juno-slide-image .sp-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}

/* 大画面対応 */
@media (min-width: 1200px) {
    .juno-slides-container {
        height: 500px;
        max-height: 500px;
    }
    
    .juno-slide-content {
        padding: 50px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .juno-nav-buttons {
        gap: 20px;
        padding: 40px;
    }
    
    .juno-nav-btn {
        padding: 25px 20px;
        font-size: 1rem;
        min-height: 80px;
    }
    
    .juno-arrow-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* アクセシビリティ */
.juno-nav-btn:focus,
.juno-arrow-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* アニメーション */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.juno-slide.active .juno-slide-content {
    animation: slideIn 0.5s ease-out;
}