@charset "UTF-8";

/* ========================================
Library Header
======================================== */
.library_header {
  min-width: var(--content-width);
  background-color: var(--color-dialog-background);
}

.library_header_inner {
  position: relative;
  width: var(--content-width);
  min-height: 24rem;
  margin-inline: auto;
  padding-block: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.library_header_content {
  position: relative;
  z-index: 1;
  width: 60rem;
  text-align: center;
}

.library_header_lead {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-green);
}

.library_header_heading {
  margin-block: 0.6rem 0;
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.library_header_heading::after {
  content: "";
  display: block;
  width: 42rem;
  max-width: 80%;
  margin-block: 1.2rem 0;
  margin-inline: auto;
  border-bottom: 2px dotted var(--color-green);
}

.library_header_text {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-block: 2rem 0;
}

.library_header_image {
  position: absolute;
  bottom: 2rem;
  width: 12rem;
}

.library_header_image img {
  width: 100%;
  height: auto;
}

.library_header_image--left {
  left: 0;
}

.library_header_image--right {
  right: 0;
}

/*----- Mobile -----*/
@media screen and (max-width: 767px) {

  .library_header {
    min-width: 0;
  }

  .library_header_inner {
    width: auto;
    min-height: 0;
    margin-inline: var(--content-padding-sp);
    padding-block: 2.4rem;
  }

  .library_header_content {
    width: 100%;
    text-align: left;
  }

  .library_header_lead {
    font-size: 1.4rem;
  }

  .library_header_heading {
    font-size: 2.4rem;
    letter-spacing: 0.04em;
  }

  .library_header_heading::after {
    width: 100%;
    max-width: 100%;
    margin-block: 1rem 0;
  }

  .library_header_text {
    font-size: 1.3rem;
    line-height: 1.7;
  }

  .library_header_text br {
    display: none;
  }

  .library_header_image {
    display: none;
  }

  .library_header_image.library_header_image--right {
    display: block;
    width: 6rem;
    top: 2.4rem;
  }

}


/* ========================================
Article List
======================================== */
.article_list {
  min-width: var(--content-width);
  padding-block: 4.5rem;
}

.article_list_inner {
  width: var(--content-width);
  margin-inline: auto;
}

.article_list_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem;
}

/*----- Mobile -----*/
@media screen and (max-width: 767px) {

  .article_list {
    min-width: 0;
    padding-block: 3rem;
  }

  .article_list_inner {
    width: auto;
    margin-inline: var(--content-padding-sp);
  }

  .article_list_grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

}


/* ========================================
Article Card
======================================== */
.article_card {
  min-width: 0;
}

.article_card_anchor {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(124, 116, 103, 0.25);
  border-radius: 0.8rem;
  background-color: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 0.4rem 1.4rem rgba(39, 37, 35, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.article_card_anchor::after {
  content: "";
  position: absolute;
  right: 1.8rem;
  bottom: 1.8rem;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 2px solid var(--color-green);
  border-right: 2px solid var(--color-green);
  transform: rotate(45deg);
}

.article_card_image {
  position: relative;
  overflow: hidden;
}

.article_card_image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article_card_content {
  min-width: 0;
  padding: 2rem 3rem 4.5rem 2rem;
}

.article_card_title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.55;
}

.article_card_text {
  margin-block: 1.4rem 0;
  padding-block: 1.4rem 0;
  border-top: 1px solid rgba(124, 116, 103, 0.35);
  font-size: 1.3rem;
  line-height: 1.7;
}

@media (hover: hover) {

  .article_card_anchor:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.8rem 2rem rgba(39, 37, 35, 0.12);
  }

}

/*----- Mobile -----*/
@media (max-width: 767px) {

  .article_card_anchor {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .article_card_content {
    padding: 1.8rem 2rem 4rem 1.8rem;
  }

  .article_card_title {
    font-size: 1.5rem;
  }

  .article_card_text {
    margin-block: 1rem 0;
    padding-block: 1rem 0;
    font-size: 1.2rem;
  }

  .article_card_anchor::after {
    right: 1.4rem;
    bottom: 1.4rem;
  }

}

/*----- Small Mobile -----*/
@media (max-width: 480px) {

  .article_card_anchor {
    display: block;
  }

  .article_card_image {
    aspect-ratio: 16 / 9;
  }

  .article_card_image img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .article_card_content {
    padding: 1.8rem 1.8rem 4rem;
  }

}

/* ========================================
Article Card Scheduled
======================================== */
.article_card--scheduled {
  position: relative;
  pointer-events: none;
  cursor: default;
}

.article_card--scheduled::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / .55);
  z-index: 2;
  pointer-events: none;
  border-radius: 0.8rem;
}

.article_card--scheduled::after {
  content: attr(data-status);

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;

  padding: .8rem 2rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.8rem;
  font-weight: 300;
  white-space: nowrap;
}


/* ========================================
Pagination
======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  margin-block: 4rem 0;
}

.pagination[hidden] {
  display: none;
}

.pagination_button {
  display: grid;
  place-items: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 1rem;
  border: none;
  border-radius: .6rem;
  background: transparent;
  color: var(--color-green);
  font-size: 1.8rem;
  cursor: pointer;
  transition:
    background-color .2s,
    color .2s;
}

.pagination_button:hover:not(:disabled) {
  background: var(--color-page);
}

.pagination_button.is-current {
  background: var(--color-green);
  color: #fff;
}

.pagination_button:disabled {
  opacity: .35;
  cursor: default;
}

.pagination_ellipsis {
  display: grid;
  place-items: center;
  min-width: 2.4rem;
  height: 4rem;
  font-size: 1.8rem;
  line-height: 1;
}
