/**
 * Layout - Footer
 * 共通フッター
 */

.l-footer {
  padding-block: 26px;
  position: relative;
  @media screen and (max-width: 767px) {
    padding-bottom: 66px;
  }

  /* 下層のみ：フッター内にパンくず（文字色はデフォルトのまま） */
  &.--hasBreadcrumb {
    padding-top: 1em;
    border-top: 1px solid;
  }

  &.--hasBreadcrumb .l-footerBreadcrumbWrapper {
    margin-bottom: 1em;
  }

  &.--hasBreadcrumb .l-footerBreadcrumbWrapper .l-breadcrumb {
    padding-block: 0;
    border-bottom: none;
    background-color: transparent;
  }

  &.--hasBreadcrumb .l-footerBreadcrumbWrapper .l-breadcrumbList {
    padding-inline: 0;
  }
}

.l-footerPageTop {
  padding-top: 0.5rem;
  transform-origin: top right;
  rotate: 90deg;
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 10;
  @media screen and (max-width: 1259px) {
    padding-top: 0;
  }
  @media screen and (max-width: 767px) {
    rotate: 0deg;
    bottom: 2rem;
    right: 50%;
    translate: 50% 0;
  }
}

.l-footerPageTopLink {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.5rem;

  &::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("../../images/icon_arrow_left_black.svg");
    background-size: contain;
    background-position: center;
    @media screen and (max-width: 767px) {
      rotate: 90deg;
    }
  }
}

.l-footerBlock {
  color: var(--color-text-light);
  font-weight: 300;
  background-color: var(--color-bg-footer);
  border-radius: var(--radius-xl);
  padding-block: 80px 64px;
  padding-inline: 64px;
  @media screen and (max-width: 559px) {
    padding-block: 1.5rem;
    padding-inline: 1.5rem;
  }
}

.l-footerUpper {
  display: grid;
  grid-template-columns: 1fr 332px;
  gap: 11.19%;
  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.l-footerContactHeading {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 24px;
}
.l-footerContactActions {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  @media screen and (max-width: 559px) {
    width: 100%;
  }

  li {
    @media screen and (max-width: 559px) {
      width: 100%;
    }
  }
}
.l-footerContactCard {
  color: var(--color-text-main);
  min-width: 252px;
  min-height: 88px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;

  &.--yellow {
    background-color: var(--color-bg-white);
    border: 5px solid #ffc700;

    .l-footerContactCardLink {
      background-color: #f5d23c;
    }
  }
  &.--silver {
    background: linear-gradient(270deg, #f2f2f2 0%, #ced8e5 14.9%);
    border: 1px solid;

    .l-footerContactCardLink {
      background-color: var(--color-bg-white);
      border: 1px solid #949494;
    }
  }
}
.l-footerContactCardText {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1;
}
.l-footerContactCardLink {
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.02em;
  width: fit-content;
  min-height: 32px;
  padding-inline: 15px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 25px;

  &::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background-image: url("../../images/icon_arrow_right_black.svg");
    background-size: contain;
    background-position: center;
  }
}

.p-footerSitemapColumn {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  @media screen and (max-width: 767px) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  @media screen and (max-width: 559px) {
    grid-template-columns: 1fr;
    gap: 0;
  }

  > *:nth-child(2) {
    flex-shrink: 0;
  }
}
.p-footerSitemapItem {
  padding-block: 0.5rem;
}
.p-footerSitemapMainLink {
  font-weight: 700;
  line-height: 1;
  padding-block: 7px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 4px;

  &::after {
    content: "";
    display: block;
    width: 1rem;
    height: 1rem;
    background-image: url("../../images/icon_arrow_right_white.svg");
    background-size: contain;
    background-position: center;
  }

  a {
    &:hover {
      opacity: 0.8;
    }
  }

  &.--noLink {
    &::after {
      display: none;
    }
  }
}
.p-footerSitemapChildLink {
  font-size: 14px;
  display: grid;
  gap: 10px;
  list-style: none;
  padding-block: 10px;
  padding-left: 10px;

  a {
    &:hover {
      opacity: 0.8;
    }
  }
}

.l-footerCompany {
  margin-block: 1rem 2rem;
}
.l-footerCompanyLogo {
  padding-left: 37px;
  padding-bottom: 18px;
  @media screen and (max-width: 767px) {
    padding-left: 0;
    width: fit-content;
    margin-inline: auto;
  }

  a {
    display: block;
    width: fit-content;
  }
}
.l-footerCompanyAddress {
  font-size: 0.525rem;
  line-height: 1.7;
  padding-left: 33px;
  display: grid;
  gap: 10px;
  @media screen and (max-width: 767px) {
    padding-left: 0;
    width: fit-content;
    margin-inline: auto;
  }
}

.l-footerBottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-white);
}
.l-footerSns {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.p-footerCopyright {
  font-size: 14px;
  text-align: center;
  margin-top: 2rem;
}
