/*
 * footer.css - フッターセクション
 *
 * 構造: マゼンタ背景の上に白い半円が被さるデザイン。
 *       半円は .site-footer__curve の背景画像として描画。
 *
 * ┌──────────────────────────────────────┐
 * │  .site-footer (マゼンタ背景)           │
 * │          ╭─────────────╮              │
 * │       ╭─╯               ╰─╮            │  ← background-image (白い半円)
 * │     ╭─╯     ロゴ / SNS     ╰─╮        │
 * │   ╭─╯       コピーライト       ╰─╮     │
 * └───╯─────────────────────-──────╰──────┘
 */

/* ============================================================
   フッター全体: マゼンタ背景
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text);
  padding: 0;
  position: relative;
}

/* ============================================================
   白い半円コンテナ
   ============================================================ */
.site-footer__curve {
  position: relative;
  background-color: transparent;
  background-image: url("../../img/top/contacts/circle.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: clamp(640px, 72vw, 1200px) auto;
  /* ↓ コンテンツ上部の余白。弧の頂点とロゴの間隔を調整する */
  padding: clamp(88px, 9vw, 140px) 5vw 10px;
}

/* ============================================================
   白い半円（背景画像）

   調整ガイド:
   - background-size の clamp で横幅を調整
   - 上余白は .site-footer__curve の padding-top で調整
   ============================================================ */

/* ============================================================
   フッターコンテンツ
   ============================================================ */
.site-footer__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: var(--space-lg); */
  text-align: center;
}

/* ロゴ画像領域
   本番対応: footer.php 内の <img> の src を差し替えるだけ */
.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__logo-img {
  display: block;
  width: clamp(200px, 25vw, 360px);
  height: auto;
  margin: 0 auto;
}

/* SNSアイコン: 黒丸 + 白アイコン */
.site-footer__social {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  transition: opacity var(--transition-base);
}

.site-footer__social-link:hover {
  opacity: 0.7;
}

.site-footer__social-link svg {
  width: 24px;
  height: 24px;
}

/* コピーライト */
.site-footer__copy {
  font-family: var(--font-en-ui);
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-top: var(--space-md);
  letter-spacing: 0.05em;
}

@media (min-width: 1800px) {
  .site-footer__curve {
    /* Ultra-wide only: push the arc slightly downward to avoid top overflow */
    background-position: center calc(100% + 28px);
    padding-top: 156px;
  }
}
