/* 口コミページ専用スタイル */

/* ページヒーロー */
.page-hero {
    margin-top: 70px;
    background: linear-gradient(135deg, #F8B88B 0%, #F39C12 100%);
    padding: 80px 0;
    text-align: center;
}

.page-hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-content p {
    font-size: 18px;
    color: white;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 総合評価セクション */
.review-summary {
    padding: 60px 0;
    background-color: #FFF5F8;
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rating-overview {
    text-align: center;
}

.overall-rating {
    padding: 20px;
}

.rating-number {
    font-size: 72px;
    font-weight: 700;
    color: #F39C12;
    line-height: 1;
    margin-bottom: 15px;
}

.stars {
    font-size: 32px;
    color: #F39C12;
    margin-bottom: 10px;
}

.star {
    display: inline-block;
}

.star.filled {
    color: #F39C12;
}

.star.half {
    background: linear-gradient(90deg, #F39C12 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.review-count {
    font-size: 16px;
    color: #666;
}

/* 評価バー */
.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    min-width: 60px;
    font-size: 14px;
    color: #666;
}

.bar-wrapper {
    flex: 1;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(90deg, #F8B88B 0%, #F39C12 100%);
    transition: width 0.5s ease;
}

.bar-percentage {
    min-width: 45px;
    text-align: right;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 口コミ一覧セクション */
.reviews-section {
    padding: 80px 0;
    background-color: #FFEEF5;
}

.reviews-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #E67E22;
}

/* 口コミカード */
.review-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FFF5F8;
}

.reviewer-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reviewer-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F8B88B 0%, #F39C12 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.review-stars {
    font-size: 18px;
    color: #F39C12;
}

.review-date {
    font-size: 14px;
    color: #999;
}

.review-body {
    padding: 0 10px;
}

.review-title {
    font-size: 20px;
    font-weight: 600;
    color: #E67E22;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* 作品ギャラリー */
.review-gallery {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #FFF5F8;
}

.gallery-title {
    font-size: 16px;
    font-weight: 600;
    color: #E67E22;
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    gap: 15px;
    justify-content: start;
}

.gallery-grid img {
    width: 100%;
    max-width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* 画像が1枚だけの時の対応 */
.gallery-grid img:only-child {
    max-width: 350px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto;
    justify-self: center;
    display: block;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 動画埋め込み */
.review-video {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #FFF5F8;
}

.video-wrapper {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 45%; /* 80% × 56.25% = 45% (16:9アスペクト比を維持) */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* モーダルウィンドウ（画像拡大表示） */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.15s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.modal-close:hover,
.modal-close:focus {
    color: #F8B88B;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
    user-select: none;
    z-index: 10000;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(248, 184, 139, 0.8);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0;
    }
    
    .page-hero-content h1 {
        font-size: 32px;
    }
    
    .page-hero-content p {
        font-size: 16px;
    }
    
    .summary-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
    }
    
    .rating-number {
        font-size: 56px;
    }
    
    .stars {
        font-size: 28px;
    }
    
    .reviews-section h2 {
        font-size: 28px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .reviewer-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        font-size: 16px;
    }
    
    .reviewer-avatar img {
        max-width: 60px;
        max-height: 60px;
    }
    
    .reviewer-name {
        font-size: 16px;
    }
    
    .review-stars {
        font-size: 16px;
    }
    
    .review-title {
        font-size: 18px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-grid img {
        height: 150px;
    }
    
    /* 画像が1枚だけの時 */
    .gallery-grid img:only-child {
        max-width: 300px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    
    .gallery-title {
        font-size: 15px;
    }
    
    .video-wrapper {
        width: 100%;
        padding-bottom: 56.25%;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    
    .modal-prev,
    .modal-next {
        font-size: 30px;
        padding: 15px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-caption {
        font-size: 14px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 40px 0;
    }
    
    .page-hero-content h1 {
        font-size: 28px;
    }
    
    .page-hero-content p {
        font-size: 14px;
    }
    
    .summary-content {
        padding: 20px 15px;
    }
    
    .rating-number {
        font-size: 48px;
    }
    
    .stars {
        font-size: 24px;
    }
    
    .reviews-section {
        padding: 60px 0;
    }
    
    .reviews-section h2 {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .review-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .reviewer-info {
        gap: 10px;
    }
    
    .reviewer-avatar {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 14px;
    }
    
    .reviewer-avatar img {
        max-width: 45px;
        max-height: 45px;
    }
    
    .reviewer-name {
        font-size: 14px;
    }
    
    .review-stars {
        font-size: 14px;
    }
    
    .review-date {
        font-size: 12px;
    }
    
    .review-title {
        font-size: 16px;
    }
    
    .review-text {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .bar-label,
    .bar-percentage {
        font-size: 12px;
    }
    
    .bar-wrapper {
        height: 8px;
    }
    
    .review-gallery,
    .review-video {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-grid img {
        height: 180px;
    }
    
    /* 画像が1枚だけの時 */
    .gallery-grid img:only-child {
        max-width: 250px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
    
    .gallery-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-close {
        top: 5px;
        right: 10px;
        font-size: 35px;
    }
    
    .modal-prev,
    .modal-next {
        font-size: 25px;
        padding: 10px;
    }
    
    .modal-prev {
        left: 5px;
    }
    
    .modal-next {
        right: 5px;
    }
    
    .modal-caption {
        font-size: 12px;
        padding: 8px 15px;
    }
}
