@charset "UTF-8";

/* =========================================================
   yourstory.css
   邸別事例 YOURSTORY 一覧・詳細 共通
   外枠は right-layout.css に任せる
========================================================= */


/* =========================================================
   共通：上部ナビ
========================================================= */

.yourstory-subnav{
  margin-bottom: 72px;
}


/* =========================================================
   一覧
========================================================= */

.yourstory-archive-section{
  width: 100%;
  margin: 0 auto;
}

.yourstory-archive-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 58px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 90px;
}

.yourstory-archive-card{
  width: 100%;
  margin: 0;
  padding: 0;
}

.yourstory-archive-card-link,
.yourstory-archive-card-link:visited,
.yourstory-archive-card-link:hover{
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.yourstory-archive-image{
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #f4f1ec !important;
  box-sizing: border-box !important;
}

.yourstory-archive-image::before{
  content: "" !important;
  display: block !important;
  width: 100% !important;
  padding-top: 75% !important;
}

.yourstory-archive-image::after{
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: rgba(255, 255, 255, 0.68) !important;
  transform: translateY(100%) !important;
  transition: transform 0.46s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  pointer-events: none !important;
}

.yourstory-archive-card-link:hover .yourstory-archive-image::after{
  transform: translateY(0) !important;
}

.yourstory-archive-image img{
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transition: transform 0.55s ease, opacity 0.55s ease !important;
}

.yourstory-archive-card-link:hover .yourstory-archive-image img{
  transform: scale(1.035) !important;
  opacity: 0.92 !important;
}

.yourstory-archive-dummy-image{
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  background: #f4f1ec !important;
  color: #9b9387 !important;
  box-sizing: border-box !important;
}

.yourstory-archive-dummy-image span{
  display: block !important;
  color: #9b9387 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  letter-spacing: 0.16em !important;
  white-space: nowrap !important;
}

.yourstory-archive-caption{
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 0 22px 34px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  opacity: 0 !important;
  transform: translateY(36px) !important;
  transition: opacity 0.28s ease 0.14s, transform 0.34s ease 0.14s !important;
  pointer-events: none !important;
}

.yourstory-archive-card-link:hover .yourstory-archive-caption{
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.yourstory-archive-title{
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #1f252d !important;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-align: left !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.yourstory-archive-title::before,
.yourstory-archive-title::after{
  display: none !important;
  content: none !important;
}

.yourstory-archive-month{
  margin: 0 !important;
  padding: 0 !important;
  color: #333 !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
  letter-spacing: 0.04em !important;
}

.yourstory-archive-pager{
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 90px;
  text-align: center;
}

.yourstory-empty{
  margin: 80px 0 100px;
  color: #555;
  font-size: 15px;
  text-align: center;
}


/* =========================================================
   詳細
========================================================= */

.yourstory-single-section{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.yourstory-single-content{
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 90px;
}

.yourstory-single-title{
  margin: 0 0 32px !important;
  padding: 18px 24px !important;
  color: #758034 !important;
  background: #e6eaca !important;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif !important;
  font-size: 24px !important;
  line-height: 1.7 !important;
  font-weight: 600 !important;
  text-align: center !important;
  letter-spacing: 0.06em;
  border: none !important;
  box-shadow: none !important;
}

.yourstory-single-title::before,
.yourstory-single-title::after{
  display: none !important;
  content: none !important;
}

.yourstory-single-lead{
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 44px;
  color: #758034;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.yourstory-single-lead > p{
  margin: 0 0 1.4em;
}

.yourstory-single-top{
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(320px, 36%);
  justify-content: space-between;
  column-gap: 48px;
  align-items: start;
  width: 100%;
  margin: 0 auto 70px;
}

.yourstory-single-top-image img,
.yourstory-single-block-image img{
  display: block;
  width: 100%;
  height: auto;
}

.yourstory-single-house-data{
  padding: 26px 28px;
  color: #333;
  background: #eeeeee;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

.yourstory-single-house-data > p{
  margin: 0 0 1.3em;
}

.yourstory-single-shortcode{
  width: 100%;
  margin: 0 auto 70px;
}

.yourstory-single-block{
  width: 100%;
  margin: 0 auto 86px;
}

.yourstory-single-block-title{
  margin: 0 0 42px !important;
  padding: 18px 24px !important;
  color: #758034 !important;
  background: #e6eaca !important;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif !important;
  font-size: 22px !important;
  line-height: 1.7 !important;
  font-weight: 600 !important;
  text-align: center !important;
  letter-spacing: 0.06em;
  border: none !important;
  box-shadow: none !important;
}

.yourstory-single-block-title::before,
.yourstory-single-block-title::after{
  display: none !important;
  content: none !important;
}

.yourstory-single-block-main{
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 48%);
  justify-content: space-between;
  column-gap: 4%;
  align-items: start;
  width: 100%;
  margin: 0 auto 34px;
}

.yourstory-single-block.is-image-right .yourstory-single-block-image{
  order: 2;
}

.yourstory-single-block.is-image-right .yourstory-single-block-side-text{
  order: 1;
}

.yourstory-single-block.is-image-left .yourstory-single-block-image{
  order: 1;
}

.yourstory-single-block.is-image-left .yourstory-single-block-side-text{
  order: 2;
}

.yourstory-single-block-side-text,
.yourstory-single-block-body-text{
  color: #333;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.yourstory-single-block-side-text > p,
.yourstory-single-block-body-text > p{
  margin: 0 0 1.4em;
}

.yourstory-single-dummy-image{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: #f4f1ec;
  color: #9b9387;
  box-sizing: border-box;
}

.yourstory-single-dummy-image span{
  color: #9b9387;
  font-size: 20px;
  letter-spacing: 0.14em;
}

.yourstory-single-nav{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 260px;
  margin: 70px auto 0;
}

.yourstory-single-nav-prev{
  text-align: right;
}

.yourstory-single-nav-list{
  text-align: center;
}

.yourstory-single-nav-next{
  text-align: left;
}

.yourstory-single-nav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  color: #758034;
  background: #fff;
  border: none;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.yourstory-single-nav-list a{
  min-width: 44px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.yourstory-single-nav a:hover{
  opacity: 0.65;
}


/* =========================================================
   Cocoon / 共通指定に勝たせる
========================================================= */

.right-layout-content .yourstory-archive-title{
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
  text-align: left !important;
  border: none !important;
  background: none !important;
}

.right-layout-content .yourstory-single-title,
.right-layout-content .yourstory-single-block-title{
  border: none !important;
  box-shadow: none !important;
}


/* =========================================================
   Responsive
========================================================= */

@media screen and (max-width: 1024px){

  .yourstory-archive-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
  }

  .yourstory-single-content,
  .yourstory-single-lead,
  .yourstory-single-top{
    max-width: 920px;
  }

}

@media screen and (max-width: 767px){

  .yourstory-subnav{
    margin-bottom: 52px;
  }

  .yourstory-archive-grid{
    grid-template-columns: 1fr;
    max-width: 420px;
    row-gap: 48px;
    margin-bottom: 70px;
  }

  .yourstory-archive-caption{
    padding: 0 18px 28px !important;
  }

  .yourstory-archive-title{
    font-size: 14px !important;
  }

  .right-layout-content .yourstory-archive-title{
    font-size: 14px !important;
  }

  .yourstory-single-section,
  .yourstory-single-content,
  .yourstory-single-lead,
  .yourstory-single-top{
    max-width: 100%;
  }

  .yourstory-single-content{
    margin-bottom: 70px;
  }

  .yourstory-single-title{
    font-size: 20px !important;
    padding: 16px 18px !important;
  }

  .yourstory-single-lead{
    font-size: 14px;
    line-height: 2;
  }

  .yourstory-single-top{
    grid-template-columns: 1fr;
    row-gap: 28px;
    margin-bottom: 58px;
  }

  .yourstory-single-house-data{
    padding: 22px 20px;
    font-size: 13px;
    line-height: 2;
  }

  .yourstory-single-block{
    margin-bottom: 64px;
  }

  .yourstory-single-block-title{
    font-size: 19px !important;
    padding: 16px 18px !important;
    margin-bottom: 30px !important;
  }

  .yourstory-single-block-main{
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .yourstory-single-block.is-image-right .yourstory-single-block-image,
  .yourstory-single-block.is-image-left .yourstory-single-block-image,
  .yourstory-single-block.is-image-right .yourstory-single-block-side-text,
  .yourstory-single-block.is-image-left .yourstory-single-block-side-text{
    order: initial;
  }

  .yourstory-single-block-side-text,
  .yourstory-single-block-body-text{
    font-size: 13px;
    line-height: 2;
  }

}