:root {
  /* font */
  --font-family-jp: "Noto Sans JP", sans-serif;
  --font-family-en: "MuseoModerno", sans-serif;

  /* color */
  --accent-color: #FFD400;
  --font-color-base: #000;
}

body {
  @media (768px <= width) {
    min-width: 992px;
  }
}

/* overwrite */
.button.button--primary:link,
.button.button--primary:visited {
  color: var(--white);
}

.navbar__menu-item:link,
.navbar__menu-item:visited,
.navbar__submenu-item:link,
.navbar__submenu-item:visited,
.navbar__section__menu-item:link,
.navbar__section__menu-item:visited {
  color: var(--gray-200);
}

.layout_main {
  font-family: var(--font-family-jp);
  font-size: var(--font-size-md);
  font-weight: 400;
  background: #fff;
  color: var(--font-color-base);
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: antialiased;
  text-size-adjust: 100%;
  font-feature-settings: 'halt' on;
}

@media (width < 768px) {
  .layout_main {
    font-size: var(--font-size-sm);
  }
}

@media ( 768px < width) {
  section {
    font-size: var(--font-size-md);
  }

  .only_sp {
    display: none;
  }
}

.rich-menu {
 & a {
  &:link {
    color: inherit;
  }
 }
}

.lp-inner {
  max-width: 75rem;
  margin: 0 auto;
  @media (width < 768px) {
    margin: 0 1.5rem;
  }
}

.lp-section {
  padding: 6rem 1rem 0;
}

.lp-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

em {
  color: var(--colors-primary-600);
  font-style: normal;
  font-weight: bold;
}

/* hero */
.hero {
  background-image: url("/lp/fixed-price-plan/assets/images/background-hero.png");
  background-size: cover;

  .section__container {
    header {
      text-align: center;

      p {
        font-size: var(--font-size-2xl);
      }

      .section__heading {
        margin-top: var(--size-3xs);
        font-size: var(--font-size-5xl);
        font-weight: bold;

        @media (width < 768px) {
          margin-top: var(--size-lg);
        }
      }

      .section__copy {
        margin-top: var(--size-2xl);
        font-size: var(--font-size-md);
      }

      @media (width < 768px) {
        h1 {
          line-height: 1.2;
        }
      }
    }
  }
}

.button--anchor {
  color: var(--white)!important;
  --button-background-color: var(--black);
  --button-border-color: var(--black);
  height: 52px;
  max-width: 264px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px auto 0;
  position: relative;

  &:hover {
      text-decoration: none;
      background: var(--gray-900);
  }

  &::after {
    background-color: var(--global-nav-menu-text-color);
    content: '';
    display: block;
    mask-image: url(/assets/images/global/icons/arrow-down.svg);
    mask-repeat: no-repeat;
    mask-size: contain;
    width: var(--size-md);
    height: var(--size-md);
    position: absolute;
    right: 16px;
  }
}

/* intro */
.intro {
  background-color: var(--white);
  position: relative;

  .section__container {
    --section-content-padding: var(--size-10xl) 0 calc(var(--size-6xl) + var(--size-10xl));

    h2 {
      font-weight: bold;
      text-align: center;
      line-height: 1.4;
      position: relative;

      span {
        display: block;
        font-size: var(--font-size-2xl);
      }

      @media (width < 768px) {
        font-size: var(--font-size-2xl);

        span {
          font-size: var(--font-size-xl);
        }
      }
    }

    .intro__list {
      display: flex;
      gap: var(--size-3xl);
      flex-wrap: wrap;

      li {
        display: flex;
        flex: 0 0 calc(50% - var(--size-3xl) / 2);
        padding: var(--size-2xl) 0;
        border: 2px solid var(--colors-primary-600);
        border-radius: 8px;
        color: var(--colors-primary-600);
        font-size: var(--font-size-2xl);
        line-height: 1.4;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1;

        @media (width < 768px) {
          font-size: var(--font-size-lg);
        }
      }

      &::before,
      &::after {
        content: "";
        display: block;
        height: 180px;
        width: 110px;
        background-repeat: no-repeat;
        background-position: 50% 100%;
        position: absolute;
        top: 28px;
        left: 0;
        right: 0;
        margin: 0 auto;
        z-index: 0;
      }

      &::before {
        background-image: url("/lp/fixed-price-plan/assets/images/intro_left.png");
        right: 700px;
      }

      &::after {
        background-image: url("/lp/fixed-price-plan/assets/images/intro_right.png");
        left: 700px;
      }

      @media (width < 768px) {
        padding: 0 var(--size-md);
        gap: var(--size-xl);
        flex-direction: column;

        &::before,
        &::after {
          display: none;
        }
      }
    }

    h3 {
      margin: var(--size-4xl) auto var(--size-3xl);
      font-size: var(--font-size-2xl);
      text-align: center;
      line-height: 1.6;

      @media (width < 768px) {
        font-size: var(--font-size-xl);
        font-weight: bold;
      }
    }

    &::after {
      content: "";
      position: absolute;
      bottom: var(--size-5xl);
      left: 50%;
      transform: translateX(-50%);

      width: 136px;
      height: 48px;
      background: var(--colors-primary-500);

      clip-path: polygon(0 0, 100% 0, 50% 100%); /* 下向き三角形 */
    }
  }

  .risk-list {
    display: flex;
    justify-content: space-between;
    gap: var(--size-5xl);
    

    li {
      background-color: var(--gray-100);
      border-radius: 8px;
      flex: 0 0 calc(33% - var(--size-5xl) / 3 * 2);

      dl {
        padding: var(--size-md) var(--size-2xl);

        dt {
          color: var(--colors-primary-600);
          font-weight: bold;
        }

        dd {
          display: list-item;
          list-style: disc;
          margin-left: var(--size-2xl);
        }
      }    
    }

    @media (width < 768px) {
      padding: 0 var(--size-md);
      gap: var(--size-xl);
      flex-direction: column;
    }
  }
}

/* plan */
.plan {
  background-color: #f0f8f1;
  background-image: radial-gradient(circle, #579e6415 1px, transparent 1px);
  background-position: 0 0;
  background-size: 10px 10px;

  .section__container {
    text-align: center;

    h2 {
      margin-bottom: var(--size-5xl);
      font-size: var(--font-size-5xl);
      text-align: center;
      line-height: 1.6;
      letter-spacing: -2%;

      span {
        display: block;
        font-size: var(--font-size-3xl);
      }

      @media (width < 768px) {
        font-size: var(--font-size-2xl);
        font-weight: bold;

        span {
          font-size: var(--font-size-xl);
        }
      }
    }

    @media (width < 768px) {
      p {
        text-align: left;
      }
    }

    .plan-comparison {
      margin-top: var(--size-5xl);

      img {
        max-width: 832px;
        width: 100%;
      }

      @media (width < 768px) {
        margin-top: var(--size-2xl);
      }
    }

    sup {
      font-size: var(--font-size-2xs);
      position: relative;
      top: -4px;
    }

    .foot-note {
      max-width: 832px;
      margin: var(--size-xs) auto;
      font-size: var(--font-size-xs);
      text-align: left;
    }

    .difference-passport {
      max-width: 1000px;
      width: 100%;
      margin: var(--size-10xl) auto;
      padding: var(--size-5xl);
      padding-left: calc(var(--size-6xl) + var(--size-10xl));
      border: 1px solid var(--colors-primary-500);
      border-radius: 8px;
      background-color: var(--white);
      background-image: url("/lp/fixed-price-plan/assets/images/light-bulb.svg");
      background-repeat: no-repeat;
      background-position: 40px 50%;
      text-align: left;

      h3 {
        margin-bottom: var(--size-md);
        color: var(--colors-primary-600);
        font-size: var(--font-size-2xl);
      }

      @media (width < 768px) {
        margin-top: var(--size-5xl);
        padding: var(--size-3xl) var(--size-2xl);
        background-image: none;

        h3 {
          font-size: var(--font-size-xl);
          font-weight: bold;
        }
      }
    }

    .merit {
      margin-bottom: var(--size-md);
      padding-top: var(--size-2xl);
      position: relative;
      font-weight: bold;
      line-height: 1.4;

      &::before {
        content: "Point";
        position: absolute;
        top: -4px;
        left: calc(50% - var(--size-8xl) / 2);
        color: var(--colors-primary-500);
        font-size: var(--font-size-2xl);
        font-weight: bold;
        line-height: 1.4;
      }

      @media (width < 768px) {
        &::before {
          font-size: var(--font-size-lg);
        }
      }
    }

    .merit-list {
      display: flex;
      margin: var(--size-5xl) 0;
      gap: var(--size-md);

      li {
        flex: 0 0 calc(33% - var(--size-md) / 3 * 2);
        background-color: var(--white);
        padding: calc(var(--size-10xl) * 2) var(--size-3xl) var(--size-3xl);
        background-repeat: no-repeat;
        background-position: 50% var(--size-3xl);
        text-align: left;

        strong {
          display: block;
          margin-bottom: var(--size-2xl);
          color: var(--colors-primary-600);
          font-size: var(--size-2xl);
          text-align: center;
          line-height: 1.4;
        }

        @media (width < 768px) {
          padding-top: var(--size-10xl);
          background-size: 40px;
          background-position: 50% var(--size-xl);
        }
      }

      .merit1 {
        background-image: url(/lp/fixed-price-plan/assets/images/merit1.svg);
      }

      .merit2 {
        background-image: url(/lp/fixed-price-plan/assets/images/merit2.svg);
      }

      .merit3 {
        background-image: url(/lp/fixed-price-plan/assets/images/merit3.svg);
      }

      @media (width < 768px) {
        flex-direction: column;
      }
    }

    .merit-list + p {
      font-size: var(--size-md);
      text-align: left;
    }
  }
}

/* form */
.form__layout {
  gap: 2rem;
}

.form__wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #fff;
  padding: 2rem;
  color: #000;
}

.form {
  scroll-margin-top: 88px;
  padding: 4rem 1rem 4.5rem;
  background: url(../images/bg-cloud-01.svg) no-repeat center top, url(../images/bg-cloud-02.svg) no-repeat center bottom ,url(../images/bg-noise.svg) repeat-y center top;
  background-size: 100% auto;

  h2 {
    font-size: var(--size-5xl);
    font-weight: bold;
    text-align: center;

    @media (width < 768px) {
      font-size: var(--size-2xl);
    }
  }

  .form-lead-text {
    text-align: center;
  }

  strong {
    font-weight: 600;
  }

  .mktoForm {
    width: 100% !important;
  }
  .mktoForm .mktoFieldWrap {
    float: none;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .mktoForm .mktoFormCol {
    float: none;
    margin-bottom: 1.5rem !important;
  }
  .mktoForm .mktoLabel {
    flex-shrink: 0;
    width: 260px !important;
    padding: 0;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .mktoForm .mktoRequiredField label.mktoLabel {
    font-weight: 600;
  }

  .mktoForm .mktoClear {
    display: none;
  }

  .mktoForm input[type=text],
  .mktoForm input[type=url],
  .mktoForm input[type=email],
  .mktoForm input[type=tel],
  .mktoForm input[type=number],
  .mktoForm input[type=date],
  .mktoForm textarea.mktoField,
  .mktoForm select.mktoField {
    float: none !important;
    width: 100% !important;
    height: 40px;
    padding: .5rem;
    font-size: 1rem;
  }

  .mktoForm textarea.mktoField {
    height: 100px;
  }

  .mktoForm.mktoLayoutAbove .mktoRadioList,
  .mktoForm.mktoLayoutAbove .mktoCheckboxList {
    display: grid;
    grid-template-columns: .9375rem 1fr;
    gap: 1rem .5rem;
  }

  .mktoForm .mktoRadioList > label,
  .mktoForm .mktoCheckboxList > label {
    font-size: .9375rem;
    margin: 0;
  }

  .mktoForm .mktoHtmlText {
    width: 100% !important;
  }

  .agreementArea .agreementArea_inner h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    text-align: left;
  }

  .mktoButtonRow {
    display: flex;
    justify-content: center;
  }

  .mktoForm .mktoButtonWrap.mktoMinimal .mktoButton {
    min-height: 3rem;
    font-family: var(--font-family-jp);
    background: var(--accent-color);
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0px 8px 0px 0px rgba(0, 0, 0, 0.15);
    font-size: var(--font-size-lg);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    &::before {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: .5rem;
      background: rgba(0, 0, 0, 0.10);
      opacity: 0;
      transform: scale(0, 1);
      transform-origin: left top;
      transition: .3s;
    }
  }

  .mktoForm .mktoButtonWrap.mktoMinimal .mktoButton:hover {
    background: var(--accent-color);
    box-shadow: 0px 8px 0px 0px rgba(0, 0, 0, 0.15);
    &::before {
      opacity: 1;
      transform: scale(1, 1);
    }
  }
}
@media (width < 768px) {
  .form {
    scroll-margin-top: 56px;
    padding: 4rem 0;
  }

  .form__wrap {
    padding: 1rem 1rem 2rem;
  }

  .form {
    .mktoForm .mktoLabel {
      width: 100% !important;
    }
    .mktoForm .mktoFieldWrap {
      flex-direction: column;
      align-items: flex-start;
      gap: .5rem;
    }
    .mktoForm, .mktoForm * {
      padding: 0;
    }

    .mktoForm .mktoButtonWrap.mktoMinimal .mktoButton {
      font-size: 1rem;
    }
  }
}

.form-information {
  font-size: var(--font-size-xs);
  background-color: var(--white);
  padding: var(--size-xl);
  border-radius: 6px;
  max-width: 80%;
  margin: auto;

  @media (width < 768px) {
    padding: 0;
    max-width: 100%;
  }
}

.mktoFieldWrap:has(#LblFORM_PERMISSION) {
  display: block;
}

#LblFORM_PERMISSION {
  width: 100% !important;
  background-color: #f1f1f1;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 2;
}

#LblFORM_PERMISSION span {
  font-size: 14px;
}

.mktoLogicalField:has(input[name=FORM_PERMISSION]) {
  display: flex !important;
  width: auto !important;
  height: 64px;
  align-items: center;

  @media (width < 768px) {
    justify-content: center;
  }
}

.mktoLogicalField:has(input[name=FORM_PERMISSION])::before {
  content: "個人情報の取り扱いについて";
  display: block;
  width: 260px;
  font-weight: bold;
  font-size: 15px;

  @media (width < 768px) {
    display: none;
  }
}

/* 完了画面 */
.complete {
  padding: 3rem 1rem;
}

.complete__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.complete__headline {
  font-size: 2rem;
  letter-spacing: -0.04rem;
  line-height: 1.4;
}

.complete__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.complete__button {
  padding: 1rem;
  font-weight: 700;
}

@media (width < 768px) {
  .complete {
    padding: 2.5rem 0;
  }
  .complete__headline {
    font-size: 1.5rem;
    word-break: keep-all;
  }
}


/* 共通フッター（globalfooter.html） の調整用 */
.globalfooter {
    & a:link {
        color: #F1F1F1;
    }
}

.footer-service__link:link {
  color: var(--bland-color);
}
