/* Footer
 * 仕様: 基本設計_共通パーツ.docx
 * - 中央ロゴ + 横並びナビ + ENQUIRE NOW + 右端紺帯のSNS縦並び + 法務リンク + Copyright
 */

.site-footer {
  position: relative;
  padding: clamp(40px, 4vw, 56px) 0 clamp(40px, 5vw, 64px);  /* 上罫線→ロゴ ≈53px */
  background: var(--c-white);
  color: var(--c-black);
  border-top: 1px solid rgba(0, 0, 0, 0.14);                 /* モック: フッター上部の罫線 */
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2.4vw, 32px);
  text-align: center;
}

/* モック: 本体ブロックと法務リンクの間の罫線（全幅） */
.site-footer__divider {
  width: 100%;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  margin: clamp(28px, 3.5vw, 48px) 0;
}
.site-footer__legal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.5vw, 18px);
  text-align: center;
}

.site-footer__logo img {
  width: clamp(180px, 18vw, 240px);
  height: auto;
}

/* Footer nav (26/26 D, 16/16 M) */
.site-footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 3vw, 60px);
}
.site-footer__nav-link {
  font-family: var(--f-en-serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.2rem);
  line-height: clamp(1.1rem, 2vw, 1.2rem);
  color: var(--c-navy);
  transition: color var(--t-base);
}
.site-footer__nav-link:hover { color: var(--c-red); }

/* ENQUIRE NOW button */
.btn-enquire {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 60px;
  background: var(--c-navy);
  color: var(--c-white);
  font-family: var(--f-en-serif);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1;
  transition: background var(--t-base);
}
.btn-enquire:hover { background: var(--c-red); }
.btn-enquire .arrow { transition: transform var(--t-base); }
.btn-enquire:hover .arrow { transform: translateX(8px); }

/* Footer legal links (15/12) */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 2vw, 32px);
  font-family: var(--f-jp-mincho);
  font-size: clamp(12px, 1.2vw, 15px);   /* 仕様: D15 / M12 */
}
.site-footer__legal a:hover { color: var(--c-red); }

/* Copyright (13 / 9) */
.site-footer__copyright {
  font-family: var(--f-en-serif);
  font-size: clamp(9px, 1vw, 13px);
  color: var(--c-gray);
  letter-spacing: 0.02em;
}

/* SNS column (右端 紺帯) */
.site-sns {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(50px, 5vw, 64px);
  background: var(--c-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* #94: アイコン群を帯内で中央揃え */
  padding: 24px 0;
  gap: 24px;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
  transition: filter var(--t-base);
}
.site-sns:hover { filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.3)); }

.site-sns__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 2.4vw, 32px);
  height: clamp(24px, 2.4vw, 32px);
  color: var(--c-white);
  transition: transform var(--t-base);
}
.site-sns__link:hover { transform: translate(4px, 4px); }
.site-sns__link svg { width: 100%; height: 100%; fill: currentColor; }

@media (max-width: 768px) {
  .site-footer { padding-right: clamp(50px, 5vw, 64px); }
  .site-footer__nav-list { gap: 16px; flex-direction: column; }
}

/* Item 11 (Wave J) / #256 / Q2 (2026-07-04): 右下 ページトップ ボタン
 * 旧サイト japan-tourism.net 準拠: 60x60 円形 + 半透明黒 + 白枠
 * 白シェブロン矢印 (上部) + "Top" テキスト (下部) を縦積み
 * Source: japan-tourism.net production `.scroll-to-top-btn`
 *   background rgba(0,0,0,.8); border 2px solid #fff; border-radius 60px;
 *   padding 28px 10px 10px; text 16px/16 white center; ::before 9px chevron
 *   at top:28px left:28px (rotate 45deg); hover #28324f
 */
.for-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 60;
  display: block;
  width: 60px;
  height: 60px;
  padding: 32px 4px 6px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--c-white);
  border: 2px solid var(--c-white);
  border-radius: 60px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  transition: opacity 0.3s, background 0.2s, border 0.2s;
}
.for-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.for-top:hover {
  background: #28324f;
  border-color: #28324f;
}
/* 旧サイト準拠: ::before で白シェブロン矢印 (border 2辺 + rotate 45deg)
 * Q2: 60px 円の上部 (top:18px 中央) に配置、テキストの上に表示 */
.for-top::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-left: 2px solid var(--c-white);
  border-top: 2px solid var(--c-white);
  transform: rotate(45deg);
  transform-origin: center;
  transition: border-color 0.2s;
}
.for-top:hover::before {
  border-color: var(--c-white);
}
/* Q2: arrow span は視覚的に非表示 (::before で描画済み、a11y は aria-label で担保) */
.for-top__arrow {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Q2: "Top" ラベルは可視 (旧サイトと同一) */
.for-top__label {
  display: block;
  color: var(--c-white);
  text-align: center;
  line-height: 1;
}
@media (max-width: 768px) {
  .for-top {
    right: 20px;
    bottom: 20px;
    transform: scale(0.8);
    transform-origin: 100% 100%;
  }
}
