h3.memorial_category_title_h3 {
  border-left: 8px solid #805598 !important;
}

h3.grave_category_title_h3 {
  border-left: 8px solid #45923b !important;
}

h3.funeral_category_title_h3 {
  border-left: 8px solid #ae8729 !important;
}

@media screen and (min-width: 767px) {

  /* 法事法要 */
  div.category_cta_text {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
  }

  div.category_cta_text::before,
  div.category_cta_text::after {
    content: '';
    width: 1px;
    height: 20px;
    background-color: #000000;
  }

  div.category_cta_text::before {
    margin-right: 9px;
    transform: rotate(-35deg)
  }

  div.category_cta_text::after {
    margin-left: 9px;
    transform: rotate(35deg)
  }

  div.category_3_block_cta {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
    margin-top: 20px;
    border: 4px solid rgba(169, 169, 169, 0.15);
  }

  div.category_3_block_cta a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
  }

  .category_3_block_cta .category_cta_1_box {
    position: relative;
  }

  .category_3_block_cta .category_cta_1_box::after {
    content: ">";
    position: absolute;
    right: 5px;
    top: 14px;
  }

  div.category_title_img_div {
    text-align: center;
    margin-bottom: 10px;
  }

  div.category_title_img_div img {
    width: 350px;
    height: 39.79px;
  }

  div.category_cta_1 {
    display: block;
  }

  div.category_cta_1_box, div.category_cta_2_box, div.category_cta_3_box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 2.5px;
    transition: all 0.5s;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, .15);
    border: 1px solid;
  }

  div.category_cta_1_box {
    width: 170px;
    margin: 0 auto;
    color: #0A5999;
    border-color: #0A5999;
  }

  div.category_cta_2_box {
    width: 170px;
    height: 54px;
    text-align: center;
    color: #DD523B;
    border-color: #DD523B;
  }

  div.category_cta_3_box {
    width: 180px;
    height: 54px;
    line-height: 54px;
    text-align: center;
    color: #AC8836;
    border-color: #AC8836;
  }

  div.category_cta_3_box:hover, div.category_cta_2_box:hover, div.category_cta_1_box:hover {
    box-shadow: 5px 5px 10px #000;
    /* 右に5px・下に5px・ぼかし10pxの黒い影を表示 */
  }

  div.category_cta_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .category_cta_1_box::after, .category_cta_2_box::after {
    content: ">";
    position: absolute;
    right: 5px;
    top: 14px;
  }

  div.category_cta_3_box span::after {
    position: absolute;
    content: ">";
    right: 3px;
  }

  div.category_cta_1_box {
    width: 170px;
    margin: 0 auto;
    color: #0A5999;
    border-color: #0A5999;
  }

  div.category_cta_1_content {
    font-size: 15px;
  }

  /* お葬式潜在層 */

  div.category_2_block_cta {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
    margin-top: 20px;
    border: 4px solid rgba(169, 169, 169, 0.15);
  }

  div.category_2_block_cta a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
  }

  .category_2_block_cta .category_cta_1 {
    margin-left: 40px;
  }

  .category_2_block_cta .category_cta_2 {
    margin-right: 40px;
  }

  .category_2_block_cta .category_cta_2_box {
    margin: 0 auto;
    width: 200px;
    color: #AC8836;
    border-color: #AC8836;
  }

  .category_2_block_cta .category_cta_1_box {
    width: 200px;
    height: 54px;
    color: #DD523B;
    border-color: #DD523B;
  }

  .category_2_block_cta .category_cta_1_content {
    text-align: center;
  }

  .category_2_block_cta .category_cta_1_content p {
    display: inline;
  }

  /* お墓潜在層CTA */

  div.category_1_block_cta {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
    margin-top: 20px;
    border: 4px solid rgba(169, 169, 169, 0.15);
  }

  div.category_1_block_cta a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
  }

  .category_1_block_cta .category_cta_content {
    display: block;
  }

  .category_1_block_cta .category_cta_2_box {
    margin: 0 auto;
  }
}

/* スマホ */

@media screen and (max-width: 767px) {

  div.category_cta_text {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
  }

  div.category_cta_text::before,
  div.category_cta_text::after {
    content: '';
    width: 1px;
    height: 20px;
    background-color: #000000;
  }

  div.category_cta_text::before {
    margin-right: 9px;
    transform: rotate(-35deg)
  }

  div.category_cta_text::after {
    margin-left: 9px;
    transform: rotate(35deg)
  }

  div.category_3_block_cta {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
    margin-top: 20px;
    border: 4px solid rgba(169, 169, 169, 0.15);
  }

  div.category_3_block_cta a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
  }

  div.category_title_img_div {
    text-align: center;
    margin-bottom: 7px;
  }

  div.category_title_img_div img {
    width: 400px;
  }

  div.category_cta_1, div.category_cta_2, div.category_cta_3 {
    margin-bottom: 8px;
  }

  div.category_cta_1_box, div.category_cta_2_box, div.category_cta_3_box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    border-radius: 2.5px;
    transition: all 0.5s;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, .15);
    border: 1px solid;
  }

  div.category_cta_1_box {
    width: 100%;
    margin: 0 auto;
    color: #0A5999;
    border-color: #0A5999;
  }

  div.category_cta_1_content {
    font-size: 15px;
  }

  div.category_cta_2_box {
    width: 100%;
    height: 54px;
    /* line-height:54px; */
    margin: 0 auto;
    color: #DD523B;
    border-color: #DD523B;
  }

  div.category_cta_3_box {
    width: 100%;
    height: 54px;
    line-height: 54px;
    margin: 0 auto;
    text-align: center;
    color: #AC8836;
    border-color: #AC8836;
  }

  div.category_cta_3_box:hover, div.category_cta_2_box:hover, div.category_cta_1_box:hover {
    box-shadow: 5px 5px 10px #000;
    /* 右に5px・下に5px・ぼかし10pxの黒い影を表示 */
  }

  .category_phone::after {
    content: ">";
    position: absolute;
    top: 12px;
    right: 8px;
  }

  div.category_cta_2_box span::after {
    position: absolute;
    content: ">";
    right: 8px;
  }

  div.category_cta_2_box p::after {
    position: absolute;
    content: ">";
    right: 8px;
    top: 12px;
  }

  div.category_cta_3_box span::after {
    position: absolute;
    content: ">";
    right: 8px;
  }

  /* 葬儀CTA */

  div.category_2_block_cta {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    ;
    padding-right: 10px;
    margin: 0 auto;
    margin-top: 20px;
    border: 4px solid rgba(169, 169, 169, 0.15);
  }

  div.category_2_block_cta a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
  }

  .category_2_block_cta .category_cta_1, .category_2_block_cta .category_cta_2 {
    margin-bottom: 8px;
  }

  .category_2_block_cta .category_cta_1_box {
    width: 100%;
    height: 54px;
    color: #DD523B;
    border-color: #DD523B;
  }

  .category_2_block_cta .category_cta_2_box {
    color: #AC8836;
    border-color: #AC8836;
  }

  .category_2_block_cta .category_cta_1_content {
    text-align: center;
  }

  .category_2_block_cta .category_cta_1_content p::after {
    position: absolute;
    content: ">";
    top: 12px;
    right: 8px;
  }

  /* お墓潜在層CTA */
  div.category_1_block_cta {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 10px;
    ;
    padding-right: 10px;
    margin: 0 auto;
    margin-top: 20px;
    border: 4px solid rgba(169, 169, 169, 0.15);
  }

  div.category_1_block_cta a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
  }
}