/*
    ===========================================
      モデル選択ページ専用のスタイルシート
    ===========================================
*/

.model-select-container {
    text-align: center;
    padding: 40px 20px 80px 20px;
}

.model-select-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.model-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 300px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

/* ★★★ 新しいスタイル ★★★ */
/* 画像のスライドショーコンテナ */
.model-card-image-wrapper {
    position: relative;
    width: 100%;
    /* 画像のアスペクト比を固定 (例: 1:1) */
    padding-top: 100%; 
}

.model-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像がコンテナに合わせてトリミングされる */
    display: block;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* フェードイン・アウトのアニメーション */
}

/* 表示中の画像スタイル */
.model-card-image-wrapper img.active {
    opacity: 1;
}
/* ★★★★★★★★★★★★★★★ */

.model-card-content {
    padding: 25px;
    flex-grow: 1; /* 残りの高さを埋める */
}

.model-card-content h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #3361A6;
}