@charset "UTF-8";

/* =========================================
   実用ペン字技能検定IBT — footer.css
   ※ FOOTER CTA セクション(.p-cta)は
     page-top.css 側のLast CTAに統合済みのため削除
   ========================================= */

/* ---------- FOOTER LINKS (リンクエリア) ---------- */
.c-footer-links {
  background: var(--c-bg-kinari);
  padding: 80px 0 60px;
  border-top: 1px solid var(--c-line);
}
.c-footer-links__inner {
  width: 100%;
  max-width: var(--w-inner);
  margin: 0 auto;
  padding: 0 var(--w-inner-pad, 32px);
  box-sizing: border-box;
}
.c-footer-links__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.c-footer-links__title {
  font-family: var(--ff-mincho);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brand);
  letter-spacing: .06em;
  margin: 0 0 20px;
  padding-bottom: 12px;
  position: relative;
}
.c-footer-links__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 1px;
  background: var(--c-cta);
}
.c-footer-links__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c-footer-links__nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.7;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .25s var(--ease), transform .25s var(--ease);
  position: relative;
}
.c-footer-links__nav a:hover {
  color: var(--c-brand);
  transform: translateX(4px);
}

/* 外部リンクアイコン */
.c-footer-links__ext {
  width: 10px;
  height: 10px;
  color: var(--c-cta);
  opacity: .6;
  flex-shrink: 0;
  transition: opacity .25s var(--ease);
}
.c-footer-links__nav a:hover .c-footer-links__ext {
  opacity: 1;
}

/* ---------- FOOTER BOTTOM ---------- */
.c-footer {
  background: var(--c-brand);
  color: #fff;
  padding: 56px 0 32px;
}
.c-footer__inner {
  width: 100%;
  max-width: var(--w-inner);
  margin: 0 auto;
  padding: 0 var(--w-inner-pad, 32px);
  box-sizing: border-box;
}

/* TOP: ブランド + SNS */
.c-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 28px;
}
.c-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.c-footer__logo {
  font-family: var(--ff-mincho);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .08em;
}
.c-footer__brand-sub {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .1em;
}
.c-footer__addr {
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .04em;
}

/* SNS */
.c-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.c-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: rgba(255, 255, 255, .75);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.c-footer__social a:hover {
  color: var(--c-brand);
  background: var(--c-cta);
  border-color: var(--c-cta);
}
.c-footer__sns-icon {
  width: 18px;
  height: 18px;
}

/* BOTTOM: 法務リンク + コピーライト */
.c-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.c-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.c-footer__legal a {
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.c-footer__legal a:hover {
  color: var(--c-cta);
}
.c-footer__copy {
  margin: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .1em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .c-footer-links {
    padding: 60px 0 48px;
  }
  .c-footer-links__columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .c-footer-links__columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .c-footer__top {
    flex-direction: column;
    gap: 24px;
  }
  .c-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .c-footer__legal {
    gap: 16px;
  }
}
