.page-contact{
  article{
    padding-block: 10rem 20rem;
    @media screen and (max-width: 768px) {
      padding-block: 4rem 6rem;
    }
  }
  aside{
    position: relative;
    @media screen and (max-width: 768px) {
      margin-bottom: 4rem;
    }
    nav{
      position: sticky;
      top: calc(var(--header-height) + 10rem);
      height: fit-content;
      @media screen and (max-width: 768px) {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem 2.4rem;
      }
      a{
        display: block;
        width: fit-content;
        color: var(--line);
        transition: color 0.1s;
        @media screen and (max-width: 768px) {
          font-size: 1.4rem;
        }
        @media (any-hover: hover) {
          &:hover{
            color: var(--black);
          }
        }
        &.active{
          color: var(--black);
          pointer-events: none;
        }
        &+ a{
          margin-top: 2rem;
          @media screen and (max-width: 768px) {
            margin-top: 0;
          }
        }
      }
    }
  }
  .contents{
    padding-left: 8rem;
    border-left: 1px solid var(--line);
    @media screen and (max-width: 768px) {
      padding-left: 0;
      border-left: none;
    }
  }
  section + section{
    margin-top: 10rem;
    @media screen and (max-width: 768px) {
      margin-top: 6rem;
    }
  }
  .contact-grid{
    display: grid;
    grid-template-columns: 35rem 1fr;
    @media screen and (max-width: 768px) {
      grid-template-columns: 100%;
    }
  }
  .square-hd{
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .body{
    font-size: 1.6rem;
    line-height: 1.8;
    @media screen and (max-width: 768px) {
      font-size: 1.4rem;
    }
    .red{
      color: var(--accent-red);
    }
  }
  .table-scroll{
    margin-top: 3rem;
    @media screen and (max-width: 768px) {
      overflow-x: auto;
    }
  }
  table{
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    @media screen and (max-width: 768px) {
      width: 80rem;
    }
    colgroup{
      col:nth-child(1){width: 34%;}
      col:nth-child(2){width: 33%;}
      col:nth-child(3){width: 33%;}
    }
    th,
    td{
      height: 8rem;
      vertical-align: middle;
      line-height: 1.5;
      font-weight: 400;
      border: 1px solid var(--line);
      padding-inline: 3rem;
      @media screen and (max-width: 768px) {
        height: 6rem;
        font-size: 1.3rem;
      }
    }
    th{
      background-color: #005BAC1A;
      padding-inline: 4rem;
      @media screen and (max-width: 768px) {
        padding-inline: 2.5rem;
      }
      &.div{
        background-color: var(--line-pale);
        text-align: center;
        font-weight: 500;
        height: 6rem;
        @media screen and (max-width: 768px) {
          height: 4rem;
        }
      }
      p{
        line-height: 2;
        font-weight: 500;
        @media screen and (max-width: 768px) {
          font-size: 1.3rem;
        }
      }
    }
  }
  .send-error{
    margin-top: 3rem;
    color: var(--accent-red);
  }
  .contact-form{
    margin-top: 4rem;
    @media screen and (max-width: 768px) {
      margin-top: 3rem;
    }
  }
  .form-row{
    display: grid;
    grid-template-columns: 24rem 1fr;
    align-items: center;
    padding-block: 3rem;
    border-top: 1px solid var(--line);
    @media screen and (max-width: 768px) {
      grid-template-columns: 100%;
      gap: 1rem;
      padding-block: 2rem;
    }
    &[role="group"],
    &:has(textarea){
      align-items: start;
      .label{
        padding-top: 1.6rem;
        @media screen and (max-width: 768px) {
          padding-top: 0;
        }
      }
    }
  }
  .label{
    font-size: 1.6rem;
    font-weight: 500;
    @media screen and (max-width: 768px) {
      font-size: 1.4rem;
    }
  }
  .req{
    color: var(--accent-red);
  }
  .address{
    display: grid;
    gap: 2.4rem;
  }
  .sub-row{
    display: grid;
    grid-template-columns: 14rem 1fr;
    align-items: center;
    @media screen and (max-width: 768px) {
      grid-template-columns: 8rem 1fr;
    }
  }
  .sub-label{
    font-size: 1.5rem;
    @media screen and (max-width: 768px) {
      font-size: 1.3rem;
    }
  }
  .field{
    position: relative;
    &.short{
      width: 41rem;
      @media screen and (max-width: 768px) {
        width: 100%;
      }
    }
    input:not([type="checkbox"]),
    select,
    textarea{
      width: 100%;
      height: 5.4rem;
      padding-inline: 1.6rem;
      border: 1px solid var(--line);
      border-radius: 0;
      background-color: var(--white);
      font-size: 1.6rem;
      @media screen and (max-width: 768px) {
        height: 4.8rem;
      }
      &:focus-visible{
        outline: 2px solid var(--accent);
        outline-offset: -1px;
        box-shadow: none;
      }
      &[aria-invalid="true"]{
        border-color: var(--accent-red);
      }
    }
    select{
      appearance: none;
      padding-right: 4rem;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23252525' stroke-width='1.5'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 2rem center;
      background-size: 1.2rem;
      cursor: pointer;
    }
    textarea{
      height: 35rem;
      padding-block: 1.6rem;
      line-height: 1.8;
      resize: vertical;
      @media screen and (max-width: 768px) {
        height: 24rem;
      }
      &::placeholder{
        color: #b5b5b5;
      }
    }
    &.zip{
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 2rem;
      @media screen and (max-width: 768px) {
        gap: 1rem;
      }
      input{
        width: 12rem;
        @media screen and (max-width: 768px) {
          width: 8rem;
        }
      }
    }
    .error{
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      margin-top: 0.3rem;
      color: var(--accent-red);
      font-size: 1.2rem;
      line-height: 1.4;
      &.is-warning{
        color: #767676;
      }
    }
  }
  .form-submit{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 5rem;
  }
  .agree{
    text-align: center;
    .error{
      text-align: center;
    }
    label{
      display: inline-flex;
      align-items: center;
      gap: 1rem;
      font-size: 1.5rem;
      cursor: pointer;
    }
    input{
      width: 1.8rem;
      height: 1.8rem;
      accent-color: var(--accent);
    }
    a{
      text-decoration: underline;
      @media (any-hover: hover) {
        &:hover{
          text-decoration: none;
        }
      }
    }
  }
  .submit-btn{
    display: grid;
    place-content: center;
    width: 22rem;
    height: 5.6rem;
    background-color: var(--accent);
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    transition: opacity 0.1s;
    @media (any-hover: hover) {
      &:hover{
        opacity: 0.8;
      }
    }
  }
}
