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

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

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

/* =====================================
画像スライド用
===================================== */
.swiper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.swiper-slide {
  width: 100% !important;  /* 必ず1枚分を確保 */
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* 矢印を画像内に配置 */
.swiper-button-prev,
.swiper-button-next {
  color: #333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-prev {
  left: 10px;
}
.swiper-button-next {
  right: 10px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px;
  font-weight: bold;
}




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

.thumbnail-heading {
  position: relative;
  text-align: center;
  font-size: 1.4rem;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  margin: 100px 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);
}

/* =====================================
   新作セクション

===================================== */
.new-items {
  background-color: #ffff;
  text-align: center;

}

/* 商品画像と金額の余白 */
.new-items .price-box {
  margin-top: 50px; /* ← 余白を広めに */
  margin-bottom: 0px;
}

.new-items .item {
  margin-bottom: 100px;
}

.new-items img {
  width: 100%;       /* スマホでは画面いっぱい */
  max-width: 600px;  /* PCでは600pxまで */
  height: auto;
  border-radius: 0;  /* 角丸なし */
  box-shadow: none;  /* 影なし */
  display: block;    /* 中央寄せを効かせるため */
  margin: 0 auto;    /* 中央に配置 */
}

.new-items .price {
  font-size: 1.2em;
  font-weight: bold;
  margin: 15px 0 10px;
  color: #333;
}

.new-items .description {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

/* 商品説明を雑誌風に見せる */
.description {
  max-width: 460px;       /* 見えない正方形の枠を作る */
  margin: 50px auto 0;         /* 中央寄せ */
  text-align: justify;    /* 均等割付け */
  line-height: 2;
  color: #555;
  text-justify: inter-ideograph; /* 日本語の均等割付け対応 */
}

/* ===============================
   商品名と金額
=============================== */

/* 商品行全体 */
/* PC（501px以上）の基本 */
.product-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 10px auto;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
}

/* 商品名 */
.product-name {
  font-size: 1.2rem;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  color: #333;
  letter-spacing: 0.05em;
  margin: 0;
  flex: 1 1 auto;
  min-width: 200px;
  text-align: left; /* PCでは必ず左揃え */
  white-space: nowrap;   /* ← 改行防止 */
  overflow: hidden;      /* ← 長すぎる場合は… */
  text-overflow: ellipsis; /* ← …で省略表示 */
}

/* 金額 */
.price-check .price {
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.price-check .price:hover {
  opacity: 0.7;
}

/* CHECKボタン */
.price-check .check-btn {
  background-color: #000;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: opacity 0.2s ease;
}

.price-check .check-btn:hover {
  opacity: 0.7;
}

/* 金額＋Check */
.price-check {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* 金額とcheckが折れないように */
}

/* スマホ（500px以下）の場合 */
@media (max-width: 600px) {
  /* 親を縦並び＆テキスト中央に */
  .product-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important; /* inline-flex を中央にするために必要 */
    gap: 6px !important;
  }

  /* 商品名は幅いっぱいにして中央テキスト、折返し可 */
  .product-name {
    flex: unset !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 1rem !important;
    white-space: normal !important; /* 折り返しOK */
    overflow: visible !important;
    text-overflow: unset !important;
    margin: 0 !important;
  }

  /* 金額＋ボタンを“かたまり”として横並びにし、親の text-align で中央にする */
  .product-row .price-check {
    display: inline-flex !important;     /* inlineにして親の text-align:center に従わせる */
    justify-content: center !important;  /* 万一のため内部も中央 */
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;              /* 横幅を必要最小限に */
    margin: 6px auto 0 auto !important;  /* 親の中央に寄せる */
    white-space: nowrap !important;      /* 金額とボタンは1行で保つ */
  }

  /* 子要素が勝手に伸びたりfloatしたりしている場合をリセット */
  .product-row .price-check .price,
  .product-row .price-check .check-btn {
    display: inline-block !important;
    margin: 0 !important;
    float: none !important;
    vertical-align: middle !important;
  }
}
/* =====================================
   ヘッダー画像
===================================== */
.main-header picture,
.main-header picture img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.main-header {
  background-color: #fff; /* 背景色つける */
  width: 100%;
  overflow: hidden;
  padding-bottom: 0px; /* ← margin-bottom から変更 */
}

/* =====================================
   イントロダクションセクション
===================================== */

/* intro-message の背景を new-items と揃える */
/* intro-message セクション全体 → 背景を画面いっぱい */
.intro-message {
  background-color: #fff;
  padding: 180px 20px;   /* 内側に余白 */
  text-align: center;
  margin: 0;             /* ← margin-bottom を削除 */
}

/* 明朝体に変更（和文に合う上品な明朝系フォント） */
.new-items p,
.price {
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HGS明朝E", serif;
  font-weight: 400;
}

/* pタグだけ制御して読みやすく */
.intro-message p {
  max-width: 800px;            /* テキスト幅を制御 */
  margin: 0 auto;              /* 中央寄せ */
  text-align: center;          /* 中央揃え */
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HGS明朝E", serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 2;
  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;
}

.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 {
  background-color: #fff;
  width: 100%;        /* 画面いっぱいに広げる */
  padding: 60px 16px; /* 上下に余白を追加、左右は16pxだけ */
  box-sizing: border-box;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1200px;  /* ← グリッド自体の幅を制御 */
  margin: 0 auto;     /* 中央寄せ */
}

.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;
}




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

@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;
}

/* スマホ用（幅600px以下） */
@media (max-width: 600px) {
  /* イントロメッセージ */
  .intro-message p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  /* 金額（BUYボタン横の価格） */
  .price-box .price {
    font-size: 0.9rem; /* 小さめに調整 */
  }

  /* 商品紹介テキスト */
  .description {
    padding: 0 3rem;  /* 左右に余白 */
    font-size: 0.95rem; /* 文字サイズはそのまま感覚 */
    line-height: 1.6;
  }

  /* サムネイルの色見本 */
  .thumb-colors .color-swatch {
    width: 10px;
    height: 10px;
  }
}

/* スマホの時だけ改行させるクラス*/
.br-sp {
    display: none;
}

@media (max-width: 600px) {
    .br-sp {
        display: block;
    }
}

@media (max-width: 600px) {
  /* intro-message の上下余白を減らす */
  .intro-message {
    padding: 60px 16px;  /* ← 180px → 60px に変更 */
    margin: 1rem 0 1.5rem; /* ← margin も調整 */
  }

  /* 商品ブロック（.item）の下余白を少なくする */
  .new-items .item {
    margin-bottom: 2rem;
  }

  /* 商品2とサムネイルセクションの間を詰める */
  .thumbnail-section {
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  /* サムネイルセクションの上下余白をさらに減らす */
  .thumbnail-section {
    margin-top: 5rem;   /* ← 商品2との間をもっと詰める */
    padding-top: 20px;  /* ← デフォルト60pxから減らす */
    padding-bottom: 40px; /* 下は少し余裕残す */
  }
}
