/*
 * Footer Styles (for footer.php)
 */

.site-footer {
  background-color: #2c333f;
  color: #fff;
  padding: 60px 0 0;
  border-top: 5px solid #e60012;
}

.footer-container {
  display: flex;
  flex-wrap: wrap; /* レスポンシブを考慮 */
  gap: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

.footer-info {
  width: 200px; /* 幅を固定 */
  flex-shrink: 0;
}

.footer-info p {
  font-size: 14px;
  margin: 0 0 10px;
}

.footer-info img {
  width: 120px;
}

.footer-sitemap {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  gap: 30px;
}

.footer-sitemap-column ul,
.footer-submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sitemap-column > ul > li:not(:last-child) {
  margin-bottom: 20px;
}

.footer-sitemap-column > ul > li > a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  position: relative;
  padding-left: 15px;
}
.footer-sitemap-column > ul > li > a::before {
  content: "●";
  color: #e60012;
  position: absolute;
  left: 0;
  font-size: 10px;
}

.footer-submenu {
  margin-top: 25px;
}

.footer-submenu-title {
  border-bottom: 1px solid #555;
  padding-bottom: 10px;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: bold;
}

.footer-submenu li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  line-height: 2.2;
  transition: color 0.3s;
}
.footer-submenu li a:hover {
  color: #fff;
}

/* 2段目のメニューレイアウト */
.footer-sitemap-row {
  width: 100%;
  text-align: right; /* テキストを右寄せ */
  padding: 0 40px 20px; /* 右と下の余白を調整 */
  margin-top: 20px; /* 上の要素との間隔 */
}

.footer-sitemap-row a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-sitemap-row a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-sitemap-row .footer-submenu {
  flex: 1;
  max-width: 210px; /* カラムの幅を調整 */
  margin-top: 0;
}

.site-info {
  text-align: center;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #444;
  padding: 20px 0;
  margin-top: 50px;
}

/* --- ここからレスポンシブ対応の追加CSS --- */

@media screen and (max-width: 782px) {
  /* フッター全体の上下パディングを調整 */
  .site-footer {
    padding-top: 40px;
  }

  /* コンテナを縦積みのレイアウトに変更し、左右の余白を調整 */
  .footer-container {
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
    gap: 30px;
  }

  /* 会社情報エリアの固定幅を解除 */
  .footer-info {
    width: auto;
  }

  /* サイトマップの各カラムを縦積みに変更 */
  .footer-sitemap {
    flex-direction: column;
    gap: 25px;
  }

  /* 2段目のメニューの右寄せを解除し、余白を調整 */
  .footer-sitemap-row {
    text-align: left;
    padding: 0 0 20px;
    margin-top: 10px;
  }

  /* コピーライト部分の上の余白を調整 */
  .site-info {
    margin-top: 30px;
  }
}
