@charset "utf-8";

/*====================================================================
メンバー紹介ページ専用CSS
====================================================================*/


/*メンバーグリッドコンテナ*/
.members-grid {
	display: grid;
	gap: 3vw;
	margin-bottom: var(--space-large);
	grid-template-columns: 1fr;
}

	/*画面幅800px以上の追加指定*/
	@media screen and (min-width:800px) {
	
	.members-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	}/*追加設定ここまで*/


/*メンバーカード*/
.member-card {
	background: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
	display: flex;
	flex-direction: column;
}

.member-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/*メンバーカードの画像部分*/
.member-photo {
	width: 100%;
	height: 0;
	padding-bottom: 100%;
	overflow: hidden;
	background: #f0f0f0;
	position: relative;
}

.member-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.5s;
	position: absolute;
	top: 0;
	left: 0;
}

.member-card:hover .member-photo img {
	transform: scale(1.05);
}

/*メンバー情報エリア*/
.member-info {
	padding: 2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/*メンバー名*/
.member-info h3 {
	font-size: 1.4rem;
	margin: 0 0 1rem 0;
	padding: 0;
	font-weight: 600;
	color: var(--primary-color);
}

/*メンバー詳細情報*/
.member-details {
	font-size: 0.9rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
	flex: 1;
}

.member-details p {
	margin: 0.5rem 0;
	padding: 0;
}

.detail-label {
	font-weight: 600;
	color: var(--primary-color);
	display: inline-block;
	width: 5rem;
}

.detail-value {
	display: inline;
	color: #333;
}

/*一言メッセージ*/
.member-message {
    background: #F5F4EC;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.7; /* 1行の高さ（行間） */
    color: #555;
    margin-top: auto;
    
    /* 👇 ここから追加・修正します 👇 */
    min-height: 4.5rem; /* 約3行分の高さを確保（line-height 1.7 * 0.95rem * 約3行） */
    display: flex; /* テキストの配置を制御するためにflexboxを有効化 */
    align-items: center; /* 垂直方向の中央揃え */
    /* 👆 ここまで追加・修正します 👆 */
}


/*セクション見出し*/
.members-section h2 {
	margin-bottom: 3rem;
}

/*イントロダクション*/
.members-intro {
	text-align: center;
	margin-bottom: 4rem;
	padding: 2rem;
	background: #F5F4EC;
	border-radius: 15px;
}

.members-intro p {
	font-size: 1.05rem;
	line-height: 2;
	color: #666;
	margin: 0;
}

/*サンプルメンバーのプレースホルダー画像*/
.member-photo-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 100%);
	color: #999;
	font-size: 3rem;
	position: absolute;
	top: 0;
	left: 0;
}