/* 
 * 洋服一覧の統一スタイル
 * ファッションアイテムリスト表示用の共通CSSファイル
 */

/* グリッドレイアウト */
.clothes-grid.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    grid-auto-rows: 1fr; /* 各行の高さを均等に */
}

/* カードスタイル */
.clothes-card.archive-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    /* 均一なカードサイズのため固定の縦横比を設定 */
    aspect-ratio: 3/4;
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* タップ時のハイライトを削除 */
}

.clothes-card.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.clothes-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 画像エリア */
.clothes-image {
    position: relative;
    padding-top: 100%; /* 正方形の画像エリア (1:1) */
    overflow: hidden;
    background-color: #f5f5f5;
    flex: 2; /* 画像エリアが情報エリアの2倍の高さを持つ */
}

.clothes-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clothes-card:hover .clothes-image img {
    transform: scale(1.05);
}

.clothes-image .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #999;
}

.clothes-image .clothes-initial {
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
}

/* ブランド名 */
.clothes-brand {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

/* 情報エリア */
.clothes-info {
    padding: 12px 15px;
    flex: 1; /* 情報エリアが画像エリアの半分の高さを持つ */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上にタイトル、下に価格を配置 */
    min-height: 80px; /* 最小の高さを設定 */
}

.clothes-title {
    font-size: 14px;
    margin: 0 0 8px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2; /* 標準プロパティも追加 */
}

.clothes-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: auto;
}

.clothes-price small {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    margin-left: 5px;
}

/* 着用有名人情報 */
.clothes-celebrity {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* ブランド詳細ページ用の追加スタイル */
.brand-single .brand-items-section.archive-clothes .clothes-grid.archive-grid {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ブランド詳細ページのレイアウト修正 */
.brand-single .brand-items-section.archive-clothes {
    width: 100%;
    margin: 20px 0;
}

.brand-single .brand-content {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

/* 空のステート表示 */
.no-items-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* レスポンシブ対応 */
@media (min-width: 576px) {
    .clothes-grid.archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .clothes-grid.archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .clothes-grid.archive-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .clothes-grid.archive-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* コンテナの最大幅を統一 */
    .container {
        max-width: 1440px;
        margin: 0 auto;
    }
}

/* 
 * スマホ向けスタイルは mobile-optimization.css に一元管理しています。
 * 
 * @see mobile-optimization.css
 */
