/* =========================================================================
   LP スタイルシート
   ホワイト基調・プレミアムデザイン（高コンバージョン設計）
   ========================================================================= */

/* --- リセット & ベース --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット (クリーン＆ライト) */
    --bg-main: #f9fafb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --border-hover: #d1d5db;

    --text-main: #111827;
    --text-sub: #4b5563;
    --text-muted: #9ca3af;

    /* カテゴリカラー */
    --cat-health: #10b981;
    --cat-ambition: #f59e0b;
    --cat-relation: #ec4899;
    --cat-money: #3b82f6;

    /* ボタンカラー（プレミアムなダーク） */
    --cta-bg: linear-gradient(135deg, #111827 0%, #374151 100%);
    --cta-text: #ffffff;

    /* シャドウ (ふんわり、リッチに) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.1);

    /* タイポグラフィ */
    --font: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--bg-main);
}

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- コンテナ --- */
.container {
    max-width: 600px; /* スマホで最も美しく見える幅 */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
.header {
    padding: 56px 20px 32px;
    text-align: center;
    background: transparent;
}

.site-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.site-subtitle {
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 8px;
    font-weight: 500;
}

/* --- 検索 --- */
.search-section {
    padding: 10px 0 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    /* すりガラス効果 */
    background: rgba(249, 250, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.search-box input:focus {
    border-color: var(--cat-money);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* --- カテゴリフィルター --- */
.filter-section {
    padding: 0 0 32px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-sub);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.filter-tab:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.filter-tab.active {
    border-color: var(--text-main);
    background: var(--text-main);
    color: #fff;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

/* --- メインコンテンツ --- */
.main {
    padding-bottom: 64px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* --- 最新のおすすめ --- */
.latest-section {
    margin-bottom: 48px;
}

.latest-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.latest-grid::-webkit-scrollbar {
    display: none;
}

/* 最新カード */
.latest-card {
    flex-shrink: 0;
    width: 250px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* カード上部のアクセントカラーライン */
.latest-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--card-color, var(--text-main));
}

.latest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.latest-card .card-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--card-color, var(--text-sub));
}

.latest-card .card-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-main);
    flex: 1;
}

.latest-card .card-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
}

/* --- 商品一覧グリッド --- */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 商品カード（リスト形式） */
.product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,0,0,0.05);
}

.product-card:active {
    transform: scale(0.98);
}

/* カテゴリバッジの色ドット */
.category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    /* 外側にぼんやり光るリング */
    box-shadow: 0 0 0 4px var(--dot-ring, rgba(0,0,0,0.05));
    background: var(--card-color, var(--text-muted));
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 4px;
}

.product-benefit {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* アクションを促すリッチなボタン */
.product-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    background: var(--cta-bg);
    color: var(--cta-text);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

.product-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.product-card:hover .product-cta {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.25);
}

.product-card:hover .product-cta svg {
    transform: translateX(2px); /* ホバーで矢印が少し右に動く */
}

/* 空状態 */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-sub);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* --- フッター --- */
.footer {
    padding: 32px 20px;
    text-align: center;
}

.footer-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- アニメーション --- */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card,
.latest-card {
    animation: fadeInSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
