body {
  min-width: 1330px;
  @media screen and (max-width:640px) {
    min-width: unset;
  }
}

#wrapper {
  width: 100%;
  background-image: url(../img/header_bg.png);
  background-size: 2300px;
  background-position: top;
  background-repeat: no-repeat;
  @media screen and (max-width:640px) {
    background-image: url("../img/header_bg_sp.png");
    background-size: 100%;
    background-position: 0 60px;
  }
}

.fabarea {
  @media screen and (max-width:640px) {
    position: fixed;
    z-index: 9999;
    top: 2px;
    right: 0;
  }
}

#pageContents {
  margin: 2rem auto;
}

.sideCol {
  height: auto;
}

.uma {
  width: 94%;
  margin: -11px auto -10px;
}

.menu li {
  margin-bottom: 0.8rem;
}

.tab-area {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  @media screen and (max-width:640px) {
    height: auto;
    margin-bottom: 0.5rem;
  }
}

.tab img {
  @media screen and (max-width:640px) {
    position: unset;
  }
}

.tab.active .hdnImg {
  @media screen and (max-width:640px) {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.inquiry-tab-box {
  margin-bottom: 20px;
}

.inquiry-tab {
  color: #397597;
  font-weight: bold;
  text-align: center;
  width: 100%;
  padding: 5px 10px;
  background-color: #fff;
  border: 2px solid #397597;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s;

  &:hover {
    color: #fff;
    background-color: #397597;
  }

  &+ .inquiry-tab {
    margin-left: 10px;
    @media screen and (max-width:640px) {
      margin-left: 0;
      margin-top: 5px;
    }
  }
}

.inquiry-tab.active {
    color: #fff;
    background-color: #397597;
}

.inquiry-panel {
    display: none;
}

.inquiry-panel.active {
    display: block;
}

main#pages .inquiry {

h2 {
  width: 95%;
  margin-left: 0;
  margin-bottom: 2rem;
  border-left: 4px solid #397597;
  padding-left: 4px;
  text-align: left;
  font-size: 1.2rem;
  font-weight: bold;
}

  table{
    width: 100%;
    border: 1px solid #d3d3d3;
  }

  th,td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #d3d3d3;
  }

  th {
    width: 25%;
    background-color: #f4f4f4;
    border-right: 1px solid #d3d3d3;
  }

  td {
    width: 75%;
    background-color: #fff;
  }

  .inquiry-form-td-flex {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  tr:last-child td {
    width: 100%;
    text-align: center;
  }

  .inquiry-form-input-50 {
    width: 49%;

    label {
      padding-right: 10px;
    }

    .form-control {
      display: inline;
      width: 90%;
    }
  }

  .inquiry-form-input-flex {
    display: flex;
    align-items: center;

    &+ .inquiry-form-input-flex {
      margin-top: 20px;
    }

    label {
      width: 80px;
      padding-right: 10px;
    }
    .form-control {
      flex: 1;

      &.w-25 {
        flex: unset;
      }
    }
  }

  .inquiry-form-checkArea-contents {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.5rem;
  }

  .checkArea {
    width: 80%;
    margin: 0 auto;
  }

  .checkArea-contents {
    display: flex;
    text-align: left;
    align-items: baseline;
    margin-bottom: 0.5rem;
  }

  .input-select {
    margin-right: 10px;
  }

  .checkArea-contents-btn {
    max-width: 360px;
    margin: 2rem auto;
  }

  button.btn-inq {
    width: 100%;
    background: darkorange;
    color: white;
    font-weight: bold;
    position: relative;
    padding-right: 1.5rem;

    &:hover {
      opacity: 0.7;
    }
  }
}

footer {
  height: auto;
  padding-bottom: 1rem;
}

@media screen and (max-width:640px) {

  #contentWrapper {
    width: 100%;
  }

  #pageContents {
    width: 100%;
  }

  main#pages .inquiry {
    h2 {
      margin-bottom: 1rem;
    }

    .inquiry-tab-pc {
      display: none;
    }

    th,td {
      display: block;
      width: 100%;
    }
    th {
      padding: 0 0.5rem;
    }
    td {
      padding: 0.5rem;
    }

    .checkArea {
      width: 90%;

      label {
        font-size: 0.8rem;
      }
    }

    button.btn-inq {
      font-size: 0.8rem;
      width: 90%;
      padding: 0.5rem 0;
    }

  }

  .inquiry-tab {
    display: block;
    text-align: center;
  }
  .fLogo {
    margin-top: 10px;
    img {
      width: 120px;
    }
  }

  footer {
    .copyright {
      position: unset;
      font-size: 12px;
      margin: 0.5rem auto 0;
    }
  }

}
