/* ===========================
   User's Voice Section Styles
   お客様の声セクション専用スタイル
   =========================== */

/* コンテナ幅統一設定 */
#uservoice .ptl-section__inner {
  max-width: var(--ptl-container-max, 1200px);
  padding-left: var(--ptl-container-pad, 20px);
  padding-right: var(--ptl-container-pad, 20px);
  margin: 0 auto;
  box-sizing: border-box;
}

/* セクション余白は最後に設定（NAVIGATION/SALONと同じ構造） */

/* arrows */
/* arrows (updated) */
#uservoice .swiper-button-prev,
#uservoice .swiper-button-next{
    position:absolute; top:50%; transform:translateY(-50%);
    width:44px; height:44px; display:flex; align-items:center; justify-content:center;
    z-index:10; pointer-events:auto; opacity:0.75;
    background: #ffffff;
    border: 1px solid #d4a574;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
#uservoice .swiper-button-prev:hover,
#uservoice .swiper-button-next:hover {
    background: #fafafa;
    border-color: #c49a6c;
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
    opacity: 1;
}
#uservoice .swiper-button-prev{ left:10px; }
#uservoice .swiper-button-next{ right:10px; }

/* PC専用: Swiperデフォルト矢印をゴールド色に */
@media (min-width: 768px) {
    #uservoice .swiper-button-prev::after,
    #uservoice .swiper-button-next::after {
        font-family: swiper-icons !important;
        color: #d4a574 !important;
        font-size: 16px !important;
        content: '' !important;
    }
    #uservoice .swiper-button-prev:hover::after,
    #uservoice .swiper-button-next:hover::after {
        color: #c49a6c !important;
    }
}

/* SP時の矢印スタイル: シンプルな<>デザイン */
@media (max-width: 767px) {
    #uservoice .swiper-button-prev,
    #uservoice .swiper-button-next {
        color: rgba(255, 255, 255, 0.95);
        background: transparent;
        width: 40px;
        height: 40px;
        padding: 0;
        z-index: 20;
        cursor: pointer;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    /* 親テーマの矢印を完全無効化 */
    #uservoice .swiper-button-prev::after,
    #uservoice .swiper-button-next::after {
        border: none;
        background: none;
        width: auto;
        height: auto;
        transform: none;
        position: static;
        box-sizing: content-box;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
    
    /* カスタム矢印 */
    #uservoice .swiper-button-prev::after {
        content: '<';
        font-family: Arial, Helvetica, sans-serif;
        font-weight: 300;
        font-size: 32px;
        line-height: 40px;
        font-style: normal;
        display: block;
    }
    
    #uservoice .swiper-button-next::after {
        content: '>';
        font-family: Arial, Helvetica, sans-serif;
        font-weight: 300;
        font-size: 32px;
        line-height: 40px;
        font-style: normal;
        display: block;
    }
    
    #uservoice .swiper-button-prev {
        left: 0;
    }
    
    #uservoice .swiper-button-next {
        right: 0;
    }
}
/* ページネーション余白 */
#uservoice .swiper-pagination{ margin-top:24px; }

/* セクション基本設定 */
.ptlVoice {
    --ptl-heading-size: clamp(22px, 2.8vw, 28px);
    --ptl-subtitle-size: clamp(16px, 2vw, 18px);
}

.ptlVoice .ptl-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* h2スタイルはstyle.cssで統一管理 */

/* ornament用のスタイルは不要（インラインスタイルで制御） */

/* スライダー（縦並び3カード） */
.uservoice-slider {
    margin: 60px 0;
    position: relative;
    overflow: visible;
}

.uservoice-slider .swiper-wrapper {
    display: flex;
    flex-direction: row; /* 横並び */
    align-items: stretch; /* 高さ統一 */
    gap: 0; /* Swiperが制御 */
}

.uservoice-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* フィードバックカード */

/* 顧客画像 */
.feedback-image {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.customer-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* フィードバックタイトル */
.feedback-title {
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 600;
    color: #444;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 6px;
    letter-spacing: .08em;
    font-family: inherit;
}

/* フィードバック内容 */
.feedback-content {
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 300;
    color: #444;
    text-align: center;
    margin-bottom: 20px;
    font-family: inherit;
}

.feedback-content p {
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.8;
    color: #444;
    margin: 0;
    letter-spacing: 0.02em;
}

/* 作成者名 */
.feedback-author {
    font-size: clamp(13px, 1.4vw, 16px); /* タイトルと同一サイズに統一 */
    font-weight: 300;
    color: #444;
    text-align: center;
    margin-bottom: 15px;
    font-family: inherit;
}

/* 評価星 */
.feedback-rating {
    color: #ffc107;
    font-size: 0.8rem; /* 80%に縮小 */
    letter-spacing: 2px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feedback-rating .fa-star {
    margin: 0 2px;
}

.feedback-rating .fa-star-o {
    color: #ddd;
}

/* ページネーション */
.uservoice-slider .swiper-pagination {
    position: static;
    margin-top: 40px;
    text-align: center;
}

.uservoice-slider .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.uservoice-slider .swiper-pagination-bullet-active {
    background: #4a90e2;
    transform: scale(1.3);
}

/* MOREボタン統一：style.cssの.ptlNews__moreBtnを使用 */
.ptlVoice .ptlVoice__more {
    display: flex;
    justify-content: center;
    margin: 40px 0 0;
}

/* 以下の独自スタイルは削除：style.cssで統一管理 */

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .ptlVoice {
        padding: 60px 0;
    }
    
    .uservoice-slider {
        margin: 40px 0;
    }
    
    .uservoice-slider .swiper-wrapper {
        gap: 20px;
    }
    
    /* .feedback-card rules removed */
    
    .customer-img {
        width: 80px;
        height: 80px;
    }
    
    .feedback-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .feedback-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .feedback-author {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .feedback-rating {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ptlVoice {
        padding: 50px 0;
    }
    
    .uservoice-slider {
        margin: 30px 0;
    }
    
    .uservoice-slider .swiper-wrapper {
        gap: 15px;
    }
    
    /* .feedback-card padding removed per request */
    
    .customer-img {
        width: 70px;
        height: 70px;
    }
    
    .feedback-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .feedback-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .feedback-author {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .feedback-rating {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .uservoice-slider .swiper-pagination {
        margin-top: 30px;
    }
    
    .uservoice-slider .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* ===== SP専用フォント統一設定（半透明背景用に白色テキスト） ===== */
@media (max-width: 767px) {
    /* タイトル: 白色+シャドウ（issues/commitment参照） */
    #uservoice .feedback-title {
        font-size: clamp(13px, 1.4vw, 16px);
        font-weight: 600;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        text-align: center;
        margin-top: 10px;
        margin-bottom: 6px;
        letter-spacing: .08em;
        font-family: inherit;
    }
    
    /* ディスクリプション: 白色+シャドウ */
    #uservoice .feedback-content {
        font-size: clamp(12px, 1.2vw, 14px);
        font-weight: 300;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        line-height: 1.65;
        text-align: center;
        margin-bottom: 20px;
        font-family: inherit;
    }
    
    #uservoice .feedback-content p {
        font-size: clamp(12px, 1.2vw, 14px);
        font-weight: 300;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        line-height: 1.65;
        margin: 0;
        letter-spacing: 0.02em;
    }
    
    /* 顧客名: 白色+シャドウ */
    #uservoice .feedback-author {
        font-size: clamp(13px, 1.4vw, 16px);
        font-weight: 600;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        text-align: center;
        margin-bottom: 15px;
        font-family: inherit;
    }
    
    /* 星評価：視認性保持（黄色のまま） */
    #uservoice .feedback-rating {
        color: #ffc107;
        font-size: 0.88rem;
        letter-spacing: 2px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* オーナメント調整（h2統一管理により他は不要） */
#uservoice .ptl-section__ornament{margin:12px 0 40px;text-align:center;} /* inline styleに勝つため */

/* stop full-bleed shift only for this section (disabled to allow full-bleed) */
/* #uservoice .uservoice-slider{width:100% !important;max-width:1100px;margin:24px auto 0 !important;margin-left:0 !important;} */

#uservoice .uservoice-slider .swiper-wrapper{display:flex; flex-direction:row; align-items: stretch;}
#uservoice .uservoice-slider .swiper{min-height:450px; position: relative;} /* ラッパーの高さゼロ回避 */

#uservoice .uservoice-slider{
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:0;
    max-width:none;
    position: relative;
    overflow: hidden;
}

/* .feedback-card rules removed per request */


/* kill boxes and shadows in USER'S VOICE */
#uservoice .wp-block-group,
#uservoice [class*="feedback"],
#uservoice [class*="card"],
#uservoice [class*="shadow"],
#uservoice .swiper-slide{
    background: transparent;
    border: none;
    box-shadow: none;
}
#uservoice .wp-block-group:hover,
#uservoice [class*="card"]:hover,
#uservoice [class*="feedback"]:hover,
#uservoice [class*="shadow"]:hover,
#uservoice .swiper-slide:hover {
    box-shadow: none;
    transform: none;
    background: transparent;
    border: none;
}

/* USER'S VOICEセクション: MOREボタンはstyle.cssで統一管理（独自スタイル削除） */

/* カードの統一デザイン（シャドウ削除版） */
#uservoice .feedback-card {
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    min-height: 350px;
    width: 100%;
    box-sizing: border-box;
    position: relative; /* 疆佋要素用 */
}

/* SP: カードの背景を完全透明に変更 */
@media (max-width: 767px) {
    #uservoice .feedback-card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 20px;
        margin: 0 auto;
        min-height: 300px;
        max-width: 85%;
    }
}

/* PC・タブレット用カード間グレー線 */
@media (min-width: 960px) {
    #uservoice .swiper-slide:not(:last-child) .feedback-card::after {
        content: '';
        position: absolute;
        top: 10%;
        right: -1px;
        bottom: 10%;
        width: 1px;
        background-color: #e0e0e0;
        z-index: 1;
    }
}

/* タブレット時の線の調整 */
@media (min-width: 960px) and (max-width: 1024px) {
    #uservoice .swiper-slide:not(:last-child) .feedback-card::after {
        background-color: #d0d0d0;
        top: 8%;
        bottom: 8%;
    }
}

/* 最終的な統一設定（パララックス画像下との距離調整） */
#uservoice.ptl-section .ptl-section__inner {
    padding: 20px 20px 0; /* 下余白を削除 */
    max-width: 1200px;
    margin: 0 auto;
    /* padding-bottom は削除: style.css の margin-bottom: 80px で統一管理 */
}

/* ページネーションの色分け（アクティブ/非アクティブ明確化） */
#uservoice .swiper-pagination-bullet {
    background: #ccc; /* 非アクティブ: 薄いグレー */
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#uservoice .swiper-pagination-bullet-active {
    background: #777; /* アクティブ: 濃いグレー */
    transform: scale(1.3);
}

/* レスポンシブ調整はsection-uservoice-sp.cssで統一管理
   @media (max-width: 768px)はsection-uservoice-sp.cssで@media (max-width: 767px)として定義済み
   @media (min-width: 769px) and (max-width: 1024px)はsection-uservoice.cssで@media (max-width: 767px)として定義済み */

/* ========================================
   セクション余白設定
   PC: css/pc/section-uservoice.css で管理
   SP: css/sp/section-uservoice-sp.css で管理
======================================== */

body #uservoice {
  margin-top: 0 !important;
}

