/* ===========================================
   Page Tag Banner
   =========================================== */

.page-tag-banner {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 80px 80px;
  box-sizing: border-box;
  width: 100%;
}

.page-tag-banner__label {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.page-tag-banner__title-wrapper {
  width: 1120px;
  max-width: 100%;
  border-bottom: 4px solid #000;
  padding-bottom: 24px;
  text-align: center;
}

.page-tag-banner__title {
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  line-height: 1;
  margin: 0;
}

.page-tag-banner__title::before {
  content: "#";
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 2.4px;
}

.page-tag-banner__title--category::before {
  content: none;
}

/* ===========================================
   Page Category Banner
   =========================================== */

.page-category-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 80px 80px;
  box-sizing: border-box;
  width: 100%;
}

.page-category-banner__title-wrapper {
  width: 1120px;
  max-width: 100%;
  border-bottom: 4px solid #000;
  padding-bottom: 24px;
  text-align: center;
}

.page-category-banner__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.page-category-banner--focus .page-category-banner__title-wrapper {
  border-color: #a9ca04;
}
.page-category-banner--focus .page-category-banner__title {
  color: #a9ca04;
}

.page-category-banner--cover .page-category-banner__title-wrapper {
  border-color: #2255ff;
}
.page-category-banner--cover .page-category-banner__title {
  color: #2255ff;
}

.page-category-banner--voice .page-category-banner__title-wrapper {
  border-color: #ff6a00;
}
.page-category-banner--voice .page-category-banner__title {
  color: #ff6a00;
}

.page-category-banner--topics .page-category-banner__title-wrapper {
  border-color: #0dcc8c;
}
.page-category-banner--topics .page-category-banner__title {
  color: #0dcc8c;
}

/* ===========================================
   Article List Grid
   =========================================== */

.page-article-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 80px 80px;
  box-sizing: border-box;
  width: 100%;
}

.lst-article-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px 40px;
  width: 1120px;
  max-width: 100%;
  margin: 0 0 80px;
  list-style: none;
  padding: 0;
}

/* ===========================================
   Article Card
   =========================================== */

.article-card {
  list-style: none;
  height: 100%;
}

.article-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-card__stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.article-card__img {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 363 / 242;
  background: #f2f2f2;
  display: block;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .article-card__link:hover .article-card__img img {
    transform: scale(1.05);
  }
}

.article-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 24px;
  border-left: 4px solid #ccc;
  flex: 1;
}

.article-card__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 30px;
  border: 2px solid #ccc;
  background: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.article-card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__detail {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.article-card__tags li {
  display: inline-flex;
}

.article-card__tag-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f5f7fb;
  border-radius: 20px;
  padding: 0 16px;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  line-height: 1.5;
  height: 26px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .article-card__tag-link:hover {
    background: #dedfe1;
  }
}

.article-card__tag-hash {
  font-size: 12px;
  line-height: 1;
}

.article-card__tag-name {
  font-size: 11px;
  line-height: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  height: 20px;
  margin-top: auto;
  padding-top: 12px;
}

.article-card__date {
  flex: 1;
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 1.2px;
  line-height: 18px;
}

.article-card__vol {
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 1.2px;
  line-height: 16px;
  border-bottom: 1px solid #000;
  padding-bottom: 4px;
}

/* ===========================================
   Category color variants
   =========================================== */

.article-card--FOCUS .article-card__badge {
  color: #A9CA04;
  border-color: #A9CA04;
}
.article-card--FOCUS .article-card__body {
  border-left-color: #A9CA04;
}
.article-card--COVERPHOTO .article-card__badge {
  color: #2255ff;
  border-color: #2255ff;
}
.article-card--COVERPHOTO .article-card__body {
  border-left-color: #2255ff;
}
.article-card--VOICE .article-card__badge {
  color: #FF6A00;
  border-color: #FF6A00;
}
.article-card--VOICE .article-card__body {
  border-left-color: #FF6A00;
}
.article-card--TOPICS .article-card__badge {
  color: #0DCC8C;
  border-color: #0DCC8C;
}
.article-card--TOPICS .article-card__body {
  border-left-color: #0DCC8C;
}
.article-card--OTHERS .article-card__badge {
  color: #000;
  border-color: #000;
}
.article-card--OTHERS .article-card__body {
  border-left-color: #000;
}
/* ===========================================
   MORE Button
   =========================================== */

.page-article-list__more {
  text-align: center;
}

.page-article-list__more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 40px;
  width: 480px;
  height: 56px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.92px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .page-article-list__more-btn:hover {
    background-color: #2255ff;
  }
}

.page-article-list__more-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: #fff;
}

.page-article-list__more-btn::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-1px);
  width: 10px;
  height: 13px;
  background-color: #000;
  -webkit-mask-image: url("/enelog/common/images/btn-icn-more-arrow.svg"),
    linear-gradient(#000, #000);
  -webkit-mask-position: left bottom, 0 top;
  -webkit-mask-size: 10px 13px, 2px calc(100% - 11px);
  -webkit-mask-repeat: no-repeat;
  mask-image: url("/enelog/common/images/btn-icn-more-arrow.svg"),
    linear-gradient(#000, #000);
  mask-position: left bottom, 0 top;
  mask-size: 10px 13px, 2px calc(100% - 11px);
  mask-repeat: no-repeat;
  transition: height 0.3s ease, background-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .page-article-list__more-btn:hover::after {
    height: 21px;
    background-color: #2255ff;
  }
}

.page-article-list__more-btn.is-hidden {
  display: none;
}

/* ===========================================
   SP (mobile) styles <= 768px
   =========================================== */

@media (max-width: 768px) {
  .page-category-banner {
    padding: 40px 32px;
  }

  .page-category-banner__title-wrapper {
    padding-bottom: 16px;
  }

  .page-category-banner__title {
    font-size: 24px;
    letter-spacing: 2.4px;
  }

  .page-tag-banner {
    padding: 40px 32px;
    gap: 8px;
    margin-top: 0;
  }

  .page-tag-banner__label {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .page-tag-banner__title-wrapper {
    width: 100%;
    padding-bottom: 16px;
  }

  .page-tag-banner__title {
    font-size: 24px;
  }

  .article-card__title {
    height: unset;
  }

  .article-card__tags {
    height: unset;
  }

  .page-article-list {
    padding: 0 32px 64px;
    align-items: stretch;
  }

  .lst-article-list {
    grid-template-columns: 1fr;
    gap: 56px;
    width: 100%;
    margin: 0 0 40px;
  }

  .article-card__link {
    gap: 16px;
  }

  .article-card__body {
    gap: 12px;
  }

  .article-card__tags {
    gap: 8px;
  }

  .article-card__tag-link {
    padding: 0 12px;
  }

  .page-article-list__more-btn {
    width: 320px;
  }

  .page-article-list__empty {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 48px 0;
  }
}

/* 430px（iPhone Pro 等）〜 768px（iPad mini）: 2カラム */
@media screen and (min-width: 430px) and (max-width: 768px) {
  .lst-article-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}
