@charset "UTF-8";

/* コンタクト */
#contact {
  position: relative;
  text-align: left;
  padding-bottom: 138px;
}
.contact_text_wrap {
  width: fit-content;
  margin: 0 auto;
  padding: 0 5%;
}
.top_contact_box {
  max-width: 1200px;
  width: 83%;
  margin: 0 auto;
  padding: 100px 10px 0;
  background-color: #fff;
  border-radius: 36px;
  box-shadow: 0px 4px 4px 4px rgba(231, 231, 229, 1);
  position: relative;
  z-index: 2;
}
.contact_bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 1440px;
  height: 80%;
  background-image: url("../images/background2.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: translateX(-50%);
}
.contact_bg_wrapper {
  background-color: #ede8da;
  width: 100%;
  height: 80%;
  position: absolute;
  bottom: 0;
}

#contact ul {
  display: flex;
  gap: 13px;
}
.tel {
  color: #066d53;
  font-weight: bold;
}
.phone_number {
  color: #066d53 !important;
  font-family: "Open Sans", sans-serif;
  font-size: 1.75em;
  font-weight: 700;
}
.line_oa img {
  width: 33%;
}
#contact ul {
  text-align: center;
}
#contact li {
  position: relative;
  width: 50%;
  margin: 30px auto 65px;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #f6f6f1;
}
.contact_text {
  padding-bottom: 10px;
}
.contact_text span {
  display: inline-block;
}
.text_size14 {
  font-size: 0.86em;
}
.text_size15 {
  font-size: 1rem;
}

/* コンタクトボタン */
.contact_cards {
  display: flex;
  gap: 20px;
}

.contact_cards li {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding: 20px; */
  background-color: #f9f9f5;
  min-height: 220px; /* ボックス全体の高さを固定 */
}

/* ボタンを下に揃える */
.contact_button {
  margin-top: auto;
}
.contact_btn {
  /* position: absolute; ← これを削除！ */
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 280px;
  box-sizing: border-box;
  margin: 0 auto 10px;
  padding: 15px 24px;
  background-color: #519987;
  color: #f6f6f1;
  text-decoration: none;
  position: relative; /* ::beforeの枠線用に残す */
}

.btn_text {
  font-size: 1em;
}
.contact_btn:before {
  position: absolute;
  inset: -4px 4px 4px -4px;
  border: 1px solid #eaeaea;
  content: "";
}
/* 矢印 */
.contact_arrow {
  position: relative;
  display: inline-block;
  text-align: left;
  width: 24px;
  height: 2px;
  padding-left: 10px;
  border-radius: 9999px;
  background-color: #f6f6f1;
  /* transform: translateY(-5px);  */
  /* 5px 上に移動 */
}
.contact_arrow::before,
.contact_arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  width: 10px;
  height: 2px;
  border-radius: 9999px;
  background-color: #f6f6f1;
  transform-origin: calc(100% - 1px) 50%;
}
.contact_arrow::before {
  transform: rotate(45deg);
}
.contact_arrow::after {
  transform: rotate(-45deg);
}

/* フッター */
footer {
  background-color: #388d78;
  padding-top: 20px;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 700;
}
.footer_wrap {
  max-width: 1440px;
  display: flex;
  margin: 0 auto;
}
.footer_nav {
  width: 82%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  column-gap: 40px;
  row-gap: 0;
  padding-left: 12%;
  padding-right: 8%;
}
.footer_logo {
  width: 10%;
  max-width: 145px;
  margin-left: 8%;
}
.footer_logo img {
  display: block;
}
.footer_nav_list li {
  display: inline-block;
}
.footer_nav_list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 0;
  margin: 0;
}
.footer_nav_list li {
  color: #f6f6f1;
  font-size: 1em;
}
.sns_icon {
  margin-right: auto;
}
.sns_icon img {
  display: block;
  width: 29px;
  height: auto;
}
footer small {
  display: block;
  text-align: center;
  color: #f6f6f1;
  font-size: 10px;
}

.invisible-recaptcha {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

#page-top {
  position: fixed;
/*   bottom: 180px; */
  bottom:206px;
  right: 20px;
  font-size: 14px;
  line-height: 1;
  z-index: 99;
}
#page-top a {
  width: 60px;
  display: block;
  opacity: 0.9;
  transition: all 0.3s ease;
}
#page-top a:hover {
  text-decoration: none;
  opacity: 0.5;
}

#contact .text_break {
  display: inline-block;
}

@media (max-width: 1080px) {
  .footer_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    column-gap: 0;
  }
  .footer_nav_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 10px;
    flex-grow: 1;
  }
  .sns_icon {
    padding-top: 20px;
  }
}

@media screen and (max-width: 1000px) {
  .phone_number {
    font-size: 1.6em;
  }
  .line_oa img {
    width: 60%;
  }
}

@media screen and (max-width: 768px) {
  .contact_bg {
    background-image: none;
  }

  #page-top {
    display: none !important;
  }

  #contact {
    background-size: 100% 90%; /* 横幅100 高さを80*/
    margin-top: 100px;
    padding-bottom: 80px;
  }
  .top_contact_box {
    padding-top: 60px;
    padding-bottom: 30px;
  }
  #contact ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  .phone_number {
    font-size: 1.75em;
  }
  .line_oa img {
    width: 25%;
  }
  #contact li {
    position: static;
    width: 80%;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 30px;
  }
  #contact ul li:nth-child(2) p {
    margin-bottom: 20px;
  }

  .contact_btn {
    display: flex; /* ←これが抜けてるのが原因！ */
    justify-content: space-between; /* 矢印を右に寄せる */
    align-items: center; /* 縦方向中央揃え */
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 24px;
  }
  .contact_btn:before {
    position: absolute;
  }
  .footer.nav_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
  .footer_nav_list li {
    list-style: none;
  }
  .sns_icon {
    align-self: start;
    padding-top: 10px;
  }
  small {
    margin-top: 50px;
  }
}

@media screen and (max-width: 600px) {
  #contact .main_heading {
    font-size: 3em;
    line-height: 1;
  }
  #contact .heading_ja {
    margin-top: 10px;
    margin-bottom: 40px;
  }
  #contact {
    background-color: #ede8da;
    padding-top: 50px;
  }
  .top_contact_box {
    width: 90%;
  }
  .contact_bg_wrapper {
    display: none;
  }

  .footer_nav_list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    text-align: left;
    font-size: 0.9em;
  }
  .sns_icon {
    margin: 0 auto;
  }
}

@media screen and (max-width: 480px) {
  .contact_text {
    text-align: left;
  }
  .line_oa img {
    width: 40%;
  }
  #contact li {
    width: 90%;
  }
  .contact_btn {
    width: 90%;
  }

  .top_contact_box {
    padding-top: 20px;
  }

  .footer_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer_logo {
    display: none;
  }
  .footer_nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
  }
}
/* スマホだけ有効 */
@media (min-width: 769px) {
  a.phone_number[href^="tel:"] {
    pointer-events: none;    /* クリック無効化 */
    cursor: default;         /* カーソルを通常に */
    color: inherit;          /* テキスト色に */
    text-decoration: none;   /* 下線なしに */
  }
}
