/* =============================================
   footer.css
   サイバーレジデンシャル株式会社
   フッター専用スタイル
   ============================================= */

/* ── Variables ─────────────────────────────── */
:root {
  --footer-bg: #5C3D2E;
  --footer-text: #ffffff;
  --footer-divider: rgba(255, 255, 255, 0.3);
  --footer-nav-sep: rgba(255, 255, 255, 0.4);
  --footer-link-hover: rgba(255, 255, 255, 0.7);
  --footer-btn-border: #ffffff;
  --footer-btn-hover-bg: #ffffff;
  --footer-btn-hover-text: #5C3D2E;
  --footer-main-pt: 80px;
  --footer-main-pb: 44px;
  --footer-bottom-pt: 18px;
  --footer-bottom-pb: 80px;
  --footer-logo-w: 120px;
  --footer-font-size-nav: 0.9375rem;
  /* 15px */
  --footer-font-size-small: 0.8125rem;
  /* 13px */
  --footer-btn-min-w-pc: 240px;
  --footer-transition: 0.2s ease;
}

/* =============================================
   14. CTA Link List Section
   ============================================= */

/* ── セクション外枠 ── */
.cta-list-link {
  margin-bottom: 140px;
}

/* ── インナーラッパー（max-width + グリッド） ── */
.cta-list-link__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* ── 各リンクカード ── */
.cta-list-link__item {
  position: relative;
  display: block;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
}

.cta-list-link__item:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ── オーバーレイ（疑似要素で暗幕） ── */
.cta-list-link__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s ease;
  z-index: 1;
}

.cta-list-link__item:hover::before {
  background-color: rgba(0, 0, 0, 0.50);
}

/* ── テキスト + 矢印 コンテンツ ── */
.cta-list-link__content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

/* テキスト */
.cta-list-link__text {
  font-size: var(--font-size-lg);
  /* 18px */
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
  flex: 1;
}

/* ── 矢印ボタン ── */
.cta-list-link__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.cta-list-link__item:hover .cta-list-link__arrow {
  background-color: #ffffff;
  color: var(--color-text);
}

.cta-list-link__item:nth-child(n+2) {
  border-left: 1px solid var(--footer-divider);
}

/* ── Responsive: SP（〜599px） ── */
@media (max-width: 599px) {
  .cta-list-link__inner {
    grid-template-columns: 1fr;
    padding-inline: var(--container-px-sp);
  }

  .cta-list-link__item {
    height: 240px;
  }

  .cta-list-link__item:nth-child(n+2) {
    border-left: none;
    border-top: 1px solid var(--footer-divider);
  }

  /* SP: テキスト左下・矢印右下 */
  .cta-list-link__content {
    align-items: flex-end;
    justify-content: space-between;
  }

  .cta-list-link__text {
    font-size: var(--font-size-base);
    /* 16px */
  }

  .cta-list-link__arrow {
    width: 36px;
    height: 36px;
  }
}

/* ── Responsive: Tablet（600px〜1023px） ── */
@media (min-width: 600px) and (max-width: 1023px) {
  .cta-list-link__item {
    height: 240px;
  }

  .cta-list-link__text {
    font-size: var(--font-size-base);
    /* 16px */
  }

  .cta-list-link__arrow {
    width: 36px;
    height: 36px;
  }
}


/* =============================================
   Site Footer — 全体
   ============================================= */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

/* =============================================
   メインフッターエリア
   ============================================= */
.footer-main {
  padding-top: var(--footer-main-pt);
  padding-bottom: var(--footer-main-pb);
}

.footer-main__inner {
  max-width: var(--content-max-width, 1216px);
  margin-inline: auto;
  padding-inline: var(--container-px-pc, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── ロゴ ────────────────────────────────── */
.footer-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--footer-transition);
}

.footer-logo a:hover {
  opacity: 0.75;
  text-decoration: none;
}

.footer-logo img {
  width: var(--footer-logo-w);
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── 会社情報 ───────────────────────────── */
.footer-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-style: normal;
  text-align: center;
  color: var(--footer-text);
}

.footer-company__name {
  font-size: var(--footer-font-size-nav);
  font-weight: 500;
}

.footer-company__address {
  font-size: var(--footer-font-size-small);
  opacity: 0.85;
}

/* ── ナビゲーション ─────────────────────── */
.footer-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.footer-nav ul li {
  display: flex;
  align-items: center;
}

/* | 区切り */
.footer-nav ul li+li::before {
  content: '|';
  color: var(--footer-nav-sep);
  padding-inline: 12px;
  font-size: 0.75rem;
  line-height: 1;
}

.footer-nav ul li a {
  display: block;
  padding-block: 6px;
  font-size: var(--footer-font-size-nav);
  font-weight: 400;
  color: var(--footer-text);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--footer-transition);
}

.footer-nav ul li a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* =============================================
   コピーライトバー
   ============================================= */
.footer-bottom {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--footer-divider);
  padding-top: var(--footer-bottom-pt);
  padding-bottom: var(--footer-bottom-pb);
}

.footer-bottom__inner {
  max-width: var(--content-max-width, 1216px);
  margin-inline: auto;
  padding-inline: var(--container-px-pc, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── プライバシーポリシー ｜ コピーライト ── */
.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: var(--footer-font-size-small);
  color: var(--footer-text);
}

.footer-privacy {
  color: var(--footer-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.5s ease;
}

.footer-privacy:hover {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
}

.footer-copyright__sep {
  padding-inline: 12px;
  opacity: 0.5;
  font-size: 0.75rem;
}

.footer-copyright__text {
  opacity: 0.85;
  white-space: nowrap;
}

/* ── ボタンエリア ────────────────────────── */
.footer-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--footer-btn-min-w-pc);
  padding: 20px 30px;
  background-color: var(--footer-btn-hover-bg);
  /* 白背景 */
  color: var(--footer-btn-hover-text);
  /* ブラウン文字 */
  font-size: var(--footer-font-size-nav);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--footer-btn-border);
  border-radius: 0;
  white-space: nowrap;
  transition:
    background-color var(--footer-transition),
    color var(--footer-transition);
  line-height: 1;
  border-radius: 4px;
}

.footer-btn:hover {
  background-color: transparent;
  /* 透明背景 */
  color: var(--footer-text);
  /* 白文字 */
  text-decoration: none;
}

/* =============================================
   14. CTA Link List Section
   ============================================= */

/* ── インナーラッパー（max-width + グリッド） ── */
.cta-list-link__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* ── 各リンクカード ── */
.cta-list-link__item {
  position: relative;
  display: block;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
}

.cta-list-link__item:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ── オーバーレイ（疑似要素で暗幕） ── */
.cta-list-link__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  transition: background-color 0.3s ease;
  z-index: 1;
}

.cta-list-link__item:hover::before {
  background-color: rgba(0, 0, 0, 0.50);
}

/* ── テキスト + 矢印 コンテンツ ── */
.cta-list-link__content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

/* テキスト */
.cta-list-link__text {
  font-size: var(--font-size-lg);
  /* 18px */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  flex: 1;
}

/* ── 矢印ボタン ── */
.cta-list-link__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.cta-list-link__item:hover .cta-list-link__arrow {
  background-color: #ffffff;
  color: var(--color-text);
}

/* ── Responsive: SP（〜599px） ── */
@media (max-width: 599px) {

  .cta-list-link {
    margin-bottom: 60px;
  }

  .cta-list-link__inner {
    grid-template-columns: 1fr;
  }

  .cta-list-link__item {
    height: 200px;
  }

  /* SP: テキスト左下・矢印右下 */
  .cta-list-link__content {
    align-items: flex-end;
    justify-content: space-between;
  }

  .cta-list-link__text {
    font-size: var(--font-size-base);
    /* 16px */
  }

  .cta-list-link__arrow {
    width: 36px;
    height: 36px;
  }
}

/* ── Responsive: Tablet（600px〜1023px） ── */
@media (min-width: 600px) and (max-width: 1023px) {
  .cta-list-link__item {
    height: 240px;
  }

  .cta-list-link__text {
    font-size: var(--font-size-base);
    /* 16px */
  }

  .cta-list-link__arrow {
    width: 36px;
    height: 36px;
  }
}

/* =============================================
   Responsive — SP（〜599px）
   ============================================= */
@media (max-width: 599px) {
  :root {
    --footer-main-pt: 48px;
    --footer-main-pb: 28px;
    --footer-bottom-pt: 18px;
    --footer-bottom-pb: 48px;
  }

  .footer-main__inner {
    padding-inline: var(--container-px-sp, 14px);
    gap: 20px;
  }

  /* ナビ: 縦1列・中央寄せ */
  .footer-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .footer-nav ul li+li::before {
    display: none;
  }

  .footer-nav ul li {
    text-align: center;
  }

  .footer-nav ul li a {
    padding: 12px 0;
    font-size: var(--footer-font-size-nav);
  }

  /* ボタン: 縦2列・横幅100% */
  .footer-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .footer-btn {
    width: 100%;
    min-width: unset;
    padding: 16px;
  }

  .footer-bottom__inner {
    padding-inline: var(--container-px-sp, 14px);
    gap: 16px;
  }

  .footer-copyright {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-copyright__sep {
    display: none;
  }
}

/* =============================================
   Responsive — Tablet（600px〜1023px）
   ============================================= */
@media (min-width: 600px) and (max-width: 1023px) {
  :root {
    --footer-main-pt: 64px;
    --footer-main-pb: 36px;
    --footer-btn-min-w-pc: 200px;
  }

  .footer-nav ul li+li::before {
    padding-inline: 8px;
  }

  .footer-nav ul li a {
    font-size: var(--footer-font-size-small);
  }
}