body {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fef9ef;
    color: #333;
}

/* ====== ヘッダー ====== */
.header {
    display: flex;
    align-items: center;
    background-color: #e2f49d;
    padding: 0 20px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.logo-size {
    width: auto;
    height: 100px;
}

.nav {
    margin-left: auto;
    /* navを右寄せ */
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav ul li {
    display: flex;
    flex-direction: column;
    /* 縦並び */
    align-items: center;
    /* 中央揃え */
}

.nav ul li a {
    text-decoration: none;
    color: #000;
    /* font-weight: bold; */
    font-size: 1rem;
    font-family: "Mochiy Pop P One", sans-serif;
    text-align: center;
    /* 文字中央揃え */
    margin-top: 3px;
    /* アイコンと文字の隙間 */
    line-height: 1.2;
    white-space: nowrap;
}

.icon {
    width: 50px;
    aspect-ratio: 1 / 1;
    display: block;
}

.cart {
    margin-left: 20px;
    /* navとカートの間の余白 */
}

.cart-size {
    width: 100px;
    height: auto;
    /* height: 98px; */
}

.header-shrink {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* padding: 2px 10px; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #e2f49d;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-shrink .logo-size {
    width: 100px;
    height: auto;
}

.header-shrink .icon {
    width: 30px;
}

.header-shrink .cart-size {
    width: 70px;
    height: auto;
}

.header-placeholder {
    height: 100px;
    /* ヘッダーの元の高さと同じ */
}

#headerPlaceholder .header-placeholder {
    display: none;
}


/* ====== ピックアップ（スライダー） ====== */
section h1 {
    font-size: 40px;
    font-family: "Mochiy Pop P One", sans-serif;
    font-weight: 400;
    font-style: normal;

}

.pickup {
    text-align: center;
    margin: 30px 0;
}

.slider-container {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.slide p,
.slide .label {
    position: absolute;
    color: white;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 5px;
}

.slide p {
    bottom: 10px;
    left: 10px;
}

.slide .label {
    top: 10px;
    right: 10px;
    background-color: #f49dac;
    writing-mode: vertical-rl;
    text-align: center;
    padding: 10px;
}

/* スライダーの矢印 */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* ====== 商品リスト（左） ====== */
#itiran {
    font-size: 25px;
    font-family: "Mochiy Pop P One", sans-serif;
    font-weight: 400;
    font-style: normal;

}

.syouhin-list {
    font-size: 20px;
    margin-top: 10px;
    font-family: "Mochiy Pop P One", sans-serif;
    color: #1b6112;
}

.syouhin-list2 {
    font-size: 20px;
    margin-top: 10px;
    font-family: "Mochiy Pop P One", sans-serif;
    color: #ee2e2e;
}
.syouhin-list3 {
    font-size: 20px;
    margin-top: 10px;
    font-family: "Mochiy Pop P One", sans-serif;
    color: #42229b;
}

.product-list {
    position: absolute;
    left: 10px;
    top: 220px;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
}

.product-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.banner {
    width: 200px;
    height: auto;
    position: absolute;
    top: 1950px;
    left: 5px;
}
.banner2 {
    width: 200px;
    height: auto;
    position: absolute;
    top: 2075px;
    left: 5px;
}
.banner3 {
    width: 200px;
    height: auto;
    position: absolute;
    top: 2290px;
    left: 5px;
}
.banner4 {
    width: 200px;
    height: auto;
    position: absolute;
    top: 2500px;
    left: 5px;
}

/* ====== ランキング ====== */
.ranking h1 {
    margin-top: 100px;
}

.ranking {
    text-align: center;
    margin: 40px 0;
}

.ranking-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3列 */
    gap: 20px 5px;
    justify-items: center;
    padding: 0 20px;
    max-width: 900px;
    /* 全体幅を狭めて中央寄せ */
    margin: 0 auto;
    /* コンテナ自体を中央寄せ */
}

.ranking-item {
    width: 290px;
    height: 350px;
    text-align: center;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
}

.ranking-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 5px 0 5px;
}

.ranking-item p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.view-all {
    margin-top: 35px;
    width: 200px;
    background-color: #a3c44f;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.view-all a {
    color: #000;
    text-decoration: none;
    font-size: large;
}

.rank-title {
    font-size: 50px;
}

/* ====== SNSリンク（右） ====== */
#sns {
    font-family: "Mochiy Pop P One", sans-serif;
}

.sns-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 10px;
    top: 180px;
    gap: 10px;
}

.sns-links img {
    width: 80px;
    aspect-ratio: 1/1;
}

.banner5 {
    width: 200px;
    height: auto;
    position: absolute;
    top: 800px;
    right: 5px;
}

.banner6 {
    width: 200px;
    height: auto;
    position: absolute;
    top: 1350px;
    right: 5px;
}

/* ====== 定期収穫便について ====== */
.teikibin {
    text-align: center;
    margin: 150px 0;
}

.teikibin img {
    margin-top: 20px;
}

.teikibin button {
display: block;
margin: 30px auto;
}

.teikibin h2 {
        display: inline-block; 
        border-bottom: #ee2e2e 5px solid;
        padding-bottom: 4px; 
}

/* ====== フッター ====== */
.footer {
    background-color: #ee2e2e;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 50px 0 10px 0;
}

.footer nav ul li a,
.footer .legal a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer .legal {
    margin-top: 10px;
    font-size: 0.8rem;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-top: 20px;
}


/* 旬感マルシェとは？ページ */
.about-main {
    max-width: 950px;
    margin: 140px auto 60px;
    padding: 0 5px ;
  }
  
  .about-section h1 {
    margin-bottom: 20px;
    text-align: center;
    color: #557a1f;
  }
  
  .about-section p {
    font-size: 1.7rem;
    margin-bottom: 20px;
    text-align: justify;
  }

  .about-section {
      margin: 0 auto;
  }

  .about-image img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 10px;
    padding-right: 20px; 
    box-sizing: border-box; 
  }
  

/* 商品一覧ページ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5列 */
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.product-card p {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.rank-main {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.syouhin-box {
    text-align: center;
}

.rank-h1 {
    text-align: center;
    margin-bottom: 30px;
    font-family: "Mochiy Pop P One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* 運営会社ページ */
.company-info {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* プライバシーポリシーページ */


/* 利用規約ページ */


/* 特定商取引法ページ */





/* レシピページ */
.recipe-list {
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 20px;
    font-family: "Mochiy Pop P One", sans-serif;
  }
  
  .recipe-list h1 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
    color: #557a1f;
  }
  
  .recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .recipe-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
  }
  
  .recipe-card:hover {
    transform: scale(1.02);
  }
  
  .recipe-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .recipe-card h2 {
    margin: 15px 0 0;
    font-size: 1.1rem;
    color: #333;
  }
  