/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
}

/* ── フッターINDEX ────────────────────── */
.footer-index {
  text-align: center;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid #ffffff; /* 不透明な白 */
}

.footer-index h3 {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid #ffffff; /* INDEXタイトル下の白線 */
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding-top: var(--space-sm);
}

.footer-nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.footer-nav br {
  display: none; /* 不要になったので非表示 */
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  transition: color var(--dur-fast);
}

/* ホバー時に水色 */
.footer-nav a:hover {
  color: #def0ff;
}

/* ── フッターロゴエリア ────────────────────── */
.footer-logo-area {
  text-align: center;
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column; /* 縦並び */
  align-items: center;
  gap: 24px;
}

/* 吹き出し（CSSで作成）*/
.footer-speech-bubble {
  display: inline-block;
  background: var(--clr-white);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  position: relative;
  margin-bottom: 24px;
}

/* 吹き出しの三角 */
.footer-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--clr-white);
}

.footer-speech-text {
  line-height: 1.8;
}

/* 上段テキスト「旅行業者様のための」*/
.footer-speech-top {
  font-size: 15px;
  letter-spacing: 0.2em;
  color: #333333; /* 黒 */
  font-weight: 700; /* Bold */
  display: block;
}

/* 下段テキスト「介護タクシー手配サービス」*/
.footer-speech-highlight {
  color: var(--clr-primary);
  font-weight: 700;
  font-size: 19px;
  display: block;
}

/* ロゴ */
.footer-logo {
  display: inline-block;
  transition: transform var(--dur-fast);
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo-symbol {
  width: 120px;
  height: auto;
  margin: 0 auto 8px;
}

.footer-logo-type {
  width: 200px;
  height: auto;
  margin: 0 auto;
}

/* コピーライト */
.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ── トップへ戻るボタン ────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-btn);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ホバー時に背景色を青に変更 */
.back-to-top:hover {
  background: var(--clr-primary);
  box-shadow: 0 6px 24px rgba(84, 136, 211, 0.4);
}

/* アイコン画像 */
.back-to-top-icon {
  width: 24px;
  height: 24px;
  transition: opacity var(--dur-fast);
}

/* 青アイコン（デフォルト表示）*/
.back-to-top-icon-blue {
  opacity: 1;
}

/* 白アイコン（ホバー時表示）*/
.back-to-top-icon-white {
  position: absolute;
  opacity: 0;
}

.back-to-top:hover .back-to-top-icon-blue {
  opacity: 0;
}

.back-to-top:hover .back-to-top-icon-white {
  opacity: 1;
}

/* ── レスポンシブ ────────────────────────── */
@media (max-width: 900px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: var(--space-lg) 0 var(--space-sm);
  }

  .footer-speech-bubble {
    font-size: 0.82rem;
    padding: 12px 24px;
  }

  .footer-logo-symbol {
    width: 100px;
  }

  .footer-logo-type {
    width: 160px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}
