*,
*::before,
*::after {
    box-sizing: border-box;
}

.hero-section {
    position: relative;
    padding: 100px 40px 100px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden; /* visible → hidden：blurのはみ出しを防ぐ */
}

.hero-section {
    width: 100%;
    max-width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: "";
    position: absolute; /* fixed → absolute */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: 1; /* 背景画像(z-index:0)の上、コンテンツより下 */
}

.hero-content {
    position: relative;
    z-index: 2; /* .hero-bg::after(z-index:1)より上 */
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 以下は変更なし */
.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    font-size: 4rem;
    color: #003366;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
}

.hero-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-tags span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 51, 102, 0.15);
    border-radius: 999px;
    color: #003366;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.hero-tech-stack {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 51, 102, 0.15);
}

.hero-image img {
    width: 520px;
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    animation: floatPhone 8s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-20px); }
}

@media (max-width: 600px) {
    body {
        overflow-x: hidden;
    }

    .hero-section {
        padding: 10px;
    }

    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 10px;
        box-sizing: border-box;
            border: 1px solid rgb(0, 0, 0) !important;
    }


    .hero-image img {
        width: 260px;
        margin: 0;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-image img {
        width: 260px;
        margin-top: 40px;
        margin-bottom: -20px;
    }
}