@charset "utf-8";
/*  yohaku.css
---------------------------------------------- */

/*  pc
---------------------------------------------- */
/*-------- hero --------*/
#hero {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-bottom: 100px;
}
#hero .hero-logo {
  flex: 1;
  text-align: center;
}
#hero .hero-logo img {
  width: 258px;
}
#hero .hero-img {
  flex-shrink: 0;
  width: 580px;
}
#hero .hero-img img {
  width: 100%;
}

/*-------- concept --------*/
#concept {
  padding-bottom: 100px;
  text-align: center;
}
#concept .head-sub {
  display: block;
}
#concept .head-en::before {
  margin-bottom: 20px;
}
/* 共通CSSの p が text-align: justify を直接指定しているため、継承では中央寄せにならない */
#concept .concept-txt {
  margin-top: 50px;
  line-height: 2.2;
  text-align: center;
}

/*-------- section --------*/
.yoha-sec {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 150px;
  padding: 100px 0;
  border-top: 1px solid #d5d1cc;
}
/* 画像が左に来るセクション。SPでは本文→画像の順に戻す */
.yoha-sec__rev {
  flex-direction: row-reverse;
}
.yoha-sec_txt {
  flex: 1;
}
.yoha-sec_img {
  flex-shrink: 0;
  width: 485px;
}
.yoha-sec_img img {
  width: 100%;
}
.yoha-sec .body-txt {
  line-height: 2.2;
}

/*-------- point --------*/
/* Point 番号は装飾要素のため共通の文字サイズクラスに含めない */
.point-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 30px;
  color: #385874;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1;
}
.point-head_label {
  font-size: 2.2rem;
}
.point-head_num {
  font-size: 7.2rem;
}

/*-------- madori --------*/
/* 間取りからその他の部屋までを白地にする */
.floor-area {
  background: #fff;
}
#madori {
  padding: 100px 0;
}
/* 物件詳細のタブ（#b-info .info-tab）と同じ見た目 */
#madori .info-tab {
  display: flex;
  gap: 3px;
}
#madori .info-tab_item {
  width: calc((100% - 3px) / 2);
  height: 70px;
  background: #3b5d7a;
  text-align: center;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
}
#madori .info-tab_item a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #fff !important;
}
#madori .info-wrap_item {
  margin-top: 80px;
  /* 固定ヘッダーの下に隠れないよう、遷移先の位置を下げる */
  scroll-margin-top: 90px;
  text-align: center;
}
#madori .madori-ttl {
  margin-bottom: 40px;
  text-align: center;
}
#madori .madori-img {
  max-width: 1076px;
  margin: 0 auto;
}
#madori .madori-img__2f {
  max-width: 592px;
}
#madori .madori-img img {
  width: 100%;
}

/*-------- room --------*/
#madori .room-list {
  display: flex;
  flex-wrap: wrap;
  gap: 60px 50px;
  margin-top: 80px;
  text-align: left;
}
/* 本文の行数が違っても画像の位置を揃えるため、高さを伸ばして画像を下端に置く */
#madori .room-list_item {
  display: flex;
  flex-direction: column;
  width: calc((100% - 50px) / 2);
}
#madori .room-head {
  display: flex;
  align-items: center;
  gap: 15px;
}
/* 連番は装飾要素のため共通の文字サイズクラスに含めない */
#madori .room-head_num {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 5rem;
  aspect-ratio: 1/1;
  background: #385874;
  border-radius: 50%;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2rem;
  line-height: 1;
}
#madori .room-list_item-img {
  margin-top: auto;
  padding-top: 25px;
}
#madori .room-list_item-img img {
  width: 100%;
}

/*-------- other --------*/
#other {
  padding: 100px 0;
  overflow: hidden;
}
#other .other-ttl {
  margin-bottom: 50px;
  text-align: center;
}
#other .other-swiper_cont {
  position: relative;
}
/* 画像の読み込み前でも幅が決まるよう、スライド側に比率を持たせる */
#other .other-swiper .swiper-slide {
  width: auto;
  height: 495px;
  aspect-ratio: 16/9;
}
#other .other-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 共通CSSで static 指定のため、スライダー上に重ねる分だけ絶対配置に戻す */
/* Swiper本体が margin-top で上へずらすため、打ち消してスライドの中央に置く */
#other .other-prev,
#other .other-next {
  position: absolute !important;
  top: 50%;
  margin-top: 0;
  width: 60px !important;
  height: 60px !important;
  z-index: 2;
}
/* 中央スライドの幅は 高さ495px × 16/9 = 880px。その左右端に円の中心を重ねる */
#other .other-prev {
  left: calc(50% - 440px);
  transform: translate(-50%, -50%);
}
#other .other-next {
  right: calc(50% - 440px);
  transform: translate(50%, -50%);
}

/*-------- movie --------*/
#movie {
  padding: 140px 0;
  text-align: center;
}
#movie .movie-logo {
  margin-bottom: 50px;
}
#movie .movie-logo img {
  width: 130px;
}
#movie .movie-frame {
  aspect-ratio: 16/9;
}
#movie .movie-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*-------- bukken --------*/
#bukken .bukken-head_en {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  line-height: 1;
}
#bukken .bukken-head_en::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #fff;
}
#bukken .bukken-head .head-sub {
  display: block;
  margin-top: 25px;
}
#bukken .bukken-swiper {
  margin-top: 60px;
}
#bukken .bukken-list {
  gap: 27px;
}
#bukken .bukken-item {
  width: calc((100% - 54px) / 3);
  height: auto;
}
/* PCはスワイパーを動かさず3カラムで並べる */
#bukken .bukken-btns {
  display: none;
}
#bukken .bukken-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#bukken .bukken-item_img {
  aspect-ratio: 16/7;
}
#bukken .bukken-item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#bukken .bukken-item_info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
}
#bukken .bukken-item_info .cat {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.2rem;
}
#bukken .bukken-item_info .cat li {
  padding: 6px 10px;
  line-height: 1;
}
#bukken .bukken-item_info .cat .cat_area {
  background: #3b5d7a;
}
#bukken .bukken-item_info .cat .cat_new {
  background: #cf882a;
}
#bukken .bukken-item_info .cat .cat_cp {
  background: #aea49e;
}
#bukken .bukken-item_info .name {
  font-family: "Noto Serif JP", serif;
  line-height: 1.8;
}
#bukken .bukken-item_info .desc {
  margin: 10px 0 20px;
  color: #878787;
  font-size: 1.4rem;
  line-height: 2;
}
#bukken .bukken-item_info .map {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto 0 30px 0;
  color: #878787;
  font-size: 1.2rem;
}
#bukken .bukken-item_info .map::before {
  content: "";
  width: 20px;
  height: 25px;
  background: url(../common/img/icon_map.svg) no-repeat center / contain;
}
#bukken .bukken-item_info .favo {
  margin: 0 0 0 auto;
  width: 25px;
  height: 20px;
  cursor: pointer;
}
#bukken .bukken-item_info .favo input[type="checkbox"] {
  display: none;
}
#bukken .bukken-item_info .favo .hidden::before,
#bukken .bukken-item_info .favo input[type="checkbox"]:checked + .hidden::after {
  font-family: "Font Awesome 5 Free";
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  content: "\f004";
  color: #114465;
  font-size: 20px;
  line-height: 1;
}
#bukken .bukken-item_info .favo .hidden::before {
  font-weight: 400;
}
#bukken .bukken-item_info .favo input[type="checkbox"]:checked + .hidden::before {
  display: none;
}
#bukken .bukken-item_info .favo input[type="checkbox"]:checked + .hidden::after {
  font-weight: 600;
}
#bukken .bukken-btn {
  margin: 50px 0 0 auto;
}

/*  sp
---------------------------------------------- */
@media only screen and (max-width: 959px) {
  /*-------- hero --------*/
  #hero {
    display: block;
    padding-bottom: 50px;
  }
  #hero .hero-logo img {
    width: 20rem;
    margin-inline: auto;
  }
  #hero .hero-img {
    width: 100%;
    margin-top: 30px;
  }

  /*-------- concept --------*/
  #concept {
    padding-bottom: 50px;
    text-align: left;
  }
  #concept .head-en::before {
    margin-bottom: 15px;
  }
  #concept .concept-txt {
    margin-top: 30px;
    line-height: 2;
    text-align: left;
  }

  /*-------- section --------*/
  .yoha-sec {
    display: block;
    padding: 50px 0;
  }
  .yoha-sec_img {
    width: 100%;
    margin-top: 30px;
  }
  .yoha-sec .body-txt {
    line-height: 2;
  }

  /*-------- point --------*/
  .point-head {
    gap: 8px;
    margin-bottom: 20px;
  }

  /*-------- madori --------*/
  #madori {
    padding: 50px 0;
  }
  #madori .info-tab_item {
    height: 6rem;
    line-height: 1.4;
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%, 0 7px);
  }
  #madori .info-wrap_item {
    margin-top: 40px;
  }
  #madori .madori-ttl {
    margin-bottom: 20px;
  }

  /*-------- room --------*/
  #madori .room-list {
    display: block;
    margin-top: 40px;
  }
  #madori .room-list_item {
    width: 100%;
  }
  #madori .room-list_item + .room-list_item {
    margin-top: 40px;
  }
  #madori .room-head {
    gap: 10px;
  }
  #madori .room-list_item-img {
    padding-top: 20px;
  }

  /*-------- other --------*/
  #other {
    padding: 50px 0;
  }
  #other .other-ttl {
    margin-bottom: 25px;
  }
  #other .other-swiper .swiper-slide {
    height: 20.5rem;
    aspect-ratio: 13/8;
  }
  #other .other-prev,
  #other .other-next {
    width: 38px !important;
    height: 38px !important;
  }
  /* 中央スライドの幅は 高さ20.5rem × 13/8 = 33.3rem */
  #other .other-prev {
    left: calc(50% - 16.65rem);
  }
  #other .other-next {
    right: calc(50% - 16.65rem);
  }

  /*-------- movie --------*/
  #movie {
    padding: 70px 0;
  }
  #movie .movie-logo {
    margin-bottom: 30px;
  }
  #movie .movie-logo img {
    width: 13rem;
    margin-inline: auto;
  }

  /*-------- bukken --------*/
  #bukken .bukken-head .head-sub {
    margin-top: 15px;
  }
  #bukken .bukken-swiper {
    margin-top: 30px;
  }
  #bukken .bukken-list {
    align-items: flex-start;
    gap: 0;
  }
  #bukken .bukken-item {
    width: 100%;
  }
  #bukken .bukken-btns {
    display: flex;
  }
  #bukken .bukken-btn {
    margin: 30px auto 0;
  }
}
