@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
*/

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

/* ------------------------------ ご入居までの流れ ------------------------------ */
.nyukyo-purchase-flow {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  align-items: center;
  gap: 10px;
  margin: 20px 0 20px;
}
.nyukyo-purchase-flow figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nyukyo-purchase-flow figure img {
  width: 100px;
  height: auto;
  display: block;
}
.nyukyo-purchase-flow figure figcaption {
  font-size: 0.9rem;
  line-height: 1.5em;
  text-align: center;
}
.nyukyo-purchase-flow .nyukyo-purchase-flow_arrow {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #000000;
  clip-path: polygon(0 0, 0 100%, 100% 50%);
  flex-shrink: 0; /* 矢印が縮まないように */
  align-self: center; /* 縦中央 */
}

/* ① 〜 ⑦ */
.cat-flow-img {
  margin: 20px 0;
}
.cat-flow {
  margin-bottom: 80px;
}
.cat-flow-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 3px dotted #00aa95;
}
.cat-flow-item:last-child {
  padding-bottom: 10px;
  border-bottom: 3px dotted #00aa95;
}
.cat-flow-item ul {
  padding-left: 20px; /* 左の余白＝マーカーの位置 */
}

/* 住宅ローンシュミレーションボタン */
.flow-purchase {
  margin-top: 10px;
}
.flow-purchase a {
  color: white; /*文字は白に*/
  padding: 5px 20px;
  background: #00aa95;
  border-radius: 5px;
  height: 30px;
  font-weight: 700;
  text-decoration: none;
}
.flow-purchase a:hover {
  background: rgb(0, 170, 149, 0.3);
  color: #333;
}

/* タイミング */
.cat-flow-timing {
  margin: 20px 0;
}
.cat-flow-timing h4 {
  font-size: 28px;
  padding-bottom: 10px;
}
.cat-flow-timing table {
  border-collapse: collapse;
  width: 100%;
}
.cat-flow-timing th,
td {
  border: 1px solid #636363;
  padding: 8px 12px;
  background-color: #ddece8; /* 全セル同じ色 */
}
.cat-flow-timing table:not(.has-border-color) :where(th, td) {
  border: 1px solid #636363;
}
.cat-flow-timing table th,
table td {
  position: relative;
  padding: 0.3em 1em;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

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

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

  /* アイコン フロー */
  .nyukyo-purchase-flow {
    display: flex;
    flex-direction: column; /* figureを縦並び */
  }
  .nyukyo-purchase-flow::after {
    content: "";
    background-color: inherit;
  }
  .nyukyo-purchase-flow figure {
    display: flex;
    flex-direction: row; /* imgとfigcaptionを横並び */
    align-items: center;
    background-color: #eff8f6;
    width: 100%;
    padding: 6px 0 6px 16px;
  }
  .nyukyo-purchase-flow figure img {
    flex-shrink: 0; /* 左に固定・縮まない */
    width: 20%;
  }
  .nyukyo-purchase-flow figcaption {
    flex: 1;
    text-align: center; /* 中央揃え */
  }
  /* 矢印 */
  .nyukyo-purchase-flow .nyukyo-purchase-flow_arrow {
    width: 10px;
    height: 10px;
    display: block; /* 矢印は除外 */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: #00aa95;
  }
  .flow-purchase a {
    padding: 5px 20px 6px;
  }
  .nyukyo-purchase-flow span {
    white-space: nowrap;
    display: inline-block;
  }

  /* 項目 フロー */
  .cat-flow-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "icon title"
      "text text"
      "ul ul"
      "btn btn"; /* レイアウトに必要 */
    gap: 10px;
  }
  .cat-flow-item_icon {
    grid-area: icon;
  }
  .cat-flow-item_list {
    display: contents;
  }
  .cat-flow-item_list h3 {
    grid-area: title;
    align-self: center;
    padding-left: 1em;
    text-indent: -1.5em;
    line-height: 1.8rem;
  }
  .cat-flow-item_list p {
    grid-area: text;
  }
  .cat-flow-item_list .flow-purchase {
    grid-area: btn;
  }
  .cat-flow-item_list ul {
    grid-area: ul;
  }
  .flow-purchase {
    margin-top: 0;
  }
}
