* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.header {
    background: white;
}

.header-top {
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.header .logo img {
    height: 50px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    background: #ff8c5a;
    width: 100%;
    justify-content: center;
}

.header-nav-item {
    flex: 1;
    max-width: 250px;
    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;
}

@media (min-width: 769px) and (max-width: 1000px) {
    .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;
}

/* Navigation Styles */
.navigation {
    background: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
}

.navigation .container {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    padding: 15px 20px;
}

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

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.video-section {
    padding: 60px 20px;
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: #ff8c5a;
}

.video-section h2 {
    margin-bottom: 30px;
}

.video-placeholder {
    max-width: 1000px;
    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;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

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

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

.feature-image {
    width: 100%;
    height: auto;
    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: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.thumbnail {
    flex: 1;
    height: 80px;
    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;
}

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

.thumbnail:hover {
    background: #d0d0d0;
}

.thumbnail.active {
    background: #b0b0b0;
    color: #666;
}

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

#thumbnails3 .thumbnail:nth-child(4) img {
    object-position: center center;  /* D-4: 抹茶アイス - 中央を表示 */
}

/* Specs Section Styles */
.specs-section {
    background: white;
    padding: 60px 20px;
}

.specs-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.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;
}

/* Footer Styles */
.footer {
    background: #ff8c5a;
    padding: 0;
    width: 100%;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
}

.copyright {
    color: white;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon img {
    height: 35px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* サイドメニュー */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #ff8c5a;
    color: white;
}

.side-menu-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-content {
    padding: 20px;
}

.side-menu-section {
    margin-bottom: 30px;
}

.side-menu-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.side-menu .header-nav-item {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    background: white;
    border-right: none;
}

.side-menu .header-nav-item.active {
    background: #fff5f0;
    border-left-color: #ff8c5a;
    font-weight: bold;
}

.side-menu-link {
    display: block;
    padding: 12px 15px;
    color: #ff8c5a;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff8c5a;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top span {
    line-height: 1;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-top .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-nav {
        display: none;
    }

    .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;
    }

    .thumbnail {
        height: 60px;
        font-size: 1.2rem;
    }

    .footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .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%;
    }
}
