@charset "UTF-8"; 

html {
    font-size: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Old Mincho' , serif;
    transition: background 0.8s ease;
    }
    
a {
    text-decoration: none;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
}

h2 {
     text-align: center;
    width: 100%;
    letter-spacing: 2px;
    margin-bottom: 30px;
}
  /*  nav  */

.side-nav {
    position: absolute;
    top:10%;
    right: 60px;
    margin: 0;
    z-index: 100;
}
.slide-nav ul {
    padding: 0;
    margin: 0;
}
.side-nav li {
    margin-bottom: 10px;
}
.side-nav a {
    color: white;
    letter-spacing: 2px;
    position: relative;
}
.side-nav a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
} 
.side-nav a:hover::after {
    width: 100%;
}

.hero {
    width: 100%;
    height: 800px;
    margin-top: -30px;
    position: relative;
}

.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide.active {
  opacity: 1;
}

/*  about  */

.about {
    width: 100%;
    padding: 200px 0 0;
}
.about-inner {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}
.about-inner p {
    font-size: 14px;
    line-height: 2;
}

.ranking {
    padding: 140px 0 0;
    text-align: left;
    margin: 0 auto;
    max-width: 1200px;
}
.ranking .scroll-area {
    padding-left: 20px;
    padding-right: 20px;
}

.img-wrap {
    position: relative;
    overflow: visible;
}


.scroll-area {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 80px;
    padding-right: 20px;
    scroll-snap-type: x mandatory;
}


.scroll-area::-webkit-scrollbar {
    display: none;
}
.item {
    scroll-snap-align: start;
    min-width: 180px;
    text-align: center;
    position: relative;
    overflow: visible;
    padding-top: 30px;
    padding-left: 20px;
}

.badge {
    position: absolute;
    top: -20px;
    left: -10px;
    background: #d9d9d9;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    
}
.badge1 { background: #FFC93C;}
.badge2 { background: #c1c1c1;}
.badge3 { background: #F28a8a;}
.badge4 { background: black;}

.product-name {
    text-align: left;
    padding-top: 10px;
    font-size: 14px;
}
.price {
    text-align: left;
    font-size: 12px;
    color: #858585;
}

/*  topics  */

.topics {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.topics-list {
    display: flex;
    gap: 50px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 20px;
}
.topics-list::-webkit-scrollbar {
    display: none;
}
.topics-item {
   flex: 0 0 auto;
   width: 160px;
   text-align: center;
}
.topics-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.topic-title {
    margin-top: 10px;
    font-size: 12px;
    text-align: left;
}

/*  news  */

.news {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}
.news-title {
    margin-bottom: 20px;
}
.view-all {
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
    color: #666;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.news-item {
    position: relative;
    display: block;
    padding-bottom: 12px;
    text-decoration: none;
    color: #333;
}
.news-item .date {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}
.news-item .text {
    font-size: 14px;
    color: #333;
}
.news-item .line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background-color: #d0d0d0;
}
.news-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0%;
    background-color: #000;
    transition: width 0.3s ease;
}
.news-item:hover::after {
    width: 100%;
}


/*  product  */

#product {
    color:white;
}
.product-category {
    display: flex;
   gap: 60px;
    max-width: 1200px;
    margin: 80px auto 40px;
    padding-left: 10px;
}
.cat-item.fade {
    cursor: pointer;
    transition: opacity 0.3s;
}
.cat-item span {
    font-size: 14px;
}
.cat-item.fade:hover {
    opacity: 0.5;
}

.product-scroll {
    padding-left: 120px;
    padding-right: 120px;
    display: flex;
    gap: 40px;
    overflow-x: scroll;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
}
.product-scroll::-webkit-scrollbar {
    display: none;
}

.p-item {

    min-width: 200px;
    text-align: center;
}
.p-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.p-name {
    text-align: left;
    margin-top: 10px;
    font-size: 14px;
}
.p-price {
    text-align: left;
    font-size: 12px;
    color: #f8f8f8;
}


/*  footer  */

.footer-links {
    background-image: url(img/背景.jpg);
    background-size: cover;
    background-position: center;
    padding: 80px 40px;
    width: 100%;
}
.footer-inner {
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
}
.footer-col h3 {
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-col li {
    transition: opacity 0.3s;
}
.footer-col li:hover {
    opacity: 0.5;
}

.copyright {
    font-size: 10px;
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 480px) {
    .about-inner {
        padding: 0 10px;
    }
    .about-inner p {
        font-size: 16px;
    }
    h2 {
        font-size: 18px;
    }

    /*  about  */

    .about-inner {
        max-width: 67%;
        margin: 0 auto;
    }
    .about-inner p {
        text-align: left;
        font-size: 12px;
    }

    /*  ranking  */

   .ranking {
    padding-left: 20px;
   }
   .ranking .item {
    min-width: 150px;
   }
   .ranking .scroll-area {
    padding-left: 20px;
   }
   .badge {
    width: 40px;
    height: 40px;
   }
   .product-name {
    font-size: 12px;
   }
   .price {
    font-size: 10px;
   }

   /*  topics  */

    .topics-list {
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 20px;
        padding-right: 20px;
        scroll-snap-type: x mandatory;
    }
    .topics-list::-webkit-scrollbar {
        display: none;
    }
    .topics-item img {
        width: 100%;
        height: 200px;
    }
    .topic-title {
        text-align: left;
        font-size: 10px;
    }

    /*  product  */

    .cat-item {
        margin-top: -20px;
        padding-left: 30px;
    }
    .product-scroll {
        margin: 0 auto;
        padding-left: 30px;
    }
}

@media (max-width: 1200px) {
    .cat-item {
        margin-top: -20px;
        padding-left: 20px;
    }
    .product-scroll {
        margin: 0 auto;
        padding-left: 30px;
    }
}