@charset "UTF-8";

/* ==========================================================================
   成分一覧ページ CSS (ingredient/index.css)
   Mobile First / High Density Design - Updated
   ========================================================================== */

/* コンテナ設定 */
.ingredient-index-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

@media (min-width: 768px) {
    .ingredient-index-page {
        padding: 3rem 2rem 5rem;
    }
}

/* ページヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
}

.page-description {
    font-size: 0.9rem;
    color: var(--theme-text-secondary);
    margin: 0 0 0.25rem 0;
}

.page-subtitle {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    margin: 0;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    .page-description {
        font-size: 1rem;
    }
    .page-header {
        margin-bottom: 2.5rem;
    }
}

/* ==========================================================================
   検索バー
   ========================================================================== */
.ingredient-search-bar {
    position: relative;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.ingredient-filter-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--theme-text-primary);
    background: white;
    transition: all 0.2s;
}

.ingredient-filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.ingredient-filter-input::placeholder {
    color: var(--theme-text-muted);
}

.ingredient-search-bar .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-text-muted);
    pointer-events: none;
}

/* ==========================================================================
   カテゴリフィルター
   ========================================================================== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    background: white;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.2);
}

/* ==========================================================================
   カテゴリセクション
   ========================================================================== */
.ingredient-category {
    margin-bottom: 2.5rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-bg-base);
}

.category-icon {
    font-size: 1.25rem;
}

/* ==========================================================================
   成分グリッド
   ========================================================================== */
.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .ingredient-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

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

/* ==========================================================================
   成分カード
   ========================================================================== */
.ingredient-card {
    background: var(--theme-bg-white);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ingredient-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(214, 51, 132, 0.2);
}

.ingredient-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 0.75rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    text-align: center;
}

/* アイコン */
.ingredient-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-pink));
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ingredient-card:hover .ingredient-icon {
    transform: scale(1.15) rotate(5deg);
}

/* 成分名 */
.ingredient-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.ingredient-card:hover .ingredient-name {
    color: var(--primary-color);
}

/* 説明文 */
.ingredient-description {
    font-size: 0.7rem;
    color: var(--theme-text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* 詳しく見るリンク */
.read-more {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s;
}

.ingredient-card:hover .read-more {
    opacity: 1;
    transform: translateY(0);
}

/* デスクトップ調整 */
@media (min-width: 768px) {
    .ingredient-link {
        padding: 1.5rem 1rem;
    }
    
    .ingredient-icon {
        font-size: 2rem;
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .ingredient-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .ingredient-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 3;
    }
    
    .read-more {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   カウンター
   ========================================================================== */
.ingredient-counter {
    text-align: center;
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    padding: 1.5rem;
    background: var(--theme-bg-base);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.ingredient-counter strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================================================
   Coming Soon
   ========================================================================== */
.coming-soon-section {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 20px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

.coming-soon-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 0.5rem 0;
}

.coming-soon-text {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    margin: 0 0 1.25rem 0;
}

.coming-soon-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.coming-soon-tag {
    padding: 0.375rem 0.875rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

/* ==========================================================================
   免責事項
   ========================================================================== */
.ingredient-disclaimer {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    background-color: #f9f9f9;
    border-left: 3px solid #ddd;
    border-radius: 8px;
}

.ingredient-disclaimer .disclaimer-text {
    font-size: 0.65rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.ingredient-disclaimer .disclaimer-text strong {
    font-size: 0.7rem;
    color: #333;
    display: inline-block;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .ingredient-disclaimer .disclaimer-text {
        font-size: 0.7rem;
    }
    
    .ingredient-disclaimer .disclaimer-text strong {
        font-size: 0.75rem;
    }
}