/* ==========================================================================
   top-custom.css
   TOPページ固有スタイル
   ========================================================================== */

/* ── サービスカード（委託販売・おむすびや） ── */
.service-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-link-card {
  position: relative;
  display: flex;
  align-items: center;
  padding: 48px 44px;
  background: #fff;
  border: 1px solid #e4ddd3;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-link-card:hover {
  border-color: #bbb;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

/* 左：テキスト（右側画像が重ならないよう幅制限） */
.service-link-card__body {
  max-width: 58%;
  position: relative;
  z-index: 2;
}

/* 英字ラベル */
.service-link-card__en {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Allura", cursive;
  font-size: 2rem;
  color: #aaa;
  margin-bottom: 10px;
}

.service-link-card__en::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #ccc;
  flex-shrink: 0;
}

/* 日本語タイトル */
.service-link-card__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #3d3d3d;
  margin-bottom: 14px;
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.4;
}

/* 説明文 */
.service-link-card__desc {
  font-size: 1.4rem;
  line-height: 1.85;
  color: #888;
}

/* 右：ビジュアルエリア（絶対配置） */
.service-link-card__visual {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* 丸い画像（通常時は非表示） */
.service-link-card__thumb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.service-link-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-link-card:hover .service-link-card__thumb {
  opacity: 1;
  transform: translateX(0);
}

/* 矢印ボタン（通常時は非表示） */
.service-link-card__arrow {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2e2e2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.service-link-card:hover .service-link-card__arrow {
  opacity: 1;
  transform: scale(1);
}

/* 通常時のドット */
.service-link-card__dot {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.service-link-card:hover .service-link-card__dot {
  opacity: 0;
}

/* SP：画像非表示・シンプルカード */
@media (max-width: 896px) {
  .service-cards__grid {
    grid-template-columns: 1fr;
  }

  .service-link-card {
    padding: 36px 28px;
  }

  .service-link-card__body {
    max-width: 100%;
  }

  .service-link-card__thumb,
  .service-link-card__arrow,
  .service-link-card__dot {
    display: none;
  }
}

/* ── 商品紹介：ギャラリーグリッド ── */
.products-feature {
  background: #fff;
  padding-top: 60px;
}

.products-feature__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 40px;
  text-align: center;
}

.products-feature__header .heading__ja {
  font-size: 1.4rem;
  color: #888;
  letter-spacing: 0.1em;
}

/* 4列グリッド */
.products-feature__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

/* 画像アイテム */
.products-feature__item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.products-feature__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.products-feature__item:hover img {
  transform: scale(1.04);
}

/* ボタン枠（右下） */
.products-feature__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  aspect-ratio: 1 / 1;
  background: #f9f7f4;
}

.products-feature__link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.products-feature__link-line {
  display: block;
  width: 32px;
  height: 1px;
  background: #999;
  transition: width 0.3s ease;
}

.products-feature__link-item:hover .products-feature__link-line {
  width: 48px;
}

.products-feature__link-text {
  font-size: 1.25rem;
  color: #666;
  letter-spacing: 0.1em;
}

/* SP：2列 */
@media (max-width: 896px) {
  .products-feature__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ONLINE SHOP ボーダーボタン */
.btn-border {
  display: inline-block;
  padding: 18px 60px;
  border: 1px solid #aaa;
  background: transparent;
  font-family: "Allura", cursive;
  font-size: 1.3rem;
  letter-spacing: 0.35em;
  text-decoration: none;
  background: linear-gradient(90deg, #b8964a 0%, #2e2e2e 55%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-border:hover {
  background: #333;
  border-color: #666;
  outline: 1px solid #666;
  outline-offset: -6px;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

/* VIEW MORE ボタン */
.btn-viewmore {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.btn-viewmore__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #9E9E9E;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.btn-viewmore:hover .btn-viewmore__circle {
  background: #555;
}

.btn-viewmore__text {
  font-size: 1.6rem;
  font-family: "Allura", cursive;
  letter-spacing: 0.3em;
  color: #333333;
}

/* お知らせカード */
.card-blog__date {
  font-size: 1.2rem;
}

.card-blog__title {
  color: #333333;
  font-size: 1.3rem;
  font-weight: 500;
}

/* MV テキストエリア：中央揃え（縦書き対応） */
.mv__text-side {
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

/* MV キャッチコピー：縦書き・明朝体 */
.mv__catch {
  writing-mode: vertical-rl;
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 2;
}

/* MV高さ調整（PC：ヘッダーオーバーレイ・左右分割レイアウト） */
#mainvisual {
  min-height: 100vh;
}

/* slideshow は flex子要素として親の高さを継承するため min-height で保険 */
#slideshow {
  min-height: 100vh;
}


/* ==========================================================================
   SP（max-width: 896px）：FV全面画像オーバーレイレイアウト
   ─────────────────────────────────────────────────────
   site.css SP ルールを以下の順で上書き：
     1. #mainvisual      → position:relative / 100svh / flex-direction:row に戻す
     2. #slideshow       → absolute で FV 全面に敷く
     3. .mv__text-side   → absolute / 背景なし / 画像上にオーバーレイ
     4. .mv__catch       → 画像上でも読める色・サイズに調整
   ========================================================================== */
@media (max-width: 896px) {

  /* 1. FVコンテナ：高さ 100svh・重ね合わせ基準 */
  #mainvisual {
    position: relative;
    height: 100svh;
    min-height: 100svh;
    flex-direction: row;   /* site.css の column を解除 */
    overflow: hidden;
  }

  /* 2. 画像エリア：FV全面を覆う絶対配置 */
  #slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: unset;     /* site.css の 260px を解除 */
    flex: none;
  }

  /* 3. テキストエリア：背景なし・画像上に重ねる */
  .mv__text-side {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;  /* ベージュ背景を解除 */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  /* 4. キャッチコピー：画像上での視認性調整 */
  .mv__catch {
    font-size: 2.4rem;
    color: #3d3d3d;
    margin-bottom: 0;
    letter-spacing: 0.25em;
  }
}
