@charset "UTF-8";

/* ▼▼ このブロックは greeting.css に移動予定 ▼▼ */
.hero-greeting .global-nav ul li:nth-child(2) a {
  color: #CD4145 !important;
  font-family: "TazuganeGothicStdN-Medium";
}
/* ▲▲ greeting 専用ブロック ▲▲ */


/* 代表ご挨拶ページ用：ヒーローの高さを少し低くする */
.hero.hero-greeting {
  height: 55vh;        /* 画面の約半分の高さ。好みで 40〜70vh くらいに調整OK */
  max-height: 520px;   /* PCのとき高くなりすぎないよう上限をつける */
}

/* greeting.html の静的ヒーロー（クロスフェードを使わない） */
.hero-greeting {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-greeting-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
}


/* =======================================
   Products Layout
======================================= */

.products-layout {
  max-width: 90%;
  margin: 80px auto 120px;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}

/* =======================================
   Left : Local Navigation
======================================= */

.products-local-nav ul {
  list-style: none;
  padding: 0;
}

.products-local-nav li {
  border-bottom: 1px solid #e2e2e2;
}

.products-local-nav a {
  display: block;
  padding: 18px 0;
  font-family: "I-OTF明朝Pro M";
  font-size: 16px;
  color: #333;
  text-decoration: none;
}

.products-local-nav a:hover {
  color: #CD4145;
}

/* =======================================
   Right : Products Grid
======================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 20px;
}

/* =======================================
   Product Card
======================================= */

.product-card {
  cursor: pointer;

  /* animation initial state */
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* animation visible state */
.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =======================================
   Product Thumbnail
======================================= */

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;     /* 正方形を保証 */
  overflow: hidden;
  background: #f2f2f2;     /* 画像読み込み前の下地 */
  margin-bottom: 16px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* =======================================
   Product Image Hover Swap
======================================= */

/* 2枚重ねのために必要（他のカードにも害なし） */
.product-thumb {
  position: relative;
}

/* 通常の「1枚だけ」のカードは今まで通り表示 */
.product-thumb > img:not(.thumb-image) {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 切り替え対象（2枚重ね） */
.product-thumb .thumb-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 初期状態 */
.product-thumb .thumb-image.default {
  opacity: 1;
}

.product-thumb .thumb-image.hover {
  opacity: 0;
}

/* ホバー時 */
.product-card:hover .thumb-image.default {
  opacity: 0;
}

.product-card:hover .thumb-image.hover {
  opacity: 1;
}


/* =======================================
   Product Text
======================================= */

.product-name {
  font-family: "I-OTF明朝Pro M";
  font-size: 15px;
  margin: 0;
}

.product-price {
  margin-top: 3px;
  font-family: "TazuganeGothicStdN-Light";
  font-size: 12px;
}


.page-products .notice-pill { display: none; }







/* =======================================
   Responsive（スマホ / 製品一覧ページ）
======================================= */
@media screen and (max-width: 600px) {

  /* -----------------------------
     代表挨拶ページ：ヒーローバナー
  ----------------------------- */
  .hero-greeting {
    height: 260px !important;
  }

  .hero-greeting-image {
    width: 100%;
    height: 260px !important;
    object-fit: cover;

    transform: scale(1.4);          /* 画像のみ拡大 */
    object-position: center 20%;
    transform-origin: center top;
  }

  /* -----------------------------
     製品一覧：ローカルナビ非表示
  ----------------------------- */
  .products-local-nav {
    display: none;
  }

  /* -----------------------------
     製品一覧：タイトル・レイアウト
  ----------------------------- */
  .greeting-title {
    margin-bottom: 0;
  }

  .products-layout {
    margin-top: 0;
    grid-template-columns: 1fr;  /* 全体は1カラム */
    gap: 32px;
  }

  /* -----------------------------
     製品一覧：商品グリッド
  ----------------------------- */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 18px;   /* 縦 / 横 */
  }

  .product-name {
    font-size: 13px;
    line-height: 1.6;
  }

}
