@charset "UTF-8";

/* ---------------------------------------------
  pc
--------------------------------------------- */
/* body */
body {
  background-color: #fff;
}
/* コンテンツ */
.media_wrapper {
  background-color: #F3F0ED;
  border-radius: 0px 0px 80px 80px;
  overflow: hidden;
}
.media_bg {
  background: url(../img/media/media_bg_passive.png) top/cover no-repeat;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}
body.loaded .media_bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/media/media_bg_active.png) top/cover no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease;
  animation: fadeInScale 1.2s ease 0.5s forwards;
}
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.media_title_wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.media_title {
  margin: 190px 110px 90px 110px;
  opacity: 0;
}
.media_title_sub {
  opacity: 0;
}
body.loaded .fadeIn {
  animation: fadeIn 0.8s ease 0.6s forwards;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.media {
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: url(../img/media/media_roof_pc.webp) center 0 no-repeat;
  background-size: 148.8125rem;
  padding-top: 18.75rem;
  opacity: 0;
  color: #fff;
}
body.loaded .media {
  animation: fadeUp 0.8s ease 0.6s forwards;
}
@keyframes fadeUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.media::before {
  content: "";
  background: url(../img/media/media_news_left.png) center 0 no-repeat;
  position: absolute;
top: 66%;
  left: -150px;
  width: 483px;
  height: 231px;
  z-index: 1;
  pointer-events: none;
}
.media::after {
  content: "";
  background: url(../img/media/media_news_right.png) center 0 no-repeat;
  position: absolute;
  top: 1%;
  right: -1430px;
  width: 2136px;
  height: 1020px;
  z-index: 1;
  pointer-events: none;
}
.media .media_lead {
  text-align: center;
  margin-bottom: 7.5rem;
  font-size: 1.5rem;
}
.media .media_head {
  margin-bottom: 60px;
  font-size: 24px;
  letter-spacing: .19em;
}
.media .media_head::before {
  content: "◆";
  display: inline-block;
  font-size: .6em;
  color: #e3c192;
  margin-right: .5em;
  transform: translateY(-.2em);
}
.media .media_inner {
  background-color: #171717;
  padding-bottom: 120px;
}
.media .media_inner_content {
  width: 75rem;
  margin: 0 auto 73px;
  position: relative;
  z-index: 2;
}
.media .media_list {
  display: grid;
  grid-template: repeat(1, 1fr) / repeat(4, 1fr);
  gap: 2.875rem;
}
.media .media_list_item a {
  display: block;
}
.media .media_list_item a:hover img {
  scale: 1.1;
}
.media .media_list_item_img {
  border-radius: 0.5rem;
  overflow: hidden;
  height: 140px;
  display: flex;
  align-items: center;
}
.media .media_list_item_img img {
  transition: scale 0.3s;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.media .media_list_item_title {
  line-height: 1.5;
  margin-block: 1rem 0.5rem;
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media .media_list_item_date {
  font-size: 0.625rem;
  color: #bababa;
}
/* ページネーション */
.media .wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
}
.media .previouspostslink {
  width: 40px;
  height: 40px;
  margin-right: 30px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media .nextpostslink {
  width: 40px;
  height: 40px;
  margin-left: 30px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media .page {
  font-size: 16px;
}
.media .wp-pagenavi .page,
.media .wp-pagenavi .current,
.media .wp-pagenavi .extend {
  margin: 0 10px;
  width: 24px;
  text-align: center;
}
.media .wp-pagenavi .current {
  text-decoration: underline;
}
/* フッター */
.footer {
  margin-top: 96px;
}
/* ---------------------------------------------
  sp
--------------------------------------------- */
@media (width <= 750px) {
  /* コンテンツ */
  .media_wrapper {
    border-radius: 0px 0px 40px 40px;
  }
  .media_bg {
    background-size: contain;
    background-image: url(../img/media/media_bg_passive_sp.png)
  }
  body.loaded .media_bg::before {
    background-size: contain;
    animation: fadeInScale 1.2s ease 0.7s forwards;
    background-image: url(../img/media/media_bg_active_sp.png);
  }
  .media_title_wrap {
    align-items: flex-end;
  }
  .media_title {
    margin: min(170 / 750 * 100vw ,170px) min(56 / 750 * 100vw ,56px) min(50 / 750 * 100vw ,50px) min(56 / 750 * 100vw ,56px);
    width: min(400 / 750 * 100vw ,400px);
    height: min(104 / 750 * 100vw ,104px);
  }
  .media_title_sub {
    width: min(30 / 750 * 100vw ,30px);
    height: min(140 / 750 * 100vw, 140px);
  }
  .media_title_sub img {
    height: 100%;
  }
  body.loaded .fadeIn {
    animation: fadeIn 0.8s ease 1s forwards;
  }
  .media {
    background: url(../img/media/media_roof_sp.webp) center 0 no-repeat;
    background-size: 365vw;
    padding-top: 56vw;
  }
  .media::before {
    display: none;
  }
  .media::after {
    width: min(2364 / 750 * 100vw, 2364px);
    height: min(1130 / 750 * 100vw, 1130px);
    top: -10%;
    right: -245%;
    background-size: contain;
  }
  body.loaded .media {
    animation: fadeUp 0.8s ease 1s forwards;
  }
  .media .media_lead {
    font-size: 4.2666666667vw;
    margin-bottom: 12.8vw;
  }
  .media .media_head {
    margin-bottom: 4.2666666667vw;
    font-size: 5.3333333333vw;
  }
  .media .media_inner {
    padding: 0 5.3333333333vw min(80 / 750 * 100vw, 80px);
  }
  .media .media_inner_content {
    width: auto;
    margin: 0 auto min(48 / 750 * 100vw, 48px);
  }
  .media .media_list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .media .media_list_item {
    min-width: 54.6666666667vw;
  }
  .media .media_list_item:not(:first-child) {
    margin-top: 2.6666666667vw;
  }
  .media .media_list_item a {
    padding: 5.333333vw 2.6666666667vw;
    border-radius: 2.1333333333vw;
    background: #272727;
  }
  .media .media_list_item_img {
    border-radius: 2.1333333333vw;
    margin-bottom: 3vw;
    height: min(330 / 750 * 100vw, 330px);
  }
  .media .media_list_item_title {
    margin: 0 0 1.0666666667vw;
    font-size: 3.4666666667vw;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .media .media_list_item_date {
    font-size: 2.1333333333vw;
  }
  /* ページネーション */
  .media .previouspostslink {
    width: min(80 / 750 * 100vw ,80px);
    height: min(80 / 750 * 100vw ,80px);
    margin-right: min(60 / 750 * 100vw ,60px);
  }
  .media .nextpostslink {
    width: min(80 / 750 * 100vw ,80px);
    height: min(80 / 750 * 100vw ,80px);
    margin-left: min(60 / 750 * 100vw ,60px);
  }
  .media .page {
    font-size: min(32 / 750 * 100vw ,32px);
  }
  .media .wp-pagenavi .page,
  .media .wp-pagenavi .current,
  .media .wp-pagenavi .extend {
    margin: 0 min(10 / 750 * 100vw ,10px);
    width: min(48 / 750 * 100vw ,48px);
  }
  /* フッター */
  .footer {
    margin-top: min(80 / 750 * 100vw ,80px);
  }
}