main#goodFlat {
  --clr-skyBlue: #004aad;
  overflow: hidden;
}

.goodflat-ttl {
	-webkit-text-fill-color: unset !important;
    -webkit-text-stroke-width: unset !important;
    -webkit-text-stroke-color: unset !important;
	color: white !important;
}

.goodflat-ttl::after {
	content: none !important;
}

main#goodFlat h5 {
  font-size: 4.2rem;
  margin-block: 2rem 6rem;
  color: var(--clr-skyBlue);
}

main#goodFlat h5 span.font-en {
  font-size: 0.6em;
  font-weight: 900;
  margin-block-end: 2rem;
  display: inline-block;
}

main#goodFlat p {
  line-height: 3;
}

.clr-skyBlue {
  color: var(--clr-skyBlue) !important;
}

main#goodflat section {
  padding: 10rem 0 0;
}

main#goodflat section h4 {
  font-size: 3rem;
}

.sec-goodlflat-bio {
  padding-top: 10rem;
}

.sec-goodflat-bio {
  padding: 10rem 0 10rem !important;
  background-attachment: fixed;
  background-size: cover;
}

[alt="goodflat-bio"] {
  width: 800px;
  border-radius: 2.4rem;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

[alt="goodflat-banner"] {
  width: 80%;
  display: block;
  margin: 0 auto;
  margin-block: 10rem;
}

.lg-3 {
  font-size: 1.8rem;
  font-weight: 700;
}

main#goodFlat h3 {
  font-size: 5.2rem;
  color: var(--clr-skyBlue);
}

[alt="goodflat-img-blank-01"] {
  width: 100%;
  border-radius: 2.4rem;
  margin-block: 8rem;
}

[alt="goodflat-announce-img"] {

  width: 45%;
  border-radius: 2.4rem;
}

.goodflat-announce-lists>li {
  display: flex;
  justify-content: center;
  column-gap: 10rem;
}

.goodflat-announce-lists>li:not(:last-child) {
  margin-block-end: 8rem;
}

.accounce-content p {
  font-size: 2rem;
}

.event-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 4rem;
  padding-block: 6rem;
}

.event-lists li img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  border-radius: 2.4rem;
}




.gallery-container {
  /* width: 300vw; */
  height: 100vh;
  display: flex;
  flex-wrap: nowrap;
  column-gap: 4rem;
  align-items: center;
  background-color: #fff;
  padding-inline: 4rem;
  z-index: 999999999999999;
}

.gallery-container h4 {
  padding-inline: 8rem;
  top: 4rem;
  width: 100%;
  font-size: 4rem;
}

.gallery-container .panel {
  width: 90vw;
  flex: 0 0 auto;
  background-color: #fff;
  border: 1px solid var(--clr-skyBlue);
  border-radius: 3.2rem;
  height: 60%;
  padding: 8rem 20rem;
}

.gallery-container .panel ul {
  padding-left: 2em;
  line-height: 3;
  font-size: 1.8rem;
}

.gallery-container .panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-container .panel:nth-child(even) div {
  order: 1;
}

.gallery-container .panel:nth-child(n) img:nth-of-type(1) {
  width: 80rem;
  object-fit: contain;
}

.gallery-container .panel:nth-child(odd) img:nth-of-type(2) {
  position: absolute;
  width: 44rem;
  right: 25%;
  top: 50%;
  object-fit: contain;
}

.gallery-container .panel:nth-child(even) img:nth-of-type(2) {
  position: absolute;
  width: 30rem;
  left: 25%;
  top: 50%;
  object-fit: contain;
}

.panel-title {
  font-size: 6rem;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--clr-skyBlue);
  font-weight: 900;
  font-family: var(--font-en);
  margin-bottom: 1rem;
  margin-top: 0;
}

.sbi_item img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.sbi_header_img_hover svg {
  width: 24px;
  height: 24px;
  display: inline-block;
}
.sbi_lightbox_carousel_icon {
  width: 24px;
  height: 24px;
}
.fa-instagram {
  width: 24px;
  height: 24px;
}
/* .instagram-lists img {
  width: 100%;
  height: auto;
  object-fit: cover;
} */

/* .sec-instagram {
  padding: 3rem 0 !important;
} */

.sec-instagram h3 {
  font-size: 4rem;
  font-family: var(--font-en);
  font-weight: 900;
  text-transform: uppercase;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-color: var(--clr-skyBlue);
  -webkit-text-stroke-width: 1px;
  border-bottom: none;
}

#sbi_images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.sbi_item {
  width: 100%; /* 各アイテムが列幅に収まるように設定 */
}

/* .instagram-lists li {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
} */

/* .instagram-lists li a {
  display: flex;
  width: 100%;
  height: 100%;;
}

.instagram-lists li a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
} */

.instagram-follow {
  display: flex;
  align-items: center;
  column-gap: 2rem;
  font-size: 2rem;
  justify-content: center;
  padding-block: 2rem;
  width: fit-content;
  margin: 0 auto;
}

.instagram-follow svg {
  width: 2rem;
  height: 2rem;
}

.goodflat-footer .social-links {
  justify-content: center;
  margin-block: 4rem 8rem;
}

.goodflat-footer .social-links>a {
  width: 5rem;
  height: 5rem;

}

[alt="goodflat-white"] {
  width: 80%;
  display: block;
  margin: 0 auto;
}

[alt="pinterest-logo"] {
  width: 100%;
  height: 100%;
}
[alt="tiktok-logo"] {
  width: 100%;
  height: 100%;
}

.btn-svg-wrapper {
  width: 5rem;
  aspect-ratio: 1 / 1;
  background-color: var(--clr-skyBlue);
  border: 1px solid var(--clr-skyBlue);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: 0.3s all ease-in-out;
}
main#goodFlat .sec-rec-cont h3 {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--clr-skyBlue);
}

/* main#goodFlat .rec-wrapper h3 span.font-en {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: var(--clr-skyBlue);
} */

.goodflat-news-lists li:not(:last-child) {
  margin-bottom: 1.2rem;


}
.goodflat-news-lists {
  display: block;
  width: 80%;
  margin: 0 auto;
}
.goodflat-news-lists li a {
  display: flex;
  column-gap: 12rem;
  width: 100%;
  padding: 2.2rem 2.2rem;
  border-bottom: 1px solid var(--clr-grey);
  border-radius: 1.2rem;
}

main#goodFlat .btn-view-all {
  display: block;
  margin-right: 0;
  margin-left: auto;
  margin-top: 2rem;
  width: 32rem;
  
}
main#goodFlat .btn-view-all::before,main#goodFlat  .btn-view-all::after {
  
  left: 10%;
}


/* sec-good-gallery */
.sec-good-gallery {
  width: 100%;
  aspect-ratio: 5 / 1;
  padding: 0 0 !important;
}
.sec-good-gallery .swiper-wrapper {
  transition-timing-function: linear !important;
}
.sec-good-gallery .swiper-slide {
  display: flex;
}
.sec-good-gallery .swiper-slide img {
  border-radius: 1.2rem;
}

@media screen and (max-width: 768px) {
  main#goodFlat h3 {
    font-size: 3.2rem;

  }

  .goodflat-announce-lists>li {
    row-gap: 10rem;
    flex-direction: column;

  }

  [alt="goodflat-announce-img"] {
    width: 80%;
    border-radius: 2.4rem;
    display: block;
    margin: 0 auto;
  }

  main#goodFlat h5 {
    font-size: 3.2rem;
    margin-block: 8rem 6rem;
  }

  .event-lists {
    column-gap: 2rem;
  }

  .gallery-container h4 {
    padding-inline: 8rem;
    top: 4rem;
    width: 100%;
    font-size: 2.6rem;
  }



  /* gallery  */

  
  .gallery-container .panel {
    padding: 2rem 2rem;
  }

  .gallery-container .panel {

    flex-direction: column;
    row-gap: 2rem;
  }

  .gallery-container .panel {
    height: unset;
  }

  .gallery-container .panel:nth-child(odd) img:nth-of-type(2) {
    position: absolute;
    width: 27rem;
    right: 56%;
    top: unset;
    object-fit: contain;
    bottom: 4rem;
  }

  .gallery-container .panel:nth-child(even) div {
    order: 0;
  }

  .gallery-container .panel:nth-child(even) img:nth-of-type(2) {
    position: absolute;
    width: 27rem;
    right: 56%;
    top: unset;
    object-fit: contain;
    bottom: 4rem;
    left: unset;
  }

  .gallery-container .panel ul {
    min-height: 10em;
    display: inline-block;
  }

  .rental-more {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-image: url(../images/service/service_02.jpeg);
    background-position: right center;
    border-top-left-radius: 0;
    border-top-right-radius: 0;

  }

  .rental-more::after {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
  }

  .gallery-container h4 {
    display: none;
  }

}

@media screen and (max-width: 426px) {
  main#goodFlat h5 {
    font-size: 2.4rem;

  }

  .accounce-content p {
    font-size: 1.6rem;
  }

  [alt="goodflat-banner"] {
    width: 80%;
    display: block;
    margin-left: auto;
    margin-right: 0;
    margin-block: 4rem;
  }

  /* gallery */


  .gallery-container .panel ul {
    padding-left: 0em;
    line-height: 3;
    font-size: 1.6rem;
  }

  .gallery-container .panel {
    height: 80%;
  }

  .gallery-container .panel:nth-child(n) img:nth-of-type(1) {
    width: 100%;
  }

  .gallery-container .panel:nth-child(odd) img:nth-of-type(2) {
    display: none;
  }

  .gallery-container {
    padding-inline: 0;
    column-gap: 0.4rem;
  }

  .pin-spacer {
    width: 100%;
    max-width: 350px;
    margin: 0 auto !important;
  }

  .gallery-container .panel {
    padding: 2rem 4rem;
  }

  .gallery-container .panel:nth-child(even) img:nth-of-type(2) {
    display: none;
  }

  .gallery-container h4 {
    padding-inline: 2rem;
    top: -2rem;
    width: 100%;
    font-size: 2.6rem;
  }

  main#goodFlat .gallery-container h5 {
    margin-block: 0 !important;
  }
  .sec-good-gallery {
    aspect-ratio: 16 / 9;
}
}

.pagination {
  display: flex; /* フレックスボックスを使用 */
  justify-content: center; /* 中央に配置 */
  align-items: center; /* 垂直方向の位置合わせ */
  margin-top: 20px; /* 上下の余白を調整 */
}

.pagination a,
.pagination span {
  display: inline-block; /* 要素をインラインブロックで表示 */
  margin: 0 5px; /* 各リンク間のスペース */
  padding: 8px 12px; /* 内側の余白 */
  border: 1px solid #ddd; /* ボーダーを設定 */
  border-radius: 4px; /* 角を丸くする */
  color: #0073aa; /* テキストの色 */
  text-decoration: none; /* 下線を削除 */
}

.pagination a:hover {
  background-color: #f0f0f0; /* ホバー時の背景色 */
  border-color: #0073aa; /* ホバー時のボーダー色 */
  color: #005177; /* ホバー時の文字色 */
}

.pagination .current {
  background-color: #0073aa; /* 現在のページの背景色 */
  color: #fff; /* 現在のページの文字色 */
  border-color: #0073aa; /* 現在のページのボーダー色 */
}