/**
 * Likeセクション専用スタイル（改善版）
 * css/like-section.css
 * @package Ezodeer_Shop
 */

/* ==========================================================================
   Likeセクション
   ========================================================================== */

/* お客様口コミエリア */
.like-reviews {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px 20px;
    backdrop-filter: blur(10px);
}

.reviews-header {
    text-align: center;
    margin-bottom: 30px;
}

.reviews-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.reviews-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

.reviews-scroll-container {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 400px; /* 縦スクロール用の高さを設定 */
}

.reviews-scroll {
    display: flex;
    flex-direction: column; /* 縦方向に変更 */
    gap: 20px;
    /* animation: scroll-reviews 30s linear infinite; 無効化 - JavaScriptで制御 */
}

.review-item {
    flex: 0 0 auto; /* 縦スクロール用に変更 */
    width: 100%; /* 幅を100%に */
    max-width: 800px; /* 最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.review-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-rating {
    margin-bottom: 15px;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    flex-grow: 1;
    font-style: italic;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.author-name {
    font-weight: bold;
    color: #8B4513;
    font-size: 1rem;
}

.author-location {
    color: #666;
    font-size: 0.9rem;
}

/* スクロールアニメーション */
@keyframes scroll-reviews {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .reviews-title {
        font-size: 2rem;
    }
    
    .reviews-scroll-container {
        height: 350px; /* モバイル用の高さ調整 */
    }
    
    .review-item {
        padding: 20px;
        max-width: 90%; /* モバイル用の幅調整 */
    }
    
    .review-text {
        font-size: 1rem;
    }
    
    .reviews-scroll {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .like-reviews {
        padding: 30px 15px;
    }
    
    .reviews-title {
        font-size: 1.8rem;
    }
    
    .reviews-scroll-container {
        height: 300px; /* スマホ用の高さ調整 */
    }
    
    .review-item {
        padding: 15px;
        max-width: 95%; /* スマホ用の幅調整 */
    }
}
   .like-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    overflow: visible; /* オーバーラップを許可 */
}

/* 上部：背景画像エリア */
.like-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url('http://13.231.109.198/wp-content/themes/ezodeer-shop/images/like-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-origin: center top; /* パララックス用 */
    will-change: transform; /* パフォーマンス最適化 */
    z-index: 10000 !important; /* 最前面に表示 */
}

/* スマホでの背景画像位置調整 */
@media (max-width: 768px) {
    .like-hero {
        background-position: left center;
        transform: translateX(-40px);
    }
    /* デバッグ用：背景色を設定 */
    background-color: #f0f0f0;
    min-height: 500px;
}

/* 背景のオーバーレイ */
.like-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* ヒーローコンテンツ */
.like-hero-content {
    position: relative;
    z-index: 12; /* バナーより確実に前面に */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* ロゴ */
.like-logo {
    width: 300px;
    height: auto;
    will-change: transform, opacity;
}

.like-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* ボタン */
.like-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.like-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #FFF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.like-button:hover::before {
    width: 120%;
    height: 400%;
}

.like-button:hover {
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 右側の縦書きテキスト */
.like-vertical-text {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15; /* 最前面に配置 */
}

.like-vertical-text .vertical-text-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.like-vertical-text .vertical-text-box {
    background-color: #FFFFFF;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    will-change: transform, opacity;
}

.like-vertical-text .vertical-text-box1 {
    margin-top: 0;
}

.like-vertical-text .vertical-text-box2 {
    margin-top: 40px;
}

.like-vertical-text .vertical-line {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    letter-spacing: 0.2em;
    line-height: 1.4;
    margin: 0;
}

/* 下部：バナーエリア */
.like-banners {
    display: flex;
    width: 100%;
    height: 30vh;
    position: relative;
    gap: 0; /* 隙間を完全に除去 */
    z-index: 9998 !important; /* 高いZ-indexを設定 */
}

/* バナー共通スタイル */
.like-banner {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, flex;
}

.like-banner-left {
    background-color: transparent;
}

.like-banner-right {
    background-color: transparent;
}

/* バナー背景画像 */
.like-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    will-change: transform, opacity;
}

.like-banner-left .banner-bg {
    background-image: url('/wp-content/themes/ezodeer-shop/images/banner-left.jpg');
}

.like-banner-right .banner-bg {
    background-image: url('/wp-content/themes/ezodeer-shop/images/banner-right.jpg');
}

/* バナーコンテンツ */
.like-banner .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.like-banner .banner-title {
    font-size: 3rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.like-banner .banner-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.like-banner .banner-arrow {
    display: inline-block;
    color: #FFF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.like-banner .banner-arrow svg {
    stroke: currentColor;
}

/* ホバー効果 */
.like-banner:hover .banner-title {
    transform: translateY(-5px);
}

.like-banner:hover .banner-subtitle {
    color: #FFF;
}

.like-banner:hover .banner-arrow {
    transform: translateX(10px);
}

/* アニメーション済みクラス */
.like-banner.animated .banner-bg {
    animation: none;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .like-hero {
        background-position: left center;
        background-size: auto 100%;
    }
}

@media (max-width: 1024px) {
    .like-vertical-text {
        right: 40px;
    }
    
    .like-vertical-text .vertical-line {
        font-size: 1.8rem;
    }
    
    .like-vertical-text .vertical-text-box {
        padding: 25px 18px;
    }
    
    .like-vertical-text .vertical-text-box2 {
        margin-top: 30px;
    }
    
    .like-logo {
        width: 250px;
    }
    
    .like-banner .banner-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .like-section {
        height: auto;
        min-height: 100vh;
    }
    
    .like-hero {
        height: 70vh;
        background-position: left center;
        background-size: auto 100%;
    }
    
    .like-banners {
        height: auto;
        flex-direction: column;
        overflow: visible;
    }
    
    .like-banner {
        min-height: 250px;
    }
    
    .like-vertical-text {
        right: 20px;
    }
    
    .like-vertical-text .vertical-text-wrapper {
        gap: 0;
    }
    
    .like-vertical-text .vertical-text-box {
        padding: 20px 15px;
    }
    
    .like-vertical-text .vertical-text-box2 {
        margin-top: 25px;
    }
    
    .like-vertical-text .vertical-line {
        font-size: 1.6rem;
    }
    
    .like-logo {
        width: 200px;
    }
    
    .like-button {
        font-size: 1.4rem;
        padding: 14px 30px;
    }
    
    .like-banner .banner-content {
        padding: 30px;
    }
    
    .like-banner .banner-title {
        font-size: 2rem;
    }
    
    .like-banner .banner-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .like-hero {
        min-height: 400px;
    }
    
    .like-hero-content {
        gap: 30px;
    }
    
    .like-vertical-text {
        position: static;
        transform: none;
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }
    
    .like-vertical-text .vertical-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .like-vertical-text .vertical-text-box {
        background-color: #FFFFFF;
        padding: 20px 30px;
        width: auto;
    }
    
    .like-vertical-text .vertical-text-box2 {
        margin-top: 0;
    }
    
    .like-vertical-text .vertical-line {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-size: 1.4rem;
        text-align: center;
    }
    
    .like-logo {
        width: 180px;
    }
    
    .like-button {
        font-size: 1.2rem;
        padding: 12px 24px;
    }
    
    .like-banner {
        min-height: 200px;
    }
    
    .like-banner .banner-content {
        padding: 20px;
    }
    
    .like-banner .banner-title {
        font-size: 1.8rem;
    }
    
    .like-banner .banner-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}