/* ========================================
    フッタースタイル
======================================== */

/* フッター全体 */
.site-footer {
  background-color: #2E2E2E;
  color: #fff;
  padding: 60px 40px 20px;
  font-size: 14px;
  margin-top: 0;
}

/* フッターコンテンツ */
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid #7e7166;
}

/* フッターセクション */
.footer-section {
  flex: 1;
}

.footer-section h3 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.05em;
}

/* フッターロゴ */
.footer-logo {
  width: 200px;
  height: auto;
  margin-bottom: 0rem;
  display: block;
  margin-left: -10px;
}

/* フッター会社名 */
.footer-company-name {
  margin-bottom: 2rem;
}

.footer-section p {
  margin: 0 0 10px 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.footer-section p a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-section p a:hover {
  opacity: 0.7;
}

/* フッターリンク */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  opacity: 0.8;
  padding-left: 5px;
}

/* ソーシャルアイコン */
.social-icons {
  margin-top: 20px;
}

.social-icons a {
  color: #fff;
  font-size: 24px;
  margin-right: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icons a:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* コピーライト */
.copyright {
  text-align: center;
  padding-top: 20px;
  margin: 0;
  font-size: 12px;
  color: #c7b9ae;
  letter-spacing: 0.05em;
}

/* ========================================
    レスポンシブデザイン
======================================== */

/* タブレット（768px以下） */
@media screen and (max-width: 768px) {
  .site-footer {
    padding: 40px 20px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-section {
    width: 100%;
    text-align: left;
  }

  .footer-section h3 {
    font-size: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .social-icons {
    margin-top: 15px;
  }

  .social-icons a {
    font-size: 20px;
    margin-right: 12px;
  }
}

/* スマートフォン（480px以下） */
@media screen and (max-width: 480px) {
  .site-footer {
    padding: 30px 15px 15px;
    font-size: 13px;
  }

  .footer-content {
    gap: 25px;
  }

  .footer-section h3 {
    font-size: 14px;
  }

  .footer-section p {
    font-size: 12px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .social-icons a {
    font-size: 18px;
    margin-right: 10px;
  }

  .copyright {
    font-size: 11px;
    padding-top: 15px;
  }
}

/* 大画面（1200px以上） */
@media screen and (min-width: 1200px) {
  .footer-content {
    padding: 0 60px 40px;
  }

  .footer-section {
    max-width: 300px;
  }
}

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

/* フォーカススタイル */
.footer-links a:focus,
.social-icons a:focus {
  outline: 2px solid #c7b9ae;
  outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
  .site-footer {
    border-top: 2px solid #fff;
  }

  .footer-links a,
  .social-icons a {
    text-decoration: underline;
  }
}

/* ========================================
    アニメーション
======================================== */

/* スクロール表示アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  animation: fadeInUp 0.6s ease-out;
}

/* リンクホバー時のアンダーライン効果 */
.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* ========================================
   ADDITIONAL FOOTER STYLES
======================================== */

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
  }
}

/* Footer Company Info */
.footer-company {
  flex: 1;
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-address {
  font-size: 0.875rem;
  line-height: 1.8;
  opacity: 0.8;
  font-style: normal;
}

/* Footer Sitemap */
.footer-sitemap {
  flex: 1;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
}

.footer-sitemap-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-copyright {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: left;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-legal {
    justify-content: flex-end;
  }
}

.footer-legal-link {
  color: white;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-legal-link:hover {
  opacity: 1;
}
