/****************

master.cssは編集不可！！
LESSファイルを編集すること！

****************/
/*bootstrapの設定を読み込み*/
/* 家づくり共通 */
p {
  line-height: 2.1;
}
section {
  position: relative;
}
.text-semibold {
  font-weight: 500;
}
.works-text {
  font-size: clamp(0.75rem, calc(0.5555555555555556vw + 0.625rem), 1rem);
}
.works-pc-small {
  font-size: clamp(0.75rem, calc(0.2777777777777778vw + 0.6875rem), 0.875rem);
}
.small-text {
  font-size: clamp(0.625rem, calc(0.5555555555555556vw + 0.5rem), 0.875rem);
}
.text-red {
  color: #8D1C17;
}
.sp-center {
  text-align: center;
}
@media (min-width: 768px) {
  .sp-center {
    text-align: left;
  }
}
h2.works-tit {
  font-size: clamp(0.875rem, calc(0.7792207792207793vw + 0.6996753246753247rem), 1.625rem);
  font-weight: 600;
  margin-bottom: clamp(1.25rem, calc(1.1904761904761905vw + 0.9821428571428572rem), 1.875rem);
}
h3.works-tit {
  font-size: clamp(0.875rem, calc(0.38961038961038963vw + 0.7873376623376623rem), 1.25rem);
  font-weight: 600;
  margin-bottom: clamp(0.9375rem, calc(0.5952380952380952vw + 0.8035714285714286rem), 1.25rem);
}
.white-content {
  padding-top: clamp(1.25rem, calc(1.948051948051948vw + 0.8116883116883117rem), 3.125rem);
  padding-bottom: clamp(1.25rem, calc(1.948051948051948vw + 0.8116883116883117rem), 3.125rem);
  padding-left: clamp(0.9375rem, calc(1.6233766233766231vw + 0.5722402597402598rem), 2.5rem);
  padding-right: clamp(0.9375rem, calc(1.6233766233766231vw + 0.5722402597402598rem), 2.5rem);
  background-color: #ffffff;
  position: relative;
  margin-bottom: clamp(1.875rem, calc(3.571428571428571vw + 1.0714285714285716rem), 3.75rem);
}
.section-margin-top {
  margin-top: clamp(3.75rem, calc(3.571428571428571vw + 2.9464285714285716rem), 5.625rem);
}
.works-data {
  padding-top: clamp(0.9375rem, calc(0.6493506493506493vw + 0.7913961038961039rem), 1.5625rem);
  padding-right: clamp(0.9375rem, calc(0.6493506493506493vw + 0.7913961038961039rem), 1.5625rem);
  padding-bottom: clamp(0.9375rem, calc(0.6493506493506493vw + 0.7913961038961039rem), 1.5625rem);
  padding-left: clamp(0.9375rem, calc(0.6493506493506493vw + 0.7913961038961039rem), 1.5625rem);
  background-color: #ffffff;
}
.works-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.47619048;
}
.works-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-img-wrap .area-info {
  width: fit-content;
  font-size: clamp(0.75rem, calc(0.5555555555555556vw + 0.625rem), 1rem);
  font-weight: 500;
  line-height: 1;
  padding-top: clamp(0.1875rem, calc(0.12987012987012986vw + 0.15827922077922077rem), 0.3125rem);
  padding-bottom: clamp(0.1875rem, calc(0.12987012987012986vw + 0.15827922077922077rem), 0.3125rem);
  padding-left: clamp(0.625rem, calc(0.6493506493506493vw + 0.4788961038961039rem), 1.25rem);
  padding-right: clamp(0.625rem, calc(0.6493506493506493vw + 0.4788961038961039rem), 1.25rem);
  position: absolute;
  top: 15px;
  left: -1px;
  z-index: 2;
  background-color: #ffffff;
}
@media (min-width: 992px) {
  .works-img-wrap .area-info {
    top: 25px;
  }
}
.works-btn-wrap a {
  margin-top: clamp(0.9375rem, calc(0.6493506493506493vw + 0.7913961038961039rem), 1.5625rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 45px;
}
@media (min-width: 992px) {
  .works-btn-wrap a {
    height: 50px;
  }
}
@media (min-width: 1200px) {
  .works-btn-wrap a {
    height: 60px;
  }
}
.works-btn-wrap span.btn-wrap {
  width: 85%;
}
.works-btn-wrap h2 {
  font-size: clamp(0.75rem, calc(0.6493506493506493vw + 0.6038961038961039rem), 1.375rem);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: 0.5s ease-in-out;
}
.works-btn-wrap .madori-info {
  font-size: clamp(0.625rem, calc(0.38961038961038963vw + 0.5373376623376623rem), 1rem);
  font-weight: 500;
}
.works-btn-wrap .madori-info span {
  background-color: #8D1C17;
  color: #ffffff;
  margin-right: 1rem;
  padding: 1px 7px;
}
.works-btn-wrap .btn-circle {
  position: relative;
  display: block;
  width: 2rem;
  height: 2rem;
  border: 1px solid #010101;
  border-radius: 50%;
  transition: 0.5s ease-in-out;
  overflow: hidden;
}
@media (min-width: 992px) {
  .works-btn-wrap .btn-circle {
    width: 2.5rem;
    height: 2.5rem;
  }
}
.works-btn-wrap .btn-circle::before {
  content: "";
  width: .5rem;
  height: .5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  clip-path: polygon(0 45%, 85% 45%, 50% 0, 60% 0, 100% 50%, 60% 100%, 50% 100%, 85% 55%, 0 55%);
  background-color: #010101;
  transform: translate(-50%, -50%);
  transition: 0.5s ease-in-out;
}
.works-btn-wrap a:hover {
  color: #666666;
}
.works-btn-wrap a:hover .btn-circle::before {
  animation: move-arrow-voice 0.8s linear;
}
@keyframes move-arrow-voice {
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
  45% {
    transform: translateY(-50%) translateX(60px);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) translateX(-60px);
    opacity: 0;
  }
  55% {
    transform: translateY(-50%) translateX(-60px);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
}
.main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.48;
  margin-bottom: clamp(1.25rem, calc(2.380952380952381vw + 0.7142857142857143rem), 2.5rem);
}
.main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-wrap,
.detail-wrap-ex {
  padding-top: clamp(1.5625rem, calc(0.974025974025974vw + 1.343344155844156rem), 2.5rem);
  padding-bottom: clamp(1.5625rem, calc(0.974025974025974vw + 1.343344155844156rem), 2.5rem);
  padding-left: clamp(0.9375rem, calc(0.6493506493506493vw + 0.7913961038961039rem), 1.5625rem);
  padding-right: clamp(0.9375rem, calc(0.6493506493506493vw + 0.7913961038961039rem), 1.5625rem);
  background-color: #F0F0F0;
}
.detail-wrap div.tbl-access,
.detail-wrap-ex div.tbl-access {
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}
@media (min-width: 992px) {
  .detail-wrap div.tbl-access,
  .detail-wrap-ex div.tbl-access {
    width: fit-content;
    margin-bottom: 3.5rem;
  }
}
.detail-wrap div.tbl-access dl,
.detail-wrap-ex div.tbl-access dl {
  display: flex;
  margin-bottom: 0px;
}
.detail-wrap div.tbl-access dt,
.detail-wrap-ex div.tbl-access dt {
  width: fit-content;
  font-size: .75rem;
  font-weight: 400;
  line-height: 180%;
}
@media (min-width: 992px) {
  .detail-wrap div.tbl-access dt,
  .detail-wrap-ex div.tbl-access dt {
    width: 90px;
    font-size: 1rem;
  }
}
.detail-wrap div.tbl-access dd,
.detail-wrap-ex div.tbl-access dd {
  font-size: .75rem;
  line-height: 180%;
  margin-left: 10px;
}
@media (min-width: 992px) {
  .detail-wrap div.tbl-access dd,
  .detail-wrap-ex div.tbl-access dd {
    font-size: 1rem;
    margin-left: 100px;
  }
}
.detail-wrap div.tbl-access dd p:last-of-type,
.detail-wrap-ex div.tbl-access dd p:last-of-type {
  margin-bottom: 0;
}
.detail-wrap-ex {
  position: sticky;
  top: 30px;
}
.page-works-title-wrap {
  position: relative;
  white-space: nowrap;
}
.page-works-title {
  font-size: clamp(1.875rem, calc(1.2987012987012987vw + 1.5827922077922079rem), 3.125rem);
  margin-bottom: clamp(0.9375rem, calc(0.6944444444444444vw + 0.78125rem), 1.25rem);
  font-weight: 600;
  line-height: 1;
  width: fit-content;
  color: #fff;
  position: relative;
  margin-right: auto;
  margin-left: auto;
}
.page-works-title-jp {
  font-size: clamp(0.625rem, calc(0.8333333333333334vw + 0.4375rem), 1rem);
  margin-bottom: 0;
  font-weight: 500;
  color: #010101;
  line-height: 1;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
}
.page-works-title-left {
  font-size: clamp(1.875rem, calc(1.2987012987012987vw + 1.5827922077922079rem), 3.125rem);
  font-weight: 600;
  line-height: 1;
  color: #F0F0F0;
  position: relative;
}
@media (min-width: 768px) {
  .page-works-title-left {
    margin-left: 0;
  }
}
.page-works-title-jp-left {
  font-size: clamp(0.625rem, calc(0.8333333333333334vw + 0.4375rem), 1rem);
  margin-bottom: 0;
  font-weight: 500;
  color: #010101;
  line-height: 1;
  position: absolute;
  bottom: 0;
  left: 5%;
}
.works-movie {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0;
  margin-top: clamp(0.625rem, calc(1.3888888888888888vw + 0.3125rem), 1.25rem);
  margin-bottom: clamp(0.625rem, calc(1.3888888888888888vw + 0.3125rem), 1.25rem);
}
.works-movie img {
  width: 40px;
  height: auto;
}
.works-movie .brand-wrap {
  background: #8D1C17;
  border-radius: 50%;
}
div.tbl-works {
  width: 100%;
}
div.tbl-works dl {
  margin-bottom: 0px;
}
div.tbl-works dt {
  width: fit-content;
  font-size: clamp(0.75rem, calc(0.5555555555555556vw + 0.625rem), 1rem);
  font-weight: 500;
  line-height: 140%;
  float: left;
}
div.tbl-works dd {
  font-size: clamp(0.75rem, calc(0.5555555555555556vw + 0.625rem), 1rem);
  line-height: 140%;
}
div.tbl-works dd p:last-of-type {
  margin-bottom: 0;
}
ul.gallery-ul-type {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  flex-direction: row;
  padding-left: 0;
  margin-top: clamp(0.9375rem, calc(0.5952380952380952vw + 0.8035714285714286rem), 1.25rem);
  margin-bottom: clamp(0.9375rem, calc(0.5952380952380952vw + 0.8035714285714286rem), 1.25rem);
}
@media (min-width: 768px) {
  ul.gallery-ul-type {
    gap: .5rem;
  }
}
ul.gallery-ul-type li {
  font-size: clamp(0.75rem, calc(0.2777777777777778vw + 0.6875rem), 0.875rem);
  font-weight: 500;
}
ul.gallery-ul-type a {
  color: #ffffff;
  display: block;
  padding: 7px 13px;
  line-height: 1;
  border-radius: 3px;
  background-color: #8D1C17;
  transition: background-color 0.4s ease;
}
@media (min-width: 768px) {
  ul.gallery-ul-type a {
    padding: 6px 10px;
  }
}
.works-contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.works-contact-icon {
  position: relative;
  z-index: 1;
}
.works-contact-icon img {
  width: auto;
  height: 1.625rem;
}
.works-contact-text-wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.works-contact-text-wrap p {
  font-size: clamp(0.875rem, calc(0.2777777777777778vw + 0.8125rem), 1rem);
  font-weight: 500;
  margin-bottom: 0;
}
.works-contact-text-wrap .btn-circle {
  position: relative;
  overflow: hidden;
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #8D1C17;
  border-radius: 50%;
  margin-right: 0;
  transition: 0.5s ease-in-out;
}
@media (min-width: 992px) {
  .works-contact-text-wrap .btn-circle {
    width: 2rem;
    height: 2rem;
  }
}
.works-contact-text-wrap .btn-circle::before {
  content: "";
  width: .5rem;
  height: .5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  clip-path: polygon(0 45%, 85% 45%, 50% 0, 60% 0, 100% 50%, 60% 100%, 50% 100%, 85% 55%, 0 55%);
  background-color: #8D1C17;
  transform: translate(-50%, -50%);
  transition: 0.5s ease-in-out;
}
.works-contact-link {
  background-color: #FFFFFF;
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid #ffffff;
}
.works-contact-link:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-color: #dddddd;
  transform: scaleX(0);
  transform-origin: left top;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.works-contact-link:hover {
  color: #8D1C17;
}
.works-contact-link:hover .btn-circle::before {
  animation: move-arrow-works 0.8s linear;
}
@keyframes move-arrow-works {
  /* 円の中（少し左寄り） */
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
  /* 右側の外にはみ出す位置 */
  45% {
    transform: translateY(-50%) translateX(60px);
    opacity: 1;
  }
  /* 一瞬で左外へワープ（見た目を自然にするなら透明に） */
  50% {
    transform: translateY(-50%) translateX(-60px);
    opacity: 0;
  }
  /* 左外からまた見えるようにする */
  55% {
    transform: translateY(-50%) translateX(-60px);
    opacity: 1;
  }
  /* 元の位置（円の中）に戻る */
  100% {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
  }
}
.works-contact-link:hover:before {
  transform: scale(1);
}
.works-pickup-content {
  position: relative;
  margin-bottom: clamp(1.875rem, calc(10.714285714285714vw + -0.5357142857142856rem), 7.5rem);
}
.works-text-box {
  margin-top: clamp(1.875rem, calc(-1.1904761904761905vw + 2.142857142857143rem), 1.25rem);
  margin-bottom: clamp(0.9375rem, calc(0.5952380952380952vw + 0.8035714285714286rem), 1.25rem);
}
@media (min-width: 992px) {
  .works-text-box {
    width: 50%;
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    background: #f0f0f099;
    padding: 25px;
  }
}
@media (min-width: 992px) {
  .works-text-box p {
    margin-bottom: 0;
  }
}
@media (min-width: 992px) {
  .pickup-img-wrap img {
    width: 70%;
    display: block;
  }
}
@media (min-width: 992px) {
  .lg-right .works-text-box {
    left: 0;
  }
  .lg-right .pickup-img-wrap img {
    margin-left: auto;
    margin-right: 0;
  }
}
.works-pickup-content-st {
  position: relative;
  margin-bottom: clamp(1.875rem, calc(3.571428571428571vw + 1.0714285714285716rem), 3.75rem);
}
.works-text-box-st {
  margin-top: clamp(1.875rem, calc(-1.1904761904761905vw + 2.142857142857143rem), 1.25rem);
  margin-bottom: clamp(0.9375rem, calc(0.5952380952380952vw + 0.8035714285714286rem), 1.25rem);
}
@media (min-width: 992px) {
  .pickup-img-wrap-st img {
    width: 70%;
    display: block;
  }
}
.gallery-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 0.66;
}
.gallery-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.random-works {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
.random-works img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.random-works .detail {
  width: calc(100% - 20px);
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
}
.random-works .detail h3 {
  font-size: clamp(0.625rem, calc(0.38961038961038963vw + 0.5373376623376623rem), 1rem);
  font-weight: 500;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
  z-index: 3;
  pointer-events: none;
}
.random-works::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}
.pagenavi {
  text-align: center;
  margin-top: clamp(2.5rem, calc(2.380952380952381vw + 1.9642857142857144rem), 3.75rem);
  margin-bottom: clamp(2.5rem, calc(2.380952380952381vw + 1.9642857142857144rem), 3.75rem);
}
.pagenavi .page-numbers {
  font-size: clamp(0.75rem, calc(0.5555555555555556vw + 0.625rem), 1rem);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #000;
  display: inline-grid;
  background: #ffffff;
  place-items: center;
  margin-left: clamp(0.125rem, calc(0.9523809523809524vw + -0.0892857142857143rem), 0.625rem);
  margin-right: clamp(0.125rem, calc(0.9523809523809524vw + -0.0892857142857143rem), 0.625rem);
}
@media (min-width: 992px) {
  .pagenavi .page-numbers {
    width: 50px;
    height: 50px;
  }
}
.pagenavi .dots,
.pagenavi .prev,
.pagenavi .next {
  background-color: transparent;
}
.pagenavi .prev,
.pagenavi .next {
  width: auto;
}
.pagenavi .current {
  font-weight: 500;
  border: none;
  background: #8D1C17;
  color: #ffffff;
}
