body {
  font-family: "M PLUS Rounded 1c", sans-serif;
    min-height: 100vh;

}

main {
  position: relative;
  background-color: #fffae4;
  
}
main::before {
  content: "";
  background: url(../../assets/img/knowledge/knowledgeBg_top.png) repeat-x;
  background-size: contain;
  width: 100%;
  height: calc(118 / 1400 * 100vw);
  display: block;
  margin: 78px 0 0;
  position: absolute;
}
main::after {
  content: "";
  background: url(../../assets/img/knowledge/bottom_dec.png) repeat-x;
  background-size: contain;
  width: 100%;
  height: calc(76 / 1400 * 100vw);
  display: block;
}

/* -----top------ */
.p-top__inner::before {
  content: "";
  background: url(../../assets/img/knowledge/top/top_dec.png) no-repeat;
  background-size: cover;
  width: 100%;
  height: calc(87/1400*100vw);
  display: block;
}
.p-top__inner::after {
  content: "";
  background: url(../../assets/img/knowledge/top/bottom_dec.png) no-repeat;
  background-size: cover;
  width: 100%;
  height: calc(87/1400*100vw);
  display: block;
}
.p-top__inner h3 {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 2;
  margin-top: 23px;
}

.p-top__contents {
  max-width: 1098px;
  margin: 86px auto 77px;
}
.p-top__contents ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 114px 118px;
  align-items: end;
}
@media screen and (max-width: 768px) {
  .p-top {
    margin: 60px 0 0;
  }
  .p-top__contents {
    padding: 0 22px;
    margin: 51px 0 42px;
  }
  .p-top__inner h3 {
    font-size: 17px;
    line-height: 2;
    margin-top: 17px;
    line-height: 1.8;
  }
  .p-top__contents ul {
    display: flex;
    flex-direction: column;
    gap: 51px;
  }
  .p-top__inner::before {
    content: "";
    background: url(../../assets/img/knowledge/top/top_dec_sp.png) no-repeat;
    background-size: contain;
    width: 100%;
    height: calc(76 / 375 * 100vw);
    display: block;
  }
  .p-top__inner::after {
    content: "";
    background: url(../../assets/img/knowledge/top/bottom_dec_sp.png) no-repeat;
    background-size: contain;
    width: 100%;
    height: calc(76 / 375 * 100vw);
    display: block;
  }
}

.knowledge_ttl {
  margin: 0 auto;
  padding: 50px 0 0;
}
.knowledge {
  position: relative; /* 絶対配置の基準 */
  width: 100%;
  height: 88vh; /* 画面の高さいっぱいにする */
  min-height: calc(100vh - 100px); /* ヘッダーの高さを考慮 */
  justify-content: center; /* 水平方向の中央寄せ */
  align-items: center; /* 垂直方向の中央寄せ */
  min-height: calc(100vh - 200px); /* ヘッダーの高さを考慮 */
  top: calc(70/1400*100vw);
  position: relative;

}

.knowledge_wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 縦横の中央に移動 */
  text-align: center; /* 中のテキストや画像を中央揃え */
  max-width: 860px;
  width: 100%;
}

.knowledge_contents {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 860px;
}

.knowledge_contents_txtArea h3 {
  width: 294px;
  margin-bottom: 22.27px;
}
.knowledge_contents_txtArea p {
  width: 377px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  line-height: 1.8;
}
.knowledge_contents_mv {
  width: 449px;
}

.knowledge_btn {
  display: flex;
  position: absolute;
  bottom: -48px;
  left: 0px;
  gap: 30px;
}
.knowledge_btn .next_btn {
  width: 110px;
}
.knowledge_btn .top_btn {
  width: 207px;
}

@media screen and (max-width: 768px) {
  main {
    position: static;
  }
  main::before {
    content: "";
    background: url(../../assets/img/knowledge/knowledgeBg_top_sp.png) no-repeat;
    background-size: contain;
    width: 100%;
    height: calc(118 / 375 * 100vw);
    display: block;
    margin: 78px 0 0;
    position: absolute;
  }
  main::after {
    content: "";
    background: url(../../assets/img/knowledge/top/bottom_dec_sp.png) no-repeat;
    background-size: contain;
    width: 100%;
    height: calc(76 / 375 * 100vw);
    display: block;
    margin: 150px 0 0;
  }
  .knowledge {
    width: auto;
    height: auto;
    min-height: auto;
    padding: 0px 15px 0;
    top: calc(118/375*100vw);
  }
  .knowledge_ttl {
  margin: 0;
  padding: 00px 0 0;
}

  .knowledge_ttl_num {
    width: 193px;
    margin-bottom: 10px;
  }
  .knowledge_contents {
    display: block;
  }
  .knowledge_contents_mv {
    width: auto;
  }
  .knowledge_wrapper {
    position: static;
    transform: unset;
    max-width: unset;
    width: auto;
  }
  .knowledge_contents_txtArea h3 {
    margin: 35px 0 21px;
  }
  .knowledge_contents_txtArea p {
    width: auto;
  }
  .knowledge_contents_mv {
    margin: 30px 0;
  }
  .knowledge_btn {
    position: static;
    flex-direction: column;
    align-items: center;
  }
  .knowledge_btn .next_btn {
    width: 147px;
  }
  .knowledge_btn .top_btn {
    width: 278px;
  }
}

/* -----
knowledge01
---------*/
.knowledge_01 .knowledge_ttl {
  width: 727px;
}

@media screen and (max-width: 768px) {
  .knowledge_01 .knowledge_ttl {
    width: 322px;
  }
}
/* -----------
knowledge02
-----------*/
.knowledge_02 .knowledge_ttl {
  width: 577px;
}
@media screen and (max-width: 768px) {
  .knowledge_02 .knowledge_ttl {
    width: 259px;
    margin: 0;
  }
}
.knowledge_02 .knowledge_contents_txtArea h3 {
  width: 284px;
}
/* .knowledge_02 .knowledge_contents_txtArea p {
  width: 373px;
} */

/* -----------
knowledge03
-----------*/
.knowledge_03 .knowledge_ttl {
  width: 721px;
}

.knowledge_03 .knowledge_contents_txtArea h3 {
  width: 362px;
}
.knowledge_03 .knowledge_contents_txtArea p {
  width: 385px;
}
@media screen and (max-width: 768px) {
  .knowledge_03 .knowledge_ttl {
    width: 302px;
    margin: 0;
  }
  .knowledge_03 .knowledge_contents_txtArea h3 {
    width: 181px;
  }
  .knowledge_03 .knowledge_contents_txtArea p {
    width: auto;
  }
}

/* -----------
knowledge04
-----------*/
.knowledge_04 .knowledge_ttl {
  width: 571px;
}

.knowledge_04 .knowledge_contents_txtArea h3 {
  width: 238px;
}
/* .knowledge_04 .knowledge_contents_txtArea p {
  width: 364px;
} */

@media screen and (max-width: 768px) {
  .knowledge_04 .knowledge_ttl {
    width: 221px;
    margin: 0;
  }

  .knowledge_04 .knowledge_contents_txtArea h3 {
    width: 256px;
  }
}
/* -----------
knowledge05
-----------*/
.knowledge_05 .knowledge_ttl {
  width: 659px;
}

.knowledge_05 .knowledge_contents_txtArea h3 {
  width: 238px;
}
/* .knowledge_05 .knowledge_contents_txtArea p {
  width: 332px;
} */
@media screen and (max-width: 768px) {
  .knowledge_05 .knowledge_ttl {
    width: 274px;
    margin: 0;
  }

  .knowledge_05 .knowledge_contents_txtArea h3 {
    width: 238px;
  }
}

/* -----------
knowledge06
-----------*/
.knowledge_06 .knowledge_ttl {
  width: 592px;
}

.knowledge_06 .knowledge_contents_txtArea h3 {
  width: 209px;
}
.knowledge_06 .knowledge_contents_txtArea p {
  width: 400px;
}
.c-small {
  font-size: 12px;
  text-align: left;
  display: block;
}
@media screen and (max-width: 768px) {
  .knowledge_06 .knowledge_ttl {
    width: 188px;
    margin: 0;
  }

  .knowledge_06 .knowledge_contents_txtArea h3 {
    width: 209px;
  }
  .knowledge_06 .knowledge_contents_txtArea p {
    width: auto;
  }
}
/* -----------
knowledge07
-----------*/
.knowledge_07 .knowledge_ttl {
  width: 742px;
}

.knowledge_07 .knowledge_contents_txtArea h3 {
  width: 233px;
}
/* .knowledge_07 .knowledge_contents_txtArea p {
  width: 356px;
} */
@media screen and (max-width: 768px) {
  .knowledge_07 .knowledge_ttl {
    width: 311px;
    margin: 0;
  }

  .knowledge_07 .knowledge_contents_txtArea h3 {
    width: 233px;
  }
}
/* -----------
knowledge08
-----------*/
.knowledge_08 .knowledge_ttl {
  width: 696px;
}

.knowledge_08 .knowledge_contents_txtArea h3 {
  width: 253px;
}
/* .knowledge_08 .knowledge_contents_txtArea p {
  width: 357px;
} */
@media screen and (max-width: 768px) {
  .knowledge_08 .knowledge_ttl {
    width: 271px;
    margin: 0;
  }

  .knowledge_08 .knowledge_contents_txtArea h3 {
    width: 253px;
  }
}
/* -----------
knowledge09
-----------*/
.knowledge_09 .knowledge_ttl {
  width: 571px;
}

.knowledge_09 .knowledge_contents_txtArea h3 {
  width: 322px;
}
.knowledge_09 .knowledge_contents_txtArea p {
  width: 387px;
}
@media screen and (max-width: 768px) {
  .knowledge_09 .knowledge_ttl {
    width: 195px;
    margin: 0;
  }

  .knowledge_09 .knowledge_contents_txtArea h3 {
    width: 327px;
  }
  .knowledge_09 .knowledge_contents_txtArea p {
    width: auto;
  }
}
/* -----------
knowledge10
-----------*/
.knowledge_10 .knowledge_ttl {
  width: 667px;
}

.knowledge_10 .knowledge_contents_txtArea h3 {
  width: 247px;
}
/* .knowledge_10 .knowledge_contents_txtArea p {
  width: 372px;
} */

@media screen and (max-width: 768px) {
  .knowledge_10 .knowledge_ttl {
    width: 232px;
    margin: 0;
  }

  .knowledge_10 .knowledge_contents_txtArea h3 {
    width: 247px;
  }
}
