
/* =====================================
   基本設定（全体やボディなど）
===================================== */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 16px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
H2タイトルアニメーション
===================================== */

.thumbnail-heading {
  position: relative;
  text-align: center;
  font-size: 1.4rem;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  margin: 60px 0 20px;
  color: #333;
  letter-spacing: 1px;
}

.thumbnail-heading::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background-color: #000;
  position: absolute;
  left: 0;
  bottom: -10px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.thumbnail-heading.show::after {
  transform: scaleX(1);
}

/* =====================================
   ヘッダー画像
===================================== */
.main-header picture,
.main-header picture img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.main-header {
  width: 100%;
  overflow: hidden;
}
/* =====================================
  ループアニメ
===================================== */

.scroll-gallery {
  width: 100vw;
  overflow: hidden;
  background: #fff;
}

.scroll-track {
  display: flex;
  width: max-content; /* ← 必須！中身の幅に合わせる */
  animation: scroll-left 40s linear infinite;
}

.scroll-track img {
  height: auto;
  width: auto;
  max-height: 200px;
  margin-right: 16px;
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0); /* ← 最初の画像が左端にぴったり */
  }
  100% {
    transform: translateX(-50%); /* ← 2周分のちょうど半分だけ左に移動 */
  }
}





/* =====================================
   イントロダクションセクション
===================================== */
.intro-message {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.intro-message p {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 40px;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.intro-button {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.intro-button:hover {
  background-color: #000;
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-wrapper {
  text-align: center;
  margin: 40px 0;
}


/* =====================================
   フローティングリンク（固定）
===================================== */
.floating-link {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  font-size: 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.floating-link:hover {
  opacity: 1;
  background-color: #000;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =====================================
   商品セクションの基本構造
===================================== */

.product-section {
  display: flex;               /* ← 絶対必要！ */
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
  flex-direction: row;         /* ← 初期値として書いておく */
  transition: all 1s ease;
}

.product-section.show {
  opacity: 1;
  transform: translateY(0);
}

.product-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  transition: opacity 0.5s ease;
  display: block;
}

.product-image a:hover img {
  opacity: 0.7;
}

.product-info {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: transparent;
  border-radius: 8px;
  font-size: 1rem;
  padding-top: 0;
  margin-top: 0;
}

.product-description p:first-child {
  margin-top: 0;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-description p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

.section-sale-link {
  text-align: center;
  margin: 24px 0 40px;
}

/* =====================================
   商品情報（ジャンル・タイトル・価格・ボタン）
===================================== */
/* ← ホバー時に白い半透明レイヤーを上にかぶせる */


.product-link-box:hover {
  opacity: 0.4; /* ← 画像と同じ白さ */
}


.product-link-box {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.product-row {
  position: relative;
  z-index: 2;
}

.genre,
.title,
.price {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.price-check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.check-button {
  background-color: #000;
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}


/* =====================================
   サムネイル表示一覧
===================================== */
.thumbnail-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumbnail-item {
  position: relative;
  text-decoration: none;
  color: #000;
  display: block;
  overflow: hidden;
  padding: 0; /* 余白除去 */
  margin: 0;
}

.thumbnail-item img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  margin: 0;
}

/* ホバーで白くふわっとオーバーレイ */
.thumbnail-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s ease;
  z-index: 1;
}

.thumbnail-item:hover::after {
  background: rgba(255, 255, 255, 0.5);
}

/* 商品情報 */
.thumb-info {
  position: relative;
  z-index: 2; /* オーバーレイより上に */
  padding: 10px;
  background: white;
  text-align: center; /* ← 中央揃えに */
}

.thumb-name {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.thumb-price {
  font-size: 0.85rem;
  margin-top: 5px;
}

.original-price {
  text-decoration: line-through;
  color: #888888;
  margin-right: 0.5em;
}

.sale-price {
  font-weight: bold;
  color: #e60033;
}

.thumb-colors {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #ccc;
  display: inline-block;
}


/* =====================================
  各セクションへのジャンプ
===================================== */
.category-nav {
  padding: 20px 16px; /* ← スマホで左右に余白追加 */
}

.category-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 0 auto;
  max-width: 600px; /* 中央揃え用オプション */
}

.category-nav li {
  list-style: none;
}

.category-nav a {
  display: inline-block;
  width: 160px; /* ← 横幅を統一（「ジャケット／アウター」に合わせる） */
  text-align: center;
  padding: 8px 12px;
  border: 1px solid #000;
  background-color: #fff;
  color: #000;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .category-nav a {
    width: 120px;
    font-size: 0.75rem; /* ← さらに少し小さく調整 */
    padding: 6px 10px;
  }

  .category-nav {
    padding: 16px 12px;
  }

  .category-nav ul {
    justify-content: center;
    gap: 6px;
  }
}




/* =====================================
   レスポンシブ対応
===================================== */

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

@media (max-width: 500px) {
  .product-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .product-row .title,
  .product-row .price,
  .product-row .detail-button {
    width: 100%;
  }

  .floating-link {
    font-size: 0.65rem;
    padding: 6px 12px;
    bottom: 16px;
    right: 16px;
  }

  .staff-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .insta-button {
    width: 100%;
    text-align: center;
  }
}

.thumbnail-heading {
  text-align: center;
  font-size: 1.4rem;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  margin: 60px 0 20px;
  color: #333;
  letter-spacing: 1px;
}
