/* =========================================================
   Parallax Hero Section
   ========================================================= */

:root {
    --parallax-speed: 0.5;
    /* パララックススピード調整用（0〜1） */
    --parallax-zoom: 1.1;
    /* ズーム倍率 */
}

/* パララックスヒーローセクション */
.parallax-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    /* 垂直方向中央寄せ（復活） */
    justify-content: center;
    /* 左寄せから中央寄せに変更（レスポンシブ対応） */
}

/* 背景画像コンテナ */
.parallax-hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    /* パララックス用に少し大きめ */
    z-index: 1;
    will-change: transform;
    transform-origin: center center;
    /* 拡大縮小の基準を中央に固定 */
    /* パフォーマンス最適化 */
}

.parallax-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    object-position: center center;
    /* 画像の中心を基準にする（ズレ防止） */
}

/* オーバーレイ（透明 - 画像の色味をそのまま表示） */
.parallax-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
}

/* コンテンツエリア */
.parallax-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    /* 左右の余白を少し広げる */
    color: #fff;
    overflow-wrap: break-word;
    /* 長い単語を折り返す */
}

/* ラベル（小さめの英字） */
.parallax-hero-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* メインタイトル（大きめの英語キャッチコピー） */
.parallax-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* 説明文（日本語） */
.parallax-hero-text {
    display: inline-block;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 600px;
    padding: 8px 14px;

    /* 白背景＋黒テキスト */
    background-color: white;
    color: black;
}

/* ボタン配置エリア */
.parallax-hero-cta {
    margin-top: 40px;
}

/* スマホ対応 (<768px) */
@media screen and (max-width: 767px) {
    .parallax-hero {
        justify-content: center;
        height: 80vh;
    }

    .parallax-hero-bg {
        top: 0;
        height: 100%;
    }

    .parallax-hero-image {
        object-position: center center;
    }

    .parallax-hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .parallax-hero-label {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .parallax-hero-title {
        font-size: 28px;
        /* スマホではさらに小さくして収まりよく */
        line-height: 1.4;
    }

    .parallax-hero-text {
        font-size: 14px;
        margin: 0 auto 30px;
    }
}

/* タブレット・PC小 (<1200px) */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .parallax-hero-content {
        padding: 0 60px;
        /* 左端の余白をたっぷり取る */
    }

    .parallax-hero-title {
        font-size: 42px;
        /* タブレットサイズでは文字を抑える */
    }

    .parallax-hero-text {
        font-size: 16px;
    }
}

@media screen and (min-width: 1200px) {
    .parallax-hero-title {
        font-size: 64px;
    }

    .parallax-hero-content {
        padding: 0 40px;
    }
}

/* Warehouse等の「拡大特化」ページ用：初期位置を上端に合わせる */
/* これにより、画像の最上部（空など）を切り取らずに見せることができる */
.parallax-hero-align-top {
    top: 0 !important;
    height: 100% !important;
    /* 拡大の中心点を調整（横は中央固定、縦は下寄り） */
    transform-origin: 50% 75% !important;
}

/* 画像を常に「上寄せ」にする（空を見切らせないため） */
.parallax-hero-align-top .parallax-hero-image {
    object-position: top center !important;
}