/* ==========================
   footer.css フッター全体
========================== */
#footer {
  font-family: "Yu Gothic", "メイリオ", sans-serif;
  font-size: 14px;
  color: #fff;
}

/* --- 上段（リンク群 + 住所・電話・FAX） --- */
.footer-top {
  background-color: #2f7584;
  padding: 15px 0;
}

.footer-top .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.contact-info p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- 中段 --- */
.footer-middle {
  background-color: #5e3611;
  padding: 40px 20px;
}

.footer-middle .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  color: #fff;
}

.footer-middle section {
  text-align: center;
}

/* h3を.footer-block-titleへ変更 */
.footer-middle .footer-block-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-middle .sub-title {
  font-style: italic;
  font-weight: normal;
  margin-left: 8px;
  font-size: 12px;
  color: #d3b77a;
  display: inline-block;
}

.footer-middle ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}

.footer-middle ul li {
  margin-bottom: 10px;
}

.footer-middle ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-middle ul li a:hover {
  text-decoration: underline;
  font-weight: bold;
}

.footer-middle ul li strong {
  font-weight: bold;
}

/* --- 下段 --- */
.footer-bottom {
  background-color: #f9f5ee;
  color: #333;
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
}

/* -------------------------------------------
   レスポンシブ設定
------------------------------------------- */

/* PC表示用（769px以上） */
@media (min-width: 769px) {
  .footer-middle .container {
    justify-content: center;
  }
  .footer-middle section {
    max-width: 420px;
  }
}

/* SP表示用（768px以下） */
@media (max-width: 768px) {
  /* 上段のナビを隠し、連絡先を縦並びに */
  .footer-nav {
    display: none;
  }
  .contact-info {
    flex-direction: column;
    gap: 6px;
  }

  /* 中段のレイアウト：各セクションを中央配置の縦並びに */
  .footer-middle .container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .footer-middle section {
    width: 100%;
  }

  /* タイトルとサブタイトルを縦並びにする（セレクタ修正） */
  .footer-middle .footer-block-title {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .footer-middle .sub-title {
    margin-left: 0;
  }
}