/* スマホ（768px以下） */
@media (max-width: 768px) {
  .category_imageArea img{
    width: 100% !important;
  }

  .category_imageArea{
    margin: 0px -11px !important;
    
  }
}

/* 20260630 KDS ADD  */

        /* --- スルスルとしたスクロールを有効化 --- */
        html {
          scroll-behavior: smooth;
      }

      /* 全体の基本設定 */
      body {
          font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
          margin: 0;
          padding: 20px;
          background-color: #fcfcf9;
          color: #333;
      }

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

      a { color: inherit; text-decoration: none; } 

      /* --- カテゴリーボタンエリア --- */
      .category-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin:50px 0px;
        scroll-margin-top: 20px;
      }

      .btn {
          display: flex;
          align-items: center;
          justify-content: center;
          text-align: center;
          font-weight: bold;
          text-decoration: none;
          padding: 15px 10px;
          border-radius: 8px;
          font-size: 16px;
          transition: transform 0.2s, box-shadow 0.2s;
          box-shadow: 0 4px 6px rgba(0,0,0,0.08);
          cursor: pointer;
      }

      .btn:hover {
          transform: translateY(-2px);
          box-shadow: 0 6px 12px rgba(0,0,0,0.15);
      }

      /* 夏らしいカラーバリエーション */
      .btn-blue {
          background-color: #00a0e9; /* シアンブルー（海・空） */
          color: #fff;
      }
      .btn-yellow {
          background-color: #ffcc00; /* サンフラワーイエロー（太陽・ひまわり） */
          color: #333;
      }

      /* スマホ対応：ボタンが小さくなりすぎないよう調整 */
      @media (max-width: 600px) {
          .btn {
              font-size: 13px;
              padding: 12px 5px;
          }
          .category-grid {
              gap: 8px;
          }
      }


      /* --- 商品セクションエリア --- */
      .section-title {
        font-size: 24px;
        color: #d9381e;
        border-left: 0px solid #ffcc00;
        padding-left: 12px;
        margin-bottom: 25px;
        padding-top: 10px;
        scroll-margin-top: 20px;
      }

      /* PC・スマホ共通で横3個並びを維持するグリッド */
      .product-grid {
          display: grid;
          grid-template-columns: repeat(3, 1fr); /* 常に3列 */
          gap: 20px 15px; /* 縦の隙間20px、横の隙間15px */
      }

      .product-card {
          background: #fff;
          border: 1px solid #e0e0e0;
          border-radius: 6px;
          overflow: hidden;
          display: flex;
          flex-direction: column;
      }

      .product-img-box {
          width: 100%;
          aspect-ratio: 1 / 1; /* 画像枠を正方形に固定 */
          background-color: #f0f0f0;
          display: flex;
          align-items: center;
          justify-content: center;
          overflow: hidden;
      }

      .product-img-box img {
          width: 100%;
          height: 100%;
          object-fit: cover; /* 枠に合わせて綺麗に収める */
      }

      .product-info {
          padding: 10px;
          display: flex;
          flex-direction: column;
          flex-grow: 1;
      }

      .product-name {
          font-size: 14px;
          font-weight: bold;
          line-height: 1.4;
          margin: 0 0 8px 0;
          /* 2行まで表示し、溢れたら「...」にする設定 */
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow: hidden;
          height: 2.8em; 
      }

      .product-price {
          font-size: 16px;
          color: #d9381e;
          font-weight: bold;
          margin-top: auto; /* 価格を常に一番下に配置 */
      }

      .product-price span {
          font-size: 11px;
          color: #666;
          font-weight: normal;
      }

      /* --- カテゴリーボタンに戻るボタンの設定 --- */
      .return-top-container {
          text-align: center;
          margin: 30px 0 60px 0;
      }

      .return-top-btn {
          display: inline-block;
          padding: 10px 24px;
          background-color: #f0f0f0;
          color: #666;
          font-size: 14px;
          font-weight: bold;
          border-radius: 20px;
          border: 1px solid #ddd;
          transition: background-color 0.2s, color 0.2s;
      }

      .return-top-btn:hover {
          background-color: #e0e0e0;
          color: #333;
      }

      /* スマホでの商品文字サイズ微調整 */
      @media (max-width: 600px) {
          .product-grid {
              gap: 12px 8px;
          }
          .product-info {
              padding: 6px;
          }
          .product-name {
              font-size: 12px;
              height: 2.8em;
          }
          .product-price {
              font-size: 13px;
          }
          .return-top-btn {
              font-size: 12px;
              padding: 8px 18px;
          }
      }
/* 20260630 KDS ADD END */