:root{
  --member-page-font-color: #979797;
  /*
  var(---member-page-font-color)*/
}

.chapter{
  margin: 3rem auto 0.5rem 3rem;
  font-size: 2rem;
}

.research-theme-wrapper{
  width: 100%;
}
.research-theme {
  display: inline-block; /* インラインブロック化 */
  vertical-align: top;   /* 上端を揃える */
  margin: 1.5% 1%;
  position: relative;
  width: 30%;
}
.pamphlet-link a{
  color:inherit;
  color:var(--font-color-2);
  font-size: 1.5rem;
}

.pamphlet-link a:hover{
  color:var(--font-color-1);
}

/* ↓詳細閉じるボタン↓ */
#detail-close-btn {
  display: block;
  position: sticky;
  position: -webkit-sticky;
  top: 1.5rem;
  left: calc(100% - 30px - 1.5rem);
  width: 30px;
  height: 30px;
  background: var(--font-color-4); /* ボタンの背景色 */
}

#detail-close-btn::before, #detail-close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 25px;
  background: #fff; /* バツ印の色 */
}

#detail-close-btn:before {
  transform: translate(-50%,-50%) rotate(45deg);
}

#detail-close-btn::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

#detail-close-btn:hover{
  background: var(--font-color-2);
}
/* ↑詳細閉じるボタン↑ */


.research-theme p {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  margin:0;
  padding:0;
  color: white;
  font-size: 1.5rem;
  z-index: 10;
  pointer-events: none;
}

#overview-text {
  margin: 2rem;
  display: block;
}

#overview-text li{
  list-style: square;
  font-size: 0.9rem;
  margin-left: 2rem;
}

.research-theme figure img {
  border-radius: 25px;
  width: 100%;
  filter: blur(2px);
  -webkit-transform: scale(1.25);
  transform: scale(1.25);
  -webkit-transition: .3s ease-in-out;
  transition: .3s ease-in-out;
}
.research-theme figure:hover img {
  filter: blur(0.5px);
  -webkit-transform: scale(1.35);
  transform: scale(1.35);
}

.research-theme-detail{
  opacity: 0;
  transition: all .3s ease;
  padding:1.5rem;
}

#research-theme-detail-wrapper{
  opacity: 0;
  position: fixed;
  top: 5vh;
  left: 10vw;
  background-color: white;
  height: 90vh;
  width: 80vw;
  z-index: 100;
  pointer-events: none;
  transition: all .3s ease;
  border: solid;
  overflow: scroll;
}

.detail-title{
  margin: 1rem auto 1rem 2rem;
  font-size: 2rem;
  font-weight: bold;
}

.detail-headline{
  margin: 3rem auto 0.2rem auto;
  font-size: 1.2rem;
  font-weight: bold;
}

#research-theme-detail-wrapper img{
  margin-top: 0.5rem;
  width: 20vw;
  max-height: 20vw;
}

#research-theme-detail-wrapper li{
  margin-left: 2rem;
  font-size: 0.9rem;
}

/* タブレット用 */
@media screen and (max-width: 959px) {
  .research-theme figure img {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  .research-theme figure:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }

  .research-theme {
    margin: 0;
    width: 48%;
    margin: 0% 0%;
  }
}

/* スマホ用 */
@media screen and (max-width: 480px) {
  .research-theme {
    width: 100%;
  }

  .research-theme img{
    margin: 0% auto;
  }

  #research-theme-detail-wrapper{
    top: 5vh;
    left: 2vw;
    height: 90vh;
    width: 92vw;
    z-index: 100;
  }

  #research-theme-detail-wrapper img{
    width: 60vw;
    max-height: none;
  }
}
