html{
    scroll-behavior: smooth;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
}

.wrapper:before{
    background-color: #f5f5f5;
    background: url(../../assets/bg.png);
    background-size: cover;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100lvh;
    content: "";
    display: block;
    z-index: -1;
}

header.pc {
    display: none;
}
header.mobile {
    display: block;
    position: sticky;
    width: 100vw;
    max-width: 600px;
    top: 0;
    margin: 0 auto;
    /* height: 94px; */
    height: clamp(30px, 15vw, 60px);
    z-index: 1000;
    background-color: white;
}
header.mobile.open {
    background-color: transparent;
}
header.mobile .title-image {
    display: inline-block;
    position: relative;
    width: 62.8%;
    max-height: 90%;
    transform: translateY(-50%);
    top: 50%;
    left: 21px;
}
header.mobile .title-image img{
    width: 100%;
    object-fit: contain;
}
header.mobile.open .title-image{
    display: none;
}
header.mobile #menu-btn {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    right: 21px;
    cursor: pointer;
    z-index: 10000;
    /* width: 70px;
    height: 40px; */
    width: clamp(23.5px, 5.9vw, 35px);
    height: clamp(13px, 3.3vw, 20px);
}
header.mobile #menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: black;
    border-radius: 4px;
    display: inline-block;
    transition: transform .5s, opacity .5s, top .5s;
    box-sizing: border-box;
}
header.mobile #menu-btn span:nth-of-type(1) {
    top: 0;
}
header.mobile #menu-btn span:nth-of-type(2) {
    top: calc(50% - 1px);
}
header.mobile #menu-btn span:nth-of-type(3) {
    bottom: 0;
}
#header.mobile #menu-btn.open span:nth-of-type(1) {
  /* transform: translateY(18px) rotate(-45deg); */
  transform:rotate(-45deg);
  top: 50%;
}
#header.mobile #menu-btn.open span:nth-of-type(2) {
  opacity: 0;
}
#header.mobile #menu-btn.open span:nth-of-type(3) {
  /* transform: translateY(-18px) rotate(45deg); */
  transform: rotate(45deg);
  top: 50%;
}
#header.mobile #menu-btn::after {
    /* content: "MENU"; */
    /* font-size: 15px; */
    font-size: clamp(10px, 2.5vw, 15px);
    font-weight: bold;
    white-space: nowrap;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    /* bottom: -25px; */
    bottom: clamp(-25px, -4.17vw, -16.7px);
}
#header.mobile #menu-btn.open::after {
    /* content: "閉じる"; */
}
nav svg{
    display: none;
}
nav.pc {
    display: block;
    position: fixed;
    transform: translateY(-50%);
    top: 50%;
    left: 0px;
    width: 362px;
    min-height: 514px;
    background: #fff;
    background: rgb(255, 255, 255);
    padding:59px 0 54px;
    box-sizing: border-box;
}
nav.pc svg{
    display: block;
}
nav.pc .nav-link {
    height: auto;
    padding:0;
}
nav.pc .nav-link a{
    font-size: clamp(12px,1.5vw,24px);
    line-height:28px;
    height: 100%;
    padding: 28px 24px 28px 38px;
    width: 100%;
    box-sizing: border-box;
    color: #15315C;
    font-family: 'Noto Sans JP',sans-serif;
    font-weight: bold;
    transition: opacity .5s;
}
nav.pc .nav-link:first-child{
    border-top: none;
}
nav.pc .nav-link{
    border-bottom: none;
}
nav.pc .nav-link:nth-child(odd) a{
    background-color: #F8F8F8;
}
nav.pc .nav-link a:hover{
    opacity: .5;
}
nav.pc .nav-link a img{
    display: none;
}
nav.mobile {
    display: none;
}
nav.mobile.open {
    display: block;
    position: fixed;
    height: 100vh;
    width: 100vw;
    max-width: 600px;
    transform: translateX(-50%);
    left: 50%;
    top: 0;
    z-index: 100;
    background-color: #f5f5f5;
}
nav.mobile.open .nav-links{
    display: block;
    width: 85.5%;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}
nav .nav-link{
    display: block;
    height: auto;
    padding:clamp(12px, 6vw, 20px)  0;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid #d9d9d9;
}
nav .nav-link:first-child{
    border-top: 1px solid #d9d9d9;
}
nav .nav-link a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 87%;
    margin: 0 auto;
    font-size: clamp(18px, 6vw, 20px);
    color: black;
    text-decoration: none;
}

.cta-link.pc {
    display: block;
    position: fixed;
    width: 362px;
    transform: translateY(-50%);
    top: 50%;
}
.cta-link.mobile {
    display: block;
    position: sticky;
    width: 100vw;
    max-width: 600px;
    bottom: 0;
    margin: 0 auto;
    z-index: 10;
}
.cta-link .cta-footer{
    display: flex;
    background: #2F3893;
    justify-content: space-evenly;
    padding: 8px 0;
}
.cta-link .cta-footer a{
    max-width: 43%;
}
.cta-link a {
    width: 100%;
    height: 100%;
}
.cta-link a img {
    width: 100%;
    height: 100%;
}

main {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
}

.img-container {
    display: block;
    position: relative;
}
.img-container > img {
    width: 100%;
    object-fit: contain;
}

.section-4-button-1 {
    position: absolute;
    width: 68%;
    transform: translateX(-50%);
    left: 50%;
    bottom: 12%;
}
.section-4-button-1 img{
    width: 100%;
    object-fit: contain;
}
.section-4-button-2 {
    position: absolute;
    width: 68%;
    object-fit: contain;
    transform: translateX(-50%);
    left: 50%;
    bottom: 5.4%;
}
.section-4-button-2 img{
    width: 100%;
    object-fit: contain;
}

.contact-form {
    padding-top: 63px;
    padding-bottom: 238px;
    width: 100%;
    background-color: #eaeaea;
}
.contact-icon {
    display: block;
    margin: 0 auto;
}
.contact-title {
    margin: 0 auto 42px;
}
.contact-title p {
    text-align: center;
    font-size: clamp(20px, 4.67vw, 28px);
    font-weight: bold;
    color: #5e5e5e;
}
.form-container {
    margin: 31px auto 0;
    width: 80%;
}
.form-container .form-label {
    font-size: clamp(14px, 3.33vw, 20px);
    font-weight: bold;
}
.form-container .form-label.req::after {
    content: "【必須】";
    font-size: clamp(14px, 3.33vw, 20px);
    font-weight: bold;
    color: #ff0000;
}
.form-container .error-message {
    margin-top: 13px;
    font-size: clamp(14px, 3.33vw, 20px);
    color: #ff0000;
}
.form-container input {
    margin-top: 13px;
    width: 100%;
    height: 40px;
    font-size: clamp(14px, 3.33vw, 20px);
    border: none;
    text-indent: 0.8em;
}
.form-container textarea {
    display: block;
    margin-top: 13px;
    width: 100%;
    height: 40px;
    font-size: clamp(14px, 3.33vw, 20px);
    border: none;
    text-indent: 0.8em;
}
.form-container .example {
    margin-top: 9px;
    width: 100%;
    font-size: clamp(10px, 2.68vw, 16px);
    line-height: 1.5;
    border-bottom: 1px solid #959595;
}
.contact-form .submit-button {
    display: block;
    width: 246px;
    height: 74px;
    margin: 58px auto 0;
    font-size: clamp(20px, 5vw, 30px);
    color: white;
    background-color: #ff3b3b;
    box-sizing: border-box;
    border: 5px solid #e11f1f;
    cursor: pointer;
}
/* フラッシュメッセージ関連 */
.flash {
    width: 100%;
    position: fixed;
    text-align: center;
    z-index:2000;
}
.flash-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.flash-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

#company {
    width: 83.5%;
    margin: 43px auto 77px;
}
.company-title {
    text-align: center;
    height: 75px;
    line-height: 75px;
    background-color: #2f3893;
    color: white;
    font-weight: bold;
    font-size: clamp(20px, 5.67vw, 34px);
}
.company-image {
    display: block;
    width: 95.8%;
    margin: 20px auto 0;
}
.company-address1 {
    margin-top: 35px;
    font-size: clamp(10px, 3.33vw, 20px);
    font-weight: bold;
}
.company-address2 {
    margin-top: 4px;
    font-size: clamp(10px, 3.33vw, 20px);
    margin-bottom: 27px;
}
.label-blue {
    height: 30px;
    line-height: 30px;
    background-color: #2f3893;
    color: white;
    font-size: clamp(14px, 3.33vw, 20px);
    text-indent: 0.8rem;
}
.label-red {
    height: 30px;
    line-height: 30px;
    background-color: #d91919;
    color: white;
    font-size: clamp(14px, 3.33vw, 20px);
    text-indent: 0.8rem;
}
.company-tel {
    margin: 15px 0;
    font-size: clamp(16px, 4vw, 24px);
    font-weight: bold;
}
.company-business-hours {
    margin: 21px 0;
    font-size: clamp(10px, 3.33vw, 20px);
}
.company-business {
    margin: 21px 0;
    font-size: clamp(10px, 3.33vw, 20px);
}
.company-operating {
    margin-top: 19px;
    font-size: clamp(10px, 3.33vw, 20px);
    margin-bottom: 49px;
}
.company-map {
    width: 100%;
    padding-top: 58.3%;
    height: 0;
    margin: 0 auto;
    margin-bottom: 36px;background: #fff;
    position: relative;
}
.company-map iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#footer {
    width: 100%;
    height: 98px;
    background-color: #2f3893;
    display: flex;
    align-items: center;
}
#copyright {
    font-size: clamp(10px, 2.5vw, 15px);
    padding-left: 8.8%;
    color: white;
}
@media screen and (max-width:1300px){
    main{
        margin-top: clamp(-60px, -15vw, -30px);
    } 
}
#header.mobile,.cta-link.mobile{
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s;
}
#header.mobile.show,.cta-link.mobile.show{
    opacity: 1;
    pointer-events: auto;
}


 #contactTitle {
        /* Rectangle 2 */
        margin:auto;
        width: 100%;
        height: clamp(40px, 14vw, 85px);
        color:#fff;
        display: grid;
        place-items: center;
        background: #2F3993;
        border-radius: 20px 20px 0px 0px;
        font-size: clamp(16px, 5.6vw, 34px);
    }
    .lead {
        margin:0 auto 15px auto;
        padding-top: 25px;
        width: 90%;
        height: 44px;
        max-width: 395px;
        font-family: 'Noto Sans JP';
        font-style: normal;
        font-weight: 700;
        font-size: clamp(12px, 3vw, 18px);
        line-height: 22px;
        display: grid;
        place-items: center;
        color: #2F3993;
    }
    .form-wrap, .company-content-wrap {
      width: 100%;
      margin:auto;
      background-color: #E6E6E6;
    }
    .form-card, .company-content {
      width: 90%;
      margin: auto;
      background-color: #E6E6E6;
      padding: 60px 0;
    }
    .form-content {
      background: #FFFFFF;
      border-radius: 0 0 20px 20px;
    }
    .form-row {
      margin: 25px auto 15px auto;
      width: 90%;
      display: flex;
      flex-direction: column;
    }
    .form-row:first-child {
      margin-top: 50px;
    }

    .form-row .field-label {
      margin-bottom: 3px;
      font-family: 'Noto Sans JP';
      font-style: normal;
      font-weight: 700;
      font-size: 18px;
      font-size: clamp(12px, 3vw, 18px);
      line-height: clamp(14px, 3.7vw, 22px);
      text-align: center;
      color: #000000;
      display: flex;
      flex-direction: row;
      align-items: flex-end;
    }
    .form-row .required {
      width: 72px;

      font-family: 'Noto Sans JP';
      font-style: normal;
      font-weight: 700;
      font-size: 18px;
      font-size: clamp(12px, 3vw, 18px);
      line-height: clamp(14px, 3.7vw, 22px);
      /* identical to box height */
      text-align: center;

      color: #FF0000;
    }
    .form-row .error {
      font-size: clamp(12px, 3vw, 18px);
      line-height: clamp(14px, 3.7vw, 22px);
      color: #FF0000;
      flex: 1;
      text-align: left;
    }
    .form-row input ,.form-row textarea{
      box-sizing: border-box;
      width: 100%;
      height: clamp(42px, 11.1vw, 65px);
      padding:1em 0;
      left: calc(50% - 540px/2);
      font-size: clamp(12px, 3vw, 18px);
      background: #FFFFFF;
      border: 1px solid #999999;
      border-radius: 5px;
      text-indent: 1em;
    }
    .checkbox-group {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: clamp(16px, 5.6vw, 34px);
    }
    .checkbox-group .checkbox-item {
      box-sizing: border-box;
      flex: 0 0 calc(50% - 12px); /* 2列にする（gap/2の調整） */
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 0;
    }
    .checkbox-item input {
      /* Rectangle 6 */
      box-sizing: border-box;
      width: 22px;
      height: 22px;
      background: #FFFFFF;
      border: 1px solid #999999;

    }
    .checkbox-item label {
      /* 内容についての質問 */
      min-width: 162px;
      height: 22px;
      font-family: 'Noto Sans JP';
      font-style: normal;
      font-weight: 700;
      font-size: 18px;
      font-size: clamp(12px, 3vw, 18px);
      line-height: 22px;
      /* identical to box height */
      color: #000000;
    }
    .submit-attention {
      margin: 0 auto 25px auto;
      color: #FF0000;
      text-align: center;
      font-family: 'Noto Sans JP';
      font-style: normal;
      font-weight: 900;
      font-size: 28px;
      font-size: clamp(20px, 2.6vw, 28px);
      line-height: 32px;
      max-width: 368px;
    }
    .submit-btn {
      margin:auto;
      width: 88%;
      height: 70px;
      background: #FF0000;
      border:none;
      font-family: 'Noto Sans JP';
      font-style: normal;
      font-weight: 900;
      font-size: clamp(16px, 5.6vw, 32px);
      line-height: clamp(16px, 5.3vw, 32px);
      /* identical to box height, or 100% */
      text-align: center;
      color: #FFFFFF;
      cursor: pointer;
    }
    .policy-box-wrap {
      width: 90%;
      margin: 50px auto 50px auto;
    }
    .policy-box {
      max-height: 40vh;                 /* 表示領域の高さ（調整可） */
      overflow: auto;                   /* スクロールを有効にする */
      -webkit-overflow-scrolling: touch;/* iOSでスムーズにスクロール */
      padding: 12px;
      border: 1px solid #e6e9ef;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 6px 18px rgba(2,6,23,0.04);
      line-height: 1.6;
      font-size: 14px;
      font-size: clamp(10px, 2.3vw, 14px);
      color: #111827;
    }
    .policy-box .title {
      /* 個人情報の取扱 */
      font-family: 'Noto Sans JP';
      font-style: normal;
      font-weight: 900;
      font-size: 28px;
      font-size: clamp(16px, 4.6vw, 28px);
      height: clamp(32px, 9.2vw, 56px);
      background: #2F3993;
      color: #FFFFFF;
      display: grid;
      place-items: center;
    }
    .policy-box .attention {
      margin: 20px auto 20px auto;
      max-width: 428px;
      text-align: center;
      background: #FF0000;
      color: #FFFFFF;
    }
    .policy-box .content {
      font-style: normal;
      font-weight: 700;
      font-size: 16px;
      line-height: 1.4;
      font-size: clamp(10px, 2.8vw, 16px);
      color: #000000;
    }
    /* キーボードフォーカスが見えるように */
    .policy-box:focus {
      outline: 3px solid rgba(59,130,246,0.18);
      outline-offset: 2px;
    }
    .fotter {
      padding-bottom: 60px;
    }
    .flatpickr-calendar{
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      transform: translate(-50%, -50%) !important;
      z-index: 9999 !important;
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      border-radius: 12px;
    }
    #footer{
        height: auto;
        line-height: 4;
    }
    .mb-cta{
        display: contents;
    }
    .pc .mb-cta{
        display: none;
    }
    .pc-cta{
        display: none;
    }
    .pc .pc-cta{
        display: block;
    }
    .cta-link .pc-cta a img{
        width: auto;
    }
    .cta-link .pc-cta a{
        transition: opacity .5s;
    }
    .cta-link .pc-cta  a:hover{
        opacity: 0.5;
    }