.modal-wrapper {
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px;
  text-align: center;
}

.modal-wrapper:not(:target) {
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.modal-wrapper:target {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s, visibility .4s;
}

.modal-wrapper::after {
  display: inline-block;
  height: 100%;
  margin-left: -.05em;
  vertical-align: middle;
  content: ""
}

/* 内容囲み */
.modal-wrapper .modal-window {
  box-sizing: border-box;
  display: inline-block;
  z-index: 20;
  position: relative;
  width: 80%;
  max-width: 700px;
  padding: 30px;
  border-radius: var(--radius-big);
  background: var(--color-white);
  vertical-align: middle
}
@media screen and (max-width: 768px) {
.modal-wrapper .modal-window {
  width: 100%;
  max-width: 100%;
padding: 15px;
}
}


/* 中身 */
.modal-wrapper .modal-window .modal-content {
max-height: 80vh;
  text-align: left;
overflow-y: auto;
overflow-x: hidden;
}


/* プロフィール -------------------*/
.profile .modal-content{
padding-right: 20px;
  display: grid;
  grid-template-columns:1fr 30%;
  align-items: flex-start;
gap:20px 5%;
  grid-template-areas:
    "title title"
    "info img"
    "other other";
}
@media screen and (max-width: 768px) {
.profile .modal-content{
padding-right: 20px;
  display: block;
}
}



.profile .title{
grid-area: title;
position: relative;
background-color: var(--color-green);
text-align: center;
color: var(--color-white);
padding: 5px;
border-radius: 50px;
margin-top: 10px;
}
.profile .title img{
position: absolute;
width: 60px;
top:-10px;
margin-left: -70px;
}


.profile .p_info{
grid-area: info;
}

.profile .name{
font-size: calc(28 * var(--rem));
font-weight: 600;
margin-top: 20px;
}
@media screen and (max-width: 768px) {
.profile .name{
margin-top: 30px;
font-size: calc(24 * var(--rem));
}
}

.profile .name span{
font-size: calc(20 * var(--rem));
margin-right: 10px;
}
@media screen and (max-width: 768px) {
.profile .name span{
font-size: calc(16 * var(--rem));
margin-right: 0;
display: block;
}
}

.profile .name_en{
color: var(--color-green);
font-size: calc(12 * var(--rem));
}
.profile p{
margin: 10px 0;
}

.profile .p_img{
grid-area: img;
width: 100%;
}
@media screen and (max-width: 768px) {
.profile .p_img{
grid-area: img;
width: 80%;
display: block;
margin: 0 auto 30px auto;
}
}

.profile .p_other{
grid-area: other;
border-radius: var(--radius);
background-color: var(--color-beige);
padding: 20px;
font-size: calc(14 * var(--rem));;
}
.profile .p_other dl{
display: grid;
align-items:flex-start;
grid-template-columns: 130px 1fr;
row-gap:10px;
}
@media screen and (max-width: 768px) {
.profile .p_other dl{
display:block;
}
}

.profile .p_other dt{
background-color: var(--color-brown);
text-align: center;
border-radius: 50px;
color: var(--color-white);
margin: 5px 10px 5px 0;
padding: 5px;
font-size: calc(14 * var(--rem));
}
@media screen and (max-width: 768px) {
.profile .p_other dt{
background-color: var(--color-brown);
text-align: center;
border-radius: 50px;
color: var(--color-white);
margin: 15px 10px 5px 0;
padding: 5px 15px;
display: inline-block;
}
}

.profile .p_other dd{
align-self: center;
}



/* 背景の黒  -------------------*/
.modal-overlay {
  z-index: 10;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, .8)
}
.modal-overlay:hover {
opacity: 1;
}

/* クローズボタン  -------------------*/
.modal-wrapper .modal-close {
  z-index: 20;
  position: absolute;
  top: 5px;
  right: 5px;
  width: 35px;
}

.modal-wrapper .modal-close:hover {
opacity: 1;
  color: #2b2e38 !important
}


/* スクロールバー  -------------------*/
::-webkit-scrollbar {
  width: 12px; /* 横幅 */
}
::-webkit-scrollbar-thumb {
  background:var(--color-green); /* ハンドルの色 */
}
::-webkit-scrollbar-track {
  background: #DAEFEF; /* 背景色 */
}