@charset "utf-8";
/* ========================================
■ サービス内容 「.detail」 「service.html」用
=========================================== */
.detail {
  background-color: #ffed58;
  clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
  padding: 100px 0;
  margin-bottom: 80px;
}
.detail .item {
  display: flex; /** 子要素の「.img」「.text」を横並び（自由） */
  align-items: center; /** 縦軸中央 */
  justify-content: space-between; /** 両端揃え */
}
.detail .item .img {
  width: 55%; /** 画像を少し広めに設定 */
  margin-right: 5%; /** 画像の右側の余白 画面幅を狭めても画像とテキストがくっつかないように */
}
.detail .item .img img {
  width: 100%; /** 「.img」の中で、画像は100%表示 */
}
.detail .item .text {
  width: 40%; /** テキストは狭めに設定。画像右の余白と合わせて100% */
}
.detail .item .text .title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 30px;
}
.detail .item .text .description {
  line-height: 1.8;
}
/* ========================================
■ ご利用の流れ 「.flow」
=========================================== */
.flow {
  margin-bottom: 100px;
}
.flow .item {
  display: flex;
  margin-bottom: 50px;
}
.flow .item .step {
  width: 160px; /** 図形の横幅 */
  height: 140px; /** 図形の高さ */
  background-color: #ffed58;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); /** 5角形の図形（ホームベース型） */
  font-weight: 700;
  flex-shrink: 0; /** 画面幅を狭めた際、図形の横幅が縮小されないように設定 */
  padding-top: 20px;
  margin-right: 7%;
  text-align: center;
}
.flow .item .step .title {
  display: block; /** 「.title」は「span」なのでインライン要素だが、ブロック要素にすることで「.no」が下に表示 */
  font-size: 18px;
}
.flow .item .step .no {
  display: block; /** 「.no」はインライン要素なので、「.title」とお互いにブロック要素にすることで上下に表示 */
  font-size: 56px;
}
.flow .item .text dt {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 15px;
}
.flow .item .text dd {
  line-height: 1.8;
}
.flow .item .text a {
  text-decoration: underline;
}

/* ========================================
■ スマートフォン
-========================================== */

@media screen and (max-width: 767px) {
  /*------------------------------------
    サービス内容 （スマホ）
  ----------------------------------- */
  .detail {
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    padding: 80px 0;
    margin-bottom: 40px;
  }
  .detail .item {
    flex-direction: column; /**  テキストと画像を縦に並べる （PC では、横並びにしていたのを縦に設定） */
  }
  .detail .item img {
    width: 100%;
    margin: 0 0 40px; /** 画像の下に余白 */
  }
  .detail .item .text {
    width: 100%;
  }
  .detail .item .text .title {
    text-align: center;
  }
  /*-------------------------------------------
  ご利用の流れ（スマホ）
  -------------------------------------------*/
  .flow {
    margin-bottom: 40px;
  }
  .flow .item {
    margin-bottom: 30px;
  }
  .flow .item .step {
    width: 80px;
    height: 80px;
    padding-top: 10px;
    margin-right: 20px;
  }
  .flow .item .step .title {
    font-size: 14px;
  }
  .flow .item .step .no {
    font-size: 32px;
  }
  .flow .item .text dt {
    font-size: 18px;
  }
  .flow .item .text dd {
    font-size: 14px;
  }
}
