/**
 * Apple Store Design System
 * 洗練されたミニマルデザイン
 */

/* ============================================
   カラーパレット - Apple Store Style
   ============================================ */
:root {
    /* Primary Colors */
    --apple-white: #FFFFFF;
    --apple-bg: #F5F5F7;
    --apple-black: #1D1D1F;
    --apple-gray: #86868B;
    --apple-light-gray: #F5F5F7;
    --apple-dark-gray: #424245;
    
    /* Accent Colors */
    --apple-blue: #0071E3;
    --apple-blue-hover: #0077ED;
    --apple-blue-light: #E8F4FD;
    
    /* Status Colors */
    --apple-green: #30D158;
    --apple-orange: #FF9500;
    --apple-red: #FF3B30;
    
    /* Borders & Dividers */
    --apple-border: #D2D2D7;
    --apple-divider: #E5E5EA;
    
    /* Shadows */
    --apple-shadow: rgba(0, 0, 0, 0.08);
    --apple-shadow-hover: rgba(0, 0, 0, 0.12);
}

/* ============================================
   Typography - SF Pro Display
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--apple-black);
    background: var(--apple-white);
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

/* ============================================
   Headings
   ============================================ */
.apple-headline {
    font-size: 80px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--apple-black);
}

.apple-title-1 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.apple-title-2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
}

.apple-title-3 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: 0em;
}

.apple-headline-reduced {
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: 0.004em;
}

.apple-body {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
}

.apple-body-large {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
}

.apple-body-reduced {
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: -0.016em;
}

/* ============================================
   Buttons - Apple Style
   ============================================ */
.apple-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--apple-blue);
    color: var(--apple-white);
    border: none;
    border-radius: 980px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -0.022em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

.apple-btn:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.02);
}

.apple-btn-large {
    padding: 16px 32px;
    font-size: 21px;
}

.apple-btn-secondary {
    background: transparent;
    color: var(--apple-blue);
    border: 2px solid var(--apple-blue);
}

.apple-btn-secondary:hover {
    background: var(--apple-blue);
    color: var(--apple-white);
}

.apple-link {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.apple-link:hover {
    text-decoration: underline;
}

/* ============================================
   Cards - Apple Style
   ============================================ */
.apple-card {
    background: var(--apple-white);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 4px 16px var(--apple-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

.apple-card:hover {
    box-shadow: 0 8px 24px var(--apple-shadow-hover);
    transform: translateY(-4px);
}

.apple-card-compact {
    padding: 24px;
    border-radius: 12px;
}

/* ============================================
   Sections
   ============================================ */
.apple-section {
    padding: 80px 0;
    max-width: 100%;
}

.apple-section-large {
    padding: 120px 0;
}

.apple-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.apple-container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ============================================
   Hero Section - Apple Style
   ============================================ */
.apple-hero {
    background: var(--apple-black);
    color: var(--apple-white);
    padding: 120px 0;
    text-align: center;
}

.apple-hero-light {
    background: var(--apple-light-gray);
    color: var(--apple-black);
}

/* ============================================
   Grid System
   ============================================ */
.apple-grid {
    display: grid;
    gap: 22px;
}

.apple-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.apple-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.apple-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   Badges & Tags
   ============================================ */
.apple-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--apple-light-gray);
    color: var(--apple-black);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.apple-badge-blue {
    background: var(--apple-blue-light);
    color: var(--apple-blue);
}

.apple-badge-green {
    background: rgba(48, 209, 88, 0.15);
    color: var(--apple-green);
}

/* ============================================
   Dividers
   ============================================ */
.apple-divider {
    height: 1px;
    background: var(--apple-divider);
    border: none;
    margin: 48px 0;
}

/* ============================================
   Icon Circles
   ============================================ */
.apple-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--apple-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}

/* ============================================
   Utilities
   ============================================ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--apple-gray);
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1068px) {
    .apple-headline { font-size: 64px; }
    .apple-title-1 { font-size: 48px; }
    .apple-title-2 { font-size: 40px; }
    .apple-title-3 { font-size: 32px; }
    .apple-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 734px) {
    .apple-headline { font-size: 48px; }
    .apple-title-1 { font-size: 40px; }
    .apple-title-2 { font-size: 32px; }
    .apple-title-3 { font-size: 28px; }
    .apple-section { padding: 60px 0; }
    .apple-section-large { padding: 80px 0; }
    .apple-card { padding: 24px; }
    .apple-grid-3,
    .apple-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.6, 1);
}

/* ============================================
   Nav Bar - Apple Style
   ============================================ */
.apple-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--apple-divider);
    padding: 0 22px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.apple-nav-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
}
