@charset "utf-8";

/* ヒーロー/////////////////////////// */

.hero-sub {
 background-image: url("../images/ショーケース2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  height: 60vh; /* 画面の高さ */
  display: flex;
  align-items: center;
  text-align: center;

  position: relative;
  color: #fff;
}

/* 黒のオーバーレイ */
.hero-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* 文字を前面に */
.hero-sub .container {
  position: relative;
  z-index: 2;
}

/* タイトル */
.hero-sub .section-title {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* サブタイトル */
.hero-sub .section-subtitle {
  font-size: 16px;
  margin-top: 10px;
  opacity: 0.9;
}

/* グリッド安定化 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* カード */
.product-item a {
  display: block;
  text-decoration: none;
  color: #111;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* 画像エリア */
.image-wrapper {
  width: 100%;
  height: 220px;           
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;     
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* 画像 */
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;    
  padding: 10px;
  transition: transform 0.4s ease;
}

.info {
  margin-top: 10px;
  min-height: 60px;     
    display: flex;
  flex-direction: column;
  gap: 4px;
}  


.name {
  font-weight: 600;
  font-size: 16px;
}

.product-item a:hover .name {
  color: #000;
}

.price {
  font-size: 14px;
  color: #555;
  margin-top: 0px;
  letter-spacing: 0.5px;
}



/* スマホ */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* タグ */
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* hover/////////////////////// */

/* カード全体ホバー */
.product-item a:hover {
  transform: translateY(-5px);
}

/* 画像だけ拡大 */
.image-wrapper img {
  transition: 0.4s ease;
}

.product-item a:hover .image-wrapper img {
  transform: scale(1.05);
}


/* modal///////////////////////////// */

/* 背景 */

body.modal-open {
  overflow: hidden;
}

.modal {
  display: flex;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: background 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* 表示時 */
.modal.show {
  background: rgba(0,0,0,0.8);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
}
/* 画像アニメーション */
.modal-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80vh;
  border-radius: 8px;

  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-description {
  color: #fff;
 font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.8;
  text-align: center;
  padding: 0 20px;
}

/* 初期状態 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

/* 表示状態 */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}