@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイル
************************************/

/* ------------------------------ トップページ ------------------------------ */
/* カテゴリータイトル */
.cat-item {
  display: flex;
  justify-content: center; /* 子要素全体を中央に寄せる */
  width: 100%; /* 親の幅 */
  height: 80px;
  margin-bottom: 10px;
  gap: 10px;
}
.cat-title {
  flex: 0 0 auto;
  line-height: 80px; /* 文字高さ中央 */
  font-size: 32px;
}
.cat-title .image {
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.cat-itembox-l,
.cat-itembox-r {
  flex: 1;
  position: relative; /* ← 必須 */
}
.cat-itembox-l::after,
.cat-itembox-r::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%; /* 縦の中央 */
  height: 2px;
  border-top: 3px dotted #00aa95; /* ← 破線 */
  transform: translateY(-50%);
}
.cat-itembox-l::after {
  margin-right: 20px;
}
.cat-itembox-r::after {
  margin-left: 20px;
}

/* ヴィジェット カルーセル */
.widget::after {
  margin-bottom: 0;
}

/* 入居までの流れ */
.home-purchase-flow {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  height: auto;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  margin: 30px 0 160px;
}
.home-purchase-flow::after {
  content: "";
  position: absolute;
  top: -10px; /* 背景画像をはみ出す */
  left: -80px;
  right: -80px;
  bottom: -80px;
  background-color: #eff8f6;
  z-index: -1; /* テキストの後ろに */
}
.home-purchase-flow figure {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.home-purchase-flow figure img {
  width: 80px;
  height: auto;
  display: block;
}
.home-purchase-flow figure figcaption {
  font-size: 0.9rem;
  line-height: 1.5em;
  text-align: center;
  font-weight: 500;
}
/* 矢印 */
.home-purchase-flow .home-purchase-flow_arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #000000;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  flex-shrink: 0; /* 矢印が縮まないように */
  align-self: center; /* 縦中央 */
}
.home-purchase-flow a {
  position: absolute; /*絶対配置*/
  color: white; /*文字は白に*/
  left: 0;
  right: 0;
  bottom: -50px;
  margin: 0 auto;
  padding: 0 20px;
  background: #00aa95;
  border-radius: 5px;
  width: fit-content;
  font-weight: 700;
  text-decoration: none;
}
.home-purchase-flow a:hover {
  background: rgb(0, 170, 149, 0.3);
  color: #333;
}

/* 理想の住まい */
.cat-deal {
  height: 452px;
  position: relative;
  margin-bottom: 80px;
}
.cat-deal::before {
  content: "";
  position: absolute;
  top: -20px; /* 背景画像をはみ出す */
  left: -80px;
  right: -80px;
  bottom: -20px;
  background-image: url(../img/home/ideal-bg.jpg);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1; /* テキストの後ろに */
}
.cat-item-ideal_text {
  font-size: 24px;
  line-height: 2.4rem;
  text-align: center;
  margin-top: 20px;
}
.cat-item-ideal_text-primary {
  color: #00aa95;
}
.cat-deal-img {
  display: flex;
  gap: 20px;
  margin: 25px 20px 0;
}
.cat-deal-img_box {
  width: calc((100% - 40px) / 3);
  height: auto;
  background-color: #fff;
  background-color: rgba(255, 255, 255, 0.8);
  border: 0.5px solid #888888;
  padding: 10px;
}
.cat-deal-img_box-title {
  font-size: 1.3rem;
  line-height: 1.8rem;
  text-align: center;
  color: #26456a;
}
.cat-deal-img_box img {
  width: 200px;
  display: block;
  margin: 0 auto;
}
.cat-deal-img_box-supplement {
  font-size: 0.9rem;
  line-height: 1.3rem;
}

/* 販売実績 */
#home-jisseki {
  margin-top: 30px;
}
#home-jisseki ol,
ul {
  padding-left: 0;
}
#home-jisseki ul.grid-content {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
#home-jisseki ul.grid-content li {
  width: inherit !important;
  flex: 1;
  padding: 0 !important;
  border: 0;
}
#home-jisseki ul.grid-content > li::after {
  height: 0;
}
#home-jisseki .box1low {
  display: none;
}
/* 販売実績 サムネイル */
.jisseki-sam {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 30px 0 35px;
}
.jisseki-sam-item {
  overflow: hidden;
}

/* 販売実績 fudo-plugin */
.cat-achievements .widgettitle {
  display: none;
}
.cat-achievements {
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 5px;
  width: 195px;
  height: 40px;
  text-align: center;
  font-weight: 700;
  background-image: url(../img/home/cat-achievements_btn-bg.svg);
}
.cat-achievements a {
  color: #000000;
  text-decoration: none;
  position: relative;
  top: -1px; /* 上にずらす */
}
.cat-achievements a:hover {
  color: rgb(51, 51, 51, 50%);
}

.fudo-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333;
}

.fudo-card-title {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.fudo-card-img {
  height: 180px;
  overflow: hidden;
  margin-bottom: 8px;
}

.fudo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fudo-card-price {
  font-weight: bold;
  color: #e60023;
  margin-bottom: 5px;
}

.fudo-card-address {
  font-size: 12px;
  color: #666;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
  /* カテゴリータイトル */
  .cat-item {
    height: 60px;
  }
  .cat-title {
    line-height: 60px; /* 文字高さ中央 */
    font-size: 22px;
  }
  .cat-itembox-l::after {
    margin-right: 0;
  }
  /* ご購入までの流れ */
  .home-purchase-flow {
    display: flex;
    flex-direction: column; /* figureを縦並び */
    margin-top: 10px;
  }
  .home-purchase-flow::after {
    content: "";
    position: static;
    background-color: inherit;
  }
  .home-purchase-flow figure {
    display: flex;
    flex-direction: row; /* imgとfigcaptionを横並び */
    align-items: center;
    background-color: #eff8f6;
    width: 100%;
    padding: 6px 0 6px 16px;
  }
  .home-purchase-flow figure img {
    flex-shrink: 0; /* 左に固定・縮まない */
    width: 20%;
  }
  .home-purchase-flow figcaption {
    flex: 1;
    text-align: center; /* 中央揃え */
  }
  /* 矢印 */
  .home-purchase-flow .home-purchase-flow_arrow {
    width: 10px;
    height: 10px;
    display: block; /* 矢印は除外 */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: #00aa95;
  }
  .home-purchase-flow a {
    padding-bottom: 2px; /* 文字位置調整用 */
  }
  .home-purchase-flow span {
    white-space: nowrap;
    display: inline-block;
  }

  /* 理想の住まい */
  .cat-deal {
    height: auto;
  }
  .cat-deal::before {
    top: -20px; /* 背景画像をはみ出させない */
    left: -15px;
    right: -15px;
    bottom: -10px;
    background-position: right -350px bottom;
  }
  .cat-item-ideal_text {
    font-size: 1em;
    line-height: inherit;
    text-align: left;
  }
  /* 理想の住まい 3アイテム */
  .cat-deal-img {
    flex-direction: column;
    height: auto;
    margin: 15px 5px 0;
    gap: 10px;
  }
  .cat-deal-img_box {
    width: 100%;
    flex-wrap: wrap; /* ← 追加 */
  }
  .cat-deal-img_box-title {
    font-size: 18px;
    line-height: 1.6rem;
  }

  /* 販売実績 */
  #home-jisseki ul.grid-content {
    gap: 0;
  }
  .cat-achievements a {
    top: 1px; /* 下にずらす */
  }

  /* 販売実績 サムネイル */
  .jisseki-sam {
    grid-template-columns: repeat(3, 1fr);
  }
  .jisseki-sam-item:nth-child(n + 4) {
    display: none;
  }
}
