/* ===== 改善されたstartup.css ===== */

/* フォーカス表示を無効化 */
.btn:focus,
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/*--------------------------------
ヒーローセクション
--------------------------------*/
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 50%, #80C0FF 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 80px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/startup.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.2s;
}

.hero h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin: 0 0 30px 0;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.4s;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards 0.6s;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    max-width: 500px;
}

/* テクノロジー要素 */
.tech-element {
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    will-change: transform;
    transform-origin: center center;
}

.tech-element:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.tech-1 {
    top: 50px;
    left: 50px;
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.tech-2 {
    top: 80px;
    right: 80px;
    width: 100px;
    height: 100px;
    font-size: 2.8rem;
}

.tech-3 {
    top: 200px;
    left: 20px;
    width: 110px;
    height: 110px;
    font-size: 2.9rem;
}

.tech-4 {
    bottom: 100px;
    right: 50px;
    width: 95px;
    height: 95px;
    font-size: 2.6rem;
}

.tech-5 {
    top: calc(50% - 60px);
    left: calc(50% - 60px);
    width: 120px;
    height: 120px;
    font-size: 3.2rem;
    background: rgba(255, 255, 255, 0.2);
}

/* アニメーション */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*--------------------------------
コンテナ
--------------------------------*/
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

h2 {
    margin-top: 50px; 
    margin-bottom: 40px; 
    color: #003E5E; 
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    font-weight: 700;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #003E5E, #80C0FF);
    margin: 15px auto 0;
    border-radius: 2px;
}

/*--------------------------------
プロダクト
--------------------------------*/
.products-section {
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.product-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 350px;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 62, 94, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: rgba(0, 62, 94, 0.3);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.product-content h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: #003E5E;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-card:hover .product-content h3 {
    color: #005A9E;
}

.product-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    flex: 1;
    margin-bottom: 25px;
}

.product-content button {
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 100%);
    color: #fff;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-content button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.product-content button:hover::before {
    left: 100%;
}

.product-content button:hover {
    background: linear-gradient(135deg, #005A9E 0%, #80C0FF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 62, 94, 0.3);
}

/* バックトゥトップボタン */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003E5E 0%, #005A9E 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 62, 94, 0.3);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 62, 94, 0.4);
}

/* フェードイン要素 */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: 60px 20px;
    }

    .hero::before {
        background-attachment: scroll;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: left;
        padding: 20px;
    }
    
    .hero-text {
        text-align: left;
        order: 1;
        z-index: 999;
        position: relative;
        padding: 0 10px;
    }
    
    .hero-visual {
        order: 2;
        height: auto;
        min-height: 200px;
        max-width: 100%;
        margin-top: 20px;
        position: relative;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    
    .tech-element {
        position: static;
        margin: 10px auto;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .tech-1, .tech-2, .tech-3, .tech-4, .tech-5 {
        position: static;
        margin: 10px auto;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .product-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .product-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }
    
    .hero-visual {
        height: auto;
        min-height: 150px;
        max-width: 100%;
        margin-top: 15px;
    }
    
    .tech-element {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .tech-1, .tech-2, .tech-3, .tech-4, .tech-5 {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero h2,
    .hero p,
    .tech-element,
    .product-card,
    .fade-in-element {
        animation: none;
        transition: none;
    }
    
    .tech-element:hover {
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
    }
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .hero {
        background: #000000;
        color: #ffffff;
    }
    
    .tech-element {
        background: #ffffff;
        color: #000000;
        border-color: #ffffff;
    }
    
    .product-card {
        border: 2px solid #000000;
    }
}

@media (max-width: 768px) {
    .hero h1,
    .hero h2,
    .hero p {
        opacity: 1;
        transform: none;
        animation: none;
    }
}