/* =============================================
   Kitchen製品ページ専用CSS
   ============================================= */

/* Kitchen製品ページ用テーマカラー（オレンジ） */
.page-template-page-kitchen-product-php {
    --theme-color: #ff8c5a;
}

/* 共通ヘッダーの青いナビを非表示 */
.page-template-page-kitchen-product-php .main-nav {
    display: none;
}

/* モバイルメニューヘッダーをオレンジに */
.page-template-page-kitchen-product-php .mobile-menu-header {
    background: #ff8c5a;
}

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

/* ヘッダー右上ボタンをオレンジに */
.page-template-page-kitchen-product-php .ep-link a {
    background: #ff8c5a;
}

/* フッターをオレンジに */
.page-template-page-kitchen-product-php .footer {
    background: #ff8c5a;
}

/* スクロールトップボタンをオレンジに */
.page-template-page-kitchen-product-php .scroll-to-top {
    background: #ff8c5a;
}

/* リンク（アンカー）色をテーマカラーに統一 */
.page-template-page-kitchen-product-php a {
    color: #ff8c5a;
}

.page-template-page-kitchen-product-php a:hover {
    color: #ff6347;
}

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

.page-template-page-kitchen-product-php .logo a {
    color: inherit;
}

/* カテゴリナビのリンクは白文字 */
.page-template-page-kitchen-product-php .header-nav a {
    color: white !important;
}

.page-template-page-kitchen-product-php .header-nav a:hover {
    color: white !important;
}

/* 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;
    pointer-events: none;
    cursor: default;
}

/* ページ内ナビゲーション */
.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 !important;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

/* 三角矢印をCSSで描画（オレンジ色を確実に適用） */
.nav-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #ff8c5a;
}

.page-navigation a:hover .nav-arrow {
    border-left-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;
}

/* =================================
   プレースホルダー（未設定時の表示）
   ================================= */

/* スライダーセクションのプレースホルダーコンテナ */
.placeholder-slider-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 画像未設定時（メインスライダー） */
.placeholder-image {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    box-sizing: border-box;
}

/* サムネイル未設定時 */
.placeholder-thumb {
    background-color: #d0d0d0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 12px;
    color: #888;
}

/* 動画未設定時 */
.placeholder-video {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16/9;
    box-sizing: border-box;
    font-size: 16px;
    color: #888;
}

.placeholder-video::after {
    content: "動画を設定してください";
}

/* レスポンシブ */
@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%;
    }

    .placeholder-image {
        font-size: 12px;
    }

    .placeholder-video {
        min-height: 200px;
        font-size: 14px;
    }
}
