/* ベーススタイル */
:root {
    --primary-color: #5E72E4;
    --secondary-color: #F6C90E;
    --accent-color: #FF6B6B;
    --text-color: #2D3748;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ヘッダースタイル */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), #825EE4);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* アプリグリッド */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* アプリカード */
.app-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    /* background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* background-clip: text; */
    color: var(--text-color); /* 通常のテキスト色を適用 */
    display: inline-block;
}

.app-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.app-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.link-text {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    margin-top: auto;
    transition: color 0.3s ease;
}

.app-card:hover .link-text {
    color: var(--primary-color);
}

/* フッター */
footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }
}

/* フォーカス時のアウトライン（アクセシビリティ対応） */
a:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

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

.app-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.app-card:nth-child(2) {
    animation-delay: 0.2s;
}
