@charset "utf-8";

/* 全要素の余白をリセット */

/* HTML5の要素をブロック要素として明示的に表示 */
article, section, figure, figcaption {
    display: block;
}

/*  メディアの幅を100%に　*/
img,
picture,
video {
  max-width: 100%;
}


/* 全体の基本設定 */
body {
	max-width: 768px;
	
    font-size: 1em; /* 基本フォントサイズ */
    line-height: 1.7; /* 行間を広めに設定して読みやすさを向上 */
    font-family: 'M PLUS Rounded 1c', sans-serif; /* 日本語フォントを指定 */
}



/* Light Box */

.gallery--check {
  display: none;
}
.gallery--flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-grow: 1;
  gap: 0.5em;
}
.gallery--flex > .gallery-col {
  text-align: center;
}
.gallery--close,
.gallery__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition-property: all;
  transition-duration: 0.2s;
  transition-delay: 0s;
}
.gallery--check:checked ~ .gallery--close,
.gallery--check:checked ~ .gallery__modal {
  visibility: visible;
  opacity: 1;
  transition-duration: 0.8s;
  transition-delay: 0.2s;
}
.gallery--check:checked ~ .gallery__modal {
  background: rgba(0, 0, 0, 0.7);
}
.gallery--check:checked ~ .gallery--close {
  background: transparent;
  cursor: url('./img/cross.svg'), auto;
  z-index: 5;
}
.gallery__thumb {
  border: 1px solid #dcdddd;
  border-radius: 8px;
  width: 180px;
  height: 160px;
  object-fit: cover;
}
.gallery__modal {
  background: rgba(0, 0, 0, 0);
}
.gallery__item {
  position: fixed;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  max-width: 99vw;
  max-height: 100%;
  padding: 0.5em;
  padding-bottom: 1em;
  border-radius: 8px;
  background: #fff;
}
.gallery__caption {
  font-size: 0.75rem;
  text-align: center;
  margin: 0 auto;
}
.full-size {
  max-width: 90vw;
  max-height: 90vh;
  vertical-align: middle;
}
.gallery--open:hover {
  position: relative;
  top: 0.2em;
  left: 0.2em;
}

