/* =========================================================
   footer.css — サイトフッター（Figma 2219:6392, 1440x588）
   ========================================================= */
.c-footer {
  background: var(--c-blue-dark);
  color: var(--c-blue-pale);
}
.c-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: calc(var(--w-content) + 300px);
  margin: 0 auto;
  padding: 56px 150px;
}
.c-footer a {
  transition: opacity 0.2s var(--ease);
}

/* 掲載メディア */
/* 自動スクロールのカルーセル（同じ並びを2回出して、半分まで流したら最初に戻る） */
.c-footer__media {
  min-width: 0;
  max-width: 100%;
  height: 55px;
  overflow: hidden;
}
.c-footer__media-track {
  display: flex;
  width: max-content;
  animation: c-footer-media 40s linear infinite;
}

.c-footer__media li {
  flex: none;
  padding-right: 20px; /* gap だと -50% がずれるので padding で間隔 */
}
@keyframes c-footer-media {
  to {
    transform: translateX(-50%);
  }
}
.c-footer__media img {
  height: 55px;
  width: auto;
}

/* 上段 */
.c-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.c-footer__brand {
  width: 300px;
  flex: none;
  opacity: 0.8;
}
.c-footer__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.c-footer__desc {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.75;
}
.c-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0.8;
  white-space: nowrap;
}
.c-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.c-footer__col > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.c-footer__head {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
/* 見出し＝SPアコーディオンのトグル（PCでは見た目・動作なし） */
.c-footer__toggle {
  display: block;
  text-align: left;
  cursor: default;
}
.c-footer__chev {
  display: none;
}
.c-footer__col a,
.c-footer__col li {
  font-size: 12px;
  line-height: 1.5;
}
.c-footer__col a:hover {
  opacity: 0.7;
}
.c-footer__col--contact {
  align-items: flex-end;
  gap: 134px; /* Figma: お問い合わせの列の下 134px に協力会社募集 */
  min-height: 260px;
}
.c-footer__partner {
  text-decoration: underline;
  text-underline-position: from-font;
}
/* SP 専用メニュー（PC では非表示） */
.c-footer__spnav {
  display: none;
}

/* SNS */
.c-footer__sns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  opacity: 0.6;
}
.c-footer__sns a {
  display: block;
}
.c-footer__sns a:hover {
  opacity: 0.6;
}

/* コピーライト（Figma ftBar: 上罫線 0.5px の直下に文字。高さ 17.5px） */
.c-footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  border-top: 0.5px solid var(--c-blue-pale);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.6;
}
.c-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 27px;
}
.c-footer__bar small {
  font-size: inherit;
}
.c-footer__bar a:hover {
  text-decoration: underline;
}

@media (max-width: 1280px) {
  .c-footer__inner {
    padding: 56px 40px;
  }
  .c-footer__top {
    flex-wrap: wrap;
    gap: 32px 40px;
  }
  .c-footer__brand {
    width: 100%;
  }
  .c-footer__col--contact {
    min-height: 0;
    align-items: flex-start;
    gap: 24px;
  }
}
/* ---------- SP（Figma footer_sp 2444:8073, 375x810） ---------- */
@media (max-width: 767px) {
  .c-footer__inner {
    gap: 0;
    padding: 31px 0 13px;
  }
  /* 掲載メディア: 横1列（はみ出しは横スクロール） */
  .c-footer__media {
    height: 51px;
    margin: 0 21px;
  }
  .c-footer__media-track {
    align-items: center;
    height: 100%;
    animation-duration: 30s;
  }
  .c-footer__media li {
    padding-right: 16px;
  }
  .c-footer__media img {
    height: 44.5px;
    width: auto;
    max-width: none;
  }

  .c-footer__top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 15px;
  }
  .c-footer__brand {
    width: auto;
    padding: 0 20px 14px;
  }
  .c-footer__desc {
    margin-top: 12px;
  }
  .c-footer__zip {
    display: block; /* SP は郵便番号の後で改行（住所が1行に収まらないため） */
  }

  /* PC の列（事業内容・内装・外装・企業情報・お問い合わせ）は SP では出さず、階層メニューに置き換え */
  .c-footer__top > .c-footer__col {
    display: none;
  }
  .c-footer__spnav {
    display: block;
    overflow: hidden;
  }
  .c-footer__panel[hidden] {
    display: none;
  }
  .c-footer__panel.is-from-next {
    animation: c-footer-panel-next 0.3s var(--ease);
  }
  .c-footer__panel.is-from-prev {
    animation: c-footer-panel-prev 0.3s var(--ease);
  }
  .c-footer__panel[data-ftnav-panel="root"] {
    display: flex;
    flex-direction: column;
  }
  .c-footer__panel[data-ftnav-panel="root"][hidden] {
    display: none;
  }
  .c-footer__navlist > li {
    border-bottom: 1px solid var(--c-blue-pale);
  }
  .c-footer__navitem,
  .c-footer__back {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    opacity: 0.8;
  }
  .c-footer__navitem {
    justify-content: space-between;
    gap: 16px;
  }
  .c-footer__back {
    gap: 22px;
    border-bottom: 1px solid var(--c-blue-pale);
  }
  .c-footer__navchev,
  .c-footer__backchev {
    flex: none;
    width: 16px;
    height: 16px;
  }
  .c-footer__backchev {
    transform: rotate(180deg);
  }
  .c-footer__navitem:focus-visible,
  .c-footer__back:focus-visible {
    outline: 2px solid var(--c-blue-pale);
    outline-offset: -2px;
  }
  /* サービスの下層: 上のボタン2つ＋「内装」「外装」の見出し帯 */
  .c-footer__navbtns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
  }
  .c-footer__navbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 10px 16px;
    border-radius: 4px;
    background: var(--c-blue-pale);
    color: var(--c-blue-dark);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
  }
  .c-footer__navgroup {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 12px 20px;
    background: var(--c-blue-pale);
    color: var(--c-text-sub);
    font-size: 15px;
    line-height: 1.5;
  }
  .c-footer__partner--sp {
    align-self: flex-start; /* Figma 2645:17296: 左寄せ */
    margin: 124px 0 0 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    opacity: 0.8;
  }
  @keyframes c-footer-panel-next {
    from {
      opacity: 0;
      transform: translateX(24px);
    }
  }
  @keyframes c-footer-panel-prev {
    from {
      opacity: 0;
      transform: translateX(-24px);
    }
  }

  /* リンク列 → 64px 行のアコーディオン */
  .c-footer__col {
    width: auto;
    gap: 0;
    white-space: normal;
  }
  .c-footer__col[data-acc],
  .c-footer__col--contact > [data-acc] {
    border-bottom: 1px solid var(--c-blue-pale);
  }
  .c-footer__col > div {
    gap: 0;
  }
  .c-footer__head {
    font-size: 14px;
    font-weight: 500;
  }
  .c-footer__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    padding: 0 20px;
    cursor: pointer;
  }
  .c-footer__toggle:focus-visible {
    outline: 2px solid var(--c-blue-pale);
    outline-offset: -2px;
  }
  .c-footer__chev {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 0.25s var(--ease);
  }
  [data-acc].is-open > .c-footer__head .c-footer__chev {
    transform: rotate(90deg);
  }
  .c-footer__col ul {
    gap: 0;
    padding: 0 20px 14px 32px;
  }
  [data-acc]:not(.is-open) > ul {
    display: none;
  }
  .c-footer__col li a {
    display: block;
    padding: 7px 0;
    font-size: 13px;
  }

  .c-footer__col--contact {
    min-height: 0;
    align-items: stretch;
    gap: 0;
  }
  /* SP 下部（Figma 2645:17296）: 協力会社募集・SNS は左寄せ、プライバシーポリシー／一般事業主行動計画は縦並び、コピーライトは右下 */
  .c-footer__col .c-footer__partner {
    align-self: flex-start;
    margin: 40px 0 0 24px;
    font-size: 14px;
    font-weight: 500;
  }

  .c-footer__sns {
    justify-content: flex-start;
    gap: 11px;
    margin: 13px 21px 0;
    opacity: 0.5;
  }
  .c-footer__sns img {
    width: 25px;
    height: 25px;
  }
  .c-footer__sns li:nth-child(1) img {
    width: 24px;
    height: 24px;
  }
  .c-footer__sns li:nth-child(4) img {
    width: 20px;
    height: 20px;
  }
  .c-footer__bar {
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    min-height: 37px;
    margin: 15px 21px 0;
    padding-top: 0;
    opacity: 0.5;
  }
  .c-footer__legal {
    flex-direction: column;
    gap: 0;
    align-self: flex-start;
  }
  .c-footer__bar p {
    white-space: nowrap;
  }
}
