@charset "utf-8";

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
}

h2 {
    text-align: center;
}

h3 {
  margin-bottom: 2%;
}

span {
  font-size: 15px;
}

/* 上部の帯（高さ50px、#A8C7FA） */
.top-bar {
  height: 2.1vw;
  width: 100%;
  background-color: #A8C7FA;
}

/* ナビゲーションバー */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 10px 40px;
  border-bottom: 1px solid #e0e0e0; /* メニュー下の線（1px） */
}

/*フォーム全体を中央へ*/
#form1{
  display: flex;
  justify-content: center; 	
  height:50px;
}
/*入力フォーム*/
#sbox1{
  width:250px;
  padding:0 15px;
  border-radius:4px 0 0 4px;
  background:#eee;
  border:none;
  outline:0;
}
/*検索ボタン*/
#sbtn3{
  width:50px;
  border-radius:0 4px 4px 0;
  background:#eee;
  border:none;
  color:#666;
  font-size:18px;
  cursor: pointer;
}
#sbtn3:hover{
background: #7fbfff;
color:#fff;
}

/* ロゴ画像 */
.logo img {
  height: 3vw;
}

/* メニューリンク */
.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  font-size: 1.24vw;
  color: #333333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #0077aa;
}

/* 人気アイテムセクション全体 */
.popular-items {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  margin: 40px auto;
  max-width: 1000px;
  background-color: #fff;
}

/* 見出し */
.popular-items h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
}

/* 人気アイテムのカード一覧 */
.popular-grid {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.popular-card {
  border-radius: 16px;
}

.popular-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 横に4枚並べる */
  gap: 20px; /* カード同士の間隔 */
  justify-content: center;
  padding: 20px;
}

.product-card {
  width: 256px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 16px;
}

.product-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* 画像を囲む枠 */
.image-box {
  width: 256px;
  height: 256px;
  margin: 0 auto 12px;
  background-color: #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 画像サイズ調整 */
.image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 商品名と価格 */
.product-name {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  margin: 4px 0;
}

.product-price {
  font-size: 14px;
  font-weight: bold;
  color: #666666;
  margin: 0;
}


/* 個別カード */
.popular-card {
  width: 300px;
  text-align: left;
  position: relative;
  width: 300px;
}

/* 画像サイズ調整 */
.popular-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.site-footer {
  background-color: #A8C7FA;
  padding: 40px 20px;
  font-family: sans-serif;
  position: relative;
  color: #333;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: #333333;
  font-weight: bold;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
  color: #777777;
}

.back-to-top {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.back-to-top a {
  text-decoration: none;
  background-color: #333333;
  color: white;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-to-top a:hover {
  background-color: #e0e0e0;
}

.slider {
  position: relative;
  width: 100%;
  height: 500px; /* 画像の高さを調整 */
  overflow: hidden;
  margin-bottom: 5%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.caption {
  position: absolute;
  top: 50%;
  left: 5%; /* 左端からの距離を調整 */
  transform: translateY(-50%); /* 垂直方向だけ中央揃え */
  text-align: left;
  color: white;
  max-width: 500px; /* 必要なら幅制限 */
}

.caption h2 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffffffcc;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #fff;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #333333;
  color: #c2a76f;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2;
}

.category-filter {
  background-color: #D3BA89;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  color: #333333;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 120px;
  transition: transform 0.3s ease;
}

.category-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.category-item span {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

.category-item:hover {
  transform: scale(1.05);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 1%;
}

.social-links a img,
.social-links a i {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-links a:hover img,
.social-links a:hover i {
  transform: scale(1.2);
}


@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

.nav-links li a {
  font-size: 3.5vw;  
}

  .logo img {
    height: 40px;
  }

  .caption h2 {
    font-size: 2em;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .category-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2列にする */
    gap: 20px;
    justify-content: center;
    padding: 20px;
  }

  .category-item {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .category-label {
    grid-column: 1 / -1; /* 見出しを2列分にまたがらせる */
    text-align: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .popular-grid {
    flex-direction: column;
    align-items: center;
  }

  .popular-card {
    width: 90%;
  }

  .category-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列にする */
    gap: 20px;
    justify-content: center;
    padding: 20px;
  }

  .category-item {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .category-label {
    grid-column: 1 / -1; /* 見出しを2列分にまたがらせる */
    text-align: center;
    margin-bottom: 10px;
  }
}