@charset "UTF-8";

/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    /* Colors */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    
    /* Brand Colors */
    --color-primary: #333333; /* プロジェクト全体のメインカラー */
    --color-accent: #007bff;
    
    /* App Specific Colors */
    --kotomemo-color: #ff9f43; /* 暖色系 */
    --quicrop-color: #0abde3;  /* 寒色系 */

    /* Typography */
    --font-family-base: 'Noto Sans JP', sans-serif;
    
    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    
    /* Layout */
    --container-width: 1080px;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. Common Utilities
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: #fff;
}

.btn-store {
    background-color: #f0f0f0;
    color: var(--text-main);
    font-size: 0.85rem;
    padding: 8px 16px;
}

.btn-store:hover {
    background-color: #e0e0e0;
}

/* =========================================
   3. Header
   ========================================= */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero-section {
    padding-top: calc(var(--header-height) + var(--spacing-xl) * 1.5);
    padding-bottom: var(--spacing-xl);
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* =========================================
   5. Products Section (Grid System)
   ========================================= */
.products-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-body);
}

/* Grid Layout for scalability */
.product-grid {
    display: grid;
    /* カードの最小幅を300pxとし、画面幅に合わせて自動的に列数を調整 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    justify-content: center;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Card Themes */
.product-card.kotomemo-theme {
    border-top: 4px solid var(--kotomemo-color);
}

.product-card.quicrop-theme {
    border-top: 4px solid var(--quicrop-color);
}

.card-icon {
    width: 120px;
    height: 120px;
    margin-bottom: var(--spacing-md);
    /* プレースホルダー（画像がない場合の背景） */
    background-color: #eee; 
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.app-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    flex-grow: 1; /* ボタン位置を揃えるためにテキストエリアを伸ばす */
}

.app-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

/* =========================================
   6. About & Contact Sections
   ========================================= */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: #fff;
    text-align: center;
}

.about-content p {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
}

.contact-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--bg-body);
}

.contact-section p {
    margin-bottom: var(--spacing-lg);
}

/* =========================================
   7. Footer
   ========================================= */
.site-footer {
    background-color: #fff;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.copyright {
    font-size: 0.8rem;
    color: #999;
}

/* =========================================
   8. Responsive Design (Mobile)
   ========================================= */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Mobile Navigation (Simple Stack) */
    .site-header {
        height: auto;
        position: relative; /* 固定ヘッダー解除（好みで調整可） */
        padding: var(--spacing-sm) 0;
    }

    .site-header .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .main-nav ul {
        gap: var(--spacing-md);
    }

    .hero-section {
        padding-top: var(--spacing-xl);
    }
}