@media screen and (min-width: 768px) {
  main.mas_service article section.about {
    padding-top: 64px;
  }
  main.mas_service article section.about h2 {
    padding: 13px 0 16px 0;
    line-height: 32px;
    font-size: 24px;
    font-family: "Noto Serif JP", serif;
  }
  main.mas_service article section.about p.text {
    margin-bottom: 64px;
    padding: 4px 0 10px 0;
    line-height: 32px;
    font-size: 18px;
  }
  main.mas_service article section.about picture.image {
    width: 100%;
  }
  main.mas_service article section.step h2, main.mas_service article section.case_study h2 {
    padding: 89px 0 63px 0;
    line-height: 64px;
    font-size: 50px;
    font-family: "Noto Serif JP", serif;
  }
  main.mas_service article section.step .row {
    margin-bottom: 96px;
    overflow: visible;
  }
  main.mas_service article section.step .row:after {
    content: "";
    display: block;
    float: none;
    clear: both;
  }
  main.mas_service article section.step .row .step {
    width: 544px;
    box-sizing: border-box;
  }
  main.mas_service article section.step .row .step.step1, main.mas_service article section.step .row .step.step3 {
    float: left;
  }
  main.mas_service article section.step .row .step.step2, main.mas_service article section.step .row .step.step4 {
    float: right;
  }
  main.mas_service article section.step .row .step h3 {
    margin-bottom: 32px;
    position: relative;
    left: -24px;
    height: 160px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
  }
  main.mas_service article section.step .row .step h3 span {
    display: block;
  }
  main.mas_service article section.step .row .step h3 span small, main.mas_service article section.step .row .step h3 span strong {
    display: block;
  }
  main.mas_service article section.step .row .step h3 span.icon {
    padding-top: 46px;
    width: 160px;
    height: 160px;
    box-sizing: border-box;
    border: 1px solid #A82F3A;
    border-radius: 50%;
    text-align: center;
    font-family: "Jost", sans-serif;
    color: #A82F3A;
  }
  main.mas_service article section.step .row .step h3 span.icon small {
    line-height: 22px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: calc(400em / 1000);
  }
  main.mas_service article section.step .row .step h3 span.icon span {
    line-height: 40px;
    font-size: 40px;
  }
  main.mas_service article section.step .row .step h3 span.title {
    line-height: 56px;
    font-family: "Noto Serif JP", serif;
  }
  main.mas_service article section.step .row .step h3 span.title span {
    font-size: 38px;
  }
  main.mas_service article section.step .row .step h3 span.title strong {
    font-size: 30px;
    font-weight: bold;
  }
  main.mas_service article section.step .row .step p {
    margin: 0 32px;
    padding: 6px 0 11px 0;
    line-height: 32px;
    font-size: 16px;
  }
  main.mas_service article section.step dl.banner {
    margin: 0 auto 96px auto;
    width: 1120px;
    height: 416px;
    background: url("../image/service/mas/bg_seminar.png") no-repeat center center/cover;
    position: relative;
  }
  main.mas_service article section.step dl.banner dt {
    position: absolute;
    top: 251px;
    left: 80px;
    line-height: 48px;
    font-size: 26px;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #E6404E;
  }
  main.mas_service article section.step dl.banner dd {
    width: 496px;
    position: absolute;
    top: 128px;
    left: 560px;
    line-height: 32px;
    font-size: 16px;
    color: #ffffff;
  }
  main.mas_service article section.step p.next {
    padding-top: 65px;
    background: url("../image/service/mas/icon_arrow_next.png") no-repeat center top/128px 32px;
    text-align: center;
    line-height: 56px;
    font-size: 38px;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #A82F3A;
  }
  main.mas_service article section.case_study {
    margin-bottom: 160px;
  }
  main.mas_service article section.case_study ul {
    display: flex;
    gap: 40px;
  }
  main.mas_service article section.case_study ul li {
    padding-bottom: 20px;
    line-height: 32px;
    font-size: 18px;
  }
  main.mas_service article section.case_study ul li img {
    margin-bottom: 36px;
  }
  main.mas_service article section.case_study ul li strong {
    padding-top: 18px;
    display: block;
    font-size: 16px;
    font-weight: bold;
  }
}
@media screen and (max-width: 767px) {
  main.mas_service article section.about {
    margin-bottom: 25px;
    padding-top: 64px;
  }
  main.mas_service article section.about h2 {
    padding: 13px 0 20px 0;
    line-height: 30px;
    font-size: 20px;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
  }
  main.mas_service article section.about p.text {
    margin-bottom: 50px;
    line-height: 25px;
    font-size: 16px;
  }
  main.mas_service article section.about picture.image {
    width: 100%;
  }
  main.mas_service article section.step h2, main.mas_service article section.case_study h2 {
    line-height: 50px;
    font-size: 34px;
    font-family: "Noto Serif JP", serif;
  }
  main.mas_service article section.step h2 {
    padding: 62px 0 20px 0;
  }
  main.mas_service article section.step .row {
    margin-bottom: 96px;
    overflow: visible;
  }
  main.mas_service article section.step .row:after {
    content: "";
    display: block;
    float: none;
    clear: both;
  }
  main.mas_service article section.step .row .step {
    margin-bottom: 50px;
    box-sizing: border-box;
  }
  main.mas_service article section.step .row .step h3 {
    margin-bottom: 25px;
    min-height: 130px;
    position: relative;
  }
  main.mas_service article section.step .row .step h3 span {
    display: block;
  }
  main.mas_service article section.step .row .step h3 span small, main.mas_service article section.step .row .step h3 span strong {
    display: block;
  }
  main.mas_service article section.step .row .step h3 span.icon {
    padding-top: 30px;
    width: 130px;
    height: 130px;
    box-sizing: border-box;
    border: 1px solid rgba(168, 47, 58, 0.5);
    border-radius: 50%;
    position: absolute;
    left: -46px;
    top: 0;
    z-index: 0;
    text-align: center;
    font-family: "Jost", sans-serif;
    color: #A82F3A;
  }
  main.mas_service article section.step .row .step h3 span.icon small {
    line-height: 22px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: calc(400em / 1000);
  }
  main.mas_service article section.step .row .step h3 span.icon span {
    line-height: 40px;
    font-size: 36px;
  }
  main.mas_service article section.step .row .step h3 span.title {
    margin-left: 65px;
    padding-top: 52px;
    position: relative;
    z-index: 1;
    line-height: 34px;
    font-family: "Noto Serif JP", serif;
    text-shadow: 0 0 6px #ffffff, 0 0 6px #ffffff, 0 0 6px #ffffff;
  }
  main.mas_service article section.step .row .step h3 span.title span {
    font-size: 28px;
  }
  main.mas_service article section.step .row .step h3 span.title strong {
    font-size: 22px;
    font-weight: bold;
  }
  main.mas_service article section.step .row .step p {
    line-height: 25px;
    font-size: 16px;
  }
  main.mas_service article section.step dl.banner {
    margin: 0 0 36px -20px;
    padding: calc(38vw + 10px) 20px 30px 20px;
    width: 100%;
    background: url("../image/service/mas/bg_seminar_sp.png") no-repeat center top/cover;
    position: relative;
  }
  main.mas_service article section.step dl.banner dt {
    margin-bottom: 34px;
    line-height: 38px;
    font-size: 25px;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #E6404E;
  }
  main.mas_service article section.step dl.banner dd {
    line-height: 25px;
    font-size: 16px;
    color: #ffffff;
  }
  main.mas_service article section.step p.next {
    padding-top: 50px;
    background: url("../image/service/mas/icon_arrow_next.png") no-repeat center top/100px auto;
    text-align: center;
    line-height: 38px;
    font-size: 27px;
    font-weight: bold;
    font-family: "Noto Serif JP", serif;
    color: #A82F3A;
  }
  main.mas_service article section.case_study {
    margin-bottom: 75px;
  }
  main.mas_service article section.case_study h2 {
    padding: 62px 0 39px 0;
  }
  main.mas_service article section.case_study ul li {
    margin-bottom: 25px;
    overflow: hidden;
  }
  main.mas_service article section.case_study ul li span {
    display: block;
  }
  main.mas_service article section.case_study ul li span.image {
    display: block;
    width: 125px;
    height: 100px;
    float: right;
  }
  main.mas_service article section.case_study ul li span.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  main.mas_service article section.case_study ul li span.title {
    width: calc(100% - 150px);
    float: left;
    line-height: 25px;
    font-size: 16px;
  }
  main.mas_service article section.case_study ul li span.title strong {
    padding-top: 8px;
    display: block;
    font-size: 14px;
    font-weight: bold;
  }
}