/* =====================================
   基本設定
   ===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --color-pink: #FF6B9D;
    --color-pink-light: #FFE5EE;
    --color-blue: #4E9FFF;
    --color-blue-light: #E3F2FF;
    --color-green: #00D395;
    --color-green-light: #E0FFF6;
    --color-yellow: #FFD93D;
    --color-purple: #A78BFA;
    --color-orange: #FF8C42;
    
    /* グレー */
    --color-gray-dark: #2D3748;
    --color-gray-medium: #718096;
    --color-gray-light: #F7FAFC;
    
    /* 影 */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* 角丸 */
    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 30px;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background: linear-gradient(135deg, #FFF5F7 0%, #E3F2FF 50%, #E0FFF6 100%);
    color: var(--color-gray-dark);
    line-height: 1.8;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================
   ヘッダー
   ===================================== */
.header {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-large);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.header-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

.header-title i {
    display: inline-block;
    animation: rotate 3s linear infinite;
}

.header-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

/* =====================================
   メインコンテンツ
   ===================================== */
.main {
    padding: 60px 0;
}

/* イントロダクション */
.intro-section {
    margin-bottom: 60px;
}

.intro-card {
    background: white;
    border-radius: var(--radius-large);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.intro-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gray-dark);
    margin-bottom: 30px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.intro-item {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 100%);
    padding: 30px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.intro-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.intro-item p {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

/* コンテンツセクション */
.content-section {
    margin-bottom: 50px;
}

.section-card {
    background: white;
    border-radius: var(--radius-large);
    padding: 40px;
    box-shadow: var(--shadow-medium);
    border: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.card-pink {
    border-color: var(--color-pink);
    background: linear-gradient(to bottom, white 0%, var(--color-pink-light) 100%);
}

.card-blue {
    border-color: var(--color-blue);
    background: linear-gradient(to bottom, white 0%, var(--color-blue-light) 100%);
}

.card-green {
    border-color: var(--color-green);
    background: linear-gradient(to bottom, white 0%, var(--color-green-light) 100%);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.section-number {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: var(--shadow-small);
    flex-shrink: 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-gray-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 2rem;
}

.section-content {
    padding-left: 80px;
}

/* 機能ボックス */
.feature-box {
    background: white;
    border-radius: var(--radius-medium);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-small);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 1.15rem;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gray-dark);
}

.feature-list li i {
    color: var(--color-green);
    font-size: 1.3rem;
}

/* 技術ボックス */
.tech-box {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
    border-radius: var(--radius-medium);
    padding: 20px 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-small);
}

.tech-label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

/* ステップコンテナ */
.steps-container {
    background: white;
    border-radius: var(--radius-medium);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-small);
}

.steps-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-dark);
    margin-bottom: 25px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.step-card {
    background: linear-gradient(135deg, var(--color-blue-light) 0%, white 100%);
    border: 3px solid var(--color-blue);
    border-radius: var(--radius-medium);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.step-number {
    background: var(--color-blue);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.step-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray-dark);
}

/* 完成例ボックス */
.example-box {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 100%);
    border-radius: var(--radius-medium);
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-small);
}

.example-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-link {
    display: inline-block;
    background: white;
    color: var(--color-orange);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* アクションボタン */
.action-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.button-pink {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-purple) 100%);
}

.button-blue {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
}

.button-green {
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-blue) 100%);
}

/* まとめセクション */
.summary-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.summary-card {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
    border-radius: var(--radius-large);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-large);
}

.summary-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.summary-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: white;
    margin-bottom: 35px;
    line-height: 2;
}

.summary-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.summary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-large);
}

.summary-button.button-pink {
    color: var(--color-pink);
}

.summary-button.button-blue {
    color: var(--color-blue);
}

.summary-button.button-green {
    color: var(--color-green);
}

/* =====================================
   フッター
   ===================================== */
.footer {
    background: linear-gradient(135deg, var(--color-gray-dark) 0%, var(--color-gray-medium) 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.footer-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-text i {
    color: var(--color-pink);
    animation: pulse 1.5s ease-in-out infinite;
}

.footer-copyright {
    font-size: 1rem;
    opacity: 0.8;
}

/* =====================================
   アニメーション
   ===================================== */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* =====================================
   レスポンシブデザイン
   ===================================== */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .intro-title {
        font-size: 1.5rem;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-content {
        padding-left: 0;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .action-button {
        font-size: 1.2rem;
        padding: 16px 30px;
    }
    
    .summary-title {
        font-size: 1.8rem;
    }
    
    .summary-text {
        font-size: 1.1rem;
    }
    
    .summary-buttons {
        flex-direction: column;
    }
    
    .summary-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .section-card {
        padding: 25px;
    }
    
    .feature-list li {
        font-size: 1rem;
    }
    
    .intro-card {
        padding: 25px;
    }
}