body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #dadada;
    color: #333;
    line-height: 1.6;
}

/* ヘッダーのスタイル */
header {
    background-color: #7d7d7d; 
    padding: 15px 20px;
    text-align: left;
}

.group-name{
    display: flex;
    flex-direction: column;
    justify-content: left;
    line-height: 1.3;
    text-decoration: none;
    color: white;
}
.group-name-1nm8{
    margin-left: 9px;
    white-space: nowrap;
}
.group-name-yomi{
    white-space: nowrap;
}
.logo-container {
   display: flex;
   align-items: flex-end;
   max-width: fit-content;
}
.logo-container a{
    display: flex;
    align-items: flex-end;
}
.logo-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-right: 10px;
}

main {
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 10px;
    padding-bottom: 10px ;
    max-width: 960px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #c0c0c0;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #c0c0c0;
    padding-bottom: 10px;
}

/* メンバーリストのスタイル */
.member-list {
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    padding: 0 10px; 
}

.member-item {
    text-align: center;
    flex-shrink: 0; 
    width: 150px; 
}

.member-item a {
    text-decoration: none; 
    color: inherit;
    display: block;
}

.member-icon-wrapper {
    position: relative;
    width: 150px; 
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px auto; 
    border: 3px solid #c0c0c0;
}

.member-icon-wrapper img {
    top: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in;
    object-position: top center;
}

.member-icon-wrapper:before {
    content: ''; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(255, 105, 180, 0); 
    transition: background-color 0.3s ease-in;
    pointer-events: none;
}

.member-icon-wrapper-1:hover:before {
    background-color: #ffdcdb; 
}
.member-icon-wrapper-2:hover:before {
    background-color: #96d4dc; 
}
.member-icon-wrapper-3:hover:before {
    background-color: #ffb599;
}

.member-icon-wrapper:hover img {
    transform: scale(1.1);
}

.member-item h3 {
    color: #333;
    font-size: 1.1em;
    margin: 0;
}

/* YouTube動画のスタイル */
.youtube-video {
    text-align: center;
}
.member-youtube {
    text-align: center;
}
.youtube-video iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}
.member-youtube iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    width: min(560px,100%);
}
.video-oomoto{
    position: relative;
    width: 560px;
    height: 355px;
    margin: 0 auto;
    overflow: hidden;
}
.video-nakami{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: transform 1s ease-in-out;
}
.video-nakami a{
    display: block;
    width: 100%;
    height: calc(100% - 40px);
    overflow: hidden;
}
.video-nakami img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}
.video-title{
    color: #333;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    white-space: nowrap ;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
}

@media(max-width: 600px){
    .video-oomoto{
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
    }
    .video-nakami{
        width: 100%;
        height: auto;
    }
    .video-nakami a{
        display: block;
        width: 100%;
        height: calc(100% - 30px);  
    }
    .video-nakami img{
        width: 100%;
        height: 100%;  
        object-fit: cover;
    }
    .video-title{
        font-size: 0.8em;
        padding: 8px;
        white-space: normal;
        text-overflow: clip;
    }
}
@media(max-width: 400px){
    .video-nakami{
        height: calc(100% - 25px);
    }
    .video-title{
        font-size: 0.7em;
        padding: 6px;
    }
}



/* メンバーページのプロフィール写真 */
.member-profile .profile-content {
    display: flex;
    flex-wrap: wrap; 
    align-items: flex-start; 
    gap: 30px; 
    justify-content: center; 
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.member-profile .profile-image {
    flex-shrink: 0;
    width: 250px; 
    height: 700px; 
    overflow: hidden; 
    border-radius: 10px; 
    
}

.member-profile .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center;
    display: block; 
}

.member-profile .profile-details {
    flex-grow: 1; 
    max-width: 500px; 
    text-align: left; 
}

.member-profile .profile-details h2 {
    text-align: left; 
    border-bottom: 2px solid #c0c0c0;
    padding-bottom: 0;
    margin-top: 5;
}

.member-profile .profile-details .hurigana{
    font-size: 0.5em;
    white-space: nowrap ;
    margin-left: 10px ;
}

.member-profile .profile-details ul {
    list-style: none; 
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.member-profile .profile-details .koumoku {
    margin-bottom: 8px;
    font-size: 1.1em; 
}
.member-profile .profile-details .hasyu{
    font-size: 0.9em;
}

.member-profile .profile-details p {
    margin-top: 30px;
    margin-bottom: 0;
}

.sns_links{
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333;
}

.sns_links a{
    color: #333;
    text-emphasis: none;
    transition: color 0.3s ease ;
    margin-left: 2px;
}
.sns_links a:hover{
    color: #7d7d7d;
}
.member-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.member-gallery img {
    max-width: calc(50% - 10px);
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-to-group {
    text-align: center;
    margin-top: 30px;
}

.back-to-group a {
    display: inline-block;
    color: #333;
    padding: 5px 0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 1.1em;
    font-weight: bold;
}

.back-to-group a::after {
   content: ''; 
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 1.5px;
   background-color: #333;
   transform: scaleX(0);
   transform-origin: left;
   transition: transform 0.4s ease-out ;
}

.back-to-group a.is-hovered::after{
    transform: scaleX(1);
}