@media only screen and (max-width: 1440px) {
  .lead {
    padding-left: 40px;
    gap: 0;
  }
}

@media only screen and (max-width: 1023px) {
  .mv {
    padding: 0;
    min-height: auto;
    flex-direction: column;
  }
  #mv img {
    width: 100%;
    position: relative;
    max-width: none;
    /* aspect-ratio: 16 / 10; */
    object-fit: cover;
    right: -43px;
  }
  .lead {
    margin: 0;
    padding: 0px 60px;
    text-align: left;
    max-width: none;
    order: 2;
    position: relative;
    top: -90px;
  }
  .lead h1 {
    font-size: 6.7vw;
  }
  h2 {
    font-size: 4.5vw;
    margin: 0 0 35px;
    padding-top: 35px;
  }
  h3 {
    font-size: 1.3rem;
  }
  a {
    font-size: 1rem;
    padding: 10px 25px;
  }
  strong {
    font-size: 5.5vw;
  }
  .sub_msg {
    font-size: 0.9rem;
  }
  .pcbr {
    display: inline;
  }
  .spbr {
    display: none;
  }
  .lead h2 {
    font-size: 2.4rem;
    line-height: 2.8rem;
    text-align: center;
  }
  .lead a {
    margin: inherit;
    margin-top: 20px;
    display: block;
    max-width: 300px;
    text-align: center;
  }
  .badge {
    order: 1;
    position: relative;
    top: -90px;
    justify-content: flex-start;
    padding: 0 55px;
    margin-bottom: 0;
  }
  /* 問題点セクション */
  #ploblem h2,
  #solution h2 {
    font-size: 4.5vw;
    margin-bottom: 35px;
  }
  #ploblem .row h3,
  #solution .row h3 {
    font-size: 1.9vw;
    padding: 9px 10px;
  }
  #ploblem .row p,
  #solution .row p {
    padding: 18px 22px;
  }
  #survey h3 {
    font-size: 4.5vw;
  }
  /* サービスセクション */
  #service .col {
    gap: 0 40px;
  }
  #service .row {
    max-width: 230px;
    height: 230px;
    aspect-ratio: 1 / 1;
    flex: 1;
    margin: 0;
  }
  #service h2 {
    font-size: 4.5vw;
    margin-bottom: 35px;
  }
  #service h3 {
    font-size: 21px;
  }
  #service .sub_msg {
    line-height: 1.8;
    font-size: 1.2rem;
    margin: 20px 0 28px;
  }
  #service .row p {
    font-size: 1rem;
  }
  /* 特徴セクション */
  #feature h3 {
    font-size: 4vw;
    line-height: 1.4;
    margin-bottom: 16px;
  }
  #feature .box {
    width: 80%;
    margin: 0 auto 80px;
  }
  .number {
    font-size: 3.8vw;
  }
  #feature .col {
    margin: 0;
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  #feature .wrap {
    padding: 0 30px;
  }
  #feature .row .ft_img {
    height: auto;
    margin-top: 0;
  }
  #feature .row {
    width: 90%;
  }
  #feature .row:nth-child(1) {
    width: 100%;
  }
  /* 事例セクション */
  #cases .row {
    height: auto;
  }
  .logo_area {
    margin-top: 20px;
  }
  .logo {
    /* width: 150px; */
    margin: 0;
  }
  /* フローセクション */
  .flow_area {
    flex-wrap: wrap;
    margin: 0 30px;
  }
  .flow_one {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin: 15px 0 0 0;
    background-color: #fff;
    position: relative;
  }
  .flow_one span {
    display: block;
    position: absolute;
    top: 50px;
    left: 50%;
    margin-left: -18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 18px 0 18px;
    border-color: #fff transparent transparent transparent;
  }
  .flow_one:nth-child(2) span {
    display: block;
    position: absolute;
    top: 49px;
    left: 50%;
    margin-left: -18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 18px 0 18px;
    border-color: var(--Primary-color) transparent transparent transparent;
  }
  /* メッセージセクション */
  #message h2 {
    font-size: 1.1rem;
  }
  .msg_area p {
    font-size: 0.9rem;
    text-align: left;
    margin: 0 10px 30px;
  }
  .flow-text_one {
    width: 100%;
    margin: 20px 0;
  }
  /* フォーム関連 */
  .form_wrap {
    margin: 0 auto;
    padding: 0 15px;
  }
  /* FAQセクション */
  .faq_one {
    margin: 0 20px 50px;
  }
  .faq_q {
    font-size: 1rem;
  }
  .button_area {
    margin: 60px 20px 0px;
  }
  .button_area a,
  .lead a,
  a.zoom {
    font-size: 1.1rem;
    padding: 10px 40px;
  }
  .appeal {
    font-size: 1.3rem;
  }
}

@media only screen and (max-width: 768px) {
  .lead {
    padding: 0 30px;
  }
  .badge {
    padding: 0 30px;
    gap: 0;
  }
  .badge-item {
    aspect-ratio: 1 / 1;
    flex: 1;
    width: inherit;
    height: inherit;
    max-width: 220px;
    max-height: 220px;
  }
  .badge-item span {
    font-size: 12vw;
  }
  .lead h1 {
    font-size: 7vw;
  }
  .lead h2 {
    font-size: 1.6rem;
    line-height: 2rem;
  }
  #feature .row .ft_img {
    max-width: 100%;
    /* height: 200px; */
  }
  .button_area {
    margin: 40px 20px 0px;
  }
  .button_area a,
  .lead a,
  a.zoom {
    font-size: 1rem;
    padding: 10px 30px;
  }
  .lead a {
    margin: 20px auto;
    display: block;
    max-width: 300px;
  }
  .appeal {
    font-size: 1.2rem;
  }
  #ploblem .row,
  #solution .row {
    width: 100%;
    max-width: 500px;
  }
  #ploblem .row h3,
  #solution .row h3 {
    font-size: 4vw;
    padding: 20px 10px;
  }
  #ploblem .row img,
  #solution .row img {
    order: 3;
    margin: 0px auto 20px;
    width: 80%;
    height: inherit;
  }
  #ploblem .wrap, #service .wrap {
    padding: 0 30px;
  }
  .client-slider img {
    max-width: 100px;
    min-width: 60px;
    height: 30px;
    margin: 0 10px;
  }
  #service .col {
    gap: 20px;
  }
  .chart-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .chart-container h4 {
    margin-bottom: 0;
  }
  #survey .col {
    padding: 0 30px;
  }
  #survey .row {
    width: 100%;
    box-sizing: border-box;
  }
  #survey .row:nth-child(2), #survey .row:nth-child(3) {
    transform: initial;
  }
  #feature .box {
    width: 100%;
    margin: 0 auto 60px;
  }
  .number, #feature h3 {
    text-align: center;
    font-size: 4.5vw;
  }
  #feature h3 {
    margin-bottom: 32px;
  }
  #cases .col {
    flex-direction: column;
  }
}

@media only screen and (max-width: 480px) {
  h2 {
    font-size: 1.7rem;
    margin: 0 10px 25px;
    padding-top: 25px;
  }
  h3 {
    font-size: 1.1rem;
  }
  .lead h2 {
    font-size: 1.9rem;
  }
  .lead p {
    font-size: 1rem;
    margin-top: 15px;
  }
  #service img {
    width: 80px;
    margin-top: 15px;
  }
  .flow_one {
    height: 40px;
    font-size: 0.9rem;
  }
  .flow_one span {
    top: 39px;
  }
  .flow_one:nth-child(2) span {
    top: 39px;
  }
  .lead a {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .button_area {
    margin: 30px 15px 20px;
  }
  .button_area a,
  .lead a,
  a.zoom {
    font-size: 0.9rem;
    padding: 8px 25px;
  }
  .appeal {
    font-size: 1.1rem;
  }
  #ploblem .row,
  #solution .row {
    min-height: 340px;
  }
  #ploblem h2,
  #solution h2 {
    font-size: 5.4vw;
  }
  #service h2 {
    font-size: 7vw;
  }
  #ploblem .row h3,
  #solution .row h3 {
    font-size: 4.7vw;
    padding: 15px 10px;
  }
  #ploblem .row p,
  #solution .row p {
    font-size: 0.9rem;
    padding: 15px 20px;
  }
  #ploblem span {
    bottom: -24px;
    border-color: var(--Primary-color) transparent transparent transparent;
  }
  #survey .row p {
    font-size: 1rem;
  }
  #survey .row {
    padding: 20px;
  }
  #survey h3 {
    font-size: 1.7rem;
  }
  .label:nth-child(1) {
    font-size: 1.1rem;
  }
  #feature h2 {
    margin-bottom: 50px;
  }
  #feature h3 {
    font-size: 1.5rem;
  }
  .number {
    font-size: 3rem;
  }
  #feature .row {
    width: 100%;
  }
  #feature .col {
    gap: 10px;
  }
  #feature .box:nth-child(6) {
    margin: 0 auto 120px;
  }
}

@media screen and (max-width: 950px) {
  #training .fl_box {
    align-items: center;
    flex-direction: column;
    gap: 15px;
    justify-content: space-around;
    margin-top: 30px;
  }
  #training .fl_box .board_box {
    width: 90%;
  }
  #training h2 {
    /* padding-top: 60px; */
  }
  #training .arrow {
    transform: rotate(90deg);
    width: 50px;
    padding: 10px;
    flex: 1;
    margin-top: 0;
  }
  #training .fl_box div p {
    min-height: initial;
  }
}

@media screen and (max-width: 850px) {
  #learning .fl_box {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  #learning .fl_box .content_item {
    width: 270px;
  }
  #detail table {
    border-collapse: collapse;
  }
  #detail table tbody {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  #detail tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  #detail th {
    width: 80%;
    border-radius: 30px;
  }
  .partner_company img {
    width: calc(100% / 3 - 2px);
  }
}
