@charset "utf-8";

.article.facility-top {
  padding-bottom: 0;
}

/* ====================================================
facility 共通
==================================================== */
.facility .contents__head {
  position: relative;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  z-index: 2;
}

@media screen and (max-width: 767px) {
  .facility .contents__head {
    margin-bottom: 0;
  }
}

/* ====================================================
facility-top 一覧
==================================================== */

.facility-top .content__head__img {
  width: 70%;
  margin-left: auto;
  background: url(../img/facility/facility__heading.webp) no-repeat right top / cover;

  aspect-ratio: 968 / 299;
}
.facility-top .ttl_area {
  position: absolute;
  top: 60px;
  z-index: -1;
  width: 38%;
  margin-left: 5%;
  padding: 10.5% 0 0 60px;
  border-radius: 36px;
  background: var(--c-blue);
  text-align: left;
  color: #fff;

  aspect-ratio: 557 / 342;
}

.facility-top .ttl_area h1 {
  font-size: var(--fs-38);
  line-height: 1.3;
  text-align: left;
}
.facility-top .breadcrumb ul {
  justify-content: flex-start;
}
.facility-top .breadcrumb ul li a {
  color: #fff;
}

.facility .illust_area {
  position: relative;
  display: flex;
}

.facility_img001 {
  position: absolute;
  top: -20px;
  right: 0;
  left: 18%;
  width: 25%;
  max-width: 322px;
  margin: auto;
}
.facility_img002 {
  position: absolute;
  top: -40px;
  right: 3%;
  width: 18%;
  max-width: 256px;
}

.fade_in_illust {
  opacity: 0;
}

@keyframes fadeIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade_illust__001 {
  animation: fadeIn 0.6s ease-out forwards; /* 1秒かけてアニメーション、終了時に状態を保持 */
  animation-delay: 0.3s; /* ページロードから0.5秒後に開始 */
}

.fade_illust__002 {
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: 0.8s; /* icon-1 のアニメーション終了後、0.5秒待ってから開始 (0.5s + 1s = 1.5s) */
}

@media screen and (max-width: 1120px) {
  .article {
    padding-top: 0;
  }
  .facility .ttl_area {
    padding: 7% 0 0 40px;
    border-radius: 24px;
  }
  .facility .ttl_area h1 {
    font-size: var(--fs-32);
  }
}

@media screen and (max-width: 767px) {
  .facility .content__head__img {
    position: relative;
    z-index: -1;
    width: 100%;
    background: url(../img/facility/facility__heading__sp.webp) no-repeat center top / cover;

    aspect-ratio: 375 / 284;
  }
  .facility .ttl_area {
    position: static;
    width: 80%;
    margin-top: -60px;
    margin-left: 0;
    padding: 28px 5% 42px;
    border-radius: 0 18px 18px 0;

    aspect-ratio: auto;
  }
  .breadcrumb {
    margin-bottom: 0;
  }
  .facility .ttl_area h1 {
    font-size: var(--fs-26);
  }
  .facility_img001 {
    position: static;
    width: 60%;
    margin-top: -20px;
    margin-right: 20px;
  }
}

.facility-top .contents-wrapper {
  width: 100%;
  margin: 0 auto;
  padding-top: 180px;
  position: relative;
  z-index: 1;
}
.facility_layout {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 68px;
}

.facility_layout h2 {
  color: var(--c-blue);
}

.facility_layout h2 span {
  display: inline-block;
  padding: 3px 30px 0;
  border-radius: 99px;
  background: var(--c-blue);
  font-size: var(--fs-18);
  color: #fff;
}

.facility_layout figure {
  max-width: 697px;
  margin: 0 auto;
}

.facility_layout figure img {
  border-radius: 0;
}

.facility_list {
  padding: 80px 5% 160px;
  background: #e5ebef;
}

.facility_list_box {
  display: flex;
  align-items: center;
  max-width: 960px;
  margin: 0 auto 30px;
  padding: 50px 5% 30px 5%;
  border-radius: 24px;
  background: #fff;
}

.facility_list h2 {
  margin-bottom: 52px;
  font-size: var(--fs-32);
  text-align: center;
}

.facility_list_box h3 {
  width: 22%;
  font-size: var(--fs-30);
}

.facility_list_box .facility_box_text {
  width: 78%;
}

.facility_list_box.townhall h3 {
  color: var(--c-blue);
}
.facility_list_box.communitycenter h3 {
  color: #8fab8c;
}

.facility_list_box .facility_box_text p {
  margin-bottom: 8px;
}

.facility_list_box .facility_box_text .arrow_right {
  justify-content: end;
}

@media screen and (max-width: 1024px) {
  .facility_list_box h3 {
    width: 25%;
    font-size: var(--fs-26);
  }
}

@media screen and (max-width: 767px) {
  .facility .contents-wrapper {
    padding-top: 60px;
  }
  .facility_layout h2 {
    margin-bottom: 20px;
    text-align: center;
  }
  .facility_list_box {
    display: block;
    padding: 36px 8% 46px;
  }
  .facility_list_box h3 {
    width: 100%;
    margin-bottom: 12px;
    font-size: var(--fs-30);
    text-align: center;
  }
  .facility_list_box .facility_box_text {
    width: 100%;
  }
}

/* ====================================================
facility-list 役場・図書公民館
==================================================== */

.facility-list .content__head__img {
  width: 92%;
  margin-left: auto;

  aspect-ratio: 1320 / 460;
}

.townhall .content__head__img {
  background: url(../img/facility/townhall__heading.webp) no-repeat right top / cover;
}
.library .content__head__img {
  background: url(../img/facility/library__heading.webp) no-repeat right top / cover;
}

.facility-list .ttl_area {
  width: 30%;
  margin-top: -120px;
  margin-bottom: 40px;
  padding: 46px 0 40px 10%;
  border-radius: 0 36px 36px 0;
  background: var(--c-blue);
  text-align: left;
  color: #fff;
}

.facility-list .ttl_area h1 {
  padding-bottom: 0;
  font-size: var(--fs-32);
  line-height: 1.3;
  text-align: left;
}

.facility-list .ttl_area h1 span {
  display: block;
  font-size: var(--fs-22);
}

.facility-list .detail_area {
  padding-left: 10%;
}

.facility-list .contents-wrapper {
  width: 100%;
  margin: 0 auto;
}

.townhall_img001 {
  width: 6%;
  max-width: 97px;
  margin-top: -20px;
  margin-right: 120px;
  margin-left: auto;
}

.townhall_img002 {
  width: 27%;
  max-width: 341px;
  margin-top: -8%;
  margin-right: 6%;
}

.facility-list .facility_layout figure {
  max-width: 939px;
  margin-bottom: 60px;
}

.facility_layout_detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.facility_layout_detail:after {
  display: block;
  width: 30%;
  content: "";
}

.facility_layout_detail .detail_text {
  width: 30%;
  margin-bottom: 40px;
}

.facility_layout_detail .detail_text h3 {
  margin-bottom: 10px;
  font-size: var(--fs-20);
  font-weight: bold;
}

.facility_layout_detail .detail_text h3 span {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-right: 12px;
  font-size: var(--fs-22);
  text-align: center;
  color: #fff;
}

@media screen and (max-width: 1120px) {
  .facility-list .ttl_area {
    width: 38%;
    border-radius: 0 20px 20px 0;
  }
  .townhall_img001 {
    display: none;
  }
  .townhall_img002 {
    position: static;
    margin-right: 5%;
    margin-left: auto;
  }
  .facility_layout_detail {
    display: block;
  }
  .facility_layout_detail .detail_text {
    width: 100%;
    margin-bottom: 24px;
  }
}
@media screen and (max-width: 767px) {
  .townhall .content__head__img {
    width: 100%;
    height: 404px;
    background: url(../img/facility/townhall__heading__sp.webp) no-repeat center / cover;
  }
  .library .content__head__img {
    width: 100%;
    height: 404px;
    background: url(../img/facility/library__heading__sp.webp) no-repeat center / cover;
  }
  .facility-list .detail_area {
    padding: 0 5%;
  }
  .facility-list .ttl_area {
    width: 80%;
  }

  .townhall_img002 {
    position: static;
    width: 62%;
    max-width: 232px;
    margin-top: 0;
    margin-right: 9%;
  }
  .facility_layout_detail .detail_text {
    margin-bottom: 30px;
  }
}

/* ====================================================
townhall 役場
==================================================== */

.townhall .facility_guide {
  width: 90%;
  margin: 0 auto;
  padding: 60px 10% 80px;
  border-radius: 12px;
  background: #e5ebef;
}

.townhall .facility_guide h2 {
  margin-bottom: 30px;
  font-size: var(--fs-32);
  color: var(--c-blue);
}

.facility_guide_wrap dl {
  margin-bottom: 20px;
  border-radius: 8px;
  background: #fff;
}

.facility_guide_wrap dl {
  display: flex;
  align-items: center;
  padding: 16px 5%;
}

.facility_guide_wrap dl dt {
  width: 20%;
  padding-right: 3%;
  border-right: 1px solid #d1d7e0;
  font-weight: bold;
  color: var(--c-blue);
}

.facility_guide_wrap dl dd {
  width: 78%;
  padding-left: 2%;
}

@media screen and (max-width: 767px) {
  .townhall .facility_guide {
    padding: 30px 5% 40px;
  }
  .townhall .facility_guide h2 {
    font-size: var(--fs-26);
  }
  .facility_guide_wrap dl {
    display: block;
  }
  .facility_guide_wrap dl dt {
    width: 100%;
    border-right: none;
  }
  .facility_guide_wrap dl dd {
    width: 100%;
    padding-left: 0;
  }
}
