/* ============================================
   フッタースタイル
   サイト共通のフッター部分のスタイル定義
   ============================================ */

/* フッター全体の設定 */
.footer {
  background: #024; /* 濃紺色の背景 */
  color: #fff; /* 文字色を白に */
  text-align: center; /* 中央揃え */
}

.footer .container {
  padding: 60px; /* 内側に60pxの余白 */
}

.title-center-footer-only h2 {
  font-size: 3.2rem; /* 32px相当の文字サイズ */
  font-weight: 500;
  color: white;
}
.title-center-footer-only .sub-text {
  font-size: 2.4rem;
  font-weight: 900; /* 太字 */
  font-style: italic; /* 斜体 */
  text-transform: uppercase; /* 常時大文字 */
  color: #007acc; /* 青色 */
  line-height: 0.8;
  margin-bottom: 6px; /* 下に5pxの余白 */
}

/* お知らせエリア */
.footer .newsArea .news-list {
  max-width: 1000px; /* 最大幅1000px */
  margin: 0 auto; /* 左右中央配置 */
  padding: 30px 30px 0;
}
@media screen and (max-width: 768px) {
  .footer .newsArea .news-list {
    padding: 30px 0 0;
  }
}

.footer .newsArea .news-list .news-list-item {
  border-top: 1px solid #007acc; /* 上に青い線 */
}

.footer .newsArea .news-list .news-list-item:last-child {
  border-bottom: 1px solid #007acc; /* 最後の項目に下線追加 */
}

/* アコーディオンヘッダー */
.footer .news-accordion-header {
  position: relative; /* 相対位置指定 */
  width: 100%; /* 幅を親要素いっぱいに */
  background: none; /* 背景なし */
  border: none; /* 枠線なし */
  padding: 20px 63px 20px 20px; /* 内側に20pxの余白 */
  display: flex; /* フレックスボックス */
  align-items: center; /* 上下中央揃え */
  gap: 15px; /* 要素間の間隔15px */
  font-size: 1.6rem; /* 16px相当の文字サイズ */
  text-align: left; /* 左揃え */
  cursor: pointer; /* マウスカーソルを指マークに */
  position: relative; /* 相対位置指定 */
  transition: background-color 0.3s ease; /* 背景色の変化をアニメーション */
}

.footer .news-accordion-header:hover {
  background-color: rgba(0, 122, 204, 0.1); /* ホバー時に薄い青背景 */
}

/* 日付 */
.footer .news-accordion-header .date {
  font-size: 1.4rem; /* 14px相当の文字サイズ */
  font-family: "Roboto", sans-serif; /* Robotoフォント（数字用） */
  color: #99ccff; /* 薄い青色 */
}

/* タグ */
.footer .news-accordion-header .tag {
  background-color: #007acc; /* 青色背景 */
  color: #fff; /* 文字色を白に */
  padding: 4px 12px; /* 上下4px、左右12pxの内側余白 */
  font-size: 1.2rem; /* 12px相当の文字サイズ */
  white-space: nowrap; /* 改行させない */
}

/* タイトル */
.footer .news-accordion-header .title {
  flex: 1; /* 残りのスペースを全て使う */
  color: #fff; /* 文字色を白に */
}

/* アコーディオンアイコン - 青い円の中に白い矢印 */
.footer .news-accordion-header .accordion-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 24px; /* アイコンの幅 */
  height: 24px; /* アイコンの高さ */
  background-color: #007acc; /* 青色背景 */
  border-radius: 50%; /* 円形にする */
  transition: transform 0.3s ease; /* 回転アニメーション */
}

/* 矢印アイコン - 未展開時は右向き */
.footer .news-accordion-header .accordion-icon::before {
  content: ""; /* 空のコンテンツ */
  position: absolute; /* 絶対位置指定 */
  top: 50%; /* 上から50% */
  left: 50%; /* 左から50% */
  width: 8px; /* 矢印の幅 */
  height: 8px; /* 矢印の高さ */
  border-right: 2px solid #fff; /* 右側に白い線 */
  border-bottom: 2px solid #fff; /* 下側に白い線 */
  transform: translate(-60%, -50%) rotate(-45deg); /* 位置調整と45度回転で右向き矢印 */
  transition: transform 0.3s ease; /* 回転アニメーション */
}

/* 開いた時のアイコン変化 - 矢印が下向きに */
.footer .news-accordion-header[aria-expanded="true"] .accordion-icon::before {
  transform: translate(-50%, -60%) rotate(45deg); /* 位置調整と回転で下向き矢印 */
}

/* アコーディオン内容 */
.footer .news-accordion-content {
  max-height: 0; /* 初期状態は高さ0（非表示） */
  overflow: hidden; /* はみ出た部分を隠す */
  transition:
    max-height 0.3s ease,
    padding 0.3s ease; /* 高さ変化のアニメーション */
}

.footer .news-accordion-content.active {
  max-height: 500px; /* 開いた時の最大高さ */
}

.footer .news-detail {
  padding: 20px; /* 内側に20pxの余白 */
  color: white; /* 文字色を白に */
  font-size: 1.6rem; /* 16px相当の文字サイズ */
  line-height: 1.8; /* 行間を1.8倍に */
  text-align: left; /* 左揃え */
}

/* お知らせエリア */
.footer .contactArea {
  display: flex; /* フレックスボックス */
  flex-direction: column; /* 縦並び */
  gap: 40px; /* 要素間の間隔40px */
}

/* 立体駐車場、入替工事でお困りの方は、お気軽にご相談ください。電話、FAX、ホームページにて承っています。 */
.footer .contactArea p {
  font-size: 1.8rem; /* 18px相当の文字サイズ */
}

/* ボタン横並び */
.footer .buttonWrapper {
  display: flex; /* フレックスボックスで横並び */
  justify-content: center; /* 中央配置 */
  flex-wrap: wrap;
  gap: 30px; /* ボタン間の間隔30px */
}

/* ボタンスタイル設定 */
.footer .buttonWrapper a {
  display: flex; /* フレックスボックス */
  align-items: center; /* 上下中央揃え */
  gap: 5px; /* アイコンと文字の間隔5px */
  background: white; /* 白色背景 */
  color: #024; /* 濃紺色の文字 */
  font-weight: bold; /* 太字 */
  padding: 10px 20px; /* 上下10px、左右20pxの内側余白 */
  font-size: 2.5rem; /* 25px相当の文字サイズ */
  transition: all 0.3s ease; /* 全ての変化をアニメーション */
  border: 1px solid white; /* 白い枠線 */
}

/* ボタンホバー設定 */
.footer .buttonWrapper a:not(.none-link):hover {
  background: #024; /* 濃紺色背景に変更 */
  color: white; /* 文字色を白に */
  border: 1px solid white; /* 白い枠線を維持 */
}

/* SVG画像もホバー時に白色に反転 */
.footer .buttonWrapper a:not(.none-link):hover img {
  filter: brightness(0) invert(1); /* 画像を白色に反転 */
}

.footer .buttonWrapper a.none-link {
  cursor: default;
}

/* フォーム 文字サイズを他より小さめに */
.footer .buttonWrapper a span {
  font-size: 2.1rem; /* 21px相当の文字サイズ */
}

/* フッターエリア */
.footer .footerArea {
  max-width: 1200px; /* 最大幅1200px */
  margin: 0 auto; /* 左右中央配置 */
  display: flex; /* フレックスボックス */
  justify-content: space-between; /* 左右の要素を両端に配置 */
  align-items: flex-start; /* 上揃え */
  padding-top: 40px; /* 上に40pxの内側余白 */
  padding-bottom: 30px; /* 下に30pxの内側余白 */
}

/* 左側エリア */
.footer .footerArea .left {
  flex-shrink: 0; /* 縮小させない */
  flex: 1;
  text-align: left;
}

/* ロゴ */
.footer .footerArea .left .logo {
  margin-bottom: 15px; /* 下に15pxの余白 */
}

.footer .footerArea .left .logo a{
  transition: all 0.3s ease;
}

.footer .footerArea .left .logo a:hover{
  opacity: 0.6;
}

/* 住所テキスト */
.footer .footerArea p {
  font-size: 1.4rem; /* 14px相当の文字サイズ */
  padding-top: 0; /* 上パディングを削除 */
  line-height: 1.8; /* 行間を1.8倍に */
  color: rgba(255, 255, 255, 0.9); /* 少し薄い白色 */
}

/* 右側エリア */
.footer .footerArea .right {
  flex: 1; /* 残りのスペースを使用 */
  max-width: 600px; /* 最大幅600px */
}

.footer .footerArea .global-menu-list {
  display: grid; /* グリッドレイアウト */
  grid-template-columns: repeat(2, 1fr); /* 常に2列表示 */
  gap: 0 15px; /* 列間の間隔15px、行間の間隔0 */
  row-gap: 12px; /* 行間の間隔12px */
  max-width: 600px; /* 最大幅を拡大 */
  list-style: none; /* リストスタイルを削除 */
  padding: 0; /* パディングを削除 */
  margin: 0; /* マージンを削除 */
}

.footer .footerArea .global-menu-list .global-menu-list-item {
  font-size: 1.5rem; /* 15px相当の文字サイズに調整 */
  text-align: left;
  position: relative; /* 相対位置指定（サブメニュー用） */
  width: 100%; /* 幅を100%に */
  margin-bottom: 5px;
}

.footer .footerArea .global-menu-list .global-menu-list-item > a {
  color: #fff; /* 文字色を白に */
  text-decoration: none; /* 下線を削除 */
  padding: 8px 0; /* 上下に8pxの内側余白 */
  transition: all 0.3s ease; /* 全ての変化をアニメーション */
  border-bottom: 1px solid transparent; /* 透明な下線を追加（ホバー時に表示） */
  line-height: 1.5; /* 行間を1.5倍に */
}

.footer .footerArea .global-menu-list .global-menu-list-item > a:hover {
  color: #99ccff; /* ホバー時に薄い青色に */
  border-bottom-color: #99ccff; /* ホバー時に下線を表示 */
}

.footer .footerArea .global-menu-list .global-menu-list-sub {
  text-align: left;
  padding-left: 0; /* 左パディングを削除 */
  margin-top: 8px; /* 上に8pxの余白 */
  list-style: none; /* リストスタイルを削除 */
  padding: 0; /* パディングを削除 */
}

.footer .footerArea .global-menu-list .global-menu-list-sub li {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 6px; /* 下に6pxの余白 */
}

.footer .footerArea .global-menu-list .global-menu-list-sub li:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1px; /* 高さを6pxに変更（円形にするため） */
  background-color: white; /* 薄い青色に変更 */
  margin-right: 5px; /* 右に10pxの余白 */
  flex-shrink: 0; /* 縮小させない */
}

.footer .footerArea .global-menu-list .global-menu-list-sub a {
  padding-left: 0; /* 左パディングを削除 */
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.8); /* 少し薄い白色 */
  text-decoration: none; /* 下線を削除 */
  transition: all 0.3s ease; /* 全ての変化をアニメーション */
  line-height: 1.6; /* 行間を1.6倍に */
}

.footer .footerArea .global-menu-list .global-menu-list-sub a:hover {
  color: #99ccff; /* ホバー時に薄い青色に */
}

.footer .copyright {
  width: 100%; /* 幅を全体に */
  text-align: center; /* 中央揃え */
  font-size: 12px; /* 12pxの文字サイズ */
  padding: 10px 0; /* 上下に10pxの内側余白 */
}

/* ============================================
   レスポンシブ対応
   ============================================ */

/* タブレット向け (1100px以下) */
/* タブレット向け (1100px以下) */
@media screen and (max-width: 1100px) {
  .footer .container {
    padding: 60px 30px 0;
  }

  .footer .contactArea p {
    font-size: 1.7rem; /* 17px相当にサイズ調整 */
  }

  .footer .buttonWrapper {
    gap: 20px; /* ボタン間の間隔20pxに縮小 */
  }

  .footer .buttonWrapper a {
    padding: 10px 15px; /* 内側余白を少し縮小 */
  }

  .footer .footerArea {
    gap: 50px; /* 左右エリアの間隔30px */
  }

  .footer .footerArea .global-menu-list {
    grid-template-columns: repeat(2, 1fr); /* 常に2列表示 */
    gap: 0 12px; /* 列間の間隔12px、行間の間隔0 */
    row-gap: 10px; /* 行間の間隔10px */
    max-width: 500px; /* 最大幅500pxに縮小 */
  }
}

/* スマートフォン向け (768px以下) */
@media screen and (max-width: 768px) {
  .footer .container {
    padding: 30px 20px 0;
  }

  /* お知らせセクションのレスポンシブ対応 */
  .footer .news-accordion-header {
    flex-wrap: wrap; /* 要素を折り返し可能に */
    align-items: flex-start; /* 上揃えに変更 */
    gap: 5px 10px;
    padding: 15px 48px 15px 20px;
  }

  /* 日付とタグを横並びに維持 */
  .footer .news-accordion-header .date,
  .footer .news-accordion-header .tag {
    flex-shrink: 0; /* 縮小させない */
  }

  /* タイトルを新しい行に配置（縦並び）、アイコンのスペースを確保 */
  .footer .news-accordion-header .title {
    flex-basis: calc(100% - 39px); /* アイコンの幅24px + gap 15pxを引いた幅 */
    margin-top: 10px; /* 上に10pxの余白 */
    order: 3; /* 順序を3番目に（日付・タグの後） */
  }

  /* アイコンをタイトルの行の右端に配置し、縦中央に揃える */
  .footer .news-accordion-header .accordion-icon {
    order: 4; /* 順序を4番目に（タイトルの後） */
    align-self: center; /* 縦中央に配置 */
    flex-shrink: 0; /* 縮小させない */
  }

  .footer .contactArea {
    gap: 25px; /* 要素間の間隔25pxに縮小 */
  }

  .footer .contactArea p {
    line-height: 1.6; /* 行間を1.6倍に縮小 */
  }

  .footer .buttonWrapper {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央揃え */
    gap: 15px; /* ボタン間の間隔15px */
  }

  .footer .buttonWrapper li {
    width: 100%; /* 幅を100%に */
    max-width: 380px; /* 最大幅320pxに制限 */
  }

  .footer .buttonWrapper a {
    width: 100%; /* 幅を100%に */
    justify-content: center; /* 中央揃え */
    padding: 15px 20px; /* 上下15px、左右20pxの余白 */
  }

  .footer .footerArea {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央揃え */
    gap: 30px; /* 上下の間隔30px */
    padding-top: 30px; /* 上に30pxの内側余白 */
    padding-bottom: 20px; /* 下に20pxの内側余白 */
  }

  .footer .footerArea .left {
    text-align: center; /* 中央揃え */
    width: 100%; /* 幅を100%に */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer .footerArea .left .logo {
    margin-bottom: 15px; /* 下に15pxの余白 */
    display: flex;
    justify-content: center;
    width: 350px;
    max-width: 90%;
  }

  .footer .footerArea .right {
    display: inline-block;
    max-width: 100%; /* 最大幅を100%に */
  }

  .footer .footerArea .global-menu-list {
    grid-template-columns: repeat(2, 1fr); /* 常に2列表示 */
    gap: 0 60px; /* 列間の間隔15px、行間の間隔0 */
    row-gap: 10px; /* 行間の間隔10px */
    max-width: 100%; /* 幅を全体に */
  }

  .footer .footerArea .right ul li a {
    padding: 4px 0; /* 上下に8pxの内側余白 */
  }

  .footer .footerArea .right ul li .global-menu-list-sub li {
    width: 100%; /* サブメニューは1列表示 */
    margin-right: 0; /* 右余白を削除 */
  }
}

@media screen and (max-width: 480px) {
  .footer .container {
    padding: 20px 15px; /* 全体の余白を調整 */
  }

  .footer .buttonWrapper a {
    padding: 12px 15px; /* ボタンの余白をさらに縮小 */
    font-size: 2.2rem; /* 22px相当の文字サイズ */
  }

  .footer .footerArea {
    padding-top: 25px; /* 上に25pxの内側余白 */
    padding-bottom: 15px; /* 下に15pxの内側余白 */
  }

  .footer .footerArea .global-menu-list {
    grid-template-columns: repeat(2, 1fr); /* 常に2列表示 */
    gap: 0 10px; /* 列間の間隔10px、行間の間隔0 */
    row-gap: 8px; /* 行間の間隔8px */
  }

  .footer .footerArea .global-menu-list .global-menu-list-item > a {
    padding: 6px 0; /* 上下に6pxの内側余白 */
  }

  .footer .footerArea .global-menu-list .global-menu-list-sub {
    margin-top: 4px; /* 上に4pxの余白 */
  }

  .footer .footerArea .global-menu-list .global-menu-list-sub li {
    margin-bottom: 3px; /* 下に3pxの余白 */
  }

  .footer .copyright {
    font-size: 11px; /* コピーライトの文字サイズを11pxに */
    padding: 8px 0; /* 上下に8pxの内側余白 */
  }
}

/* ページトップボタン */
.page-top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
  z-index: 998;
}

.page-top-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.page-top-button a {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1100px) {
  .page-top-button {
    width: 70px;
    height: 70px;
    bottom: 10px;
    right: 10px;
  }
}
