@charset "UTF-8";

/* ====================================
   T-shirt-collection
==================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo",
    "メイリオ", sans-serif;
}

body {
  background-color: #fafafa;
}
section.t-shirt-collection {
  font-size: 16px;
  line-height: 1.5;
  color: #5430f2;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fafafa;
}

.main-visual img {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  border-radius: 8px;
}

.category-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.image-link {
  width: 48%;
  height: 80px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #5430f2;
  border-radius: 20px;
  border: solid 1px #5430f2;
  font-weight: bold;
  transition: background-color 0.2s ease;
  padding: 1em;
}

.image-link:hover {
  background-color: #d9d9d9;
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 4px;
}

.tag-link {
  padding: 8px 16px;
  background-color: #fff;
  border-radius: 20px;
  text-decoration: none;
  color: #5430f2;
  border: solid 1px #5430f2;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.tag-link:hover {
  background-color: #d9d9d9;
}

.product-section {
  margin-bottom: 48px;
  padding: 0 4px;
}

.section-title {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #eaeaea;
}

.product-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 8px 4px;
}

.product-container {
  display: flex;
  transition: transform 0.3s ease;
  gap: 16px;
  padding: 4px 0;
}

/* 改善: カード全体をリンクにし、幅を固定 */
.product-card {
  width: 180px; /* 固定幅に設定 */
  flex-shrink: 0;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  width: 180px; /* 画像サイズを大きく */
  height: 180px; /* 1:1の比率を維持 */
  margin-bottom: 12px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sale-label {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #0c9d58; /* グリーン色に変更 */
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
}

.product-name {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
  word-wrap: break-word; /* 長い商品名を適切に折り返し */
  line-height: 1.3;
  width: 100%; /* 画像幅に合わせる */
}

.product-price {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.slider-prev {
  left: 8px;
}

.slider-next {
  right: 8px;
}

.cta-button {
  display: block;
  width: 240px;
  height: 48px;
  background-color: #5430f2;
  color: #fff;
  margin: 0 auto 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 24px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot:hover {
  background-color: #999;
}

.dot.active {
  background-color: #333;
  transform: scale(1.2);
}

@media (min-width: 768px) {
  section.t-shirt-collection {
    background-color: #fafafa;
  }

  .main-visual {
    height: 280px;
    margin-bottom: 40px;
  }

  .category-links {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
  }

  .image-link {
    height: 100px;
    font-size: 18px;
  }

  .tag-links {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    justify-content: center;
  }

  .product-section {
    margin-bottom: 64px;
    padding: 0 8px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .product-slider {
    padding: 12px 40px;
    margin-bottom: 20px;
  }

  .cta-button {
    width: 280px;
    height: 56px;
    font-size: 18px;
    margin-bottom: 64px;
  }
}

.footer {
  background-color: #5430f2;
  color: #fff;
  padding: 40px 20px;
  width: 100%;
  margin: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

div.footer-logo {
  text-align: center;
  margin-bottom: 20px;
}

div.footer-logo img {
  width: 60px;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-socials {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials img {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s;
}

.footer-socials a:hover img {
  opacity: 0.7;
}
