/* //////////////////////////////////////////////////

Title : archive.scss
For   : bell-c/

Created       : 2025-11-12
Last Modified : 2025-11-12

==========================================

Content

////////////////////////////////////////////////// */
/**
 * layout
 */
.l-posts {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--posts-gutter);
}
.l-posts__shell {
  display: grid;
}

/* --- for small viewport --- */
@media (max-width: 767px) {
  .p-page-archive {
    -webkit-padding-after: 6rem;
            padding-block-end: 6rem;
  }
  .l-posts {
    --posts-gutter: 2rem;
  }
  .l-posts__shell {
    grid-template-columns: 100%;
  }
}
/* --- for large viewport --- */
@media (min-width: 768px) {
  .p-page-archive {
    -webkit-padding-after: 16rem;
            padding-block-end: 16rem;
  }
  .l-posts {
    --posts-gutter: 0;
  }
  .l-posts__shell {
    grid-template-columns: 30% 1fr;
    -moz-column-gap: 5%;
         column-gap: 5%;
  }
}
/**
 * filter ui
 */
/* --- for small viewport --- */
@media (max-width: 767px) {
  .p-posts-filter {
    padding-block: 2rem;
    padding-inline: 2rem;
    background-color: var(--color-background-default);
  }
  .p-posts-filter + * {
    -webkit-margin-before: 4rem;
            margin-block-start: 4rem;
  }
  .p-posts-filter__categories-list {
    display: flex;
    gap: 1rem;
    -webkit-padding-after: 1rem;
            padding-block-end: 1rem;
    overflow-x: auto;
  }
  .p-posts-filter__categories-item {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }
  .p-posts-filter__categories-button {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding-block: 0.5em;
    padding-inline: 1em;
    background-color: var(--background-color-active, var(--color-white));
    color: var(--color-active, var(--color-primary));
    font-weight: var(--font-weight-active, 400);
    font-size: 1.2rem;
    line-height: 1;
  }
  .p-posts-filter__categories-button.is-active {
    --background-color-active: var(--color-primary);
    --color-active: var(--color-white);
    --font-weight-active: 700;
  }
  .p-posts-filter__date {
    -webkit-margin-before: 1rem;
            margin-block-start: 1rem;
  }
  .p-posts-filter__date select {
    width: 100%;
    padding-block: 1.5em;
    padding-inline: 1em;
    border: none;
    background-color: var(--color-white);
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTYgOEMxNiAxMi40MTgzIDEyLjQxODMgMTYgOCAxNkMzLjU4MTcyIDE2IDAgMTIuNDE4MyAwIDhDMCAzLjU4MTcyIDMuNTgxNzIgMCA4IDBDMTIuNDE4MyAwIDE2IDMuNTgxNzIgMTYgOFpNMTAuNDkyMiA1Ljg4NjcyTDcuODA1NjYgOC41NzQyMkw1LjExOTE0IDUuODg2NzJMMy43MDUwOCA3LjMwMDc4TDcuODA1NjYgMTEuNDAyM0wxMS45MDcyIDcuMzAwNzhMMTAuNDkyMiA1Ljg4NjcyWiIgZmlsbD0iIzA2MzQ4OCIvPjwvc3ZnPg==);
    background-repeat: no-repeat;
    background-position: right 1.6rem center;
    background-size: 1em 1em;
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: none;
  }
  .p-posts-filter__button {
    display: grid;
    place-items: center;
    width: 100%;
    height: 3.8rem;
    -webkit-margin-before: 2rem;
            margin-block-start: 2rem;
    margin-inline: auto;
    background-image: var(--color-background-gradient);
    font-size: 1.4rem;
    color: var(--color-white);
    font-weight: 600;
  }
}
/* --- for large viewport --- */
@media (min-width: 768px) {
  .p-posts-filter {
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-height, 0);
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    align-self: start;
    -webkit-padding-before: 5rem;
            padding-block-start: 5rem;
    padding-inline: 4rem;
    -webkit-padding-after: 3rem;
            padding-block-end: 3rem;
    background-color: var(--color-background-default);
  }
  .p-posts-filter__categories-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .p-posts-filter__categories-item {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }
  .p-posts-filter__categories-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-block: 0.8rem;
    padding-inline: 1.6rem;
    background-color: var(--background-color-active, var(--color-white));
    color: var(--color-active, var(--color-primary));
    font-weight: var(--font-weight-active, 400);
    font-size: 1.8rem;
    line-height: 1;
  }
  .p-posts-filter__categories-button.is-active {
    --background-color-active: var(--color-primary);
    --color-active: var(--color-white);
    --font-weight-active: 700;
  }
  .p-posts-filter__date {
    -webkit-margin-before: 5rem;
            margin-block-start: 5rem;
  }
  .p-posts-filter__date select {
    width: 100%;
    padding-block: 2.3rem;
    padding-inline: 1.6rem;
    border: none;
    background-color: var(--color-white);
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTYgOEMxNiAxMi40MTgzIDEyLjQxODMgMTYgOCAxNkMzLjU4MTcyIDE2IDAgMTIuNDE4MyAwIDhDMCAzLjU4MTcyIDMuNTgxNzIgMCA4IDBDMTIuNDE4MyAwIDE2IDMuNTgxNzIgMTYgOFpNMTAuNDkyMiA1Ljg4NjcyTDcuODA1NjYgOC41NzQyMkw1LjExOTE0IDUuODg2NzJMMy43MDUwOCA3LjMwMDc4TDcuODA1NjYgMTEuNDAyM0wxMS45MDcyIDcuMzAwNzhMMTAuNDkyMiA1Ljg4NjcyWiIgZmlsbD0iIzA2MzQ4OCIvPjwvc3ZnPg==);
    background-repeat: no-repeat;
    background-position: right 1.6rem center;
    background-size: 1.6rem 1.6rem;
    font-size: 1.8rem;
    line-height: 1;
    box-shadow: none;
  }
  .p-posts-filter__button {
    display: grid;
    place-items: center;
    width: 15.5rem;
    height: 3.8rem;
    -webkit-margin-before: 2.4rem;
            margin-block-start: 2.4rem;
    margin-inline: auto;
    background-image: var(--color-background-gradient);
    font-size: 1.8rem;
    color: var(--color-white);
    font-weight: 600;
  }
}
/**
 * list
 */
.p-posts-archives {
  position: relative;
  font-weight: 700;
}
.p-posts-archives__list {
  display: grid;
}
.p-posts-archives__list[data-parent-categories=news] {
  --post-date-color: #aaa;
}
.p-posts-archives__list[data-parent-categories=news] .p-posts-archives__headline {
  font-weight: 500;
}
.p-posts-archives__link[data-parent-categories=news] {
  border-bottom: 1px solid #d6d6d6;
}
.p-posts-archives__link[target=_blank]::after {
  display: none;
}
.p-posts-archives__link[target=_blank] .p-posts-archives__headline {
  display: flex;
  gap: 1rem;
}
.p-posts-archives__link[target=_blank] .p-posts-archives__headline::after {
  content: "";
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  margin: auto;
  background-image: var(--icon-link-external-path);
  background-size: 100%;
  background-repeat: no-repeat;
}
.p-posts-archives__header {
  display: grid;
}
.p-posts-archives__thumbnail {
  overflow: hidden;
}
.p-posts-archives__thumbnail a {
  height: 100%;
}
.p-posts-archives__thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.p-posts-archives__headline {
  --post-headline-rows: 3;
  --post-headline-line-height: 1.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: var(--post-headline-rows);
  max-height: calc(var(--post-headline-line-height) * var(--post-headline-rows) * 1em);
  -webkit-text-decoration: var(--post-headline-text-decoration, underline);
          text-decoration: var(--post-headline-text-decoration, underline);
  line-height: var(--post-headline-line-height);
}

/* --- for small viewport --- */
@media (max-width: 767px) {
  .p-posts-archives__list {
    grid-template-columns: 100%;
    row-gap: var(--archive-list-row-gap, 4rem);
  }
  .p-posts-archives__list[data-parent-categories=news] {
    --archive-list-row-gap: 2rem;
  }
  .p-posts-archives__link {
    --post-date-font-size: 1.2rem;
    display: grid;
    grid-template-columns: var(--archive-list-link-columns, 13rem auto);
    align-items: center;
    gap: 1em;
  }
  .p-posts-archives__link[data-parent-categories=news] {
    --archive-list-header-columns: 100%;
    --archive-list-header-spacer: 0;
    --archive-list-headline-spacer: 0;
    --archive-list-link-columns: 7.5rem 1fr;
    --archive-list-header-grid-column: 1;
    --archive-list-header-grid-row: 1;
    --archive-list-headline-grid-column: 2;
    --archive-list-headline-grid-row: 1;
    --archive-list-header-align-self: center;
    --post-headline-text-decoration: none;
    gap: 4rem;
    -webkit-padding-after: 2rem;
            padding-block-end: 2rem;
  }
  .p-posts-archives__thumbnail {
    grid-column: 1;
    grid-row: 1/span 2;
    aspect-ratio: 335/196;
  }
  .p-posts-archives__header {
    grid-column: var(--archive-list-header-grid-column, 2);
    grid-row: var(--archive-list-header-grid-row, 1);
    grid-template-columns: 100%;
    gap: 0.5em;
    align-self: var(--archive-list-header-align-self, end);
  }
  .p-posts-archives__post-date {
    --post-date-font-size: 1.6rem;
  }
  .p-posts-archives__headline {
    grid-column: var(--archive-list-headline-grid-column, 2);
    grid-row: var(--archive-list-headline-grid-row, 2);
    align-self: start;
    font-size: 1.2rem;
  }
  .p-posts-archives__tags-list {
    -webkit-margin-before: 1.6rem;
            margin-block-start: 1.6rem;
  }
}
/* --- for large viewport --- */
@media (min-width: 768px) {
  .p-posts-archives__list {
    grid-template-columns: var(--archive-list-columns, repeat(3, 1fr));
    -moz-column-gap: 4rem;
         column-gap: 4rem;
    row-gap: var(--archive-list-row-gap, 6rem);
  }
  .p-posts-archives__list[data-parent-categories=news] {
    --archive-list-columns: 100%;
    --archive-list-row-gap: 3rem;
  }
  .p-posts-archives__link[data-parent-categories=news] {
    --archive-list-header-columns: 100%;
    --archive-list-header-spacer: 0;
    --archive-list-headline-spacer: 0;
    --post-headline-text-decoration: none;
    display: grid;
    grid-template-columns: 10.5rem 1fr;
    align-items: center;
    gap: 4rem;
    -webkit-padding-after: 3rem;
            padding-block-end: 3rem;
  }
  .p-posts-archives__thumbnail {
    aspect-ratio: 320/180;
  }
  .p-posts-archives__header {
    grid-template-columns: var(--archive-list-header-columns, auto 1fr);
    align-items: center;
    -moz-column-gap: 0.5em;
         column-gap: 0.5em;
    -webkit-margin-before: var(--archive-list-header-spacer, 1.6rem);
            margin-block-start: var(--archive-list-header-spacer, 1.6rem);
  }
  .p-posts-archives__headline {
    -webkit-margin-before: var(--archive-list-headline-spacer, 1.6rem);
            margin-block-start: var(--archive-list-headline-spacer, 1.6rem);
    font-size: 1.8rem;
  }
  .p-posts-archives__tags-list {
    --post-tags-gap: 2.4rem;
    -webkit-margin-before: 2.4rem;
            margin-block-start: 2.4rem;
  }
}
/**
 * pager
 */
/* --- for small viewport --- */
@media (max-width: 767px) {
  .p-posts-archives__pager {
    -webkit-margin-before: 8rem;
            margin-block-start: 8rem;
  }
}
/* --- for large viewport --- */
@media (min-width: 768px) {
  .p-posts-archives__pager {
    grid-column: 1/-1;
    grid-row: 2;
    -webkit-margin-before: 12rem;
            margin-block-start: 12rem;
  }
}
/**
 * notes / message
 */
.p-posts-archives__empty-message {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  margin: auto;
  font-size: 1.6rem;
  text-align: center;
}

.c-archive-list__empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: center;
}

/**
 * archive feature contets
 */
.p-posts-feature :where(p, ol, ul) {
  letter-spacing: 0.05em;
  line-height: 1.75;
}
.p-posts-feature :where(li + li) {
  -webkit-margin-before: 0.5em;
          margin-block-start: 0.5em;
}

.l-posts__panels {
  display: grid;
  gap: 2.5em;
}

.p-posts-feature__title {
  -webkit-margin-after: 1em;
          margin-block-end: 1em;
}

.c-posts__thumbnail {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.c-posts__thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.c-posts__caption {
  -webkit-margin-before: 2em;
          margin-block-start: 2em;
}
.c-posts__block-thumbnail {
  max-width: 80%;
  padding-block: 5rem;
  margin-inline: auto;
}

/* --- for small viewport --- */
@media (max-width: 767px) {
  .p-posts-feature :where(p, ol, ul) {
    font-size: 1.4rem;
  }
  .l-posts__section + .l-posts__section {
    -webkit-margin-before: 10rem;
            margin-block-start: 10rem;
  }
  .l-posts__block + * {
    -webkit-margin-before: 4rem;
            margin-block-start: 4rem;
  }
  .l-posts__panels {
    grid-template-columns: 100%;
  }
}
/* --- for large viewport --- */
@media (min-width: 768px) {
  .p-posts-feature :where(p, ol, ul) {
    font-size: 1.8rem;
  }
  .l-posts__section + .l-posts__section {
    -webkit-margin-before: 10rem;
            margin-block-start: 10rem;
  }
  .l-posts__block + * {
    -webkit-margin-before: 10rem;
            margin-block-start: 10rem;
  }
  .l-posts__panels {
    grid-template-columns: repeat(3, 1fr);
  }
  .l-posts__panel[data-panel-variant=double] {
    grid-column: span 2;
  }
}
/*# sourceMappingURL=archive.css.map */