/* =============================================
   商品詳細ページ共通CSS
   ============================================= */

/* 商品詳細ページ用テーマカラー（オレンジ） */
.page-template-page-ice-cream-maker-new-php,
.page-template-page-food-warmer-new-php {
    --theme-color: #ff8c5a;
}

/* 共通ヘッダーの青いナビを非表示 */
.page-template-page-ice-cream-maker-new-php .main-nav,
.page-template-page-food-warmer-new-php .main-nav {
    display: none;
}

/* モバイルメニューヘッダーをオレンジに */
.page-template-page-ice-cream-maker-new-php .mobile-menu-header,
.page-template-page-food-warmer-new-php .mobile-menu-header {
    background: #ff8c5a;
}

/* モバイルメニュー内のリンク色 */
.page-template-page-ice-cream-maker-new-php .mobile-nav > ul > li > a,
.page-template-page-food-warmer-new-php .mobile-nav > ul > li > a,
.page-template-page-ice-cream-maker-new-php .mobile-nav ul ul a:hover,
.page-template-page-food-warmer-new-php .mobile-nav ul ul a:hover {
    color: #ff8c5a !important;
}

/* ヘッダー右上ボタンをオレンジに */
.page-template-page-ice-cream-maker-new-php .ep-link a,
.page-template-page-food-warmer-new-php .ep-link a {
    background: #ff8c5a;
}

/* フッターをオレンジに */
.page-template-page-ice-cream-maker-new-php .footer,
.page-template-page-food-warmer-new-php .footer {
    background: #ff8c5a;
}

/* スクロールトップボタンをオレンジに */
.page-template-page-ice-cream-maker-new-php .scroll-to-top,
.page-template-page-food-warmer-new-php .scroll-to-top {
    background: #ff8c5a;
}

/* リンク（アンカー）色をテーマカラーに統一 */
.page-template-page-ice-cream-maker-new-php a,
.page-template-page-food-warmer-new-php a {
    color: #ff8c5a;
}

.page-template-page-ice-cream-maker-new-php a:hover,
.page-template-page-food-warmer-new-php a:hover {
    color: #ff6347;
}

/* ヘッダー・フッター内のリンクは白のまま */
.page-template-page-ice-cream-maker-new-php .header a,
.page-template-page-ice-cream-maker-new-php .footer a,
.page-template-page-food-warmer-new-php .header a,
.page-template-page-food-warmer-new-php .footer a {
    color: white;
}

.page-template-page-ice-cream-maker-new-php .logo a,
.page-template-page-food-warmer-new-php .logo a {
    color: inherit;
}

/* Header Nav（商品カテゴリナビ） */
.header-nav {
    background: #ff8c5a;
    width: 100%;
}

.header-nav-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

.header-nav-item {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-nav-item:last-child {
    border-right: none;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .header-nav-item {
        max-width: none;
        flex: 1 1 0;
    }
}

.header-nav-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.header-nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* ページ内ナビゲーション */
.page-navigation {
    background: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.page-navigation .container {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-navigation a {
    color: #ff8c5a;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.page-navigation a:hover {
    color: #ff6347;
}

/* 動画セクション */
.video-section {
    padding: 60px 20px;
    text-align: center;
}

.video-section h2 {
    font-size: 2rem;
    color: #ff8c5a;
    margin-bottom: 30px;
}

.video-placeholder {
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
}

#local-video-player {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 0;
}

/* スライダーセクション */
.slider-section {
    padding: 60px 20px;
    background: white;
}

.slider-section:nth-child(even) {
    background: #f8f9fa;
}

.slider-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #ff8c5a;
}

.ice-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    padding: 0;
    height: 100%;
}

.feature-card {
    background: white;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: left;
    position: relative;
    height: 100%;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-video {
    object-fit: cover;
}

.feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-text {
    flex: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* サムネイルナビゲーション */
.thumbnail-nav {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ice-thumbnail {
    flex: 1;
    height: auto;
    aspect-ratio: 16/9;
    cursor: pointer;
    background: #e0e0e0;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #999;
    font-weight: bold;
    overflow: hidden;
}

.ice-thumbnail:not(.active) {
    opacity: 0.5;
}

.ice-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ice-thumbnail:hover {
    background: #d0d0d0;
}

.ice-thumbnail.active {
    background: #b0b0b0;
    color: #666;
    opacity: 1;
}

/* Recipe（D）スライダーの特定サムネイル位置調整 */
#thumbnails3 .ice-thumbnail:nth-child(2) img {
    object-position: center top;
}

#thumbnails3 .ice-thumbnail:nth-child(4) img {
    object-position: center center;
}

/* 製品仕様セクション */
.specs-section {
    background: white;
    padding: 60px 20px;
}

.specs-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #ff8c5a;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.spec-label {
    font-weight: bold;
    color: #333;
    width: 30%;
    flex-shrink: 0;
}

.spec-value {
    color: #666;
    width: 70%;
    text-align: left;
}

.disclaimer {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .page-navigation {
        display: none;
    }

    .slider-section h2,
    .video-section h2 {
        font-size: 1.5rem;
    }

    .feature-content {
        padding: 20px 15px;
        gap: 15px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .ice-thumbnail {
        height: auto;
        aspect-ratio: 16/9;
        font-size: 1.2rem;
    }

    .specs-section h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 15px;
    }

    .slider-section {
        padding: 40px 0;
    }

    .video-section {
        padding: 40px 0;
    }

    .specs-section {
        padding: 40px 0;
    }

    .specs-list li {
        flex-direction: column;
        padding: 15px;
    }

    .spec-label {
        width: 100%;
        margin-bottom: 8px;
    }

    .spec-value {
        width: 100%;
    }
}
