/* ==========================================================================
   FOOTER (Brand Color Update)
   ========================================================================== */

.l-footer {
  /* 背景をブランドカラーに設定 */
  background: var(--jilaf); /* #1658a0 */
  color: #fff;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  margin-top: auto;
}

/* --- 上部エリア（ロゴ・リンク） --- */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* 左側：組織情報 */
.footer-info {
  flex: 1;
  max-width: 350px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  margin-bottom: 20px;
}
.footer-logo-img {
  width: 150px;
  padding: 10px 0;
  /* 背景が明るくなったので、ロゴが沈む場合は少しドロップシャドウを入れてもOK */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
.logo-text-jp {
  font-size: 0.85rem;
  font-weight: bold;
  opacity: 0.9; /* 少し視認性を上げるためにアップ */
}

.footer-address {
  line-height: 1.8;
  opacity: 0.8; /* 少し視認性を上げるためにアップ */
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}
.contact-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ホバー色はブランドのアクセントカラー（オレンジ）を維持 */
.contact-link:hover {
  color: var(--orange);
}

/* SNSアイコン */
.footer-sns {
  display: flex;
  gap: 15px;
}
.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  /* 背景とのコントラストをつけるため白の透明度を少し変更 */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}
.footer-sns a:hover {
  background: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 右側：リンク集（3カラム） */
.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.link-title {
  font-family: var(--font-en);
  font-size: 1rem;
  /* オレンジはブルー背景で非常によく映えます */
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
  padding-bottom: 5px;
}

.link-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-col li {
  margin-bottom: 12px;
}

.link-col a {
  color: rgba(255, 255, 255, 0.9); /* 白を強くして可読性を確保 */
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.9rem;
  position: relative;
  padding-left: 18px; /* 矢印スペースを少し広げました */
}

/* リンクホバー時の矢印アニメーション */
.link-col a::before {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  opacity: 0.6;
  transition: 0.3s;
}

.link-col a:hover {
  color: #fff;
  padding-left: 22px; /* ホバー時に少し右に動かす演出 */
}
.link-col a:hover::before {
  color: var(--orange);
  opacity: 1;
  left: 5px;
}

/* --- 中段：バナーエリア --- */
.footer-banners {
  /* 境界線を少し明るめに調整 */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 30px 0;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.banner-item {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  transition: 0.3s;
}
.banner-item:hover {
  background: #fff;
  color: var(--jilaf); /* ホバー時は文字をブランドカラーに */
  border-color: #fff;
  transform: scale(1.05);
}

/* --- 下部：コピーライト --- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  /* 下部はあえて少し沈ませてメイン情報を際立たせる */
  opacity: 0.7;
}

.bottom-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}
.bottom-links a {
  color: #fff;
  text-decoration: none;
}
.bottom-links a:hover {
  text-decoration: underline;
  color: var(--orange);
}

/* ==========================================================================
   FOOTER Responsive (Multi-step optimization)
   ========================================================================== */

/* --- 1. タブレット対応（900px 〜 601px）：2列レイアウト --- */
@media (max-width: 900px) {
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列に分ける */
    gap: 40px;
  }

  .footer-info {
    grid-column: 1 / -1; /* 組織情報だけは上部いっぱいに使う */
    text-align: center;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .footer-logo,
  .footer-contact,
  .footer-sns {
    align-items: center;
    justify-content: center;
  }

  .footer-links {
    grid-column: 1 / -1; /* リンク集エリア */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* リンクを3列で横に並べる */
    gap: 20px;
  }
}

/* --- 2. スマホ対応（600px 以下）：コンパクト化 --- */
@media (max-width: 768px) {
  .l-footer {
    padding: 40px 0 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }

  /* 組織情報をコンパクトに */
  .footer-info {
    text-align: center;
  }
  .footer-logo-img {
    width: 120px; /* 少し小さく */
  }
  .footer-address {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  /* リンク集：2列にして高さを半分に抑える */
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2列並び */
    gap: 30px 15px;
    text-align: left;
  }

  .link-title {
    font-size: 0.9rem;
    margin-bottom: 15px;
    width: 100%; /* 下線を左端からに */
  }

  .link-col li {
    margin-bottom: 8px; /* 行間を詰める */
  }

  .link-col a {
    font-size: 0.8rem;
    padding-left: 12px;
  }

  /* バナーエリアもコンパクトに */
  .footer-banners {
    padding: 20px 0;
    gap: 10px;
  }
  .banner-item {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  /* コピーライト周辺 */
  .footer-bottom {
    font-size: 0.7rem;
    flex-direction: column;
  }
  .bottom-links {
    gap: 10px;
  }
}
