@charset "UTF-8";
:root {
  --blue: #376177;
}

.works-main {
  --main-width: calc(100vw - 240px);
  --main-pad: calc(6.6667vw - 16px);
  width: var(--main-width);
  min-height: 100vh;
  background: var(--blue);
  overflow: hidden;
}

.works-list {
  padding: 188px var(--main-pad) 146px;
}

.works-list__header {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  gap: 40px;
  margin-bottom: 54px;
}

.works-detail .lower-heading {
  margin-bottom: 48px;
}

/*
.works-list__header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(72px, 7.78vw, 112px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .1em;
}

.works-list__header p {
  margin: 10px 0 0 2px;
  font-family: var(--mincho);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: .12em;
}
*/
.works-list__grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 41px 40px;
}

.works-condition {
  width: min(698px, 100%);
  margin: -30px 0 36px auto;
}

.works-condition p {
  margin: 0 0 23px;
  font-family: var(--mincho);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-align: right;
}

.works-condition ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  gap: 14px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works-condition a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 29px;
  padding: 5px 15px 6px;
  border: 1px solid var(--white);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  -webkit-transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.works-condition a:hover,
.works-condition a.is-active {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.works-card a {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
}

.works-card[hidden] {
  display: none;
}

.works-card img {
  width: 100%;
  aspect-ratio: 480/690;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

.works-card a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.52)));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.52));
  pointer-events: none;
}

.works-card {
  position: relative;
}

.works-card::after {
  content: "→";
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 1;
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
}

.works-card__new {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: -ms-grid;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: #eb1818;
  color: var(--white);
  font-family: var(--mincho);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.works-card__text {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 31px;
  z-index: 2;
  display: block;
  font-family: var(--mincho);
}

.works-card__title,
.works-card__meta {
  display: block;
}

.works-card__title {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.1em;
}

.works-card__meta {
  margin-top: 10px;
  font-family: var(--latin);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.076em;
}

@media (max-width: 780px) {
  .works-main {
    --main-width: 100vw;
    --main-pad: 20px;
    width: 100%;
  }
  .works-list {
    padding: 70px 20px 92px;
  }
  .works-list__header {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 44px;
  }
  .works-list__header h1 {
    font-size: 72px;
  }
  .works-list__header p {
    margin-top: 0;
    font-size: 13px;
  }
  .works-condition {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
    padding: 40px 0 0;
  }
  .works-condition p {
    font-size: 13px;
  }
  .works-condition ul {
    gap: 10px;
  }
  .works-condition a {
    min-width: 0;
    min-height: 31px;
    padding: 7px 13px;
    font-size: 11px;
  }
  .works-list__grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .works-card::after {
    content: "→";
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 1;
    color: var(--white);
    font-family: var(--sans);
    font-size: 13px;
  }
  .works-card__new {
    width: 52px;
    height: 52px;
    font-size: 13px;
  }
  .works-card__text {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
  .works-card__title {
    font-size: 14px;
  }
  .works-card__meta {
    font-size: 10px;
  }
}