.hero-section-404 {
    position: relative;
    height: 70vh !important; 
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    overflow: hidden;
}

.hero-background-404 {
    position: absolute;   /* 親の全体を覆う */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;           /* コンテンツより下に */
}

.hero-content-404 {
    position: relative;    /* 背景の上に置く */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;          /* 親全体の高さを使う */
    max-width: 1500px;
    padding: 0 60px;       /* 上下は0で中央揃えに影響しない */
    margin: 0 auto;
    z-index: 10;
}

.hero-catchphrase-404 {
    color: #FFFFFF;
    font-size: 50px !important;
    font-weight: bold;
    text-shadow: 
    0 0 5px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 1.4;
    margin: 0;
    animation-name: catchphrase-fade;
    animation-duration: 7s;
}

@keyframes catchphrase-fade {
0% {
opacity: 0; 
}
100% {
opacity: 1;
}
}

.container-404{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;       /* 小さい画面で折り返す場合に必要 */
    width: 100%;
}

.item-404{
    flex: 0 0 50%;         /* 横幅50%、縮小も拡大もしない */
    box-sizing: border-box;
}

.fixpage-left-404{
    padding-right: 3%;
}

.fixpage-right-404{
    padding-left: 3%;
}

@media (max-width: 768px) {

 .hero-section-404{
        height: 350px !important; 
    }
    /* 1. 全体の高さを350pxに固定 */
    .hero-section-404,
    .slide-item-404 {
        height: 350px !important;
    }

    /* 2. 画像が拡大されすぎないよう調整 */
    .slide-item-404 {
        background-size: cover; /* 隙間を作らない最小限の拡大 */
        background-position: center center;
    }

    /* 3. 文字サイズの調整（スマホで見やすいサイズ） */
    .hero-catchphrase-404 {
        font-size: 2rem !important;
    }

    .hero-catchphras-404 {
        font-size: 2rem !important; /* 3remから変更 */
        padding: 0 20px;   /* 左右に少し余白 */
        line-height: 1.3;
    }

    /* 4. コンテンツのパディング調整 */
    .slide-conten-404 {
        padding: 20px;     /* 60pxから縮小して文字スペースを確保 */
    }

    .container-404{
    flex-direction: column;
    gap:20px
    }
    .fixpage-right-404{
        padding: 0;
    }
    .fixpage-left-404 {
        padding: 0;
    }

 }