@charset "UTF-8";

/*-------------------------------------------
footer
-------------------------------------------*/
#footer {
  font-size: 0.875rem;
  background-color: #1f1f1f;
  padding-top: 50px;
  padding-bottom: 30px;
  color: #fff;
}

/* archiveクラスのulスタイルを無効化 */
body.archive #footer ul {
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* archiveクラスのliスタイルを無効化 */
body.archive #footer li {
  font-size: inherit !important;
  border-bottom: none !important;
  padding: 0 !important;
  text-align: inherit !important;
  transition: none !important;
}

/* archiveクラスのaスタイルを無効化 */
body.archive #footer a {
  color: inherit !important;
  display: inherit !important;
  transition: inherit !important;
}

/* archiveクラスのaホバースタイルを無効化（footer.cssのホバーは保持） */
body.archive #footer a:hover {
  background-color: transparent !important;
  background: transparent !important;
  color: inherit !important;
}

/* archiveクラスのliホバースタイルも無効化 */
body.archive #footer li:hover {
  background-color: transparent !important;
  background: transparent !important;
}
/* フッターメニュー（1行目） */
.footer-menu {
  margin-bottom: 20px;
  text-align: center;
}

.footer-menu.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-nav-menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.footer-nav-menu li {
  margin: 0;
}

.footer-nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

.footer-nav-menu a:hover {
  color: #ff6b35;
}

.footer-nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ff6b35;
  transition: width 0.3s ease;
}

.footer-nav-menu a:hover::after {
  width: 100%;
}

/* 相互リンク（2行目） */
.footer-links {
  margin-bottom: 30px;
  text-align: center;
}

.footer-links-title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.footer-links-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: #ff6b35;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ff6b35;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* 協賛企業情報（3行目） */
.footer-sponsors {
  margin-bottom: 20px;
}
#footer .copyright {
  font-size: 0.750rem;
  text-align: center;
  padding: 10px 0;
}

/*-------------------------------------------
Tablet
-------------------------------------------*/
@media screen and (max-width: 1024px) {
  #footer {
    padding-top: 40px;
    padding-bottom: 25px;
  }
  
  .footer-nav-menu {
    gap: 25px;
  }
  
  .footer-links-list {
    gap: 15px;
  }
}

/*-------------------------------------------
Mobile
-------------------------------------------*/
@media screen and (max-width: 768px) {
  #footer {
    padding-top: 30px;
    padding-bottom: 20px;
  }
  
  .footer-menu {
    margin-bottom: 15px;
    text-align: left;
    padding-left: 20px;
  }
  
  .footer-nav-menu {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .footer-nav-menu a {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background-color 0.3s ease;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: block;
    width: fit-content;
  }
  
  .footer-nav-menu a::after {
    display: none;
  }
  
  .footer-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .footer-links {
    margin-bottom: 25px;
    text-align: left;
    padding-left: 20px;
  }
  
  .footer-links-list {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .footer-link {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
    width: fit-content;
  }
  
  .footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/*-------------------------------------------
Small Mobile
-------------------------------------------*/
@media screen and (max-width: 480px) {
  #footer {
    padding-top: 25px;
    padding-bottom: 15px;
  }
  
  .footer-menu {
    margin-bottom: 20px;
  }
  
         .footer-nav-menu a {
           padding: 8px 16px;
           font-size: 0.9rem;
           color: #ffffff;
           font-weight: 600;
           text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
         }
  
  .footer-links {
    margin-bottom: 20px;
  }
  
  .footer-links-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
         .footer-link {
           font-size: 0.8rem;
           padding: 6px 12px;
         }
         
         .footer-link::after {
           display: none;
         }
  
  .footer-sponsors {
    margin-bottom: 15px;
  }
  
  #footer .copyright {
    font-size: 0.7rem;
    padding: 8px 0;
  }
}
