@charset "utf-8";

.mainVisual {
  display: grid;
  grid-template-rows: repeat(4, 99px);
  grid-template-columns: auto 132px;
  gap: 4px;
}

.mainVisual__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 99px;
  cursor: pointer;
}

.mainVisual__item:first-of-type {
  position: relative;
  grid-row: span 4;
  width: 544px;
  height: 408px;
}

.mainVisual__item:hover {
  opacity: 0.7;
}

.mainVisual__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.mainVisual__showAllText {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 10px 2px 29px;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
}

.mainVisual__showAllText::before {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 14px;
  height: 14px;
  content: '';
  background-image: url('/assets/global/icon/img/photo-gallery.svg');
}

body.isShowModal {
  position: fixed;
  width: 100%;
  overflow-y: scroll;
}

.photoGalleryModal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3; /* .top-kv-searchにあたっているz-indexを上回るために設定 */
  display: none;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.photoGalleryModal.isShowModal {
  display: block;
}

.photoGalleryOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.photoGalleryContents {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1200px;
  background-color: #fff;
  border-radius: 6px;
  transform: translateY(-50%) translateX(-50%);
}

/* 画面横幅がモーダルサイズ(1200px)以下の場合に、モーダル全体がスクロール可能となるよう中央配置から左寄せに変更 */
@media screen and (max-width: 1200px) {
  .photoGalleryContents {
    left: calc(1200px / 2);
  }
}

/*  画面縦幅がモーダルサイズ(707px:カテゴリー1行パターンの高さを基準)以下の場合に、モーダル全体がスクロール可能となるよう中央配置から下寄せに変更 */
@media screen and (max-height: 699px) {
  .photoGalleryContents {
    top: calc(699px / 2);
  }
}

.photoGalleryHead {
  position: relative;
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 52px 15px 20px;
  border-bottom: solid 1px #bdbdbd;
}

.switchModeBtn {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 134px;
  padding: 2px 0;
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
  appearance: none;
  cursor: pointer;
  background-color: transparent;
  border: solid 1px #bdbdbd;
  border-radius: 6px;
  outline: none;
}

.switchModeBtn:hover {
  color: #fff;
  background-color: #ff6b08;
  border: solid 1px #ff6b08;
}

.switchModeBtn::before {
  width: 14px;
  height: 14px;
  content: '';
  background-position: center;
}

.switchModeBtn.isHidden {
  display: none;
}

.switchModeBtn--slideshow::before {
  background-image: url('/assets/global/icon/img/slideshow-gray.svg');
}

.switchModeBtn--gallery::before {
  background-image: url('/assets/global/icon/img/gallery-gray.svg');
}

.switchModeBtn--slideshow:hover::before {
  background-image: url('/assets/global/icon/img/slideshow-white.svg');
}

.switchModeBtn--gallery:hover::before {
  background-image: url('/assets/global/icon/img/gallery-white.svg');
}


.photoGalleryCategoryList {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
}

.photoGalleryCategoryList__item {
  font-size: 14px;
  line-height: 24px;
  color: #ff6b08;
  text-decoration: underline;
  cursor: pointer;
}

.photoGalleryCategoryList__item:hover {
  color: #4480b4;
  text-decoration: none;
}

.photoGalleryCategoryList__item.isActive {
  font-weight: bold;
  color: #4480b4;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

.photoGalleryCategoryList__item.isHidden {
  display: none;
}

.photoGalleryCloseBtn {
  position: absolute;
  top: 35%;
  right: 20px;
  width: 18px;
  height: 18px;
  appearance: none;
  cursor: pointer;
  content: '';
  background: url('/assets/global/icon/img/icon_closeround_gra.svg') center no-repeat;
  background-color: transparent;
  background-size: 18px;
  border: none;
  outline: none;
}

.photoGalleryMain {
  height: 640px;
  padding: 0 20px;
  margin: -1px;
  overflow-y: scroll;
}

.galleryMode {
  padding-bottom: 20px;
}

.photoGalleryMain__inner {
  display: none;
}

.photoGalleryMain__inner.isActive {
  display: block;
}

.galleryMode .photoList {
  display: grid;
  grid-template-rows: repeat(auto, 285px);
  grid-template-columns: repeat(3, 380px);
  gap: 10px;
}

.galleryMode .photoList__item {
  position: relative;
  width: 380px;
  height: 285px;
  overflow: hidden;
  cursor: pointer;
}

.galleryMode .photoList__item.isActive {
  position: relative;
}

.galleryMode .photoList__item.isActive::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 3px;
  z-index: 1000;
  box-sizing: border-box;
  display: inline-block;
  width: 374px;
  height: 279px;
  content: '';
  outline: solid 3px #e77611;
}

.galleryMode .photoList__item.isHidden {
  display: none;
}

.galleryMode .photoList__item:hover {
  opacity: 0.7;
}

.galleryMode .photoList__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
}

.slick-slider {
  position: relative;
}

.slick-list {
  overflow: hidden;
}

.slick-list:focus {
  outline: none;
}

.slideShowMainWrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1160px;
  height: 540px;
  background-color: #000;
}

.slideShowMainWrapper .photoCount {
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: 16px;
  line-height: 27px;
  color: #fff;
}

.slideShowMainWrapper .photoList {
  box-sizing: border-box;
  width: 720px;
  height: 540px;
}

.slideShowMainWrapper .slick-slide {
  position: relative;
  display: inline-block;
  width: 720px;
  height: 540px;
  overflow: hidden;
}

.slideShowMainWrapper .slick-slide img {
  position: absolute;
  top: calc(50% + 1px);
  left: 50%;
  width: auto;
  height: calc(100% - 1px);
  transform: translate(-50%, -50%);
}

.slideShowMainWrapper .slick-arrow {
  position: absolute;
  top: 43%;
  width: 40px;
  height: 80px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  text-indent: -100%;
  appearance: none;
  cursor: pointer;
  content: '';
  background: url('/assets/global/icon/img/icon_closeround_gra.svg') center no-repeat;
  background-color: transparent;
  background-size: 20px;
  border: none;
  outline: none;
}

.slideShowMainWrapper .slick-prev {
  left: -220px;
  background: url('/img/common/arrow-white-left.png') center no-repeat;
}

.slideShowMainWrapper .slick-next {
  right: -220px;
  background: url('/img/common/arrow-white-right.png') center no-repeat;
}

.slideShowThumbnailWrapper {
  margin-top: 20px;
}

.slideShowThumbnailWrapper .slick-list {
  height: 60px;
}

.slideShowThumbnailWrapper .slick-slide {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 60px;
  margin-right: 10px;
  overflow: hidden;
  cursor: pointer;
}

/* slick.jsで要素に当てているCSSを上書きするためにimportantを使用 */
.slideShowThumbnailWrapper .slick-track.isFixed {
  transform: unset !important;
}

.slideShowThumbnailWrapper .slick-slide img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
}

.slideShowThumbnailWrapper .slick-slide:hover img {
  opacity: 0.7;
}

.slideShowThumbnailWrapper .slick-slide.slick-current {
  cursor: default;
}

.slideShowThumbnailWrapper .slick-slide.slick-current::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 3px;
  z-index: 1000;
  box-sizing: border-box;
  display: inline-block;
  width: 74px;
  height: 54px;
  content: '';
  outline: solid 3px #e77611;
}

.slideShowThumbnailWrapper .slick-current:hover img {
  opacity: 1;
}
