@charset "utf-8";

/***************************************************
page-news　ニュース
***************************************************/
#page-news {
  padding: clamp(50px, 5vw, 140px) 10px !important;
}

/* =========================
   News Layout (like screenshot)
========================= */

.mNews {
  padding: 50px 0;
}

.mNews__inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-bottom: 200px;
}

/* ---- filters ---- */
.mNewsFilters {
  display: flex;
  gap: 28px;
  margin-bottom: 26px;
  align-items: flex-start;
}

.mNewsFilter {
  width: 280px;
  position: relative;
}

.mNewsFilter__btn {
  width: 100%;
  height: 66px;
  border: 0;
  border-radius: 0;
  background: #0f8ea4;
  /* 画像の青寄せ */
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  cursor: pointer;
}

.mNewsFilter__label {
  font-size: 18px;
}

/* plus icon */
.mNewsFilter__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex: 0 0 auto;
}

.mNewsFilter__icon::before,
.mNewsFilter__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.mNewsFilter__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* open state -> minus */
.mNewsFilter.is-open .mNewsFilter__icon::after {
  opacity: 0;
}

/* panel */
.mNewsFilter__panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.mNewsFilter__panelInner {
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.mNewsFilter__item {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #1a1a1a;
  border-radius: 8px;
  background: rgba(0, 0, 0, .03);
}

.mNewsFilter__item:hover {
  background: rgba(0, 0, 0, .06);
}

.mNewsFilter__item.is-active {
  background: rgba(47, 127, 177, .14);
  font-weight: 700;
}

/* ---- list ---- */
.mNewsList {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
}

.mNewsRow {
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.mNewsRow__link {
  display: grid;
  grid-template-columns: 190px 140px 1fr 44px;
  align-items: center;
  gap: 16px;
  padding: 18px 10px;
  text-decoration: none;
  color: inherit;
}

.mNewsRow__date {
  font-size: 14px;
  color: rgba(0, 0, 0, .7);
  white-space: nowrap;
}

.mNewsRow__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 2px;
  background: rgba(15, 142, 164, .12);
  color: #0f8ea4;
  white-space: nowrap;
}

.mNewsRow__title {
  font-size: 16px;
  line-height: 1.6;
}

.mNewsRow__arrow {
  width: 34px;
  height: 2px;
  background: #0f8ea4;
  justify-self: end;
  position: relative;
}

.mNewsRow__arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 10px solid #0f8ea4;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transform: translateY(-50%);
}

.mNewsRow__link:hover {
  background: rgba(0, 0, 0, .02);
}

.mNewsRow__link:hover .mNewsRow__arrow {
  transform: translateX(2px);
  transition: .18s;
}

.mNewsPager {
  margin-top: 18px;
}

.mNewsEmpty {
  padding: 22px 0;
}

/* ---- responsive ---- */
@media (max-width: 820px) {
  .mNewsFilters {
    flex-direction: column;
    gap: 14px;
  }

  .mNewsFilter {
    width: 100%;
  }

  .mNewsRow__link {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 8px;
    position: relative;
  }

  .mNewsRow__arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .mNewsRow__tag {
    width: fit-content;
  }
}




/* ------------------------------------------- */
/* ----　single-post.phpに指示している内容 ---- */
/* ------------------------------------------- */

.mNewsSingle {
  padding: 60px 0;
}

.mNewsSingle__inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.mNewsSingle__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
}

.mNewsSingle__date {
  color: rgba(0, 0, 0, .7);
  font-size: 14px;
}

.mNewsSingle__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 2px;
  background: rgba(15, 142, 164, .12);
  color: #0f8ea4;
}

.mNewsSingle__title {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  margin: 0;
  border-bottom: solid 5px #0f8ea4;
  padding-bottom: 5px;
}

.mNewsSingle__body {
  margin-top: 30px;
  line-height: 1.9;
}

.mNewsSingle__body p {
  margin: 0;
}

figure {
    margin: 1.2rem 0 1rem;
}

.mNewsSingle__nav {
  margin-top: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(0, 0, 0, .1);
  padding-top: 18px;
}

.mNewsSingle__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0f8ea4;
  font-weight: 700;
}

.mNewsSingle__pn {
  display: flex;
  gap: 14px;
}

.mNewsSingle__pn a {
  text-decoration: none;
  color: rgba(0, 0, 0, .75);
}

.mNewsSingle__pn a:hover {
  color: #0f8ea4;
}