#matomewari_about,
#matomewari_check,
#matomewari_list {
  padding: 20px 20px 40px;
}
@media screen and (max-width: 767px) {
  #matomewari_list {
    padding: 40px 20px 0;
  }
}
.h2_tit {
  color: #187971;
  font-size: 30px;
  border-bottom: solid 1px #187971;
  padding-top: 100px;
  padding-bottom: 15px;
  position: absolute;
  z-index: 1;
  bottom: 0px;
}
@media screen and (max-width: 767px) {
  .h2_tit {
    padding-top: 40px;
    padding-bottom: 15px;
    position: relative;
    z-index: 1;
    bottom: 0px;
    padding-left: 0;
    background: none;
  }
}
.h3_tit {
  position: relative;
  display: block;
  margin: 20px 0px;
  padding: 4px;
  background-color: #187971;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}
.h4_tit {
  background-color: #fedc11;
  box-shadow: 4px 4px 0px 0px rgb(78 205 195);
  font-size: 16px;
  font-weight: bold;
  padding: 5px;
  display: inline-block;
}
@media screen and (max-width: 767px) {
  .h4_tit {
    width: auto;
  }
}
.h3_tit::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 9px 10px 0 10px;
  border-color: #187971 transparent transparent;
  translate: -50% 100%;
}
.h2_tit_back {
  font-size: 70px;
  color: #64dbd4;
  opacity: 0.2;
  position: absolute;
  font-family: arial;
  font-weight: bold;
  
      bottom: 36px;
  z-index: 0;
}
@media screen and (max-width: 767px) {
  .h2_tit_back {
    font-size: 36px;
    top: 7px;
  }
  .matomewari_text {
    font-size: 16px;
    line-height: 1.5;
  }
}
.matomewari_tit {
  position: relative;
  height: 100px;
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
.matomewari_tit {
  height: auto;
}
}
.matomewari_about_textbox {
  display: flex;
  gap: 4%;
}
@media screen and (max-width: 767px) {
.matomewari_about_textbox {
  display: block;
  gap: 0;
}
}
.matomewari_about_text {
  width: 58%;
  line-height: 1.8;
  font-size: 16px;
}
@media screen and (max-width: 767px) {
  .matomewari_about_text {
    width: 100%;
    margin-bottom: 20px;
  }
}
.matomewari_about_redtext {
  font-weight: bold;
  color: #ff0000;
}
.matomewari_about_img {
  width: 38%;
}
.matomewari_about_textbox img {
  width: 100%;
}
@media screen and (max-width: 767px) {

}
#matomewari_check {
  background-color: #e2f6f4;
}
.matomewari_check_img {
  width: 80%;
  margin: auto;
  padding: 10px 0 30px;
}
@media screen and (max-width: 767px) {
  .matomewari_check_img {
    width: 100%;
  }
}

/* =========================
   共通
========================= */
.matomewari_category-menu {
  background-color: #eff7f6;
  padding: 20px;
  margin:20px 0;
}
.matomewari_category-menu_tit {
  text-align: center;
  font-size: 20px;
  color: #187971;
  font-weight: bold;
  padding: 10px;
}
.category-menu {
  display: flex;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
}

.menu-item {
  position: relative;
  flex: 1;
}

/* details標準の三角を消す */
.menu-title {
  display: block;
  list-style: none;
  color: #187971;
  text-align: center;
  cursor: pointer;
  padding: 10px;
  position: relative;
}

.menu-title::-webkit-details-marker {
  display: none;
}

.menu-item:last-child .menu-title {
  border-right: none;
}


/* =========================
   下層メニュー
========================= */

.sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #3ca198d7;
  box-sizing: border-box;
}

.sub-menu li {
  border-bottom: 1px solid #eee;
}

.sub-menu li:last-child {
  border-bottom: none;
}

.sub-menu a {
  display: block;
  padding: 12px 15px;
  color: #fff;
  text-decoration: none;
}

.sub-menu a:hover {
  background: #f5f5f5dc;
  color: #187971;
}

/* =========================
   PC
========================= */

@media screen and (min-width: 769px) {
  /*
   * detailsのopen状態とは関係なく、
   * hoverだけで表示させる
   */
  .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
.menu-title::after {
    content: "";
    position: absolute;
    border-right: solid 1px #187971;
    width: 1px;
    height: 10px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.menu-item:last-child .menu-title::after {
  content: none;
  width:0;
  height: 0;
}
  .menu-item:hover .sub-menu {
    display: block;
  }

  .menu-item:hover .menu-title {
    background: #187971;
    color: #ffffff;
  }
  .menu-title::after {

  }
}

/* =========================
   スマホ
========================= */

@media screen and (max-width: 768px) {
  .category-menu {
    flex-direction: column;
  }

  .menu-item {
    width: 100%;
  }

  .menu-title {
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
    padding: 15px 45px 15px 15px;
  }

  /* ＋マーク */
  .menu-title::after {
    content: "＋";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
  }

  /* 開いているとき－ */
  .menu-item[open] > .menu-title::after {
        content: "−";
        right: 15px;
        top: 50%;
        left: auto;
        transform: translateY(-50%);
  }

  /* 開いている親メニュー */
  .menu-item[open] > .menu-title {
    background: #f5f5f5;
  }

  .sub-menu {
    border-bottom: 1px solid #ddd;
  }

  .sub-menu a {
    padding-left: 30px;
  }
}

