:root {
    --bg-main: #fefaf6; /* 優しいクリーム色 */
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: #f3e5f5;
    --text-primary: #5c4b51; /* 少し柔らかいブラウン */
    --text-secondary: #8d7d77;

    /* パステル調のポータル用グラデーション */
    --brand-grad: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); /* 淡いブルー */
    --accent-pastel: #ffcfd2; /* 優しいピンク */
    
    --grad-1: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --grad-2: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    --grad-3: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Kiwi Maru', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Glowing Orbs (Soft and pastel) */
.background-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: -5%;
    left: -5%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ffcfd2, #fde2e4);
}

.blob-2 {
    bottom: -5%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #cfd9df, #e2ebf0);
}

.blob-3 {
    top: 50%;
    left: 10%;
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, #faedcd, #fefae0);
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 20px) rotate(5deg); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Search Bar */
.search-container {
    max-width: 500px;
    margin: 0 auto 3.5rem auto;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#searchInput {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3.5rem;
    border-radius: 25px;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

#searchInput:focus {
    border-color: var(--accent-pastel);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.app-card {
    display: block;
    text-decoration: none;
    background: var(--card-bg);
    border: 2px solid #fff;
    border-radius: 28px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-pastel);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: white;
}

.gradient-1 { background: var(--grad-1); }
.gradient-2 { background: var(--grad-2); }
.gradient-3 { background: var(--grad-3); }

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-cfooter p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.last-updated {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Hover Effect Glow (Subtle) */
.card-hover-effect {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.app-card:hover .card-hover-effect {
    opacity: 1;
}

footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .container { padding: 2rem 1rem; }
}