:root {
  --footer-bg: #fff5f8;
  --footer-ink: #4b2c34;
  --footer-muted: #8a6c74;
  --footer-line: #f3d7e3;
  --footer-link: #e86b8f;
  --footer-link-hover: #3b82f6;
  --footer-max: 1100px;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  border-top: 1px solid var(--footer-line);
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", "MS PMincho", "ＭＳ Ｐ明朝", serif;
  overflow-x: hidden;
}

.footer * {
  min-width: 0;
  box-sizing: border-box;
}

.footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--footer-link-hover);
  text-decoration: underline;
  outline: none;
}

.footer__inner {
  max-width: var(--footer-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 16px;
  overflow: hidden;
  contain: layout paint inline-size;
  text-align: center;
}

.footer__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(8px, 2vw, 16px) 0 clamp(16px, 3vw, 28px);
  text-align: center;
}

.footer__brand-img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: min(220px, 100%);
  width: auto;
}

.footer-nav {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  justify-content: center;
  justify-items: center;
  column-gap: clamp(24px, 4vw, 48px);
  row-gap: 20px;
  padding-bottom: clamp(24px, 5vw, 40px);
}

.nav-group {
  min-width: 0;
}

.nav-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--footer-ink);
  letter-spacing: 0.02em;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item + .nav-item {
  margin-top: 8px;
}

.nav-link {
  display: inline-block;
  font-size: 13px;
  color: var(--footer-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

.footer-social {
  border-top: 1px solid var(--footer-line);
  margin-top: clamp(16px, 3vw, 28px);
  padding-top: clamp(16px, 3vw, 20px);
  text-align: center;
}

.footer-social__title {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--footer-muted);
  letter-spacing: 0.12em;
}

.social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(12px, 2.5vw, 16px);
  max-width: 100%;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--footer-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--footer-link-hover);
}

.social-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--footer-line);
  margin-top: clamp(16px, 3vw, 24px);
  padding-top: clamp(12px, 2.5vw, 16px);
  text-align: center;
}

.utility-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  font-size: 12px;
  color: var(--footer-muted);
  max-width: 100%;
  justify-content: center;
}

.utility-item {
  position: relative;
  padding-right: 18px;
}

.utility-item::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 1px;
  height: 12px;
  background: var(--footer-line);
  transform: translateY(-50%);
}

.utility-item:last-child {
  padding-right: 0;
}

.utility-item:last-child::after {
  content: none;
}

.utility-link {
  color: var(--footer-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.utility-link:hover,
.utility-link:focus-visible {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

@media (max-width: 810px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-link {
    transition: none;
  }
}
