/* リセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.7;
    min-height: 100vh;
    padding: 0;
}

/* コンテナ - 9:16フォーマット */
.container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
}

.header-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

/* イントロダクション */
.intro {
    padding: 25px 20px;
    background: #f8f9fa;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

.problem-box {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.problem-text {
    font-size: 15px;
    color: #c53030;
    margin-bottom: 10px;
}

.problem-icon {
    text-align: center;
    font-size: 40px;
    margin-top: 10px;
}

.solution-box {
    background: #f0fff4;
    border: 2px solid #68d391;
    border-radius: 12px;
    padding: 20px;
}

.solution-title {
    font-size: 18px;
    font-weight: 700;
    color: #2f855a;
    margin-bottom: 10px;
}

.solution-text {
    font-size: 15px;
    color: #276749;
}

/* デバイスセクション */
.device-section {
    padding: 30px 20px;
}

.device-section.android {
    background: #fff;
}

.device-section.iphone {
    background: #f8f9fa;
}

.device-header {
    text-align: center;
    margin-bottom: 25px;
}

.device-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.device-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

/* メソッドカード */
.method-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.method-title {
    font-size: 19px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.method-subtitle {
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
}

/* ボタンガイド・ジェスチャーガイド */
.button-guide,
.gesture-guide {
    text-align: center;
    margin: 20px 0;
}

.guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.guide-image.small {
    max-width: 200px;
    margin: 15px auto;
    display: block;
}

/* ステップ */
.step {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.step-text {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.7;
}

.step-text:last-child {
    margin-bottom: 0;
}

.highlight {
    background: linear-gradient(transparent 60%, #ffd700 60%);
    font-weight: 700;
    color: #2d3748;
    padding: 2px 4px;
}

/* ヒントボックス */
.tips-box {
    background: #fffaf0;
    border: 2px solid #f6ad55;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.tips-header {
    font-size: 16px;
    font-weight: 700;
    color: #c05621;
    margin-bottom: 12px;
}

.tips-text {
    font-size: 14px;
    color: #744210;
    margin-bottom: 10px;
    line-height: 1.7;
}

.tips-text:last-child {
    margin-bottom: 0;
}

/* ヒントセクション */
.hint-section {
    padding: 30px 20px;
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
}

.hint-card {
    background: #ffffff;
    border: 3px solid #f6ad55;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.hint-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.hint-title {
    font-size: 20px;
    font-weight: 700;
    color: #c05621;
    text-align: center;
    margin-bottom: 15px;
}

.hint-text {
    font-size: 15px;
    color: #744210;
    line-height: 1.8;
    margin-bottom: 20px;
}

.notification-example {
    margin-top: 20px;
}

.notification {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.notification-header {
    background: #667eea;
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
}

.notification-content {
    padding: 15px;
    font-size: 16px;
    color: #2d3748;
    text-align: center;
    font-weight: 700;
}

/* フッター */
.footer {
    background: #2d3748;
    color: #cbd5e0;
    padding: 30px 20px;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 12px;
    color: #a0aec0;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .header-title {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .device-title {
        font-size: 20px;
    }
    
    .method-title {
        font-size: 17px;
    }
    
    .method-card {
        padding: 20px;
    }
    
    .step {
        padding: 15px;
    }
}

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

.method-card,
.hint-card {
    animation: fadeIn 0.5s ease-out;
}

/* 画像読み込み中のプレースホルダー */
.guide-image[src=""] {
    background: #e2e8f0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-image[src=""]::after {
    content: "画像を読み込んでいます...";
    color: #718096;
    font-size: 14px;
}