@charset "utf-8";
/* CSS Document */
/* 一番上の画像エリア */
.top-kv{
  width: 100%;
  margin: 0;
  margin-top: 95px;
}

/* picture / img を「幅100%」「はみ出しなし」 */
.top-kv picture,
.top-kv img{
  display: block;
  width: 100%;
}

/* PC時だけ最大900pxで中央寄せ */
@media (min-width: 768px){
  .top-kv{
    max-width: 750px;
	margin: 0 auto;
	margin-top: 95px;
  }
}

/* 縦横比を保ったままトリミングしたい場合（必要なら） */
.top-kv img{
  height: auto;          /* 基本はこれでOK */
  object-fit: cover;     /* トリミングしたい時に効く */
}

/* もし上に変な隙間が出るときの保険（bodyの余白を消す） */
body{
  margin: 0;
}

.kv-detail{
  width: 100%;
  margin: 10px auto 0;     /* ← KVとの間隔 */
  text-align: center;     /* 中央配置 */
  transform: translateX(-110px);
}

/* リンク */
.kv-detail-link{
  display: inline-block;  /* 画像サイズぴったり */
}

/* 画像 */
.kv-detail img{
  display: block;
  max-width: 150px;       /* PC時のサイズ（調整OK） */
  width: 50%;             /* SPでは自然に小さく */
  margin: 0 auto;
  transition: transform .3s ease, box-shadow .3s ease;
}

/* PC：ホバー時に拡大 */
@media (hover: hover){
  .kv-detail-link:hover img{
    transform: scale(1.08);
  }
}

/* グリッド全体 */
/* 全体：赤背景の帯 */
.image-text-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 28px);
  padding: clamp(18px, 3vw, 32px) 12px;
  width: 100%;
  margin: 0 auto;
  margin-top: 40px;
}

/* 各アイテム（リンク） */
.image-text-item{
  text-decoration: none;
  color: inherit;
}

/* figure：縦方向に中央揃え */
.image-text-fig{
  margin: 0;
  display: grid;
  justify-items: center;
  align-content: end;                  /* 下の文字位置を揃える */
  gap: clamp(8px, 1.2vw, 14px);
}

/* 画像：高さを揃えて見た目を統一 */
.image-text-fig img{
  width: 100%;
  max-width: 260px;                    /* ← サイズ調整はここ */
  height: clamp(120px, 18vw, 170px);   /* 3つの高さを揃える */
  object-fit: contain;
  display: block;
}

/* 下の白文字 */
.image-text-fig figcaption{
  color: #fff;
  font-size: clamp(16px, 3.6vw, 26px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
}

/* PCだけ少し余裕＆中央寄せを強化 */
@media (min-width: 768px){
  .image-text-grid{
    max-width: 900px;                  /* PCは900pxで止める */
  }
}

/* ホバーでふわっと拡大（PCのみ） */
@media (hover: hover){
  .image-text-item:hover img{
    transform: scale(1.05);
  }
}

.sub-title {
  margin: 40px auto; /* 上下余白はお好みで */
}

.sub-title img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== SP：画面いっぱい ===== */
@media (max-width: 767px) {
  .sub-title {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

/* ===== PC：画面いっぱいにしない ===== */
@media (min-width: 768px) {
  .sub-title {
    max-width: 400px; /* ← 好きな幅に調整してOK（800〜1000pxおすすめ） */
    padding: 0 20px;  /* ちょい余白で上品に */
  }
}

.bottle-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PCは4列 */
  gap: 24px 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 16px;
}

.bottle-item{
  text-align: center;
}

.bottle-item img{
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 20px;
}

.bottle-item p{
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
}

/* スマホ */
@media (max-width: 767px){
  .bottle-grid{
    grid-template-columns: repeat(2, 1fr); /* ← 縦2列 */
    gap: 20px 12px;
    padding: 32px 20px;
  }

  .bottle-item img{
    max-width: 160px;
  }

  .bottle-item p{
    font-size: 12px;
  }
}


.bottle-img{
  position: relative;
  width: fit-content;
  margin: 0 auto 10px;
}

.bottle-img img{
  display: block;
  transition: opacity 0.3s ease;
}

/* hover用画像を上に重ねる */
.bottle-img .img-hover{
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* ホバー時に切り替え */
.bottle-item:hover .img-hover{
  opacity: 1;
}

.bottle-item:hover .img-default{
  opacity: 0;
}

.bottle-img .img-hover{
  opacity: 0;
}

/* ホバーできる端末だけ hover で切り替え */
@media (hover: hover) and (pointer: fine){
  .bottle-item:hover .img-hover{
    opacity: 1;
  }
  .bottle-item:hover .img-default{
    opacity: 0;
  }
}


@media (hover: none) and (pointer: coarse){
  .img-hover{
    display: none; /* ← 物理的に消す */
  }
}
