/* CMS データ表示用スタイル */

/* サイト全体のお知らせバナー */
.site-notice {
    background: #fffbf0;
    border-bottom: 2px solid #ff9800;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.site-notice .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.site-notice p {
    margin: 0;
    color: #e65100;
    font-weight: 500;
}

.site-notice button {
    background: none;
    border: none;
    color: #e65100;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    padding: 5px;
}

/* お知らせセクション */
.news-items .news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-items .news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
}

.news-category {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    white-space: nowrap;
}

.news-title {
    font-weight: 500;
    color: #333;
    margin: 0;
}

.news-summary {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0 0 0;
}

.news-image {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: auto;
}

/* 商品グリッド */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-item.featured {
    border: 2px solid #8B4513;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9em;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: #8B4513;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.1em;
    font-weight: 600;
    color: #8B4513;
}

/* ギフトグリッド */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gift-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-3px);
}

.gift-item.featured {
    border: 2px solid #4CAF50;
}

.gift-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-info {
    padding: 20px;
}

.gift-type {
    color: #4CAF50;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 8px;
}

.gift-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.gift-contents {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.gift-price {
    font-size: 1em;
    font-weight: 600;
    color: #4CAF50;
    margin-bottom: 10px;
}

.gift-services {
    font-size: 0.8em;
    color: #666;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* レビューグリッド */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.review-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.review-item.featured {
    border-left: 4px solid #ff9800;
}

.review-item:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3em;
    color: #f0f0f0;
    font-family: serif;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-customer {
    font-weight: 600;
    color: #333;
}

.review-rating {
    color: #ff9800;
    font-size: 1.1em;
}

.review-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-product {
    font-size: 0.8em;
    color: #8B4513;
    margin-bottom: 5px;
}

.review-info {
    font-size: 0.8em;
    color: #999;
}

.review-image {
    margin-top: 15px;
}

.review-image img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* 「もっと見る」リンク */
.news-more,
.gifts-more,
.reviews-more {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 24px;
    background: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.news-more:hover,
.gifts-more:hover,
.reviews-more:hover {
    background: #6d3410;
}

/* セクション間のマージン調整 */
.reviews-section,
.gifts-section {
    padding: 60px 0;
    background: #fafafa;
}

.reviews-section:nth-child(even),
.gifts-section:nth-child(even) {
    background: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .products-grid,
    .gifts-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-items .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-date,
    .news-category {
        align-self: flex-start;
    }

    .product-info,
    .gift-info {
        padding: 15px;
    }

    .review-item {
        padding: 20px;
    }

    .site-notice button {
        right: 10px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item,
.product-item,
.gift-item,
.review-item {
    animation: fadeInUp 0.6s ease-out;
}

/* データ読み込み中の表示 */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}