@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&family=Noto+Sans+JP:wght@100..900&display=swap');

.m-plus-rounded-1c-regular {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;
}

* {
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    color: #222;
    padding: 0;
    margin: 0;
}

html {
    scroll-padding-top: 3rem;
    scroll-behavior: smooth;
}

body {
    position: relative;
}

a img:hover {
    opacity: 0.8;
}

#wrap {
    max-width: 1220px;
    margin: auto;
    padding: 8rem 10px 0;
}

header {
    width: 100vw;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 999;
    position: fixed;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    margin: auto;
    padding-top: 1rem;
}

.header img {
    height: 3rem;
    vertical-align: middle;
}

.header .tel {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 2rem;
    text-decoration: none;
}
.header .tel i {
    font-size: 0.9em;
}
.header .tel p {
    text-align: center;
    font-size: 1rem;
    font-weight: normal;
}

nav.pc ul {
    display: flex;
    list-style-type: none;
    width: 1200px;
    margin: auto;
}

nav.pc li {
    width: calc(100% / 8);
    text-align: center;
    font-size: 1rem;
}


nav.pc li {
    position: relative;
    z-index: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav li::after {
    content: "";
    width: 0%;
    height: 0.5rem;
    background: #8affab;
    position: absolute;
    left: 0;
    bottom: 1rem;
    z-index: -1;
    transition: all .3s;
}

nav.pc li:hover::after {
    width: 100%;
}

nav.pc a {
    display: block;
    text-decoration: none;
    padding: 1rem 0;
    z-index: 1;
}


section {
    padding-top: 6rem;
}

section:first-child {
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding: 0;
}

.seminar_bnr {
    padding-top: 1rem;
    text-align: center;
}

.flexTop {
    display: flex;
    justify-content: space-between;
    border-radius: 1rem;
    overflow: hidden;
    background-color: white;
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.4);
}

.topText {
    width: 55%;
    padding: 1rem 2rem;
    margin: auto;
}

.topText h1 {
    text-align: center;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 3rem;
    color: #309e2d;
}

.topText p {
    line-height: 2rem;
    padding-top: 2rem;
}

.topImg {
    width: 44%;
    height: 100%;
    position: relative;
    display: block;
    letter-spacing: -1rem;
}

.topImg img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    vertical-align: middle;
    clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%);
    letter-spacing: 0;
    vertical-align: middle;
}

.btn_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.btn_wrap div {
    width: 45%;
    display: flex;
    flex-flow: column;
    justify-content: space-around;
    gap: 0.5rem;
}

.btn_wrap > a {
    width: 53%;
}

/* リンクボタン（基本色） */

.btn_wrap a.link_btn {
    display: block;
    width: 100%;
    text-decoration: none;
    color: white;
    background-color: orange;
    text-align: center;
    border-radius: 5rem;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 500;
}

a.btn--green.btn--cubic.link_btn {
    border-bottom: 5px solid darkorange;
}

a.btn--green.btn--cubic.link_btn:hover {
    margin-top: 3px;
    border-bottom: 2px solid darkorange;
}

a.btn-c.link_btn {
    font-size: 2rem;
    position: relative;
    padding: 1.5rem 3rem;
    border-radius: 100vh;
}

/* リンクボタン（グリーン） */

.btn_wrap a.link_btn.gr {
    background-color: #309e2d;
}

a.btn--green.btn--cubic.link_btn.gr {
    border-bottom: 5px solid #206b1e;
}

a.btn--green.btn--cubic.link_btn.gr:hover {
    border-bottom: 2px solid #206b1e;
}


h2 {
    text-align: center;
    padding: 12rem 2rem 0;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 2.5rem;
    width: fit-content;
    margin: -12rem auto 3rem;
    position: relative;
    z-index: -1;
}

h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -999;
    display: block;
    height: 3rem;
    width: 100%;
    content: "";
    background: linear-gradient(transparent 65%, #8affab 35%);
}

section:nth-of-type(2n+1) h2::after {
    background: linear-gradient(transparent 65%, #ffc94c 35%);
}

ol.step li {
    counter-increment: mycounter;
    list-style-type: none;
    margin: 3rem auto;
    width: 75%;
    font-size: 2rem;
    line-height: 5rem;
    background-color: white;
    filter: drop-shadow(5px 5px 3px rgba(0, 0, 0, .4));
    position: relative;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 500;
}

ol.step li::before {
    content: counter(mycounter, decimal-leading-zero);
    display: inline-block;
    padding: 0 1.5rem;
    background-color: #309e2d;
    margin-right: 1rem;
    color: white;
}

ol.step li:not(:last-child):after {
    content: "";
    position: absolute;
    width: 40px;
    height: 30px;
    background-color: #309e2d;
    bottom: -20px;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    left: 1.5rem;
}


.youtube {
    width: 80%;
    aspect-ratio: 16 / 9;
    margin: auto;
}

.youtube iframe {
    width: 100%;
    height: 100%;
}

.merit {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.merit li {
    list-style-type: none;
    width: calc(50% - 1rem);
    display: flex;
}

.merit li .count {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    margin-right: -1.5rem;
    z-index: 99;
}

.merit li .count p {
    background-color: #ea5404;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.merit li .merit_content {
    padding: 2rem;
    background-color: #fffaf0;
    border-radius: 1rem;
    filter: drop-shadow(5px 5px 3px rgba(0, 0, 0, .4));
}

.merit h3 {
    color: #206b1e;
    font-weight: bold;
    padding-bottom: 1rem;
    border-bottom: 1px dashed darkgray;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.merit h3 span {
    display: inline-block;
    color: #206b1e;
    font-weight: bold;
}

.merit li:last-child {
    background-image: url(./rabby_02.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: auto 100%;
}

.merit_content p {
    text-align: justify;
}


.contents_lr {
    position: relative;
    width: 80%;
    aspect-ratio: 16 / 9;
    margin: auto;
}

.contents_lr img {
    width: 70%;
    position: absolute;
    top: 0;
    left: 0;
}

.detail_wrap {
    width: 70%;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 2rem;
    background-color: antiquewhite;
    filter: drop-shadow(5px 5px 3px rgba(0, 0, 0, .4));
    font-size: 1.1rem;
}

.detail_wrap a {
    display: block;
    background-color: #ea5404;
    color: white;
    text-decoration: none;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 1rem 3rem;
}

.detail_wrap a:hover {
    background-color: #ed3242;
}

section:nth-child(2n+1) .contents_lr img {
    left: auto;
    right: 0;
}

section:nth-child(2n+1) .contents_lr .detail_wrap {
    right: auto;
    left: 0;
}

ul.qa {
    width: 100%;
    margin: auto;
    font-size: 1.1rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

ul.qa li {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    background-color: #f7f7f7;
    border-radius: 0.5rem;
    padding: 2rem 2rem;
    width: calc(50% - 1rem);
}

ul.qa h3 {
    font-weight: bold;
    line-height: 2.5rem;
    margin-bottom: 1rem;
    text-indent: -3rem;
    padding-left: 3rem;
}

ul.qa p {
    margin: 0;
    text-indent: -3rem;
    padding-left: 3rem;
    margin-bottom: 3rem;
    line-height: 2.5rem;
}

ul.qa h3:before,
ul.qa p:before {
    display: inline-flex;
    margin-right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    color: #FFF;
    font-weight: bold;
    border-radius: 50%;
    font-size: 1.5rem;
    justify-content: center;
    align-items: center;
    text-indent: 0;
    font-family: Arial, Helvetica, sans-serif;
}

ul.qa h3:before {
    content: 'Q';
    background-color: #149e07;
}

ul.qa p:before {
    content: 'A';
    background-color: #ff4f1a;
}

footer {
    height: 6rem;
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    background-color: lightgray;
}

footer img.logo {
    height: 2rem;
}

.rabby {
    display: block;
    position: fixed;
    bottom: 1rem;
    right: 0;
    margin-left: auto;
    margin-top: -11rem;
    font-size: 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    width: 11rem;
    height: 15rem;
    z-index: 999;
}

.rabby img {
    height: 100%;
}


/* ===============================================
ハンバーガーボタンのスタイリング
=============================================== */
.hamburger {
    width: 50px;
    height: 50px;
    position: relative;
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: none;
  }
  .hamburger span,
  .hamburger span::after,
  .hamburger span::before {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.5s;
  }
  .hamburger span::before {
    top: -10px;
  }
  .hamburger span::after {
    bottom: -10px;
  }
  .hamburger.open span {
    background-color: transparent;
  }
  .hamburger.open span::before {
    top: 0;
    transform: rotate(45deg);
  }
  .hamburger.open span::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
  
  /* ===============================================
  メニューのスタイリング
  =============================================== */
  .nav {
    position: fixed;
    width: 100vw;
    top: 65px;
    left: 0;
    background-color: #fff;
    padding: 50px 0;
    /* transition: all 0.5s; */
    border-top: 1px solid #309e2d;
    display: none;
  }
  .nav__item a {
    display: block;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    padding: 1rem;
    text-align: center;
  }
  .nav__item a:hover {
    color: #309e2d;
    background-color: #fff;
  }
  .nav.open {
    right: 0;
    display: block;
  }

@media screen and (max-width:960px){
    body {
        width: 100vw;
        overflow-x: hidden;
        display: flex;
        flex-flow: column;
    }

    main {
        overflow-y: scroll;
    }

    h2 {
        padding: 3rem 2rem 0;
        margin: -3rem auto 1rem;
    }

    img {
        width: 100%;
        height: auto;
    }

    header {
        margin: 0;
    }

    .header {
        width: 100%;
        padding: 0.5rem;
        margin: 0;
    }

    .header img {
        height: 2rem;
    }

    .header .tel {
        margin-left: auto;
        margin-right: 1rem;
        font-size: 1.5rem;
    }
    
    .hamburger {
        display: block;
    }
    nav.pc {
        display: none;
    }

    .nav ul {
        display: flex;
        flex-wrap: wrap;
    }
    .nav li {
        width: 33%;
    }

    #wrap {
        width: 100%;
        padding: 5rem 0;
    }

    .flexTop {
        width: 95%;
        margin: auto;
    }

    .topText h1 {
        font-size: 1.3rem;
    }
    .topText p {
        line-height: 1.2rem;
        font-size: 0.9rem;
        padding-top: 1rem;
    }

    .btn_wrap {
        width: 95%;
        margin: auto;
    }
    a.btn-c.link_btn {
        font-size: 1.3rem;
    }

    .merit {
        padding: 0 2rem;
    }

    ol.step li {
        width: 90%;
    }

    ul.qa {
        width: 90%;
        flex-flow: column;
    }

    ul.qa li {
        width: 90%;
        margin: auto;
        padding: 1rem;
    }

    .rabby {
        display: none;
    }

    .sp_hide {
        display: none;
    }
}

@media screen and (max-width:600px) {
    body {
        width: 100vw;
        overflow-x: hidden;
    }

    img {
        width: 100%;
        height: auto;
    }

    header {
        margin: 0;
    }

    .header {
        width: 100%;
        padding: 0.5rem;
        margin: 0;
    }

    .header img {
        height: 2rem;
    }

    .header .tel {
        display: none;
    }

    .hamburger {
        display: block;
    }

    nav.pc {
        display: none;
    }
    .nav ul {
        display: block;
    }
    .nav li {
        width: 100%;
    }

    #wrap {
        width: 100%;
        padding: 5rem 0;
    }

    section:not(:first-child) {
        padding-top: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .campaign img {
        width: 100%;
    }

    .flexTop {
        flex-flow: column;
        width: 90%;
        margin: auto;
    }

    .topText {
        width: 100%;
    }

    .topText h1 {
        font-size: 1.3rem;
    }

    .topText p {
        line-height: 1.5rem;
        padding-top: 1rem;
    }

    .topImg {
        width: 100%;
    }

    .topImg img {
        clip-path: none;
    }

    .btn_wrap {
        flex-flow: column;
    }

    .btn_wrap div {
        width: 80%;
        margin: 1rem auto;
    }

    .btn_wrap a.link_btn {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .btn_wrap>a {
        width: 90%;
        display: block;
        margin: auto;
    }

    .youtube {
        width: 90%;
    }

    .merit {
        flex-flow: column;
        padding: 0 0.5rem;
    }

    .merit li {
        width: 90%;
        margin: auto;
    }

    .merit h3 {
        font-size: 1rem;
    }

    .merit li .merit_content {
        padding: 1rem 1.5rem;
    }

    .merit li .merit_content p {
        font-size: 0.9rem;
    }

    .merit li:last-child {
        display: none;
    }

    .contents_lr {
        width: 90%;
    }

    .contents_lr img {
        display: none;
    }

    .detail_wrap {
        position: relative;
        width: 90%;
        margin: auto;
        font-size: 0.9rem;
    }

    ol.step li {
        width: 90%;
        font-size: 1rem;
    }

    ul.qa {
        flex-flow: column;
        font-size: 0.9rem;
    }

    ul.qa h3::before,
    ul.qa p::before {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    ul.qa li {
        width: 90%;
        margin: auto;
        padding: 1rem;
    }

    ul.qa h3 {
        line-height: 1.5rem;
        margin-bottom: 0;
        text-indent: -2.5rem;
        padding-left: 2.5rem;
    }

    ul.qa p {
        margin-bottom: 0;
        line-height: 1.5rem;
        text-indent: -2.5rem;
        padding-left: 2.5rem;
    }

    .rabby {
        display: none;
    }
}