/* 変数override */

:root {
    /*
    * brad color
    */
    --lp-colors-base: #000;
    --lp-colors-accent: #FF0;
    --lp-brand-color: #006BA3;
    --lp-colors-primary-050: #E6F1F9;
    --lp-colors-primary-100: #E0F0FA;
    --lp-colors-primary-200: #9ECAE8;
    --lp-colors-primary-300: #4EA7E4;
    --lp-colors-primary-400: #1D80C3;
    --lp-colors-primary-700: #00476D;
}

html {
  scroll-behavior: smooth;
}

/* header */
.header {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.5rem;
  @media (width < 768px) {
    top: 0.81rem;
  }
}

.header__logo {
  line-height: 0;
  @media (width < 768px) {
    width: 7.53125rem;
  }
}

/* hero */
.hero {
  background: #E9F6FE url(../images/bg-hero-pc.png) no-repeat right center / cover;
  @media (width < 768px) {
    background-image: url(../images/bg-hero-sp.png);
  }
}

.hero__inner {
  padding: 6.63rem 0 3.65rem;
  background: url(../images/img-hero.svg) no-repeat right 5.1875rem / 50.25% auto;
  @media (width < 768px) {
    padding: 4rem 0 1.5rem;
    background: none;
  }
}

.hero__content {
  width: 57.5%;
  max-width: 43.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  @media (width < 768px) {
    width: 100%;
    max-width: 24.375rem;
    margin: 0 auto;
    gap: 1rem;
  }
}

.hero__headline {
  line-height: 1;
  @media (width < 768px) {
    margin: 0 -1rem;
  }
}

.hero__bnr {
  line-height: 0;
  align-self: center;
  box-shadow: 0 4.598px 4.598px 0 rgba(51, 73, 99, 0.12);
}

.hero__lead {
  @media (width < 768px) {
    text-align: left;
    position: relative;
    padding: 0.34rem 5rem 0.84rem 0;
    font-size: var(--lp-font-size-14);

    &::after {
      content: "";
      display: block;
      width: 10.375rem;
      height: 7.25rem;
      background: url(../images/img-hero.svg) no-repeat center center / 100%;
      position: absolute;
      top: -0.71rem;
      right: -0.675rem;
    }
  }
}

/*  */
.page-anchor {
  padding: 1.5rem 0;
  color: var(--lp-color-white);
  @media (width < 768px) {
    padding: 1rem 0 4rem;
  }
}

.page-anchor__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  @media (width < 768px) {
    align-items: stretch;
  }
}

.page-anchor__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--lp-brand-color);
  font-weight: var(--lp-fw-bold);
  line-height: var(--lp-lh-tight);
  & em {
    font-size: var(--lp-font-size-23);
  }

  & strong {
    font-size: 1.875rem;
    line-height: var(--lp-lh-tight);
  }

  &::before,
  &::after {
    content: "";
    display: block;
    width: 13px;
    height: 26px;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="26" viewBox="0 0 13 26" fill="none"><path d="M1.00024 1L12.0002 25" stroke="%23006BA3" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat center center / 100%;
    margin: 0 0 -5px;
  }

  &::after {
    transform: scale(-1,1);
  }

  @media (width < 768px) {
    text-align: center;
    line-height: var(--lp-lh-heading);
    & span {
      flex: 1;
    }
    & em {
      font-size: var(--lp-font-size-20);
    }

    &::before,
    &::after {
      width: 35px;
      height: 74px;
      background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="35" height="74" viewBox="0 0 35 74" fill="none"><path d="M1.00024 1L33.916 72.8161" stroke="%23006BA3" stroke-width="2" stroke-linecap="round"/></svg>');
    }
  }
}

.page-anchor__button {
  width: 36.75rem;
  position: relative;
  justify-content: space-between;

  & span {
    flex: 1;
    text-align: center;
  }

  @media (width < 768px) {
    width: 100%;
  }
}

/* 料金 */
.price__table {
  & thead {
    & th {
      &:first-child {
        width: 10.75rem;
        @media (width < 768px) {
          width: 6.4375rem;
        }
      }
    }
  }
  @media (width < 768px) {
    width: 38.75rem;
    min-width: calc(100% - 2rem);
    & thead {
      & th {
        font-size: var(--lp-font-size-16);
      }
    }
  }

}

/* CTA */
.cta {
  background: linear-gradient(0deg, #006BA3 0%, #006BA3 100%), url(../images/bg-cta-pc.png) lightgray 50% / cover no-repeat;
  background-blend-mode: color, normal;
  color: var(--lp-color-white);
  text-align: center;

  @media (width < 768px) {
    background: linear-gradient(0deg, #006BA3 0%, #006BA3 100%), url(../images/bg-cta-sp.png) lightgray 50% / cover no-repeat;
  }

  & .page-anchor {
    padding: 0;
  }

  & .page-anchor__label {
    color: var(--lp-color-white);
    &::before,
    &::after {
      background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="26" viewBox="0 0 13 26" fill="none"><path d="M1.00024 1L12.0002 25" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>');
    }

    @media (width < 768px) {
      &::before,
      &::after {
        background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="35" height="74" viewBox="0 0 35 74" fill="none"><path d="M1.00024 1.00024L33.916 72.8164" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>');
      }
    }
  }

}

.cta__headline {
  align-items: center;
  font-size: var(--lp-font-size-41);
  line-height: var(--lp-lh-tight);
  padding: 0 0 0.5rem;

  & .label {
    display: block;
    padding: 0 0 0.5rem;
    margin: 0 0 1.25rem;
    font-size: var(--lp-font-size-20);
  }

  & em {
    display: inline-block;
    line-height: var(--lp-lh-tight);
    border-bottom: 8px solid var(--lp-colors-accent);
    padding: 0 0 0.625rem;
  }
  @media (width < 768px) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--lp-font-size-26);

    & .label {
      font-size: var(--lp-font-size-base);
      line-height: var(--lp-lh-compact);
      padding: 0;
      margin: 0;
    }

    & em {
      border-bottom-width: 4px;
      padding: 0 0 0.5rem;
    }
  }
}

.faq {
  & .title {
    color: var(--lp-colors-primary-700);
  }
}

/**
 * フォーム
 */

/* app.cssからの抜粋 */
.form {
  padding: 4rem;
  background: var(--lp-color-gray-100);
  border-radius: var(--lp-radius);
  @media (width < 768px) {
    padding: 1.5rem 1rem;
  }
}

.form .form_in * {
  box-sizing: border-box;
}
.form .form_in input::placeholder {
  color: #ccc;
}
.form .form_in input:focus {
  border-color: inherit;
  outline: none;
}
.form .form_in .mktoForm {
  margin-top: -10px;
}
.form .form_in .mktoFormRow {
  display: flex;
}
.form .form_in .mktoFormCol {
  width: 100%;
}
.form .form_in .mktoForm.mktoLayoutAbove .mktoRequiredField .mktoAsterix {
  color: #f00;
  font-weight: normal;
  font-size: 20px;
  line-height: 1;
}
.form .form_in .mktoForm .mktoError {
  right: inherit!important;
  bottom: -44px!important;
}
.form .form_in .mktoForm .mktoError .mktoErrorArrow {
  background: #FD7C96;
  border: 0;
}
.form .form_in .mktoForm .mktoError .mktoErrorMsg {
  max-width: none;
  padding: 14px 15px;
  background: #FD7C96;
  border: 0;
  color: #fff;
  font-size: 15px;
  text-shadow: none;
  box-shadow: none;
  font-weight: bold;
}
.form .form_in .mktoOffset {
  display: none;
}
.form .form_in .mktoHasWidth {
  width: 100%!important;
}
.form .form_in .mktoForm .mktoRadioList, .form .form_in .mktoForm .mktoCheckboxList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.form .form_in .mktoLabel {
  margin-top: 20px;
  padding: 0 0 5px;
  font-weight: bold;
  line-height: var(--lp-lh-body);
}
.form .form_in .mktoField {
  padding: 13px 20px;
  background: var(--lp-color-white);
  border: 1px solid var(--lp-color-gray-300);
  font-size: 15px;
}
.form .form_in .mktoForm .mktoRadioList > label,
.form .form_in .mktoForm .mktoCheckboxList > label {
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.5em;
  display: block;
  min-height: 12px;
  padding: 3px 0;
  width: 97%;
}
.form .form_in input[type="checkbox"].mktoField,
.form .form_in input[type="radio"].mktoField {
  width: 3%;
  appearance: auto;
}
@media screen and (max-width: 768px) {
.form .form_in .mktoForm .mktoRadioList > label,
  .form .form_in .mktoForm .mktoCheckboxList > label {
    width: 93%;
  }
  .form .form_in input[type="checkbox"].mktoField,
  .form .form_in input[type="radio"].mktoField {
    width: 7%;
    transform: scale(1.3);
  }
}

.form .form_in select.mktoField {
  display: block;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background-color: #fff;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat, repeat;
  background-position: right .7em top 50%, 0 0;
  background-size: .65em auto, 100%;
}
@media screen and (max-width: 768px) {
  .form .form_in select.mktoField {
    padding: 10px;
}
}
.form .form_in select.mktoField::-ms-expand {
  display: none;
}
.form .form_in .mktoFieldWrap {
  width: 100%;
  /* padding: 0 10px; */
}
.form .form_in .mktoButtonRow {
  margin-top: 20px;
  padding: 0 10px;
  display: block;
}
.form .form_in .mktoButtonWrap {
  display: block;
}
.form .form_in .mktoButtonWrap.mktoMinimal .mktoButton {
  width: 100%;
  padding: 23px 0;
  background: #ff5577;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: bold;
  text-shadow: none;
  box-shadow: none;
  border-radius: var(--lp-radius);
  transition-property: background-color;
  transition-duration: .4s;
}
.form .form_in .mktoButtonWrap.mktoMinimal .mktoButton:hover {
  background: rgba(255, 85, 119, 0.8);
  color: #fff;
  box-shadow: none;
}
.form .form_in .mktoHtmlText {
  width: auto;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.8;
}
.form .form_in .mktoHtmlText a {
  text-decoration: underline;
}
.form .form_in .mktoHtmlText a:hover {
  text-decoration: none;
}
@media screen and (max-width: 768px) {
  .form .form_in {
    width: auto;
    margin: 0;
  }
  .form .form_in .mktoForm {
    /* margin-top: 15px; */
    padding: 0;
  }
  .form .form_in .mktoForm.mktoLayoutAbove .mktoRequiredField {
    /* padding: 0 5px; */
  }
  .form .form_in .mktoForm.mktoLayoutAbove .mktoRequiredField .mktoAsterix::before {
    font-size: 10px;
  }
  .form .form_in .mktoLabel {
    margin-top: 15px;
    /* font-size: 13px; */
  }
  .form .form_in .mktoField {
    padding: 20px 10px;
    font-size: 16px;
  }
  .form .form_in .mktoButtonWrap.mktoMinimal .mktoButton {
    padding: 22px 0;
    font-size: 15px;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 16px;

  .attention {
    font-size: 80%;
    color: var(--color-red);
    font-weight: bold;
  }

  .form_in {
    .mktoFormRow {
      display: flex;
      gap: 1.5rem;
    }

    #LblFORM_PERMISSION span {
      font-weight: normal;
    }

    textarea#FORM_INQUIRY {
      height: 7rem;
    }

    .mktoForm .mktoCheckboxList:has([name="FORM_PERMISSION"]) {
      background: var(--lp-color-white);
      border: 1px solid var(--lp-color-gray-300);
      padding: 0.5rem;
      display: flex;
      gap: 0.5rem;
      flex-wrap: nowrap;
    }

    .mktoForm .mktoClear {
      display: none;
    }
  }
}

.form__notice {
  & li {
    color: #333;
  }
}

/* フォームcssによる上書き防止のためのスタイル */
a,
a:link,
a:visited {
  color: inherit !important;
}

.lp-main {
  a,
  a:link,
  a:visited {
    color: var(--lp-brand-color) !important;
  }

  .lp-button {
    &.-primary {
      color: var(--lp-color-white) !important;
    }
  }

  .lp-page-nav {
    & li {
      & a {
        color: inherit !important;
      }
    }
  }
}
