@charset "UTF-8";

/* 旧（空シェル）
.edit-area {
	&.article {

	}
}
*/

/* ------------------------------------------- */
/* FV
/* ------------------------------------------- */

.article-fv {
  overflow: hidden;

  & picture,
  & img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 600;
    object-fit: cover;

    @media screen and (max-width: 767px) {
      aspect-ratio: 375 / 220;
    }
  }
}

/* ------------------------------------------- */
/* contents
/* ------------------------------------------- */

.edit-area.article {
  padding-bottom: 12rem;

  @media screen and (max-width: 767px) {
    padding-bottom: 6rem;
  }
}

/* ------------------------------------------- */
/* category filters
/* ------------------------------------------- */

.article-category {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4.8rem;
  list-style: none;

  @media screen and (max-width: 767px) {
    gap: 0.8rem;
    margin-bottom: 3.2rem;
  }
}

.article-category-item {
  flex: none;
  flex-grow: 0;
}

.article-category-item a,
.article-category-item .js-cat-tab {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1rem;
  gap: 1rem;
  border: 0.1rem solid #0068b7;
  border-radius: 0.4rem;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.8rem;
  letter-spacing: 0.08em;
  color: #0068b7;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;

  @media screen and (max-width: 767px) {
    padding: 0.6rem 1rem;
    font-size: 1.6rem;
    line-height: 1.4rem;
  }

  &:hover {
    background-color: #e8f3fa;
  }
}

.article-category-item.is-active a,
.article-category-item.is-active .js-cat-tab {
  background: #0068b7;
  color: #fff;

  &:hover {
    background-color: #005699;
    color: #fff;
  }
}

.article-panels {
  position: relative;
}

.article-panel {
  display: none;

  &.is-active {
    display: block;
  }
}

/* ------------------------------------------- */
/* article list
/* ------------------------------------------- */

.article-list {
  list-style: none;
  border-top: 0.1rem solid #d1d6db;
}

.article-item {
  border-bottom: 0.1rem solid #d1d6db;
}

.article-item-link {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  padding: 2.4rem 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;

  @media screen and (max-width: 767px) {
    gap: 1.6rem;
    padding: 2rem 0;
  }

  &:hover {
    opacity: 0.75;

    .article-item-arrow {
      transform: translateX(0.4rem);
    }
  }
}

.article-item-thumb {
  flex-shrink: 0;
  width: 16rem;
  overflow: hidden;
  background-color: #eff0ee;

  @media screen and (max-width: 767px) {
    width: 10rem;
  }

  & img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  img[src*="blank.png"] {
    object-fit: contain;
    /* background-color: #fff; */
  }
}

.article-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;

  @media screen and (max-width: 767px) {
    gap: 0.8rem;
  }
}

.article-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.article-item-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 1rem;
  background-color: #0068b7;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #fff;
}

.article-item-date {
  font-family: "Jost", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #0068b7;

  @media screen and (max-width: 767px) {
    font-size: 1.4rem;
  }
}

.article-item-title {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #111;

  @media screen and (max-width: 767px) {
    font-size: 1.6rem;
  }
}

.article-item-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  transition: transform 0.3s ease;

  @media screen and (max-width: 767px) {
    width: 2.4rem;
    height: 2.4rem;
  }

  & img {
    display: block;
    width: 1.4rem;
    height: auto;
  }
}

/* ------------------------------------------- */
/* pagination override (article archive)
/* ------------------------------------------- */

.edit-area.article .navigation.pagination {
  margin-top: 6rem;

  @media screen and (max-width: 767px) {
    margin-top: 4rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;

    @media screen and (max-width: 767px) {
      padding-bottom: 0;
      gap: 0.6rem;
    }
  }

  .pager {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 4.8rem;
    height: 4.8rem;
    padding: 0;
    border: 0.2rem solid #0068b7;
    border-radius: 0.4rem;
    background: #f9fafb;
    font-family: "Jost", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 2.9rem;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    color: #0068b7;
    transition:
      background-color 0.3s ease,
      color 0.3s ease;

    @media screen and (max-width: 767px) {
      width: 4rem;
      height: 4rem;
      font-size: 1.8rem;
      line-height: 1;
    }

    @media (hover: hover) and (pointer: fine) {
      &:hover {
        color: #fff;
        background: #0068b7;
      }
    }
  }

  .pager.current {
    border-color: #0068b7;
    background: #0068b7;
    color: #fff;
  }

  .prev,
  .next {
    & a {
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 4.8rem;
      height: 4.8rem;
      border: none;
      border-radius: 0.4rem;
      background: #0068b7;
      font-size: 0;
      color: transparent;
      text-decoration: none;
      transition: background-color 0.3s ease;

      @media screen and (max-width: 767px) {
        width: 4rem;
        height: 4rem;
      }

      &::before {
        content: "";
        display: block;
        width: 1.6rem;
        height: 1.6rem;
        border: none;
        background: url("../../common/img/parts/w-btn.png") center / contain no-repeat;
      }

      &::after {
        content: none;
        display: none;
      }

      &:hover {
        background: #005699;
      }
    }
  }

  .prev a::before {
    transform: scaleX(-1);
  }

  .next a::before {
    transform: none;
  }
}

.no-content {
  margin: 4rem 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.8rem;
  color: #333;
  text-align: center;
}
