@media (min-width: 835px) {
  #pageheader {
    padding-bottom: 100px;
  }

  main .intro {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    display: -webkit-flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 95%;
    max-width: 1000px;
    margin: -50px auto 0;
  }
  main .intro figure {
    width: 25%;
  }
  main .intro figure img {
    width: 100%;
  }
  main .intro .note {
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
    width: 70%;
    padding-top: 130px;
  }
  main .intro .note p {
    font-size: 1.6rem;
  }
  main .merit {
    width: 95%;
    max-width: 1100px;
    margin: 120px auto 0;
  }
  main .merit h2 {
    text-align: center;
  }
  main .merit h2 > em {
    display: inline-block;
    border-top: 3px solid #6AC1D6;
    font-family: "Poppins", serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    color: #5CBABE;
  }
  main .merit h2 > span {
    display: block;
    font-weight: bold;
    color: #1E346F;
  }
}
@media (min-width: 835px) and (min-width: 835px) {
  main .merit h2 > em {
    padding-top: 30px;
    font-size: 3rem;
  }
  main .merit h2 > span {
    margin-top: 20px;
    font-size: 2.4rem;
  }
}
@media (min-width: 835px) and (max-width: 834px) {
  main .merit h2 > em {
    padding-top: 25px;
    font-size: 2.8rem;
  }
  main .merit h2 > span {
    margin-top: 15px;
    font-size: 1.6rem;
    line-height: 1.7;
  }
}
@media (min-width: 835px) {
  main .merit .meritlist {
    margin-top: 70px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    display: -webkit-flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    counter-reset: number;
  }
  main .merit .meritlist li {
    width: 47%;
    background: #fff;
    padding: 50px 30px 30px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    overflow: visible;
  }
  main .merit .meritlist li::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    background: #62BAE4;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  main .merit .meritlist li::after {
    display: block;
    counter-increment: number;
    content: counter(number);
    font-family: "Roboto", sans-serif;
    line-height: 1;
    letter-spacing: 0.1em;
    font-size: 2.5rem;
    color: #fff;
    position: absolute;
    left: 50.5%;
    top: 0;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  main .merit .meritlist li figure {
    text-align: center;
  }
  main .merit .meritlist li h3 {
    text-align: center;
    font-size: 2rem;
    color: #1E346F;
  }
  main .merit .meritlist li .note {
    margin-top: 20px;
  }
  main .merit .meritlist li:not(:first-of-type):not(:nth-of-type(2)) {
    margin-top: 60px;
  }
  main .merit .meritlist li:nth-of-type(2)::before {
    background: #8ABE38;
  }
  main .merit .meritlist li:nth-of-type(2) h3 {
    color: #349616;
  }
  main .merit .meritlist li:nth-of-type(3)::before {
    background: #F49E29;
  }
  main .merit .meritlist li:nth-of-type(3) h3 {
    color: #CC740D;
  }
  main .merit .meritlist li:nth-of-type(4)::before {
    background: #A78CBE;
  }
  main .merit .meritlist li:nth-of-type(4) h3 {
    color: #714993;
  }
}
@media (min-width: 835px) {
  main .flow {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 120px;
  }
  main .flow h2 {
    text-align: center;
    margin-bottom: 60px;
  }
  main .flow h2 > em {
    display: inline-block;
    border-top: 3px solid #6AC1D6;
    font-family: "Poppins", serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    color: #5CBABE;
  }
  main .flow h2 > span {
    display: block;
    font-weight: bold;
    color: #1E346F;
  }
}
@media (min-width: 835px) and (min-width: 835px) {
  main .flow h2 > em {
    padding-top: 30px;
    font-size: 3rem;
  }
  main .flow h2 > span {
    margin-top: 20px;
    font-size: 2.4rem;
  }
}
@media (min-width: 835px) and (max-width: 834px) {
  main .flow h2 > em {
    padding-top: 25px;
    font-size: 2.8rem;
  }
  main .flow h2 > span {
    margin-top: 15px;
    font-size: 1.6rem;
    line-height: 1.7;
  }
}
@media (min-width: 835px) {
  main .flow .flowlist > li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    display: -webkit-flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding-bottom: 35px;
  }
  main .flow .flowlist > li .root {
    width: 120px;
    background: #6AC1D6;
    padding: 20px;
    position: relative;
  }
  main .flow .flowlist > li .root::after {
    content: "";
    display: block;
    border: 60px solid transparent;
    border-bottom-width: 30px;
    border-top: 30px solid #6AC1D6;
    position: absolute;
    left: 0;
    bottom: -60px;
  }
  main .flow .flowlist > li .root .num span {
    display: block;
    text-align: center;
    font-family: "Poppins", serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    font-size: 1.6rem;
    color: #fff;
  }
  main .flow .flowlist > li .root .num em {
    display: block;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    margin: 10px auto 0;
    text-align: center;
    font-family: "Roboto", sans-serif;
    line-height: 1;
    letter-spacing: 0.1em;
    font-size: 2.2rem;
    line-height: 40px;
    letter-spacing: 0;
    color: #6AC1D6;
  }
  main .flow .flowlist > li .root .month {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
    color: #fff;
  }
  main .flow .flowlist > li .details {
    width: calc(100% - 120px);
    padding: 30px 0 30px 50px;
    position: relative;
  }
  main .flow .flowlist > li .details::before {
    content: "";
    display: block;
    width: 35px;
    border-top: 2px dotted #6AC1D6;
    position: absolute;
    left: 0;
    top: 49px;
  }
  main .flow .flowlist > li .details h3 {
    font-size: 2rem;
    color: #1E346F;
  }
  main .flow .flowlist > li .details .note {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    padding: 25px 30px;
  }
  main .flow .flowlist > li .details .note .contactlist {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    display: -webkit-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-top: 30px;
  }
  main .flow .flowlist > li .details .note .contactlist li:not(:last-of-type) {
    margin-right: 20px;
  }
  main .flow .flowlist > li .details .note .contactlist li.tel span, main .flow .flowlist > li .details .note .contactlist li.tel a {
    width: 230px;
    display: block;
    height: 45px;
    background: #6AC1D6;
    border-radius: 22.5px;
    padding-left: 4rem;
    text-align: center;
    font-family: "Roboto", sans-serif;
    line-height: 1;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-size: 1.9rem;
    line-height: 45px;
    color: #fff;
    position: relative;
  }
  main .flow .flowlist > li .details .note .contactlist li.tel span::before, main .flow .flowlist > li .details .note .contactlist li.tel a::before {
    content: "";
    display: block;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
  main .flow .flowlist > li .details .note .contactlist li.tel span::after, main .flow .flowlist > li .details .note .contactlist li.tel a::after {
    display: block;
    content: "\f095";
    font-family: "Font Awesome 5 Free";
    line-height: 1;
    margin-right: 0.5rem;
    font-weight: 900;
    font-size: 1.7rem;
    color: #1E346F;
    position: absolute;
    left: 2.3rem;
    top: 50%;
    -webkit-transform: translateY(-50%) rotate(100deg);
    transform: translateY(-50%) rotate(100deg);
  }
  main .flow .flowlist > li .details .note .contactlist li.contact a {
    display: block;
    width: 100%;
    max-width: 230px;
    height: 45px;
    border-radius: 22.5em;
    padding: 0 4rem 0 2rem;
    text-align: center;
    font-weight: bold;
    line-height: 45px;
    color: #fff;
    position: relative;
    z-index: 1;
    -webkit-transition: background 0.3s ease-out;
    transition: background 0.3s ease-out;
    -webkit-filter: none;
            filter: none;
    background: #F49E29;
  }
}
@media (min-width: 835px) and (max-width: 414px) {
  main .flow .flowlist > li .details .note .contactlist li.contact a {
    max-width: none;
  }
}
@media (min-width: 835px) {
  main .flow .flowlist > li .details .note .contactlist li.contact a::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    right: 1rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}
@media (min-width: 835px) {
  main .flow .flowlist > li .details .note .contactlist li.contact a::after {
    content: "";
    display: block;
    width: 11px;
    height: 9px;
    background: url(/mg/wp-content/themes/japanskill_220613/assets/common/img/arrow.svg) center center/contain no-repeat;
    position: absolute;
    right: 1.7rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 2;
    -webkit-filter: invert(63%) sepia(87%) saturate(530%) hue-rotate(340deg) brightness(99%) contrast(93%);
            filter: invert(63%) sepia(87%) saturate(530%) hue-rotate(340deg) brightness(99%) contrast(93%);
  }
}
@media (min-width: 835px) {
  main .flow .flowlist > li .details .note .contactlist li.contact a:hover {
    opacity: 1;
    background: #E84312;
  }
  main .flow .flowlist > li .details .note .contactlist li.contact a:hover::after {
    -webkit-filter: invert(66%) sepia(58%) saturate(5441%) hue-rotate(345deg) brightness(99%) contrast(93%);
            filter: invert(66%) sepia(58%) saturate(5441%) hue-rotate(345deg) brightness(99%) contrast(93%);
  }
}
@media (min-width: 835px) {
  main .flow .flowlist > li:last-of-type {
    padding-bottom: 0;
  }
  main .flow .flowlist > li:last-of-type .root::after {
    display: none;
  }
}
@media (max-width: 834px) {
  main .intro {
    padding: 50px 10% 0;
  }
  main .intro figure {
    display: none;
  }
}
@media (max-width: 834px) and (min-width: 835px) {
  main .intro .note p {
    line-height: 2.5;
  }
}
@media (max-width: 834px) and (max-width: 414px) {
  main .intro .note p {
    line-height: 2.2;
  }
}
@media (max-width: 834px) {
  main .intro .note p:not(:last-of-type) {
    margin-bottom: 2em;
  }
}
@media (max-width: 834px) {
  main .merit {
    width: 90%;
    margin: 90px auto 0;
  }
  main .merit h2 {
    text-align: center;
  }
  main .merit h2 > em {
    display: inline-block;
    border-top: 3px solid #6AC1D6;
    font-family: "Poppins", serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    color: #5CBABE;
  }
  main .merit h2 > span {
    display: block;
    font-weight: bold;
    color: #1E346F;
  }
}
@media (max-width: 834px) and (min-width: 835px) {
  main .merit h2 > em {
    padding-top: 30px;
    font-size: 3rem;
  }
  main .merit h2 > span {
    margin-top: 20px;
    font-size: 2.4rem;
  }
}
@media (max-width: 834px) and (max-width: 834px) {
  main .merit h2 > em {
    padding-top: 25px;
    font-size: 2.8rem;
  }
  main .merit h2 > span {
    margin-top: 15px;
    font-size: 1.6rem;
    line-height: 1.7;
  }
}
@media (max-width: 834px) {
  main .merit .meritlist {
    margin-top: 60px;
    counter-reset: number;
  }
  main .merit .meritlist li {
    background: #fff;
    padding: 50px 30px 30px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    overflow: visible;
  }
  main .merit .meritlist li::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    background: #62BAE4;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  main .merit .meritlist li::after {
    display: block;
    counter-increment: number;
    content: counter(number);
    font-family: "Roboto", sans-serif;
    line-height: 1;
    letter-spacing: 0.1em;
    font-size: 2.5rem;
    color: #fff;
    position: absolute;
    left: 50.5%;
    top: 0;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }
  main .merit .meritlist li h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #1E346F;
  }
  main .merit .meritlist li .note {
    margin-top: 20px;
  }
  main .merit .meritlist li:not(:last-of-type) {
    margin-bottom: 50px;
  }
  main .merit .meritlist li:nth-of-type(2)::before {
    background: #8ABE38;
  }
  main .merit .meritlist li:nth-of-type(3)::before {
    background: #F49E29;
  }
}
@media (max-width: 834px) {
  main .flow {
    padding: 80px 2.5% 0;
  }
  main .flow h2 {
    text-align: center;
    margin-bottom: 40px;
  }
  main .flow h2 > em {
    display: inline-block;
    border-top: 3px solid #6AC1D6;
    font-family: "Poppins", serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    color: #5CBABE;
  }
  main .flow h2 > span {
    display: block;
    font-weight: bold;
    color: #1E346F;
  }
}
@media (max-width: 834px) and (min-width: 835px) {
  main .flow h2 > em {
    padding-top: 30px;
    font-size: 3rem;
  }
  main .flow h2 > span {
    margin-top: 20px;
    font-size: 2.4rem;
  }
}
@media (max-width: 834px) and (max-width: 834px) {
  main .flow h2 > em {
    padding-top: 25px;
    font-size: 2.8rem;
  }
  main .flow h2 > span {
    margin-top: 15px;
    font-size: 1.6rem;
    line-height: 1.7;
  }
}
@media (max-width: 834px) {
  main .flow .flowlist > li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    display: -webkit-flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding-bottom: 13px;
  }
  main .flow .flowlist > li .root {
    width: 50px;
    background: #6AC1D6;
    padding: 20px 10px;
    position: relative;
  }
  main .flow .flowlist > li .root::after {
    content: "";
    display: block;
    border: 25px solid transparent;
    border-bottom-width: 12.5px;
    border-top: 12.5px solid #6AC1D6;
    position: absolute;
    left: 0;
    bottom: -25px;
  }
  main .flow .flowlist > li .root .num span {
    display: block;
    text-align: center;
    font-family: "Poppins", serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    color: #fff;
  }
  main .flow .flowlist > li .root .num em {
    display: block;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    margin: 10px auto 0;
    text-align: center;
    font-family: "Roboto", sans-serif;
    line-height: 1;
    letter-spacing: 0.1em;
    font-size: 1.8rem;
    line-height: 30px;
    letter-spacing: 0;
  }
  main .flow .flowlist > li .root .month {
    display: none;
  }
  main .flow .flowlist > li .details {
    width: calc(100% - 60px);
    padding: 10px 0 30px 0;
    position: relative;
  }
  main .flow .flowlist > li .details h3 {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #1E346F;
  }
  main .flow .flowlist > li .details h3 span {
    font-size: 1.1rem;
  }
  main .flow .flowlist > li .details .note {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    padding: 20px;
  }
  main .flow .flowlist > li .details .note p {
    line-height: 1.8;
  }
  main .flow .flowlist > li .details .note .contactlist {
    margin-top: 30px;
  }
  main .flow .flowlist > li .details .note .contactlist li:not(:last-of-type) {
    margin-bottom: 10px;
  }
  main .flow .flowlist > li .details .note .contactlist li.tel span, main .flow .flowlist > li .details .note .contactlist li.tel a {
    display: block;
    height: 45px;
    background: #6AC1D6;
    border-radius: 22.5px;
    padding-left: 4rem;
    text-align: center;
    font-family: "Roboto", sans-serif;
    line-height: 1;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-size: 1.9rem;
    line-height: 45px;
    color: #fff;
    position: relative;
  }
  main .flow .flowlist > li .details .note .contactlist li.tel span::before, main .flow .flowlist > li .details .note .contactlist li.tel a::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 1.5rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
  main .flow .flowlist > li .details .note .contactlist li.tel span::after, main .flow .flowlist > li .details .note .contactlist li.tel a::after {
    display: block;
    content: "\f095";
    font-family: "Font Awesome 5 Free";
    line-height: 1;
    margin-right: 0.5rem;
    font-weight: 900;
    font-size: 1.4rem;
    color: #1E346F;
    position: absolute;
    left: 2rem;
    top: 50%;
    -webkit-transform: translateY(-50%) rotate(100deg);
    transform: translateY(-50%) rotate(100deg);
  }
  main .flow .flowlist > li .details .note .contactlist li.contact a {
    display: block;
    width: 100%;
    max-width: 230px;
    height: 45px;
    border-radius: 22.5em;
    padding: 0 4rem 0 2rem;
    text-align: center;
    font-weight: bold;
    line-height: 45px;
    color: #fff;
    position: relative;
    z-index: 1;
    -webkit-transition: background 0.3s ease-out;
    transition: background 0.3s ease-out;
    -webkit-filter: none;
            filter: none;
    background: #F49E29;
  }
}
@media (max-width: 834px) and (max-width: 414px) {
  main .flow .flowlist > li .details .note .contactlist li.contact a {
    max-width: none;
  }
}
@media (max-width: 834px) {
  main .flow .flowlist > li .details .note .contactlist li.contact a::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    right: 1rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}
@media (max-width: 834px) {
  main .flow .flowlist > li .details .note .contactlist li.contact a::after {
    content: "";
    display: block;
    width: 11px;
    height: 9px;
    background: url(/mg/wp-content/themes/japanskill_220613/assets/common/img/arrow.svg) center center/contain no-repeat;
    position: absolute;
    right: 1.7rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 2;
    -webkit-filter: invert(63%) sepia(87%) saturate(530%) hue-rotate(340deg) brightness(99%) contrast(93%);
            filter: invert(63%) sepia(87%) saturate(530%) hue-rotate(340deg) brightness(99%) contrast(93%);
  }
}
@media (max-width: 834px) {
  main .flow .flowlist > li .details .note .contactlist li.contact a:hover {
    opacity: 1;
    background: #E84312;
  }
  main .flow .flowlist > li .details .note .contactlist li.contact a:hover::after {
    -webkit-filter: invert(66%) sepia(58%) saturate(5441%) hue-rotate(345deg) brightness(99%) contrast(93%);
            filter: invert(66%) sepia(58%) saturate(5441%) hue-rotate(345deg) brightness(99%) contrast(93%);
  }
}
@media (max-width: 834px) {
  main .flow .flowlist > li:last-of-type {
    padding-bottom: 0;
  }
  main .flow .flowlist > li:last-of-type .root::after {
    display: none;
  }
}