/* archive 基本共通&縦 */
/* ============================================ */

body {
  background: linear-gradient(
    180deg,
    rgba(250, 251, 255, 1) 0%,
    rgba(222, 226, 235, 1) 100%
  );
  min-height:100vh;
}

.archive__header {
  background-color: #fff;
  height: 200px;
  text-align: center;
  border-radius: 0 0 0 50px;
  position: relative;
}

.archive__header::after {
  content: "";
  width: 50px;
  height: 50px;
  background: url(../img/common/img-curve.svg) no-repeat 50% 50% / contain;
  position: absolute;
  right: 0;
  bottom: -50px;
}

.archive__wrap {
  max-width: 881px;
  width: 88%;
  margin: 0 auto;
}

.archive__header {
  margin-bottom: 50px;
  padding: 30px 0;
  height: 200px;
}

.archive__header ul {
  display: flex;
  justify-content: center;
  margin-bottom: 23px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: fit-content;
}

.archive__header ul li {
  position: relative;
  background-color: #e1c0b4;
  margin: 0 5px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 50px;
  /* box-shadow: 0px 0px 20px 0px rgba(95, 94, 94, 0.15); */
}

.archive__header ul li.is-active a {
  background-color: #e1c0b4;
  color: #fff;
  position: relative;
  z-index: 9;
}

.archive__header ul li.is-active a span {
  color: #fff;
  position: relative;
  z-index: 11;
}

.archive__header ul li:nth-child(2) {
  background-color: #b90081;
}

.archive__header ul li.is-active:nth-child(2) a {
  background-color: #b90081;
}

.archive__header ul li:nth-child(3)::after {
  content: "";
  width: 50%;
  height: 40px;
  position: absolute;
  background-color: #b90081;
  right: 0;
  border-radius: 0 50px 50px 0;
}

.archive__header ul li.is-active:nth-child(3) a::after {
  content: "";
  width: 50%;
  height: 40px;
  position: absolute;
  background-color: #b90081;
  right: 0;
  border-radius: 0 50px 50px 0;
}

.archive__header ul li:nth-child(4) {
  background-color: #9D85CB;
}

.archive__header ul li.is-active:nth-child(4) a {
  background-color: #9D85CB;
}

.archive__header ul li:nth-child(5) {
  background-color: #C3B969;
}

.archive__header ul li.is-active:nth-child(5) a {
  background-color: #C3B969;
}

.archive__header ul li a {
  border-radius: 50px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #5f5e5e;
  letter-spacing: 0.05em;
  padding: 0 18px;
  position: relative;
  z-index: 10;
  background-color: #fff;
}

.archive__header h1 {
  text-align: center;
  font-size: 40px;
  letter-spacing: 0.05em;
  color: #1a1311;
  margin-bottom: 3px;
  font-weight: 400;

  &.achromatic {
    @media screen and (max-width: 450px) {
      font-size: calc(40 / 425 * 100vw);
    }
  }
}

.archive__header span {
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #5f5e5e;
}

.archive__line {
  filter: drop-shadow(0px 0px 5px rgba(95, 94, 94, 0.15));
  overflow-x: auto;
}

.archive__cat {
  font-size: 25px;
  letter-spacing: 0.05em;
  color: #1a1311;
  margin-bottom: 30px;
  font-weight: 400;
}

.archive__list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.archive__list a {
  width: 22.7%;
  background-color: #fff;
  margin-bottom: 27px;
  border-radius: 25px;
  overflow: hidden;
  padding-bottom: 21px;
  box-shadow: 0px 0px 20px 0px rgba(95, 94, 94, 0.15);
}

.archive__list a figure {
  overflow: hidden;
  margin-bottom: 12px;
}

.archive__list a figure img {
  width: 100%;
}

.archive__list a dl {
  margin: 0 10px;
  padding: 0 10px;
}

.archive__list a dl:nth-child(3) {
  border-top: 1px solid #dedede;
  margin-top: 8px;
  padding-top: 6px;
}

.archive__list a dl dt {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #1a1311;
  font-weight: 500;
  margin-bottom: 2px;
}

.archive__list a dl dd {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #5f5e5e;
}

.archive__list a:not(:nth-child(4n)) {
  margin-right: 3%;
}

/* 横 */
/* ============================================ */
@media (orientation: landscape) {
  .archive__wrap {
    width: 85%;
    margin: 0 auto;
  }

  .archive__list a {
    width: 22.9%;
  }
  .archive__list a dl dt {
    font-size: 16px;
  }

  .archive__list a dl dd {
    font-size: 12px;
  }

  .archive__list a:not(:nth-child(4n)) {
    margin-right: 2.7%;
  }
}

/* 縦 かつ タブレット */
/* ============================================ */
@media screen and (max-width: 768px) and (orientation: portrait) {
  .archive__wrap {
    width: 90%;
    margin: 0 auto;
  }

  .archive__list a {
    width: 30%;
    margin-right:5%;
  }

  .archive__list a dl {
    margin: 0 15px;
    padding: 0;
  }

  .archive__list a dl:nth-child(3) {
    margin-top: 12px;
    padding-top: 10px;
  }

  .archive__list a dl dt {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .archive__list a dl dd {
    font-size: 12px;
  }

  .archive__list a:not(:nth-child(4n)) {
    margin-right: 5%;
  }

  .archive__list a:nth-child(3n) {
    margin-right: 0%;
  }
}

@media screen and (max-width: 750px) {
  .archive__header {
    margin-bottom: 40px;
    padding: 84px 0 39px;
    height: 260px;
  }
}


/* 縦 かつ スマホ */
/* ============================================ */
@media screen and (max-width: 599px) and (orientation: portrait) {

  .archive__header {
    margin-bottom: 40px;
    padding: 84px 0 39px;
    height: 260px;
  }

  .archive__header ul {
    margin-bottom: 20px;
  }

  .archive__cat {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .archive__list {
    margin-bottom: 40px;
    justify-content: space-between;
  }

  .archive__list a {
    width: 47%;
    margin-bottom: 20px;
    border-radius: 20px;
    padding-bottom: 14px;
    margin-right:0;
  }

  .archive__list a dl {
    margin: 0 15px;
    padding: 0;
  }

  .archive__list a dl:nth-child(3) {
    margin-top: 12px;
    padding-top: 10px;
  }

  .archive__list a dl dt {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .archive__list a dl dd {
    font-size: 12px;
  }

  .archive__list a:not(:nth-child(4n)) {
    margin-right: 0%;
  }
  .archive__list a:not(:nth-child(4n)) {
    margin-right: 0%;
  }

  .archive__list a:nth-child(3n) {
    margin-right: 0%;
  }
}

/* 横 かつ スマホ */
/* ============================================ */
@media screen and (max-width: 844px) and (orientation: landscape) {
  .archive__list a{
    border-radius: 20px;
  }
  .archive__list a dl{
    padding: 0;
  }
  .archive__list a dl dt{
    font-size: 15px;
  }
  .archive__list a dl dd{
    font-size: 11px;
  }
}
