/* イベント一覧用CSS */
@charset "utf-8";

/* magのスタイル読み込み */
@import "./mag/common.css";
@import "./mag/category.css";

/* =====================================
  ヘッダ部分
===================================== */
#head {
  margin-bottom: 3em;
}
@media(max-width: 767px) {
  #head {
    margin-bottom: 2.5em;
  }
}

@media (min-width: 1000px) {
  #head #nav_menu {
      padding: 0 50px;
  }
  #head #nav_menu ul {
      width: 100%;
  }
  #head #nav_menu ul li {
      padding: 0 1.2em;
  }
  #head #nav_menu ul li.ttl {
      display: inherit;
  }
  #head #nav_menu ul li.top .onlySP {
      display: none;
  }
}

body #head #nav_menu ul li a.selected {
  padding-bottom: calc(1.2em - 3px);
  border-bottom: 3px solid #E4A63F;
  z-index: 99;
  color: #E4A63F;
}

/* =====================================
  メイン部分
===================================== */
#wrap_page {
  display: flex;
  height: auto;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 120px;
  padding-bottom: 36px;
  border-bottom: 1px solid #E0E0E0;
}
@media(max-width: 767px) {
  #wrap_page {
    margin-top: 80px;
    padding-bottom: 18px;
  }
}

#wrap_page ul {
  list-style: none;
}

#contents_main {
  padding-top: 0px;
  min-height: calc(100vh - 246px);
  overflow-x: clip;
}

.site-content {
  height: fit-content;
  margin-bottom: 76px;
}
.section_title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 28px;
}
.section_title.gallery_ttl {
  margin-bottom: 10px;
}
.section_title-sub {
  text-align: center;
  margin-bottom: 34px;
}
@media(max-width: 767px) {
  .site-content {
    margin-bottom: 48px;
  }
  .section_title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .section_title.gallery_ttl {
    margin-bottom: 18px;
  }
  .section_title-sub {
    text-align: left;
    margin-bottom: 28px;
  }
}

/* 募集中イベント関連 */
.list_wanted {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 18px;
}
.list_wanted li {
  width: 100%;
  height: 360px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .list_wanted {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 18px;
  }
  .list_wanted li {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
}
.list_wanted li a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
}
.img_wanted-wrap {
  width: 100%;
  position: relative;
  height: 100%;
  display: flex;
}
@media (min-width: 769px) {
  .img_wanted-wrap {
    -webkit-transition: -webkit-transform 0.2s ease-out;
    transition: -webkit-transform 0.2s ease-out;
    transition: transform 0.2s ease-out;
    transition: transform 0.2s ease-out, -webkit-transform 0.2s ease-out;
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
  .list_wanted li:hover .img_wanted-wrap {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
  }
}

.img_wanted-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, transparent 0 50%, #000 100%);
}
.img_wanted {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.wanted_textarea {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: calc(100% - 60px);
}
.wanted_tag {
  color: #fff;
  background: #FF5800;
  font-size: 1.4rem;
  width: 80px;
  height: 30px;
  margin-bottom: 6px;
}
.wanted_tag p {
  text-align: center;
  line-height: 2;
}
.wanted_summary {
  color: #fff;
  font-weight: bold;
  font-size: 1.4rem;
}
.wanted_summary-title {
  font-size: 2.4rem;
  line-height: 1.4;
}

/* イベントジャンル関連 */
.list_genre {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 18px;
}
@media (max-width: 767px) {
  .list_genre {
    grid-template-columns: repeat(1, 1fr);
  }
}
.list_genre li a {
  text-align: center;
  border: 1px solid #E5E5E5;
  padding: 30px 24px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  transition: 0.3s;
}
.list_genre li.trn a {
  padding: 24px 24px 30px;
}
@media (min-width: 769px) {
  .list_genre li a:hover {
    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.2);
  }
}

.list_genre li .genre_top .genre_logo {
  height: 90px;
  margin-bottom: 20px;
}
.list_genre li.trn .genre_top .genre_logo {
  height: 100px;
  margin-bottom: 16px;
}
.genre_logo img {
  height: 100%;
}
.genre_text {
  display: block;
  min-height: 100px;
  margin-bottom: 30px;
  text-align: left;
}
@media(max-width: 767px) {
  .genre_text {
    min-height: 126px;
    margin-bottom: 10px;
  }
}
.genre_view {
  height: 26px;
  width: 74px;
  padding: 4px 12px;
  border: 1px solid #EC642B;
  border-radius: 25px;
  margin: 0 auto;

  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.genre_view p, .genre_view.--all a {
  height: 100%;
  width: 100%;
  color: #EC642B;
}
@media (min-width: 769px) {
  .list_genre li:hover .genre_view {
    background-color: #FF5800;
  }
  .list_genre li:hover .genre_view p {
    color: #FFFFFF;
  }
}

.genre_view.--all {
  margin: 30px auto 0 auto;
  width: fit-content;
}
.genre_view.--all:hover {
  background-color: #FF5800;
}
.genre_view.--all:hover a {
  color: #FFFFFF;
}

/* イベントギャラリー関連 */
.list_gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 15px;
  row-gap: 20px;
}
.list_gallery li {
  /* height: 290px; */
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  transition: 0.3s;
}
.gallery_visual {
  position: relative;
  height: 219px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px 10px 0 0;
}
@media (min-width: 769px) {
  .list_gallery li:hover {
    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.2);
  }
}
@media (max-width: 930px) {
  .list_gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .list_gallery li {
    height: auto;
  }
  .gallery_visual {
    /* height: 340px; */
  }
}
@media (max-width: 767px) {
  .gallery_visual {
    height: 260px;
  }
}
@media (max-width: 599px) {
  .gallery_visual {
    height: 172px;
  }
}
@media (max-width: 420px) {
  .gallery_visual {
    height: 150px;
  }
}
.gallery_visual img {
  position: absolute;
  object-fit: cover;
  height: 100%;
  width: 100%;

  -webkit-transition: -webkit-transform 0.2s ease-out;
  transition: -webkit-transform 0.2s ease-out;
  transition: transform 0.2s ease-out;
  transition: transform 0.2s ease-out, -webkit-transform 0.2s ease-out;
  -webkit-transform: scale(1, 1);
          transform: scale(1, 1);
}
@media (min-width: 769px) {
  .list_gallery li:hover .gallery_visual img {
    -webkit-transform: scale(1.05, 1.05);
    transform: scale(1.05, 1.05);
  }
}
.gallery_tag {
  position: absolute;
  top: 0;
  left: 0;
  height: 28px;
  width: 80px;
  background: #E5E5E5;
}
.gallery_tag p {
  font-size: 12px;
  padding: 2px 15px;
}
.gallery_note {
  padding: 16px 12px;
  box-sizing: border-box;
}
.gallery_note p {
  font-size: 10px;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.gallery_note h3 {
  font-size: 15px;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.4;
}
@media (max-width: 420px) {
  .gallery_note h3 {
    font-size: 12px;
  }
}
