@charset "UTF-8";

/* =========================================================
   [ Common Footer ] ベース
========================================================= */
.site-footer {
  position: relative;
  width: 100%;
  min-height: 740px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background-color: #2b2b2b; /* 画像読込前のフォールバック */
}


/* =========================================================
   [ Common Footer ] 背景スライダー（CSS無限スクロール）
   仕組み：画像セットを2回並べ、トラック全体を -50% 移動。
   -50% ＝ セット1枚分ちょうどなので、継ぎ目なくループする。
========================================================= */
.footer-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.footer-slide-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: footerScroll 60s linear infinite;
  will-change: transform;
}

/* PCは1枚あたり画面幅の約1/3（＝常時3枚見える） */
.footer-slide {
  flex: 0 0 33.3333vw;
  height: 100%;
}
.footer-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes footerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* セット1枚分ぴったり */
}

/* ホバーで一時停止（上品にじっくり見せる） */
/* .site-footer:hover .footer-slide-track {
  animation-play-state: paused;
} */


/* =========================================================
   [ Common Footer ] 暗幕オーバーレイ
========================================================= */
.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(111, 109, 109, 0.2) 0%,
    rgba(120, 119, 119, 0.1) 100%
  );
}


/* =========================================================
   [ Common Footer ] コンテンツ
========================================================= */
.footer-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 65px;
  padding: 220px 0 100px;
}


/* --- ナビ --- */
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 33px;
  flex-wrap: wrap;
}
.footer-nav-list a {
  color: #ffffff;
  font-family: 'Marcellus', serif;
  font-size: 16px;
  line-height: 25px;
  text-decoration: none;
  position: relative;
  transition: opacity 0.3s ease;
}
.footer-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.footer-nav-list a:hover::after {
  width: 100%;
}

/* ONLINE SHOP（枠線ボタン） */
.footer-shop {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  color: #ffffff;
  font-family: 'Marcellus', serif;
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
  border: 1px solid #ffffff;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.footer-shop:hover {
  background-color: #ffffff;
  color: #1F1F1F;
}


/* --- SNS --- */
.footer-sns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.footer-sns a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}
.footer-sns img {
  width: auto;
  height: 26px;
  object-fit: contain;
  display: block;
}


/* --- コピーライト --- */
.footer-copy {
  color: #ffffff;
  font-family: 'Marcellus', serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin: 0;
}

/* =========================================================
   [ Common Footer ] Page Top（横書き・スタイリッシュ矢印）
========================================================= */
.footer-pagetop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 40px;
  text-decoration: none;
}

/* 矢印：上向きの細い縦線＋矢じり（少し長め・スタイリッシュ） */
.pagetop-arrow {
  width: 1px;
  height: 64px;
  background-color: #ffffff;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.pagetop-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  transform: translateX(-50%) rotate(45deg);
  transform-origin: center;
}
.footer-pagetop:hover .pagetop-arrow {
  transform: translateY(-6px);
}

/* テキスト：横書きに変更 */
.pagetop-text {
  color: #ffffff;
  font-family: 'Prata', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  /* writing-mode を撤去して横書きに */
}
.footer-slide-track {
  display: flex;
  height: 100%;
  width: max-content;
  /* PHPで出力した --scroll-time を読み込む */
  animation: footerScroll var(--scroll-time, 60s) linear infinite;
  will-change: transform;
}

/* =========================================================
   [ スマホ対応 ] レスポンシブ調整
========================================================= */
@media (max-width: 768px) {

  /* スマホは移動距離が3倍になるため、アニメーション時間も3倍にして速度をPCと揃える */
  .footer-slide-track {
    animation-duration: calc(var(--scroll-time, 60s) * 3);
  }

  
  .site-footer {
    min-height: 560px;
  }

  /* スマホは1枚が見える状態（100vw） */
  .footer-slide {
    flex: 0 0 100vw;
  }

  .footer-content {
    padding: 0 20px;
  }

  .footer-inner {
    padding: 80px 0 30px;
    gap: 24px;
  }

  /* ナビは2列組み（画像2レイアウトに合わせる） */
  .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 60px;
    row-gap: 14px;
  }
  .footer-nav-list a {
    font-size: 15px;
  }

  .footer-sns {
    gap: 28px;
    flex-wrap: wrap;
  }
  .footer-sns img {
    height: 24px;
  }

  /* Page Top はスマホでも右下に置く */
  .footer-pagetop {
    padding-bottom: 30px;
  }
}


/* =========================================================
   [ アクセシビリティ ] モーション低減
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .footer-slide-track {
    animation: none;
  }
}

@media (max-width: 768px) {
  .pagetop-text {
    font-size: 12px;        /* 少し小さく */
    white-space: nowrap;    /* 改行を禁止（これが決定打） */
  }
}
