/* ==================================================
パソコン版
================================================== */

/* フッター：全体 */
.bottom_area {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: auto;
  background-color: #ffffff;
  background-image: url("../img/footer_back.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* アクセス全体の背景（グラデーション） */
.access_section {
  width: 100%;
  background: linear-gradient(to bottom, #f2f8f8ff 0%,  transparent 100%);
}

/* 左右2分割を囲むコンテナ */
.access_container {
  display: flex;
  max-width: 120rem;
  width: 100%;
  align-items: flex-start;
  padding: 0 2rem 2rem 2rem;
  margin-inline: auto;
}

/* 左側：テキスト */
.access_info {
  width: 40%;
}

/* 青の長方形バッジ */
.access_badge {
  display: inline-block;
  background-color: #6fa8dcff;
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  padding: 0.5rem 6rem;
  border-radius: 0.8rem;
  /* 下の住所との隙間 */
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 住所テキスト */
.access_address {
  width: 100%;
  font-size: 1.8rem;
}

/* 右側：マップ */
.access_map {
  width: 60%;
  height: 20rem;
  border-radius: 1rem;
  overflow: hidden;
}

.map {
  width: 100%;
  height: 20rem;
}

/* - ナビメニューの上の部分 - */
.bottom_contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 120rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem;
  box-sizing: border-box;
}

/* 「お問い合わせ」青いバッジ */
.bottom_contact_title {
  align-self: flex-start;
  margin-top: 1.5rem;
  display: inline-block;
  background-color: #6fa8dcff;
  color: #ffffff;
  font-size: 2rem;
  font-weight: bold;
  padding: 0.5rem 6rem;
  border-radius: 8px;
}

/* ナビメニューの上の部分の丸（ul） */
.bottom_contact_list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 4rem;
}

/* ナビメニューの上の部分の丸（li） */
.bottom_contact_item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 16rem;
  height: 16rem;
  border: 0.1rem solid #6fa8dcff;
  background-color: #ffffff;
  border-radius: 50%;
  font-size: 1.7rem;
  padding: 2.5rem;
  flex-shrink: 0;
}

/* 4番目の丸（ボタン）用のli設定 */
.bottom_contact_list .bottom_contact_item:last-child {
  background: none;
  padding: 0;
  border: 0.1rem solid #6fa8dcff;
}

/* 4番目の丸の中にあるリンクボタン本体 */
.bottom_contact_item a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background-color: #6fa8dcff;
  border-radius: 50%;
  font-size: 1.7rem;
  padding: 2.5rem;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

/* 共通パーツ　ボタン */
/* <div> */
.common_button_btm {
  display: inline-block;
  width: fit-content;
  min-width: 16rem;
  height: 16rem;
  background-color: #6fa8dc;
  border: 0.1rem solid #6fa8dc;
  border-radius: 50%;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  /* 中央寄せのみ適用　上下は各自設定 */
  margin-inline: auto;
  transition: background-color 0.3s;
}

/* ボタンテキスト <p> */
.button_text_btm {
  color: #ffffff;
  line-height: 1.5;
  transition: color 0.3s;
}

/* ホバー */
.common_button_btm:hover {
  background-color: #ffffff;

  .button_text_btm {
    color: #6fa8dc;
  }
}

/* ボタンここまで */

/* - ナビメニュー - */

.bottom_nav_list {
  margin: 2rem auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  font-size: 2rem;
  gap: 1rem;
}

/* ホバー時　ふわっと変化 */
.bottom_nav_item {
  transition: color 0.3s ease;
}

/* ホバー時青くなる */
.bottom_nav_item:hover {
  color: #6fa8dcff;
}

/* 【重要】中だけに縦線（｜）を入れる疑似要素の設定 */
.bottom_nav_item:not(:last-child)::after {
  content: "｜";
  font-size: 1.5rem;
  color: black;
  pointer-events: none;
  margin-left: 1rem;
}

/* - 会社情報 - */
.bottom_office {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.bottom_office_info {
  max-width: 100rem;
}

.bottom_office_info .bottom_office_name {
  font-weight: bold;
}

/* 会社名 */
address {
  font-size: 1.2rem;
}

/* 会社ロゴ */
.office_inner_logo {
  width: 20rem;
  height: 5rem;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.3s;
}

.office_inner_logo:hover {
  opacity: 0.6;
}

/* インスタグラム全体 */
.logo_instagram_link {
  background-color: #ffffff;
  width: 25rem;
  height: 5rem;
  font-size: 1.8rem;
  border-radius: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s;
  cursor: pointer;
}

.logo_instagram_link:hover {
  opacity: 0.6;
}

/* インスタグラム　アイコン */
.footer_logo_instagram {
  width: 30px;
  height: 30px;
  object-fit: cover;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* インスタグラム　文字 */
.footer_instagram_text {
  font-weight: bold;
}

/* - コピーライト - */
.copyright {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 15rem;
}

/* ==================================================
スマートフォン版
================================================== */
@media screen and (max-width: 768px) {

  /* フッター：アクセス */

  /* 左右2分割のラッパーを縦並びに変更 */
  .access_container {
    flex-direction: column;
    height: auto;
    align-items: center;
    /* テキストとマップの間の隙間 */
    gap: 4rem;
  }

  /* 左側（タイトルと住所）のエリア */
  .access_info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* タイトル */
  .access_badge {
    display: block;
    margin: 2rem auto;
    font-size: 1.6rem;
    padding: 0.5rem 3rem;
    /* 文字幅に合わせる */
    width: fit-content;
  }

  /* 住所テキスト */
  .access_address {
    font-size: 1.4rem;
    margin-left: 0;
    text-align: left;
    width: 80%;
    max-width: 28rem;
  }

  /* 右側（マップ）エリア */
  .access_map {
    width: 100%;
    height: 25rem;
  }

  /* マップ */
  .map {
    height: 100%;
  }

  /* フッター：全体 */
  .bottom_area {
    background-position: center bottom;
    padding-bottom: 0;
    background-color: #ffffff;
  }

  /* 親要素：タイトルとリストを縦並びにする */
  .bottom_contact {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0rem 2rem;
  }

  /* 青いバッジ：左マージンを無くして中央寄せにする */
  .bottom_contact_title {
    font-size: 1.6rem;
    margin-left: 0;
    align-self: center;
    padding: 0.5rem 4rem;
  }

  /* リスト（ul）：Gridに切り替えて2列へ */
  .bottom_contact_list {
    display: grid;
    grid-template-columns: repeat(2, 11rem);
    /* 11remの列を2つ作る */
    gap: 2.5rem;
    justify-content: center;
    width: 100%;
  }

  /* 各丸（li）：サイズ調整 */
  .bottom_contact_item {
    width: 11rem;
    height: 11rem;
    font-size: 1.1rem;
    padding: 1rem;
  }

  /* 4番目のリンクボタンも同じサイズに調整 */
  .bottom_contact_item a {
    font-size: 1.1rem;
    padding: 1rem;
  }


  /* 共通パーツ　ボタン */
  /* <div> */
  .common_button_btm {
    width: 11rem;
    height: 11rem;
    font-size: 1.1rem;
    padding: 1rem;
    min-width: 11rem;
  }

  /* ボタンここまで */

  /* - ナビメニュー（SP） - */
  .bottom_nav {
    width: 100%;
    margin: 0 auto 1rem;
  }

  .bottom_nav_list {
    margin: 1rem auto;
    flex-wrap: wrap;
    font-size: 1.2rem;
    justify-content: center;
    gap: 0.5rem 1rem;
    /* 上下の余白 : 左右の余白 */
  }


  .bottom_nav_item {
    text-align: center;
  }

  /* お知らせの後に透明な幅100%のブロックを作って改行させる */
  .bottom_nav_item:nth-child(3)::after {
    content: "";
    display: block;
    width: 100%;
    height: 0;
  }

  /* - 会社情報 - */
  .bottom_office {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    row-gap: 1rem;
    margin: 0 auto;
    padding: 1rem;
  }

  /* 会社名 */
  .bottom_office_name {
    font-weight: bold;
    font-size: 1rem;
  }

  .bottom_office_info {
    width: 45%;
    font-size: 0.7rem;
    gap: 1rem;
    display: block;
  }

  .office_inner_logo {
    width: 100%;
    margin-left: 0rem;
  }

  /* インスタグラム全体 */
  .logo_instagram_link {
    width: 55%;
    margin-top: 1rem;
    padding: 0 2rem;
    color: black;
    position: relative;
    z-index: 0;
  }

  /* インスタグラム　アイコン */
  .footer_logo_instagram {
    padding: 0;
  }

  /* インスタグラム　文字 */
  .footer_instagram_text {
    font-size: 1.4rem;
  }

  .copyright {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
}