/* ================================================
   前に戻るボタン
   ================================================ */

.back-button-wrapper {
  text-align: center;
  padding: 0 0 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  text-decoration: none;
  border-radius: 6px;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-16);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  gap: 10px;
  min-height: 56px;
  padding-right: 10px;
}

/* ホバー効果 */
.back-button:hover .back-button__text,
.back-button:hover .back-button__circle,
.back-button:hover .back-button__arrow-svg {
  color: #a8522d;
}

.back-button:hover .back-button__arrow-line {
  transform: scaleX(10);
}

.back-button:hover .back-button__arrow-head {
  transform: translateX(-6px);
}

/* 左側の矢印 */
.back-button__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-button__arrow-svg {
  width: 50px;
  height: 24px;
  color: var(--color-accent);
  padding-right: 10px;
}

.back-button__arrow-line {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: right center;
}

.back-button__arrow-head {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* テキスト部分 */
.back-button__text {
  position: relative;
  z-index: 1;
  text-align: center;
  transform: translateY(-2px);
  transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: var(--font-size-24);
  font-weight: 500;
  white-space: nowrap;
}

/* 右側の円 */
.back-button__circle {
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* 光沢効果 */
.back-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
}

.back-button:hover::before {
  left: 100%;
}

/* ================================================
   フッター
   ================================================ */

.footer {
  background-color: var(--color-main);
  color: var(--color-white);
  padding: 60px 0 40px;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ================================================
   ロゴセクション
   ================================================ */

.footer__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__logo-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer__logo-link:hover {
  transform: translateY(-2px);
}

.footer__logo-image {
  height: 52px;
  width: auto;
  display: block;
}

/* ================================================
   メニューセクション
   ================================================ */

.footer__menu {
  display: flex;
  justify-content: center;
}

.footer__nav {
  width: 100%;
}

.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav-item {
  position: relative;
}

.footer__nav-link {
  display: block;
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px; /* 16pxから18pxに変更 */
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.footer__nav-link:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

.footer__nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.footer__nav-link:hover::after {
  transform: scaleX(1);
}

/* ================================================
   コピーライトセクション
   ================================================ */

.footer__copyright {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
}

.footer__copyright-text {
  font-size: var(--font-size-14);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-align: center;
}

/* ================================================
   レスポンシブ
   ================================================ */

@media (max-width: 768px) {
  .back-button-wrapper {
    padding: 0 0 48px;
  }

  .back-button {
    min-height: 48px;
  }

  /* .back-button__text {
    font-size: var(--font-size-20);
  } */

  .back-button__arrow-svg {
    width: 42px;
    height: 20px;
  }

  /* .back-button__circle {
    width: 10px;
    height: 10px;
  } */

  .footer {
    padding: 40px 0 30px;
  }

  .footer__container {
    padding: 0 16px;
    gap: 30px;
  }

  .footer__logo-image {
    height: 48px;
  }

  .footer__nav-list {
    gap: 24px;
    flex-direction: column;
  }

  .footer__nav-link {
    font-size: var(--font-size-14);
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 20px;
  }

  .footer__container {
    padding: 0 12px;
    gap: 24px;
  }

  .footer__logo-image {
    height: 48px;
  }

  .footer__nav-list {
    gap: 16px;
  }

  .footer__nav-link {
    font-size: var(--font-size-12);
    padding: 8px 12px;
  }

  .footer__copyright-text {
    font-size: var(--font-size-12);
  }
}

/* ================================================
   アクセシビリティ
   ================================================ */

@media (prefers-reduced-motion: reduce) {
  .footer__logo-link,
  .footer__nav-link {
    transition: none;
  }
}

/* フォーカス表示 */
.footer__logo-link:focus,
.footer__nav-link:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
