/* フッター基本スタイル */
.site_footer {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
  /* max-width: 1920px; を削除 */
}

.site_footer *,
.site_footer *::before,
.site_footer *::after {
  box-sizing: border-box;
}

/* メインフッターエリア */
.footer_main {
  position: relative;
  width: 100%;
  background: #004ea2;
  padding: 80px 0;
}

.footer_container {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: auto;
  max-width: 1800px;
  margin: 0 10vw;
  justify-content: space-between;
}
/* 会社情報セクション */
.footer_company_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 33px;
  width: auto;
  max-width: 600px;
}

.footer_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  padding: 10px;
}

.footer_logo_image {
  width: 200px;
  height: 60px;
  background: url(../img/common/logo_white.svg) no-repeat center;
  background-size: cover;
}

.footer_head_office,
.footer_branch_office {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 26px;
  text-align: left;
  min-height: 72px;
  width: 100%;
}

/* フッターリンクセクション */
.footer_links {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: auto;
  max-width: 600px;
  justify-content: space-between;
}

.footer_links_column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer_link_title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

/* フッター内のすべてのリンクに共通のスタイルを適用 */
.footer_links a,
.footer_link_item {
  position: relative;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

/* フッターリンクのホバーエフェクト - 統合版 */
.footer_links a::after,
.footer_link_item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #ffffff;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.footer_links a:hover::after,
.footer_link_item:hover::after {
  width: 100%;
}

/* コピーライトセクション */
.footer_copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
}

.copyright_text {
  color: #000000;
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
}

/* ===== レスポンシブ設定 ===== */
/* ===== 大型ディスプレイ (1280px以下) ===== */
@media screen and (max-width: 1280px) {
  /* フッターレイアウト */
  .footer_container {
    width: auto;
    max-width: 1280px;
    flex-wrap: wrap;
    margin: 0 4vw;
  }
  
  .footer_company_info {
    width: auto;
    max-width: 500px;
    gap: 26px;
  }
  
  .footer_logo {
    width: 200px;
  }
  
  .footer_logo_image {
    width: 180px;
    height: 54px;
  }
  
  .footer_head_office,
  .footer_branch_office {
    font-size: 1.3rem;
    line-height: 24px;
    width:auto;
  }
}

/* ===== タブレット (992px以下) ===== */
@media screen and (max-width: 992px) {
  .footer_main {
    padding: 60px 0;
  }
  
  .footer_container {
    margin: 0 4vw;
    gap: 40px;
  }
  
  .footer_company_info {
    max-width: 100%;
    gap: 25px;
  }
  
  .footer_links {
    max-width: 400px;
    width: auto;
    display: none;
  }
  
  .footer_link_title {
    font-size: 1em;
  }
  
  .footer_links a,
  .footer_link_item {
    font-size: 1.2rem;
  }


  .footer_head_office, .footer_branch_office {
    font-size: 1.2em;
    line-height: 24px;
    width: auto;
  }


}

/* ===== モバイル大 (768px以下) ===== */
@media screen and (max-width: 768px) {
  .footer_main {
    padding: 50px 0;
  }
  
  .footer_container {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer_company_info {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .footer_logo {
    width: 180px;
  }
  
  .footer_logo_image {
    width: 160px;
    height: 48px;
  }
  
  .footer_head_office,
  .footer_branch_office {
    text-align: center;
    font-size: 1.2rem;
    line-height: 22px;
  }
  
  /* フッターリンク調整 */
  .footer_links {
    width: 100%;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }
  
  .footer_links_column {
    width: calc(50% - 20px);
    align-items: center;
  }
  
  .footer_link_title {
    text-align: center;
  }
  
  .footer_links a,
  .footer_link_item {
    text-align: center;
  }
}

/* ===== モバイル小 (576px以下) ===== */
@media screen and (max-width: 576px) {
  .footer_main {
    padding: 40px 0;
  }
  
  .footer_container {
    margin: 0 4vw;
    gap: 30px;
  }
  
  .footer_company_info {
    gap: 20px;
  }
  
  .footer_logo {
    width: 160px;
  }
  
  .footer_logo_image {
    width: 200px;
    height: 60px;
  }
  
  .footer_head_office,
  .footer_branch_office {
    font-size: 1.1rem;
    line-height: 20px;
    min-height: 60px;
  }
  
  /* フッターリンク調整 */
  .footer_links {
    gap: 30px;
  }
  
  .footer_links_column {
    width: 100%;
    gap: 15px;
  }
  
  .footer_link_title {
    font-size: 1.2rem;
  }
  
  .footer_links a,
  .footer_link_item {
    font-size: 1.1rem;
  }
  
  .copyright_text {
    font-size: 12px;
  }
}

/* ===== 超小型モバイル (375px以下) ===== */
@media screen and (max-width: 375px) {
  .footer_main {
    padding: 30px 0;
  }
  
  .footer_container {
    margin: 0 3vw;
    gap: 25px;
  }
  
  .footer_logo {
    width: 140px;
  }
  
  .footer_logo_image {
    width: 120px;
    height: 36px;
  }
  
  .footer_head_office,
  .footer_branch_office {
    font-size: 1rem;
    line-height: 18px;
    min-height: 50px;
  }
  
  .footer_links {
    gap: 20px;
  }
  
  .footer_links_column {
    gap: 12px;
  }
  
  .footer_link_title {
    font-size: 1.1rem;
  }
  
  .footer_links a,
  .footer_link_item {
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }
  
  .copyright_text {
    font-size: 10px;
  }
}