/**
 * 全体を@layer base（base.cssと同じレイヤー）に入れている。
 * Tailwindのユーティリティは@layer utilitiesに入っており、レイヤー無しの通常CSSは
 * 詳細度に関係なく常にどのレイヤーよりも勝ってしまうため、このファイルをレイヤー無しのままにすると
 * 同じ要素にTailwindクラス（leading-[...]等）を併用しても効かない事故が起きる。
 * base.cssが各ページでこのファイルより先に読み込まれ@layer baseを宣言しているため、
 * ここで同じ名前のレイヤーを使うことで base → theme → utilities の順（後ろほど優先）に揃う。
 */
@layer base {

.footer_v2,
.footer_v2 * {
  box-sizing: border-box;
}

.footer_v2 {
  position: relative;
  margin-top: 80px;
  padding: 92px 0 72px;
  background: #f4f6f7;
  color: var(--color-site-primary);
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
}

.footer_v2__inner {
  position: relative;
  display: grid;
  width: 92%;
  max-width: 1140px;
  grid-template-columns: 260px 1fr;
  column-gap: 80px;
  row-gap: 0;
  margin-inline: auto;
}

.footer_v2__tagline {
  margin: 0;
  font-family: "clarendon-text-pro", serif;
  font-size: 38px;
  letter-spacing: normal;
  font-weight: 700;
}

.footer_v2__brand {
  display: flex;
  flex-direction: column;
}

.footer_v2__sns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: inherit;
  text-decoration: none;
}

.footer_v2__sns-icon {
  width: 23px;
  height: 23px;
}

.footer_v2__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
}

.footer_v2__heading {
  margin: 0 0 28px;
  font-size: 16px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.footer_v2__heading--group {
  margin-top: 58px;
}

.footer_v2__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer_v2__list a {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: inherit;
  text-decoration: none;
}

.footer_v2__list a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  background: url('/assets/img/ic_blank.png') center center / contain no-repeat;
}

.footer_v2__address {
  grid-column: 1 / -1;
  margin: 84px 0 0;
  color: #383838;
  font-style: normal;
  text-align: center;
}

.footer_v2__penguin {
  display: block;
  width: 80px;
  height: 126px;
  margin: 0 auto 18px;
  background: url('/assets/img/icon/penguin_full.svg') center center / contain no-repeat;
}

.footer_v2__logo {
  display: inline-block;
  width: 200px;
}

.footer_v2__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer_v2__address p {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer_v2__copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: #9aa8af;
  text-align: center;
}

.footer_v2__copyright small {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.footer_v2__page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--color-site-primary);
  color: var(--color-site-white);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* common.jsがスクロールに応じて#BTN_topへ付け外しするクラス */
.footer_v2__page-top.on {
  opacity: 1;
  pointer-events: auto;
}

.footer_v2__page-top p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.footer_v2__page-top-icon {
  width: 18px;
}

@media only screen and (max-width: 980px) {
  .footer_v2 {
    margin-top: 60px;
  }

  .footer_v2__inner {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .footer_v2__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .footer_v2__sns {
    margin-top: 40px;
  }

  .footer_v2__address {
    margin-top: 40px;
  }
}

@media only screen and (max-width: 640px) {
  .footer_v2 {
    margin-top: 40px;
    padding: 60px 0 48px;
  }

  .footer_v2__inner {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .footer_v2__nav {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer_v2__address {
    margin-top: 48px;
  }
}

}
