@charset "utf-8";
@import url("style.css");
@import url("style1.css");

/* CSS Document */



/* ---------------画像ポップアップのスタイルシート */

.c {
  text-align: center;
}

.overlay { /* グレーの背景 */
  position: fixed;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.5s 0s ease;
  visibility: hidden;
  opacity: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"]:checked + .overlay {
  visibility: visible;
  opacity: 1;
  z-index: 100000;
  background-color: #000000D0;
  width: 100%;
}

.popWindow {
  border-radius: 5px;
  overflow: auto; /* スクロールバー用 */
  max-height: 95%; /* すき間 */
  min-width: fit-content; 
  max-width: 95%; 
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100010;
  font-size: 13px;
  line-height: 18px;
  margin: 10px auto;
  padding: 4px 10px;
  background: #FFFD; /* 枠の色 */
  text-align: center;
  transition: all 500ms ease-in-out;
}

.popWindow .ptitle {
  font-size: 15px;
  margin: 8px;
  color: #333;
}

.popWindow .close {
  position: absolute;
  top: 8px;
  right: 10px;
  transition: all 300ms;
  font-size: 24px;
  line-height: inherit;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  padding: 2px;
}
.popWindow .close:hover {
  color: #06D85F;
}

.popWindow::-webkit-scrollbar-track {
  background: none;
}
.popWindow::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.popWindow::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 5px;
}

.clickable:hover {
  cursor: pointer;
}

/* ギャラリー配置 */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}

.gallery:has(.c:nth-child(2)) {
  justify-content: flex-start;
}

.gallery:has(.c:nth-child(1):only-child) {
  justify-content: flex-start;
  flex: 0 0 auto;
  max-width: none;
}

.gallery .c {
  display: inline-block;
  flex: 1 1 calc(50% - 30px);
  max-width: 45%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.thumbnail {
  width: 100%;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.05);
}

/* スマホ用：1列表示 */
@media screen and (max-width: 600px) {
  .gallery .c {
    flex: 1 1 100%;
    max-width: 100%;
  }
}



/* ---------------画像ポップアップのスタイルシート　ココマデ */
