@charset "utf-8";

.member-title{
    text-align:center;
    font-size:2em;
    margin-top:30px;
    font-weight:bold;
}

.member-list{
color:white;
font-weight: bold;
display:flex;
flex-wrap:wrap;
max-width:1000px;
height:450px;
margin:40px auto;
background-color:#1e1e1e;
box-shadow:0 0 10px rgba(255,255,255,0.1);
border-radius: 10px;
overflow:hidden;
}

.member-photo{
    position:relative;
    display:flex;
    flex-direction:column;
    width:100%;
    max-width:400px;
}



.member-photo img{
    width:100%;
    height:auto;
    object-fit:cover;
}

.member-info{
    position:relative;
    flex:1;
    padding:20px;
    color:white;
    display:flex;
    background-size:cover;
    z-index:1;
    overflow:hidden;
    font-family: '';
}

.member-list:nth-of-type(1) .member-info{
    background-image:url("../images/shunta-car1.jpg");
}

.member-list:nth-of-type(2) .member-info{
    background-image:url("../images/towa-car1.jpg");
    }

.member-list:nth-of-type(3) .member-info{
    background-image:url("../images/tamon-car1.jpg");
}

.member-list:nth-of-type(4) .member-info{
    background-image:url("../images/ishi-car2.jpg");
}

.member-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); 
  z-index: 1;
}

.member-info * {
    position:relative;
    z-index: 2;
}

.member-info h2{
    font-size:1.8em;
    margin-bottom:10px;
}


.role{
    color:orange;
    font-size:30px;
}

.car-info{
    position:absolute;
    top:10px;
    right:10px;
    padding:5px 10px;
    font-size:20px;
    z-index:2;
    text-align: right;
}

@media all and (max-width: 950px) {
  .member-list { 
    flex-wrap: hidden;
    max-width: 90%;
    height: 330px;
  }

  .member-photo{
    flex: 1 1 40%;
    max-width: 35%;
  }

  .member-photo img{
    height: 100%;
    object-fit: cover;
  }

  .member-info{
    flex: 1 1 60%;
    max-width: 60%;
    font-size: 14px;
    padding: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .role {
    font-size: 20px;
  }

  .car-info {
    font-size: 14px;
  }
}


@media all and (max-width: 685px) {

  .page-title{
    font-size:24px;
  }

  .member-list { 
    height: 150px;
  }

  .member-photo{
    max-width: 25%;
  }

  .member-info{
    font-size: 12px;
  }

  .member-info h2{
    font-size: 16px;
  }

  .role {
    font-size: 10px;
  }

  .car-info {
    font-size: 12px;
    max-width: 65%;
    padding-right: 0;
  }
}