body {
  counter-reset: titleNum;
  counter-increment: titleNum;
}


.mt-50{
	margin-top: 50px;
}

.ttl_big{
	font-family:ms YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	font-size:40px;
}



.syouhin-title{
	border-bottom: 2px solid #FFA9C8;
	margin: 0 0 16px 0;
}

.number {
  position: relative;
  padding-left: 2.3rem;
  border-bottom: 2px solid #FFB74D;
}
.number::before {
  position: absolute;
  top: 0;
  left: 0;
  content: counter(titleNum);
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  background-color: #FFB74D;
  border-radius: 100%;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
}


.contents {
  max-width: 860px;
  margin: 20px auto;
  display: -ms-grid;
  display: grid;
      grid-template-areas: "title title" "image text";
  gap: 10px 20px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items:center; 	
}

.contents__title {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  grid-area: title;
  font-size: 24px;
}

.contents__image {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
  grid-area: image;
  width: 200px;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}

.contents__text {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
  grid-area: text;
  line-height: 1.5;
  height: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 15;
  -webkit-box-orient: vertical;
  overflow: visible;
}



/* カードレイアウト部分をラッピングし、
Flexboxを指定"space-between"で各アイテムを均等に配置し、
最初と最後のアイテムを端に寄せます。*/
#cardlayout-wrap {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    margin: 2em auto;
    max-width: 960px;
    width: 100%;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    justify-content: space-between;
}

/* リンクテキストの下線を非表示 */
a.card-link {
    text-decoration: none;
}

/* カードレイアウト内の画像を幅いっぱいに表示 */
#cardlayout-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
	margin: 0 auto;
	padding: 1.5em;
}

.card-figure {
    margin: 0;
    padding: 0;
}

/* カードレイアウトのタイトル部分 */
.card-title {
    margin: 0.6em 0 0;
    color: #333;
    text-align: center;
    font-size: 1.5em;
}

/* カードレイアウトの説明文部分 */
.card-text-tax {
    margin: 0;
    padding: 1em;
    color: #818181;
}

/* カードレイアウトを1カラムで配置 */
.card-list {
    margin: 0.5em auto;
    padding: 0;
    width: 96%;
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* 画面幅768px以上の場合カードレイアウトを2カラムで配置 */
@media all and (min-width: 768px) {
    .card-list {
        margin: 0.5em 0;
        width: calc(96% / 2); /* 96%幅を2で割るという指定 */
    }
	
.contents {
        grid-template-areas: "image title" "image text";
  }
  .contents__image {
    width: 150px;
    height: 150px;
  }
  .contents__title {
    -ms-grid-row: 1;
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
  }
  .contents__image {
    -ms-grid-row: 1;
    -ms-grid-row-span: 2;
    -ms-grid-column: 1;
  }
  .contents__text {
    -ms-grid-row: 2;
    -ms-grid-column: 2;
  overflow: visible;  
  }
	
}

/* 画面幅768px以下の場合カードレイアウトを2カラムで配置 */
@media all and (max-width: 767px) {
    .card-list {
        margin: 0.5em 0;
        width: calc(96% / 2); /* 96%幅を2で割るという指定 */
    }
	
	.contents__image {
    width: 120px;
    height: 120px;
  }
	
	.ttl_big{
	font-family:ms YuMincho, "Yu Mincho", "Hiragino Mincho ProN", "serif";
	font-size:20px;
}
}

/* 画面幅992px以上の場合カードレイアウトを4カラムで配置 */
@media all and (min-width: 992px) {
    .card-list {
        width: calc(96% / 4); /* 96%幅を4で割るという指定 */
}
    
/* 最後の行が3列より少ない場合左寄せにレイアウトさせる */
    #cardlayout-wrap::after{
        content: "";
        display: block;
        width: calc(96% / 3);
    }
}
