@charset "UTF-8";

/* ----------------------------------------------------------------------------------------------------------------------------
MatterPortサムネイル
------------------------------------------------------------------------------------------------------------------------------- */
.c-iframelists {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
@media only screen and (max-width: 767px) {
  .c-iframelists {
    gap: 0;
  }
}

.c-iframelists__list {
  cursor: pointer;
  margin: 0 0 30px;
}
@media screen and (min-width: 768px) and (max-width: 1149px) {
  .c-iframelists__list {
    width: 49%;
  }
}
@media only screen and (max-width: 767px) {
  .c-iframelists__list {
    width: 100%;
    margin: 0 0 20px;
  }
}

.c-iframelists__listImg {
  position: relative;
  display: block;
  overflow: hidden;
}

.c-iframelists__listImg img {
  width: 100%;
  display: block;
}

.c-iframelists__listImg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  z-index: 1;
  transition: background-color .3s;
}

.c-iframelists__listImg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23222222'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 35px; /* 三角のサイズ */
}
@media only screen and (max-width: 767px) {
  .c-iframelists__listImg::after {
    width: 50px;
    height: 50px;
  }
}

.c-iframelists__list:hover .c-iframelists__listImg::before {
  background-color: rgba(0, 0, 0, .3);
}

.c-iframelists__listCaption {
  font-size: 1.125rem;
  line-height: 2.025rem;
  margin: 10px auto 0;
  text-align: center;
}
@media only screen and (max-width: 767px) {
  .c-iframelists__listCaption {
    font-size: 0.875rem;
    line-height: 1.575rem;
    margin: 6px auto 0;
  }
}

/* MatterPortSDKのメインサムネイル */
.c-sdkIframe__img {
  position: relative;
  display: block;
  overflow: hidden;
}

.c-sdkIframe__img img {
  width: 100%;
  display: block;
}

.c-sdkIframe__img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  z-index: 1;
  transition: background-color .3s;
}

.c-sdkIframe__img::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: #fff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23222222'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 55px; /* 三角のサイズ */
}
@media only screen and (max-width: 767px) {
  .c-sdkIframe__img::after {
    width: 50px;
    height: 50px;
    background-size: 35px; /* 三角のサイズ */
  }
}

.iframeWrap:hover .c-sdkIframe__img::before {
  background-color: rgba(0, 0, 0, .3);
}


/* ----------------------------------------------------------------------------------------------------------------------------
モーダル
------------------------------------------------------------------------------------------------------------------------------- */
.c-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: default;
}

.c-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
}

.c-modal__container {
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  max-width: 1200px; 
  max-height: 800px;
  background: #000;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}

.c-modal__contentArea {
  width: 100%;
  height: 100%;
}

.c-modal__contentArea iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.c-modal__closeBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  font-family: sans-serif;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, transform .2s;
}

.c-modal__closeBtn:hover {
  background: rgba(255, 255, 255, .4);
  transform: scale(1.1);
}

@media (min-width: 1220px) {
  .c-modal__container {
    height: 80vh; 
  }
}