@charset "UTF-8";

/* ==========================================================
   RUI Footer
========================================================== */

.site-footer {
  border-top: 1px solid rgba(85, 41, 91, 0.14);
  background: var(--color-background, #fff);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  align-items: center;
  gap: 1rem;

  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
}

/* 左側：SNS */
.footer-media {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.footer-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.footer-media img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* 右側：クレジット＋誄ロゴ */
.footer-copy {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;

  min-width: 0;
  margin: 0;
  color: var(--color-muted, #6f6473);
  text-align: right;
}

.footer-credit-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}

.footer-copyright {
  margin: 0;
  color: inherit;
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.08rem;
  text-align: right;
  white-space: nowrap;
}

.footer-copyright-years,
.footer-copyright-name {
  display: inline;
}

.footer-copyright-name::before {
  content: " ";
}

.footer-created {
  margin: 0.15rem 0 0;
  color: inherit;
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0.12rem;
  text-align: right;
  white-space: nowrap;
}

.footer-created__icon {
  display: block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .footer-media a:hover img {
    opacity: 0.78;
    transform: translateY(-1px);
  }
}

.footer-media a:focus-visible {
  outline: 2px solid var(--header-brand, #674196);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-media img {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* ==========================================================
   Footer：SP（左40%／右60%・高さ50px）
========================================================== */

@media (max-width: 768px) {
  .site-footer {
    height: 50px;
    min-height: 50px;
  }

  .site-footer .footer-inner {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    align-items: center;
    gap: 0.4rem;

    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 10px 6px;
  }

  .site-footer .footer-media {
    grid-column: 1;
    justify-content: flex-start;
    gap: 0.75rem;

    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .site-footer .footer-media a,
  .site-footer .footer-media img {
    width: 32px;
    height: 32px;
  }

  .site-footer .footer-copy {
    grid-column: 2;
    justify-content: flex-end;
    gap: 0.45rem;

    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .site-footer .footer-credit-text {
    align-items: flex-end;
    min-width: 0;
  }

  .site-footer .footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    font-size: 0.66rem;
    line-height: 1.25;
  }

  .site-footer .footer-copyright-years,
  .site-footer .footer-copyright-name {
    display: block;
  }

  .site-footer .footer-copyright-name::before {
    content: none;
  }

  .site-footer .footer-created {
    margin-top: 0;
    font-size: 0.58rem;
    line-height: 1.2;
    letter-spacing: 0.04rem;
  }

  .site-footer .footer-created__icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }
}
