/*
フッター（コーポレートサイト共通 footer.php）
※ contactページでは additional.css が除外されるため別ファイルで管理
*/

.site-footer {
  --site-footer-accent: #3a84ba;
  --site-footer-line: #d9d9d9;
  margin-top: 10vh;
  padding: 0 40px;
  color: #222;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1.6;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: opacity .3s;
}

.site-footer a:hover {
  opacity: .6;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ロゴ */
.site-footer-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 40px;
}

.site-footer-logo img {
  display: block;
  width: clamp(160px, 15vw, 240px);
  height: auto;
}

/* ポリシー系リンク */
.site-footer-policy {
  display: flex;
  align-items: center;
  padding: 0 40px;
  border-left: 1px solid var(--site-footer-line);
  border-right: 1px solid var(--site-footer-line);
}

.site-footer-policy-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-auto-columns: max-content;
  column-gap: 48px;
  row-gap: 14px;
  font-size: 14px;
  white-space: nowrap;
}

/* コラム（メディア導線） */
.site-footer-column {
  padding-left: 40px;
}

.site-footer-column-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
}

.site-footer-column-title svg {
  width: 30px;
  height: 30px;
  color: var(--site-footer-accent);
}

.site-footer-column-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 32px;
  row-gap: 14px;
  font-size: 14px;
  white-space: nowrap;
}

.site-footer-column-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer-column-list a::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-top: 2px solid var(--site-footer-accent);
  border-right: 2px solid var(--site-footer-accent);
  transform: rotate(45deg);
}

/* コピーライト */
.site-footer-copyright {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--site-footer-line);
  color: rgba(0, 0, 0, .6);
  font-size: 13px;
  text-align: center;
}

/* 〜1365px：ロゴを上段、リンク2ブロックを下段に */
@media screen and (max-width: 1365px) {
  .site-footer-inner {
    flex-wrap: wrap;
  }

  .site-footer-logo {
    flex-basis: 100%;
    justify-content: center;
    padding: 0 0 32px;
  }

  .site-footer-policy {
    padding-left: 0;
    border-left: none;
  }
}

/* 〜991px：縦積み */
@media screen and (max-width: 991px) {
  .site-footer {
    padding: 0 6vw;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 32px;
  }

  .site-footer-policy {
    padding: 0 0 24px;
    border-right: none;
  }

  .site-footer-column {
    padding: 24px 0 0;
    border-top: 1px solid var(--site-footer-line);
  }
}

/* 〜767px：リンクを1列に */
@media screen and (max-width: 767px) {
  .site-footer-logo img {
    width: 55vw;
    max-width: 240px;
  }

  .site-footer-policy-list {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: 1fr;
    grid-auto-columns: auto;
  }

  .site-footer-column-list {
    grid-template-columns: 1fr;
  }

  .site-footer-copyright {
    font-size: 11px;
  }
}
