/* ========================================
   WebAR専用スタイル
   ======================================== */

/* WebAR説明セクション */
.webar-intro {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text h3 {
    color: #333333;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.intro-text p {
    color: #666666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.usage-steps {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 20px;
}

.usage-steps li {
    margin-bottom: 8px;
}

/* WebARデモセクション */
.webar-demo {
    padding: 80px 0;
    background-color: #ffffff;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.demo-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.demo-model-container {
    position: relative;
    height: 350px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* model-viewer スタイル */
.model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.ar-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.ar-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.progress-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.update-bar {
    background: #007BFF;
    width: 0%;
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.hide {
    display: none;
}

/* デモ情報エリア */
.demo-info {
    padding: 20px 30px;
    text-align: center;
}

.demo-title {
    color: #333333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* ARご利用の流れセクション */
.ar-flow {
    padding: 80px 0;
    background-color: #ffffff;
}

.flow-chart {
    max-width: 800px;
    margin: 50px auto 0;
}

.flow-step {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step:last-child .flow-arrow {
    display: none;
}

.step-number {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.step-content {
    flex: 1;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #007BFF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-title {
    color: #333333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-description {
    color: #666666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.flow-arrow {
    position: absolute;
    left: 29px;
    bottom: -45px;
    color: #007BFF;
    font-size: 2rem;
    font-weight: bold;
    z-index: 5;
}

/* 操作方法グリッド */
.operation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.operation-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.operation-text {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.operation-text strong {
    color: #333333;
    font-weight: 600;
}

/* フロー注意事項 */
.flow-note {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
    border-radius: 10px;
    padding: 25px;
    margin-top: 50px;
    text-align: center;
}

.flow-note p {
    color: #1976d2;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.flow-note strong {
    font-weight: 600;
}

/* WebAR機能紹介セクション */
.webar-features {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-title {
    color: #333333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-description {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 対応環境セクション */
.webar-compatibility {
    padding: 80px 0;
    background-color: #ffffff;
}

.compatibility-content {
    margin-top: 40px;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.compatibility-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #007BFF;
}

.compatibility-item h3 {
    color: #333333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.compatibility-item ul {
    list-style: none;
    padding: 0;
}

.compatibility-item li {
    color: #666666;
    font-size: 0.95rem;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.compatibility-item li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.compatibility-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.compatibility-note p {
    color: #856404;
    font-size: 0.95rem;
    margin: 0;
}

/* ご利用にあたっての注意事項 */
.usage-notes {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 25px;
}

.notes-title {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notes-list li {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.notes-list li::before {
    content: "•";
    color: #6c757d;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* WebARお問い合わせセクション */
.webar-contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
}

.webar-contact .section-title {
    color: white;
}

.webar-contact .contact-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
}

.webar-contact .contact-action {
    text-align: center;
}

.webar-contact .btn-primary {
    background: white;
    color: #007BFF;
    border: 2px solid white;
}

.webar-contact .btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .step-number {
        order: 1;
    }
    
    .step-content {
        order: 2;
        width: 100%;
    }
    
    .flow-arrow {
        position: static;
        order: 3;
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .webar-intro,
    .webar-demo,
    .webar-features,
    .ar-flow,
    .webar-compatibility,
    .webar-contact {
        padding: 60px 0;
    }
    
    .demo-model-container {
        height: 280px;
    }
    
    .ar-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .demo-info {
        padding: 15px 20px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    .compatibility-item {
        padding: 20px;
    }
    
    .usage-notes {
        padding: 20px;
    }
    
    .notes-title {
        font-size: 1rem;
    }
    
    .notes-list li {
        font-size: 0.9rem;
    }
    
    .flow-chart {
        margin: 30px auto 0;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .operation-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .operation-item {
        padding: 15px;
    }
    
    .flow-note {
        padding: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .usage-steps {
        font-size: 0.9rem;
    }
    
    .intro-text h3 {
        font-size: 1.1rem;
    }
    
    .demo-title {
        font-size: 1.2rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
}
