@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,500&display=swap');
:root {
  --red-color: #df3838;
  --blue-color: #004ea9;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

.page-sale-consultation {
  background: url(../image/sale-consultation-advantage-map.png) no-repeat center
    right / 95% auto;
  background-attachment: fixed;
}

@media (min-width: 768px) {
  .page-sale-consultation {
    background-position: top right;
    background-size: min(600px, 70%) auto;
  }
}

.fv {
  position: relative;
  padding: 20px 120px 72px 20px;
  background: url(../image/sale-consultation-fv-sp.jpg) no-repeat center / cover;
  .title {
    margin-bottom: 20px;
    font-size: clamp(20px, 4.2vw, 56px);
    font-weight: var(--weight-bold);
    line-height: 1.6;
    letter-spacing: -0.8px;
    strong {
      color: var(--red-color);
    }
    span {
      display: inline-block;
    }
  }
  .results {
    .counts {
      display: flex;
      gap: 8px;
      img {
        min-width: 90px;
        max-width: 218px;
        width: 25vw;
        height: auto;
      }
    }
    .lead {
      display: none;
    }
  }
  .btn {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-inline: var(--content-spacing);
    .notes {
      position: relative;
      z-index: 1;
      width: 184px;
      background: var(--base-color);
      border: 1px solid var(--red-color);
      border-radius: 100px;
      color: var(--red-color);
      font-size: var(--text-xs);
      font-weight: var(--weight-bold);
      line-height: 20px;
      text-align: center;
    }
    .link {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      width: 100%;
      height: 60px;
      margin-top: -10px;
      padding: 15px 15px 10px 15px;
      border-radius: 5px;
      background: linear-gradient(
          90deg,
          var(--red-color),
          #f39e00 50%,
          #f39e00 100%
        )
        no-repeat left / 200% auto;
      box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
      color: var(--text-contrast-color, #fff);
      font-size: clamp(20px, 3.2vw, 26px);
      font-weight: var(--weight-bold);
      text-align: center;
      text-decoration: none;
      transition: 0.3s ease;
      &::before {
        content: '\f0e0';
        font-family: var(--fa-style-family-classic);
      }
      &:hover {
        background-position-x: 100%;
      }
    }
  }
}

@media (min-width: 768px) {
  .fv {
    padding-block: 60px;
    padding-inline: var(--content-spacing);
    background-image: url(../image/sale-consultation-fv-pc.jpg);
    .title {
      width: 71%;
    }
    .results {
      margin-bottom: 32px;
      .counts {
        gap: 16px;
        margin-bottom: 8px;
      }
      .lead {
        display: block;
        width: 60%;
        font-size: var(--text-lg);
        span {
          display: inline-block;
        }
      }
    }
    .btn {
      position: relative;
      bottom: unset;
      width: 440px;
      padding-inline: unset;
      .link {
        height: auto;
        padding: 30px;
      }
    }
  }
}

.inquiry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  .btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    .notes {
      position: relative;
      z-index: 1;
      width: 184px;
      background: var(--base-color);
      border: 1px solid var(--red-color);
      border-radius: 100px;
      color: var(--red-color);
      font-size: var(--text-xs);
      font-weight: var(--weight-bold);
      line-height: var(--line-height-lg);
      text-align: center;
    }
    .link {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      width: 100%;
      margin-top: -10px;
      padding: 15px 15px 10px 15px;
      border-radius: 5px;
      background: linear-gradient(
          90deg,
          var(--red-color),
          #f39e00 50%,
          #f39e00 100%
        )
        no-repeat left / 200% auto;
      box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
      color: var(--text-contrast-color, #fff);
      font-size: clamp(20px, 3.2vw, 26px);
      font-weight: var(--weight-bold);
      text-align: center;
      text-decoration: none;
      transition: 0.3s ease;
      &::before {
        content: '\f0e0';
        font-family: var(--fa-style-family-classic);
      }
      &:hover {
        background-position-x: 100%;
      }
    }
  }
  .badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
    img {
      min-width: 90px;
      min-height: 90px;
      max-width: 128px;
      max-height: 128px;
      width: 12vw;
      height: 12vw;
    }
  }
}

@media (min-width: 768px) {
  .inquiry {
    flex-direction: row;
    gap: min(4vw, 48px);
    .btn {
      max-width: 626px;
      .notes {
        font-size: var(--text-lg);
      }
      .link {
        height: auto;
        margin-top: -16px;
        padding: 30px;
      }
    }
  }
}

.worries {
  background: #f4f1e9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-block: 60px 40px;
  padding-inline: var(--content-spacing);
  > .title {
    font-size: clamp(21px, 5.8333vw, 42px);
    font-weight: var(--weight-bold);
    line-height: 1.2;
  }
  .list {
    display: grid;
    grid-template-columns: 100%;
    gap: 16px;
    .item {
      background: var(--base-color);
      border-radius: 8px;
      border: 1px solid rgba(0, 0, 0, 0.1);
      box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.02),
        0px 6px 12px 0px rgba(0, 0, 0, 0.03);
      overflow: hidden;
      &::before {
        content: '';
        display: block;
        width: 100%;
        min-height: 80px;
        aspect-ratio: 2 / 1;
        background: no-repeat center / cover;
      }
      &.item1::before {
        background-image: url(../image/sale-consultation-worries-img-01.jpg);
      }
      &.item2::before {
        background-image: url(../image/sale-consultation-worries-img-02.jpg);
      }
      &.item3::before {
        background-image: url(../image/sale-consultation-worries-img-03.jpg);
      }
      .text {
        display: block;
        padding: 12px;
        font-size: clamp(16px, 4vw, 24px);
        font-weight: bold;
        line-height: 1.45;
        text-align: justify;
        span {
          color: var(--red-color);
        }
      }
    }
  }
  .lead {
    font-size: clamp(21px, 5.8333vw, 36px);
    font-weight: var(--weight-bold);
    line-height: var(--line-height-lg);
    text-align: justify;
    strong {
      color: var(--blue-color);
    }
  }
}

@media (min-width: 768px) {
  .worries {
    gap: 60px;
    padding-block: 100px;
    .list {
      grid-template-columns: repeat(3, 1fr);
      .item {
        border-radius: 16px;
        &::before {
          height: 240px;
        }
        .text {
          padding: 24px;
        }
      }
    }
  }
}

.advantage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 60px 40px;
  padding-inline: var(--content-spacing);
  > .title {
    padding-bottom: 30px;
    color: var(--blue-color);
    font-size: clamp(21px, 5.8333vw, 42px);
    font-weight: var(--weight-bold);
    line-height: 1.6;
    text-align: center;
    strong {
      color: var(--red-color);
    }
  }
  .lead {
    padding-bottom: 40px;
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    text-align: justify;
  }
  .cards {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
    padding-bottom: 50px;
    .card {
      display: flex;
      flex-direction: column;
      border: 1px solid #aaddf5;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 10px;
      overflow: hidden;
      .inner {
        padding: 24px 16px 32px;
        .title {
          padding-bottom: 12px;
          color: var(--main-color);
          font-size: 21px;
          font-weight: var(--weight-bold);
          line-height: 1.6;
        }
        .text {
          font-size: var(--text-md);
          line-height: var(--line-height-lg);
          text-align: justify;
        }
        .list {
          margin-block: 16px;
          padding: 12px 16px;
          border-radius: 10px;
          background: #f4f1e9;
          .item {
            display: grid;
            grid-template-columns: 18px 1fr;
            gap: var(--gap-sm);
            font-size: var(--text-md);
            line-height: var(--line-height-lg);
            &::before {
              content: '';
              display: inline-block;
              width: 18px;
              height: 18px;
              margin-top: 6px;
              background: url(../image/sale-consultation-advantage-ico-check.png)
                no-repeat center / contain;
            }
          }
        }
      }
      &::after {
        content: '';
        display: block;
        width: 100%;
        min-height: 160px;
        aspect-ratio: 2 / 1;
        background: no-repeat center / cover;
      }
      &.card1::after {
        background-image: url(../image/sale-consultation-advantage-img-01.jpg);
      }
      &.card2::after {
        background-image: url(../image/sale-consultation-advantage-img-02.jpg);
      }
      &.card3::after {
        background-image: url(../image/sale-consultation-advantage-img-03.jpg);
      }
      &.card4::after {
        background-image: url(../image/sale-consultation-advantage-img-04.jpg);
      }
    }
  }
}

@media (min-width: 768px) {
  .advantage {
    background-size: auto;
    padding-block: 100px;
    .lead {
      font-size: 20px;
    }
    .cards {
      gap: var(--gap-xxl);
      padding-bottom: 100px;
      .card {
        flex-direction: row;
        align-items: center;
        border-radius: 16px;
        &:nth-child(even) {
          flex-direction: row-reverse;
        }
        .inner {
          padding: 20px min(4.5vw, 50px);
          .title {
            padding-bottom: 24px;
            font-size: min(3vw, 26px);
          }
          .text {
            font-size: var(--text-lg);
          }
          .list {
            padding: 20px 30px;
          }
        }
        &::after {
          max-width: 480px;
          min-height: 432px;
          width: 40%;
          height: auto;
          align-self: stretch;
        }
      }
    }
  }
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 60px 40px;
  padding-inline: var(--content-spacing);
  > .title {
    padding-bottom: 30px;
    color: var(--blue-color);
    font-size: clamp(21px, 5.8333vw, 42px);
    font-weight: var(--weight-bold);
    line-height: 1.6;
    text-align: center;
    strong {
      color: var(--red-color);
    }
  }
  .lead {
    padding-bottom: 40px;
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    text-align: center;
    span {
      display: inline-block;
    }
  }
  .wrapper {
    display: grid;
    grid-template-columns: 100%;
    gap: var(--gap-xxl);
    padding-bottom: 32px;
    .inner {
      display: flex;
      flex-direction: column;
      gap: 12px;
      &::before {
        content: '';
        display: block;
        width: 60px;
        height: 8px;
        border-radius: 100px;
        background: var(--gradation-color);
      }
      .title {
        font-size: clamp(20px, 3vw, 32px);
        line-height: 1.6;
      }
      .description {
        font-size: var(--text-md);
      }
      .point {
        color: var(--red-color);
        font-size: var(--text-md);
        font-weight: var(--weight-bold);
        line-height: 1.6;
      }
      .step {
        display: flex;
        flex-direction: column;
        gap: var(--gap-xl);
        counter-reset: step 0;
        .item {
          display: grid;
          grid-template-columns: max-content 1fr;
          gap: 12px;
          position: relative;
          padding: 8px 20px;
          border-radius: 3px;
          background: #d5ecf6;
          font-size: clamp(16px, 2vw, 20px);
          font-weight: var(--weight-bold);
          line-height: 1.6;
          &::before {
            counter-increment: step 1;
            content: 'STEP ' counter(step);
            color: var(--blue-color);
          }
          &::after {
            content: '';
            position: absolute;
            bottom: -22px;
            left: 30px;
            width: 0;
            height: 0;
            border-style: solid;
            border-right: 15px solid transparent;
            border-left: 15px solid transparent;
            border-top: 23px solid #d5ecf6;
            border-bottom: 0;
          }
        }
      }
    }
  }
  .end {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 44px;
    border-radius: 6px;
    border: 2px solid #004ea9;
    background: var(--base-color);
    color: var(--blue-color);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
  }
}

@media (min-width: 768px) {
  .flow {
    padding-block: 0 100px;
    .lead {
      padding-bottom: 60px;
      font-size: 20px;
    }
    .wrapper {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--gap-lg) min(4vw, 60px);
      padding-bottom: 40px;
      .inner {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 5;
        gap: var(--gap-lg);
        &::before {
          height: 12px;
        }
        .description {
          font-size: var(--text-lg);
        }
        .lead {
          font-size: var(--text-lg);
        }
        .step {
          .item {
            padding: 10px min(2.4vw, 30px);
            &::after {
              left: 48px;
            }
          }
        }
        &.agency {
          .step {
            .end {
              display: none;
            }
          }
        }
        &.purchase {
          .step {
            position: relative;
            &::after {
              content: '';
              position: relative;
              display: block;
              width: 16px;
              height: 100%;
              margin-left: 54px;
              background: #d5ecf6;
            }
            &::before {
              content: '';
              position: absolute;
              bottom: -22px;
              left: 48px;
              display: block;
              width: 0;
              height: 0;
              border-style: solid;
              border-right: 15px solid transparent;
              border-left: 15px solid transparent;
              border-top: 23px solid #d5ecf6;
              border-bottom: 0;
            }
          }
        }
      }
    }
    .end {
      height: 88px;
      font-size: var(--text-xl);
    }
  }
}

.case {
  padding-block: 60px 40px;
  padding-inline: var(--content-spacing);
  > .title {
    padding-bottom: 30px;
    color: var(--blue-color);
    font-size: clamp(21px, 5.8333vw, 42px);
    font-weight: var(--weight-bold);
    line-height: 1.6;
    text-align: center;
    strong {
      color: var(--red-color);
    }
  }
  .lead {
    padding-bottom: 40px;
    font-size: var(--text-md);
    font-weight: var(--weight-bold);
    text-align: center;
    span {
      display: inline-block;
    }
  }
  .case-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
    padding-bottom: 40px;
  }
}

@media (min-width: 600px) {
  .case {
    .case-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
  }
}

@media (min-width: 768px) {
  .case {
    padding-block: 0 100px;
    .lead {
      padding-bottom: 60px;
      font-size: 20px;
    }
  }
}

@media (min-width: 1000px) {
  .case {
    .case-list {
      display: flex;
      flex-direction: column;
      gap: 30px;
    }
  }
}

.faq {
  padding-block: 60px 40px;
  padding-inline: var(--content-spacing);
  > .title {
    padding-bottom: 30px;
    color: var(--blue-color);
    font-size: clamp(21px, 5.8333vw, 42px);
    font-weight: var(--weight-bold);
    line-height: 1.6;
    text-align: center;
    strong {
      color: var(--red-color);
    }
  }
  .inner {
    display: flex;
    flex-direction: column;
    .card {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      align-self: stretch;
      border-bottom: 1px solid rgba(0, 0, 0, 0.15);
      .title {
        display: grid;
        grid-template-columns: 38px 1fr min-content;
        align-items: center;
        gap: var(--gap-md);
        width: 100%;
        padding: 10px 0;
        font-size: var(--text-md);
        font-weight: var(--weight-bold);
        line-height: 1.2;
        cursor: pointer;
        &::before {
          content: 'Q';
          display: flex;
          width: 38px;
          height: 38px;
          justify-content: center;
          align-items: center;
          border-radius: 38px;
          background: var(--main-color);
          color: var(--text-contrast-color);
          font-family: 'Inter', sans-serif;
          font-size: var(--text-md);
          font-weight: 500;
          line-height: 1.2;
          letter-spacing: 2px;
        }
        &::after {
          content: '\f078';
          font-family: var(--fa-style-family-classic);
          font-size: var(--text-lg);
          transition: 0.3s ease;
        }
        &.active::after {
          transform: scaleY(-1);
        }
      }
      .description {
        display: grid;
        grid-template-columns: 38px 1fr;
        gap: var(--gap-md);
        align-self: stretch;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: all 0.3s ease;
        opacity: 0;
        &::before {
          content: 'A';
          display: flex;
          width: 38px;
          height: 38px;
          justify-content: center;
          align-items: center;
          border-radius: 38px;
          background: #309d71;
          color: var(--text-contrast-color);
          font-family: 'Inter', sans-serif;
          font-size: 20px;
          font-weight: 500;
          line-height: 1.2;
          letter-spacing: 2px;
        }
        .text {
          font-size: var(--text-md);
          line-height: 1.75;
        }
        &.active {
          max-height: 1000px;
          padding: 0 0 10px;
          opacity: 1;
        }
      }
    }
  }
}

@media (min-width: 768px) {
  .faq {
    padding-block: 0 100px;
    .inner {
      .card {
        .title {
          padding: 20px 0;
          font-size: 20px;
          &::before {
            font-size: 20px;
          }
          &:hover {
            opacity: 0.7;
          }
        }
        .description {
          padding: 0 16px 0 43px;
          &::before {
            font-size: 20px;
          }
          &.active {
            padding: 0 16px 24px 43px;
          }
        }
      }
    }
  }
}

.page-form {
  scroll-margin-top: 0;
  .heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    background: #309d71;
    padding-block: 15px;
    padding-inline: var(--content-spacing);
    .inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      .message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-contrast-color);
        font-size: clamp(14px, 2.4vw, 20px);
        font-weight: var(--weight-bold);
        line-height: 1.3;
      }
      .title {
        color: var(--text-contrast-color);
        font-size: clamp(21px, 3.7vw, 42px);
        line-height: 1.6;
      }
    }
    .badges {
      display: flex;
      justify-content: center;
      gap: 8px;
      img {
        min-width: 90px;
        min-height: 90px;
        max-width: 128px;
        max-height: 128px;
        width: 12vw;
        height: 12vw;
      }
    }
  }
  .note {
    color: var(--text-color);
    font-size: var(--text-md);
    font-weight: var(--weight-regular);
    line-height: var(--line-height-xl);
  }

  .page-contents {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    padding-block: 20px 60px;
    padding-inline: var(--content-spacing);
  }

  .form-text {
    background: var(--border-color);
    text-align: center;
    font-size: var(--text-lg);
    padding: 1em;
  }

  .form {
    display: flex;
    flex-direction: column;

    .title {
      padding-block: var(--p-lg) var(--p-md);
      color: var(--text-color);
      font-size: var(--text-md);
      font-weight: var(--weight-bold);
      position: relative;

      &::after {
        display: block;
        position: absolute;
        top: var(--p-md);
        bottom: 0;
        right: 0;
        margin: auto;
        padding-bottom: 1px;
        content: '任意';
        text-align: center;
        color: var(--text-contrast-color);
        width: 40px;
        height: 20px;
        line-height: 20px;
        letter-spacing: 2px;
        text-indent: 1px;
        font-size: var(--text-xs);
        border-radius: 3px;
        background: #898989;
      }

      .icon {
        display: inline-block;
        color: var(--text-color);
        font-weight: var(--weight-regular);
        font-size: var(--text-xs);
        border: 1px solid var(--border-color);
        border-radius: calc(
          (var(--weight-regular) * var(--line-height-sm)) * 1px
        );
        padding: 2px 4px;
        line-height: var(--line-height-sm);
      }
    }

    .required {
      &::after {
        content: '必須';
        background: var(--required-color);
      }
    }

    .description {
      display: flex;
      flex-direction: column;
      gap: var(--gap-md);
      padding-bottom: var(--p-xl);
      border-bottom: 1px solid var(--border-color);

      .block {
        display: flex;
        flex-direction: column;
        gap: var(--gap-sm);
      }
    }

    .description-station {
      .block {
        input[type='text'] {
          max-width: none;
          width: calc(100% - 3em);
        }
      }
    }

    .description-layout {
      .form-layout-1 + label {
        grid-column-start: 1;
      }
    }

    .description-area {
      .block {
        flex-direction: row;
        align-items: center;
        .block-inner {
          align-items: center;
          display: flex;
          gap: var(--gap-sm);
          align-items: center;
          flex-wrap: wrap;
          .block-inner {
            flex-wrap: nowrap;
          }
        }
        .area-change {
          margin-left: auto;
          white-space: nowrap;
          font-size: var(--text-sm);
          cursor: pointer;
          &::before {
            font: var(--fa-font-solid);
            content: '\f0ec';
            margin-right: var(--gap-sm);
          }
        }
        select {
          min-width: 100px;
        }
      }
    }
    .description-budget {
      .block {
        flex-direction: row;
        align-items: center;
        input {
          width: calc(100% - 4em);
        }
      }
    }
    .description-movein {
      .movein-text {
        padding: var(--p-md) 0;
        font-size: var(--text-sm);
      }
      .block-inner {
        display: flex;
        gap: var(--gap-sm);
        align-items: center;
        white-space: nowrap;
        select {
          width: calc((100% - 10em) / 2);
          min-width: 100px;
          max-width: 200px;
        }
      }
    }

    .radio-wrapper,
    .checkbox-wrapper {
      display: flex;
      flex-direction: column;
      gap: var(--gap-md);
    }

    .notes,
    .layout-notes {
      padding-top: var(--p-md);
      display: flex;
      flex-direction: column;
      gap: var(--gap-md);
      font-size: var(--text-sm);
    }
    .notes[aria-hidden='true'],
    .layout-notes[aria-hidden='true'],
    .block-movein[aria-hidden='true'],
    .parking-space[aria-hidden='true'],
    .block.area-sqm[aria-hidden='true'],
    .block.area-tsubo[aria-hidden='true'] {
      display: none;
    }

    .note-text {
      font-size: var(--text-sm);

      span {
        display: block;
      }
    }

    .notes-wrapper {
      position: relative;
      textarea {
        padding-bottom: 24px;
      }
      .notes-counter,
      .other-counter {
        position: absolute;
        bottom: 10px;
        right: 10px;
        color: var(--text-gray-color);
        font-size: var(--text-sm);
      }
    }

    .contect-time {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: var(--gap-sm);
    }

    .contect-time[aria-hidden='true'] {
      display: none;
    }

    .contect-time label {
      min-width: 6em;
    }
  }

  .privacy {
    padding-block: var(--p-xl);
    font-size: var(--text-md);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .link {
      color: var(--link-color);

      &:hover {
        color: var(--main-color);
        text-decoration: none;
      }
    }
  }

  .submit {
    width: 100%;
    height: 70px;
    line-height: var(--line-height-lg);
    border-radius: 3px;
    padding: 0;
    border: none;
    color: var(--text-contrast-color);
    font-size: 20px;
    display: block;
    cursor: pointer;
    position: relative;
    background-color: var(--main-color);
    font-family: var(--family-noto);
    transition: 0.3s;

    &::after {
      position: absolute;
      content: '';
      top: 30px;
      right: 32px;
      width: 8px;
      height: 8px;
      border-top: 2px solid #fff;
      border-right: 2px solid #fff;
      transform: rotate(45deg);
      z-index: 5;
    }

    &:hover {
      background-color: var(--contents-bg-color);
      border: 1px solid var(--main-color);
      color: var(--main-color);

      &::after {
        border-color: var(--main-color);
      }
    }
  }
}

@media (min-width: 768px) {
  .page-form {
    .heading {
      flex-direction: row;
      gap: 18px;
      padding-block: 30px;
      .inner {
        .message {
          flex-wrap: wrap;
          flex-direction: row;
        }
      }
    }

    .page-contents {
      gap: var(--p-xxxl);
      padding-block: 52px 100px;

      .note {
        font-size: var(--text-lg);
      }

      .note > span {
        display: block;
        text-align: center;
      }
    }

    .form {
      .form-block {
        display: grid;
        grid-template-columns: 240px 1fr;
      }

      .title {
        font-weight: var(--weight-regular);
        border-top: 1px solid var(--border-color);
        padding-top: var(--p-xl);
        padding-bottom: var(--p-lg);
        padding-right: var(--p-lg);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap-md);

        /* &:last-of-type {
          border-bottom: 1px solid var(--border-color);
        } */

        &::after {
          margin: initial;
          top: 34px;
          right: 30px;
        }
      }

      .description {
        border-top: 1px solid var(--border-color);
        border-bottom: none;
        padding-block: var(--p-lg);

        /* &:last-of-type {
          border-bottom: 1px solid var(--border-color);
        } */

        .block {
          display: grid;
          align-items: center;
          grid-template-columns: 140px 1fr;
        }

        .checkbox-wrapper {
          display: grid;
          grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        }

        .radio-wrapper {
          display: grid;
          grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        }
      }
      .form-block:last-of-type .title,
      .form-block:last-of-type .description {
        border-bottom: 1px solid var(--border-color);
      }

      .description-name {
        .block {
          grid-template-columns: 50px 1fr;
        }
      }
      .description-station {
        .block {
          grid-template-columns: 6em 1fr;
          input[type='text'] {
            max-width: none;
            width: calc(100% - 3em);
          }
        }
      }
      .description-area {
        .block {
          display: flex;
          select {
            min-width: 150px;
          }
        }
      }
      .description-budget {
        flex-direction: row;
        display: flex;
        gap: var(--gap-sm);
        .block {
          display: flex;
          white-space: nowrap;
          input {
            width: 100%;
          }
        }
      }
      .description-movein {
        .radio-wrapper {
          grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        }
        .block {
          grid-template-columns: 7em 1fr;
        }
      }

      .contect-time {
        flex-direction: row;
        align-items: center;
        gap: var(--gap-md);
      }
    }

    .privacy {
      align-items: center;
    }

    .submit {
      max-width: 600px;
      margin: 0 auto;
    }
  }
}

/* safari でだめなバージョンあったので、入れ子やめています */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
select {
  padding-inline: var(--p-md);
  width: 100%;
  height: 46px;
  line-height: 46px;
  color: var(--text-color);
  font-family: var(--family-noto);
  font-size: var(--text-md);
  border-radius: 3px;
  border: solid 1px var(--border-color);
  background-color: var(--contents-bg-color);
}
input[type='number'] {
  max-width: 200px;
}

textarea {
  padding: var(--p-md);
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  font-family: var(--family-noto);
  font-size: var(--text-md);
  background: #fafafa;
  line-height: 1.5;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  word-break: break-word;
}

input[type='radio'],
input[type='checkbox'] {
  opacity: 0;
  position: absolute;
  height: 1px;
  width: 1px;
}

input[type='radio'] + label {
  display: flex;
  align-items: center;
  border: solid 1px var(--border-color);
  color: var(--text-color);
  padding: 10px 8px 10px 40px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;

  &:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: solid 1px var(--border-color);
    border-radius: 50%;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
}

input[type='radio']:checked + label {
  &:after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--main-color);
    border-radius: 50%;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
}

input[type='checkbox'] + label {
  display: flex;
  align-items: center;
  border: solid 1px var(--border-color);
  color: var(--text-color);
  padding: 10px 8px 10px 40px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;

  &:before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: solid 1px var(--border-color);
    border-radius: 3px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
}

input[type='checkbox']:checked + label {
  &::before {
    background-color: var(--main-color);
  }

  &::after {
    content: '';
    display: block;
    width: 10px;
    height: 5px;
    border: solid 1px var(--text-contrast-color);
    border-width: 0 0 2px 2px;
    position: absolute;
    left: 15px;
    top: 48%;
    transform: translateY(-50%) rotate(-45deg);
  }
}

input:disabled,
select:disabled {
  background-color: #fafafa;
  color: #999;
  -webkit-text-fill-color: #999;
  opacity: 1;
}

textarea {
  field-sizing: content;
}

.description label,
.description input,
.description select {
  font-size: var(--text-md);
}

@media (min-width: 768px) {
  .description label,
  .description input,
  .description select {
    font-size: var(--text-md);
  }
}

input[type='checkbox']:focus + label,
input[type='radio']:focus + label {
  outline: var(--main-color) auto 1px;
}

@media (min-width: 768px) {
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  select {
    max-width: 300px;
  }
  input[type='number'] {
    max-width: 200px;
  }
  input[type='text'].size-wide {
    max-width: none;
  }
}

input:focus,
select:focus,
textarea:focus {
  outline-color: var(--main-color);
}
/* バリデーションエラーで返されたとき */
.error {
  display: flex;
  flex-direction: column;
  gap: 5px;
  li {
    color: var(--required-color);
    font-weight: var(--weight-bold);
  }
}

/* 修繕・管理費等のスタイル */
.fees-section .block {
}

.fees-section .block label {
  display: inline-block;
  min-width: 120px;
}

.fees-section .flex-input {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

/* その他物件用の現況テキストエリア */
.other-status-textarea {
  display: none;
  margin-top: 10px;
}

.other-status-textarea p {
  margin-bottom: 10px;
}

.other-status-textarea textarea {
  width: 100%;
  min-height: 100px;
}

.form-block-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}
.form-block-radio {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: 100px 1fr;

    > p {
      padding-top: 10px;
    }
  }
}
.form-block-radio-group-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  @media (min-width: 768px) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}
.block-unit {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
}
@media (min-width: 768px) {
  .address-copy-checkbox + label {
    min-width: 200px;
  }
}
.timing-select {
  max-width: 100px;
}

.other-kind-textarea {
  display: none;
}

.floor-plan-input {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.age-block {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);

  @media (min-width: 768px) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--gap-lg);

    .age-check-label {
      width: 200px;
    }
  }
}

input.land-status-detail-input {
  max-width: initial;
}

.units-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);

  .units-item {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);

    .units-item-label {
      width: 80px;
    }
  }
}
