@charset "UTF-8";

.work-fv {
  padding-top: 16rem;

  @media screen and (max-width: 767px) {
    padding-top: 0;
  }
}

.work-fv-lead {
  margin-top: 5.5rem;
  font-family: "Noto Serif JP", serif;
  font-style: normal;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 200%;
  letter-spacing: 0.1em;
  font-feature-settings: "halt" on;
  color: #131313;

  @media screen and (max-width: 767px) {
    font-size: 1.4rem;
    margin-top: 2rem;
  }
}

.works-year {
  margin-top: 6.5rem;
}

.work-fv-visual {
  width: 100%;
  margin-top: 6.4rem;
  line-height: 0;

  & img {
    display: block;
    width: 100%;
    height: auto;
  }

  @media screen and (max-width: 767px) {
    margin-top: 3.2rem;
    margin-bottom: 3.2rem;
  }
}

.work-fv-visual--sp {
  display: none;
}

.work-fv-visual--pc {
  display: block;
}

@media screen and (max-width: 767px) {
  .work-fv-visual--pc {
    display: none;
  }

  .work-fv-visual--sp {
    display: block;
    margin-top: 0;
    margin-bottom: 3.2rem;
  }
}

.works-years {
  padding: 12rem 0;

  &:not(.is-ready) .works-year:not(.is-open) .works-year-body {
    display: none;
  }

  @media screen and (max-width: 767px) {
    padding: 3rem 0;
  }
}

.works-year + .works-year {
  margin-top: 4.8rem;

  @media screen and (max-width: 767px) {
    margin-top: 3.2rem;
  }
}

.works-year-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 0 1.6rem;
  border: none;
  background: transparent;
  font-family: "Noto Serif JP", serif;
  font-style: normal;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 100%;
  letter-spacing: 0.1em;
  text-align: left;
  color: #131313;
  cursor: pointer;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.4rem;
    height: 2.4rem;
    background: #d6001c;
    transform: translateY(-50%);
  }

  &::after {
    content: "";
    flex: none;
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 2rem;
    border-right: 0.15rem solid #131313;
    border-bottom: 0.15rem solid #131313;
    transform: rotate(45deg);
    transition: transform 0.3s;
  }

  @media screen and (max-width: 767px) {
    font-size: 1.8rem;
    padding-left: 1.2rem;

    &::before {
      height: 1.8rem;
      width: 0.3rem;
    }
  }
}

.works-year.is-open .works-year-btn::after {
  transform: rotate(-135deg);
}

.works-year-body {
  margin-top: 2.4rem;

  @media screen and (max-width: 767px) {
    margin-top: 1.6rem;
  }
}

@media screen and (max-width: 767px) {
  .works-year-body.table-scroll {
    overflow-x: visible;
    padding-bottom: 0;

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

.works-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;

  & th,
  & td {
    padding: 1.2rem 1.6rem;
    font-family: "Noto Serif JP", serif;
    font-style: normal;
    font-size: 1.8rem;
    line-height: 2.6rem;
    letter-spacing: 0.1em;
    text-align: left;
    vertical-align: middle;
  }

  & th {
    font-weight: 600;
    color: #fff;
    background: #d6001c;
    border: 0.1rem solid #9ca3af;
    border-top-color: #d6001c;
  }

  & tbody tr {
    border-color: #9ca3af;
  }

  & td {
    font-weight: 500;
    color: #000;
    border: 0.1rem solid #9ca3af;
    background: #fff;
  }

  & .col-use {
    width: 72rem;
  }

  & th.col-use {
    border-left-color: #d6001c;
    border-right-color: #fff;
  }

  & .col-place,
  & .col-floor {
    width: 36.1rem;
  }

  & th.col-place {
    border-right-color: #fff;
  }

  & th.col-floor {
    border-right-color: #d6001c;
  }

  @media screen and (max-width: 767px) {
    min-width: 0;
    width: 100%;
    table-layout: fixed;

    & .col-use {
      width: 52%;
    }

    & .col-place {
      width: 28%;
    }

    & .col-floor {
      width: 20%;
    }

    & th,
    & td {
      font-size: 1.3rem;
      line-height: 1.5;
      letter-spacing: 0.02em;
      padding: 0.8rem 1rem 0.8rem 0.6rem;
      white-space: normal;
      word-break: keep-all;
    }

    & th:nth-child(3),
    & td:nth-child(3) {
      white-space: nowrap;
    }
  }
}
