/* ============================================================
   フッター ＋ スティッキーフッター
   ------------------------------------------------------------
   前提: base.css で以下の変数が定義されていること
     --main #057bc0 / --sub #fbee2e / --dark #1a1a1a
     --cta #06C755 / --navy #0a1a2e
   クラス名は全て ft- / sc- 接頭辞。他ページと絶対に衝突しません。
   ============================================================ */

/* ---------- フッター本体 ---------- */
#site-footer {
  background: var(--navy);
  color: #fff;
  padding: 72px 24px 32px;
  /* スティッキーフッターに隠れないための余白 */
  padding-bottom: calc(32px + var(--sticky-h, 60px));
}

.ft-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- 上段：ブランド ＋ ナビ ---------- */
.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* --- 左：ブランド --- */
.ft-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.ft-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.ft-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .06em;
  margin-bottom: 22px;
}

.ft-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.ft-contacts a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  transition: color .2s;
}
.ft-contacts a:hover { color: var(--sub); }
.ft-contacts svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .8;
}
.ft-contacts em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  margin-top: 3px;
  letter-spacing: .02em;
}

/* --- LINEボタン --- */
.ft-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: opacity .2s, transform .2s;
}
.ft-line-btn:hover { opacity: .9; transform: translateY(-1px); }
.ft-line-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* --- 右：ナビ --- */
.ft-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 44px;
}

.ft-nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--sub);
  margin: 0 0 16px;
}

.ft-nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ft-nav-group a {
  font-size: 13px;
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  transition: color .2s;
}
.ft-nav-group a:hover { color: #fff; }

/* ---------- 規約類 ---------- */
.ft-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 24px 0 18px;
}
.ft-legal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.ft-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: color .2s;
}
.ft-legal a:hover { color: rgba(255, 255, 255, .85); text-decoration: underline; }

.ft-company {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .04em;
}

/* ---------- コピーライト ---------- */
.ft-copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, .32);
  letter-spacing: .04em;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ============================================================
   スティッキーフッター
   ============================================================ */
/* ★出し入れ（assets/js/sticky.js が .is-hidden を付け外しします）
   ヒーローのあるページでは、最初は画面の外に置いておきます。
   JSが動かなければ .is-hidden が付かないので、出たままになります。 */
.sticky-cta-bar {
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}
.sticky-cta-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta-bar { transition: opacity .2s ease; }
  .sticky-cta-bar.is-hidden { transform: none; }
}

.sticky-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .22);
}

.sc-msg {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  letter-spacing: .03em;
}
.sc-hl { color: var(--sub); font-weight: 900; }
.sc-rest::before { content: " — "; }

.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s;
}
.sc-btn:hover { opacity: .9; transform: translateY(-1px); }
.sc-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .ft-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ft-nav { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 600px) {
  #site-footer { padding: 52px 20px 24px; padding-bottom: calc(24px + var(--sticky-h, 64px)); }

  .ft-nav { grid-template-columns: 1fr; gap: 0; }

  /* スマホではナビをアコーディオン風に区切って縦積み */
  .ft-nav-group {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .ft-nav-group:first-child { border-top: 1px solid rgba(255, 255, 255, .08); }
  .ft-nav-title { margin-bottom: 12px; }
  .ft-nav-group ul { gap: 12px; }
  .ft-nav-group a { font-size: 14px; }

  .ft-line-btn { display: flex; justify-content: center; }

  .ft-legal { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0 16px; }
  .ft-legal ul { flex-direction: column; gap: 12px; }
  .ft-legal a { font-size: 13px; }

  /* スティッキー：文言を省略してボタンを主役に */
  .sticky-cta-bar { padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .sc-msg { font-size: 12px; line-height: 1.35; }
  .sc-rest { display: none; }
  .sc-btn { padding: 10px 18px; font-size: 13px; }
}

@media (max-width: 360px) {
  .sc-msg { font-size: 11px; }
  .sc-btn { padding: 10px 14px; }
}

/* 動きを減らす設定の人には transform を効かせない */
@media (prefers-reduced-motion: reduce) {
  .ft-line-btn:hover, .sc-btn:hover { transform: none; }
}
