@media screen and (max-width:768px) {
  body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 2.3em;
    letter-spacing: 0.025em;
  }
  .wrap {
    width: 100%;
    padding: 60px 0;
  }
  .wrap_p50 {
    width: 100%;
    padding: 30px 0;
  }
  h1 {
    font-size: 0.95rem;
  }
  h2 {
    margin: 0 0 50px;
    font-size: 1.4rem;
    line-height: 1.8em;
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  h3 {
    margin: 0 0 30px;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
  }
  p {
    margin: 0 0 40px;
  }

  header {
    width: 100%;
    height: 80px;
  }
  header .logo_header {
    width: 200px;
    margin: 0;
    text-align: left;
  }

  .nav_menu {
    display : block;
    position: fixed;
    z-index : 100;
    right : 10px;
    top   : 10px;
    width : 50px;
    height: 50px;
  }
  .nav_menu span {
    display : block;
    position: absolute;
    width   : 25px;
    height  : 2px ;
    top: 0px;
    left: 13px;
    background : #fff;
    -webkit-transition: 0.3s ease-in-out;
    -moz-transition   : 0.3s ease-in-out;
    transition        : 0.3s ease-in-out;
  }
  .nav_menu span:nth-child(1) {
    top: 14px;
  }
  .nav_menu span:nth-child(2) {
    top: 24px;
  }
  .nav_menu span:nth-child(3) {
    top: 34px;
  }
  .nav_menu.active span:nth-child(1) {
    top : 25px;
    left: 13px;
    background :#fff;
    -webkit-transform: rotate(-45deg);
    -moz-transform   : rotate(-45deg);
    transform        : rotate(-45deg);
  }
  .nav_menu.active span:nth-child(2),
  .nav_menu.active span:nth-child(3) {
    top: 25px;
    background :#fff;
    -webkit-transform: rotate(45deg);
    -moz-transform   : rotate(45deg);
    transform        : rotate(45deg);
  }

  .globalMenuSp {
    width: calc(100% - 60px);
    max-width: 600px;
    height: 100vh;
    padding: 30px 30px;
  }
  .globalMenuSp .wrap_menu {
    width: 90%;
    margin: 0 5%;
    height: calc(100vh - 100px);
  }
  .globalMenuSp .wrap_menu nav {
    width: 100%;
    margin: 50px 0 0;
  }
  .menu_tel a {
    color: #fff;
  }
  .menu_tel a::before {
    top: 50%;
    left: 18%;
  }

  .top_fv {
    width: 100%;
    height: 100vh;
    background: url(../images/fv_sp.webp) no-repeat;
    background-size: cover;
  }
  .top_fv .fv_hero {
    width: 95%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50% , -50%);
    padding: 0.5em 1em;
    background-color: rgba(255, 255, 255, 0.2);
  }
  .top_fv .fv_hero p {
    margin: 0;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
  }
  .top_fv .fv_hero p span {
    display: block;
    margin-top: 20px;
    font-size: 1.1rem;
    line-height: 1.5em;
  }

  .top_fv .consul_item,
  .consul_box {
    width: 90%;
    margin: 0 auto;
    padding: 30px 15px;
  }
  .top_fv .consul_item {
    position: absolute;
    top: 45%;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .top_fv .consul_item {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
  }
  .top_fv .consul_item ul,
  .consul_box ul {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch; /* stretch で li の高さが揃う（必要なら center に） */
    gap: 20px;
    width: calc(100% - 20%);
    margin: 0 10%;
  }
  .top_fv .consul_item li,
  .consul_box li {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 50px;
    box-sizing: border-box;
    margin: 0;
  }
  .top_fv .consul_item li a,
  .consul_box li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 5px;
    background: #fff;
    text-decoration: none;
    text-align: center;
  }
  .h2_mt130_sp {
    margin-top: 130px;
  }

  .consul_list {
    width: calc(100% - 2em);
  }
  .consul_list ul li::before {
    position: absolute;
    content: "▪️";
    margin-left: -1.1em;
  }
  .consul_list ul li {
    position: relative;
    width: 50%;
    font-size: 0.9em;
  }

  .support_list li {
    width: 45%;
    height: 100px;
    margin: 0 0 30px;
    font-size: 0.9em;
  }

  
  .worries {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 50px;
  }
  .worries img {
    width: 100%;
  }

  footer {
    width: 100%;
    margin: 100px 0 0;
  }
  .wrap_footer {
    width: calc(100% - 50px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 25px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
  }
  .footer_info {
    width: 100%;
  }
  .footer_info .logo_footer {
    width: 200px;
    margin: 0.5em 0 40px;
  }
  .footer_info p {
    margin: 0 0 0.5em;
    font-size: 0.9em;
    line-height: 1.8em;
  }
  .footer_consul {
    width: 100%;
    margin-top: 25px;
  }
  .footer_consul ul {
    padding: 0;
  }
  .footer_consul li {
    width: 70%;
    height: 50px;
    margin: 0 0 25px;
    font-size: 0.9em;
    background: #48be79;
    border-radius: 5px;
    display: flex;
    align-items: center;
  }
  .footer_pagelist {
    width: 100%;
    margin: 40px 0 0;
    padding: 0 5px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
  .footer_pagelist li {
    width: 12em;
    margin: 0.7em 0;
    font-size: 0.8em;
    line-height: 1.5em;
  }
  .footer_pagelist li a {
    color: #000;
  }
  .copy {
    width: 100%;
    margin: 0;
    padding: 0.5em 0;
    font-size: 0.8em;
    line-height: 1.5em;
    color: #fff;
    text-align: center;
    background: var(--main_color);
  }

  .flow li {
    display: flex;
    flex-direction: column; 
  }

  .flow li .textbox_flow {
    order: 1;
    float: none;
    width: 92%;  
    margin: 0 auto;
    padding: 50px 0 0;
  }
  .flow li .textbox_flow p {
    margin: 0 0 10px;
  }
  .flow li .textbox_flow h2 {
    padding-left: 4em;
  }
  .flow li .textbox_flow h2 span {
    font-size: 3em;
  }
  .flow li .imgbox_flow {
    order: 2; 
    float: none;
    width: 70%;
    max-width: 600px;
    padding: 0 20px;
    margin: 10px auto 50px;
  }
  .modal_service {
    width: 100%;
    gap: 10px;
  }
  .modal_service li {
    flex: 0 1 calc((100% - 10px * 2) / 2);
    aspect-ratio: 1.5 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    line-height: 1.9em;
    text-align: center;
    color: #fff;
    cursor: pointer;
    background: #0FAA92;
    background: linear-gradient(-45deg,rgba(15, 170, 146, 1) 0%, rgba(126, 205, 146, 1) 100%);
    border-radius: 10px;
  }

  /* 本体 */
  .modal_contents {
    height: 80vh;
    padding: 20px 20px;
    color: #fff;
    box-sizing: border-box;
    background: rgba(15, 170, 146, .9);
  }
  .modal_contents h2 {
    font-size: 1.3em;
  }
  .modal_contents h3 {
    font-size: 1.2em;
  }
  .modal_contents h3::after {
    width: 70px;
    height: 3px;
  }
  .modal_contents .sub_ttl {
    font-size: 1em;
    text-align: center;
  }
  .modal_contents h4 {
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: 400;
    text-align: center;
  }
  .modal_contents p {
    width: 95%;
    margin: 0 auto 2em;
    font-size: 0.9em;
    line-height: 2em;
  }
  .modal_contents .modal_step li {
    padding: 10px;
  }
  .modal_contents .modal_step h3 span {
    margin-right: 1em;
    padding: 0.2em 0.5em;
    font-size: 0.7em;
  }
  .modal_contents .modal_flow li {
    width: 90%;
    padding: 0.5em 1em;
  }

  .modal_contents .modal_list_wrap {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
  .modal_contents .modal_list_wrap .modal_list {
    width: 100%;
    max-width: 600px;
    padding: 0;
  }
  .modal_contents .modal_list_wrap .modal_list li {
    padding-left: 1.8em;
    font-size: 0.9em;
  }
  .modal_contents .modal_list_wrap .modal_list li::before {
    top: 0.8em;
    left: 1em;
  }
  .modal_contents .frame_emph {
    width: calc(100% - 2em);
    padding: 0.3em 1em;
    font-size: 1em;
    border: 1px solid #fff;
  }

  /* 閉じるボタン */
  .modal_close {
    font-size: 2em;
  }
  .modal_body img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
  }
  .body--lock {
    overflow: hidden;
  }
  /* テンプレートは非表示 */
  .modal_templates {
    display: none;
  }

  .tax li {
    width: calc(100% - 40px);
    display: flex;
    flex-wrap: wrap;
    margin: 0 20px;
    padding: 50px 0;
  }
  .tax li .textbox_tax h3 {
    margin-bottom: 1em;
  }
  .tax li .imgbox_tax {
      width: 100%;
      margin-top: 0;
    }
  .text_emphasis {
    display: block;
    margin: 100px auto 0;
    padding: 0.3em 1em;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.5em;
  }

  .notion_qa {
    position: fixed;
    top: auto;
    bottom: 100px;
    right: 10px;
  }
  .notion_qa p {
    font-size: 0.7em;
  }

  .faq summary {
    padding: 1.2em 2em;
    line-height: 1.8em;
  }
  .faq summary::before {
    top: 1.4em;
    left: 0.5em;
    width: 1.2em;
    height: 1.2em;
  }
  .faq summary:after {
    top: 1.5em;
    right: 1em;
    width: 0.5em;
    height: 0.5em;
  }
  .faq p::before {
    top: 1.4em;
    left: 0.5em;
    width: 1.2em;
    height: 1.2em;
  }
  .faq .faq-body p {
    padding: 1.2em 2em 1em 2em;
    line-height: 1.8em;
  }


  .textbox_company {
    width: calc(100% - 40px);
  }
  .textbox_company dt {
    width: 100%;
    margin: 0;
    padding: 2em 1em 0.5em;
    color: var(--main_color);
    border-bottom: none;
 }
  .textbox_company dd {
    width: 100%;
    margin: 0;
    padding: 0.5em 1em 2em;
  }
  .gmap {
    width: calc(100% - 40px);
    height: 400px;
  }

  .contact_form{
    width: calc(100% - 40px);
  }
  .form_row { 
    display: flex;
    flex-wrap: wrap; 
    align-items: flex-start;
    margin-bottom: 40px;
  }
  .label{
    width: calc(100% - 40px);
    letter-spacing: 0.1em;
  }
  .badge{
    margin-left: 0.8em;
    font-size: .75em;
    padding: 0.3em 0.7em;
  }
  .input,
  .textarea{
    width: auto; 
    padding: 0.8em 1.3em;
    font-size: 1em;
  }

/* ====== エラー表示 ====== */
  .form_row p {
    font-size: 0.8em;
  }

  /* 同意チェックの行 */
  .agree_row { 
    margin: 20px auto 20px;
  }
  .agree_label{
    display:flex;
    gap:10px;
    align-items:flex-start;
    line-height:1.6;
  }
  .agree_label input{
    margin-top: .1em;
  }
  .agree_row p {
    font-size: 0.8em;
  }

  /* ====== 送信ボタン・全体エラー ====== */
  .submit_row{ margin-top:10px; text-align:center; }
  .btn_submit{
    margin-top: 30px;
    padding: 0.7em 3em;
    font-size: 1.2em;
  }
  .btn_submit:hover{ 
    background: #0FAA92;
  }

  .textbox_l {
    width: calc(100% - 50px);
    float: none;
    margin: 0 0 60px;
    padding: 0 25px;
  }
  .imgbox_r {
    width: 70%;
    float: none;
    margin: 0 auto 60px;
    padding: 0;
  }

  .btn_basic a {
    position: relative;
    width: 70%;
    max-width: 400px;
    height: 60px;
    margin: 0 auto 60px;
    border: 1px solid var(--main_color);
  }
  .btn_basic a::after {
    position: absolute;
    content: "";
    top: 50%;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}