/*
BJEX 高校生採用サイト - アスザック風ヒーローセクション（大型表示版）
参考: https://recruit.asuzacgroup.jp/highschool/

Version: Asuzac Style Large 2.0
*/

/* ===== グローバルスタイルリセット ===== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== アスザック風ヒーローセクション（大型表示） ===== */
.hero-asuzac-style {
    position: relative;
    width: 100%;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* ===== メインコンテナ（フルサイズ） ===== */
.hero-main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* ===== メインビジュアル（画面いっぱい） ===== */
.hero-main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: white;
}

.main-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== 先輩社員オーバーレイ（大型表示） ===== */
.senior-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.senior-person {
    position: absolute;
    z-index: 11;
    pointer-events: auto;
}

.senior-left {
    top: 25%;
    left: 2%;
    width: 250px;
    height: 250px;
    animation: bounceInLeft 1.5s ease-out 0.5s both;
}

.senior-right {
    top: 25%;
    right: 2%;
    width: 250px;
    height: 250px;
    animation: bounceInRight 1.5s ease-out 1s both;
}

.senior-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center;
    filter: none;
    transition: none;
    border-radius: 0;
    border: none;
    background: none;
    padding: 0;
    box-shadow: none;
    display: block;
}

.senior-person:hover .senior-image {
    transform: none;
    filter: none;
}

/* ===== メッセージバブル（大型表示） ===== */
.hero-message-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.message-bubble {
    position: absolute;
    background: white;
    border: 4px solid #FF6B35;
    border-radius: 30px;
    padding: 20px 25px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.25);
    animation: popIn 1s ease-out both;
    line-height: 1.4;
}

.message-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.message-1 {
    top: 12%;
    left: 12%;
    animation-delay: 2s;
    background: linear-gradient(135deg, #fff 0%, #fff5f0 100%);
}

.message-1::before {
    bottom: -16px;
    left: 40px;
    border-width: 16px 20px 0 20px;
    border-color: #FF6B35 transparent transparent transparent;
}

.message-2 {
    top: 15%;
    right: 15%;
    animation-delay: 2.5s;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
    border-color: #4ECDC4;
}

.message-2::before {
    bottom: -16px;
    right: 40px;
    border-width: 16px 20px 0 20px;
    border-color: #4ECDC4 transparent transparent transparent;
}

.message-3 {
    top: 50%;
    right: 25%;
    animation-delay: 3s;
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
    border-color: #FFE66D;
}

.message-3::before {
    top: -16px;
    right: 40px;
    border-width: 0 20px 16px 20px;
    border-color: transparent transparent #FFE66D transparent;
}

/* ===== アニメーション定義 ===== */
@keyframes bounceInLeft {
    0% {
        opacity: 0;
        transform: translateX(-150px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(15px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes bounceInRight {
    0% {
        opacity: 0;
        transform: translateX(150px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateX(-15px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    70% {
        opacity: 1;
        transform: scale(1.1) translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== レスポンシブ対応（大型表示版） ===== */
@media (max-width: 1440px) {
    .senior-left {
        width: 230px;
        height: 230px;
    }
    
    .senior-right {
        width: 230px;
        height: 230px;
    }
    
    .senior-image {
        width: 230px;
        height: 230px;
    }
    
    .message-bubble {
        font-size: 1rem;
        padding: 18px 22px;
        max-width: 250px;
    }
}

@media (max-width: 1024px) {
    .senior-left {
        width: 200px;
        height: 200px;
        top: 30%;
        left: 3%;
    }
    
    .senior-right {
        width: 200px;
        height: 200px;
        top: 30%;
        right: 3%;
    }
    
    .senior-image {
        width: 200px;
        height: 200px;
        filter: none;
        border: none;
        background: none;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .message-bubble {
        font-size: 0.9rem;
        padding: 15px 20px;
        max-width: 220px;
        border-width: 3px;
    }
    
    .message-1 {
        top: 10%;
        left: 8%;
    }
    
    .message-2 {
        top: 12%;
        right: 10%;
    }
    
    .message-3 {
        top: 45%;
        right: 15%;
    }
}

@media (max-width: 768px) {
    .hero-main-container {
        height: 100vh;
    }
    
    .hero-main-visual {
        width: 100vw;
        height: 100vh;
    }
    
    .senior-left {
        width: 150px;
        height: 150px;
        top: 35%;
        left: 2%;
    }
    
    .senior-right {
        width: 150px;
        height: 150px;
        top: 35%;
        right: 2%;
    }
    
    .senior-image {
        width: 150px;
        height: 150px;
        filter: none;
        border: none;
        background: none;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .message-bubble {
        font-size: 0.8rem;
        padding: 12px 16px;
        max-width: 180px;
        border-width: 3px;
    }
    
    .message-1 {
        top: 8%;
        left: 5%;
    }
    
    .message-2 {
        top: 10%;
        right: 8%;
    }
    
    .message-3 {
        top: 40%;
        right: 10%;
    }
}

@media (max-width: 480px) {
    .senior-left {
        width: 120px;
        height: 120px;
        top: 40%;
        left: 2%;
    }
    
    .senior-right {
        width: 120px;
        height: 120px;
        top: 40%;
        right: 2%;
    }
    
    .senior-image {
        width: 120px;
        height: 120px;
        filter: none;
        border: none;
        background: none;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .message-bubble {
        font-size: 0.75rem;
        padding: 10px 14px;
        max-width: 150px;
        border-width: 2px;
    }
    
    .message-bubble::before {
        display: none;
    }
    
    .message-1 {
        top: 5%;
        left: 3%;
    }
    
    .message-2 {
        top: 8%;
        right: 5%;
    }
    
    .message-3 {
        top: 35%;
        right: 8%;
    }
}

/* ===== ホバーアニメーション（大型表示版） ===== */
@media (min-width: 1024px) {
    .message-bubble {
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .message-bubble:hover {
        transform: scale(1.15) translateY(-8px) rotate(2deg);
        box-shadow: 0 18px 50px rgba(255, 107, 53, 0.35);
    }
    
    .senior-person {
        cursor: pointer;
    }
}

/* ===== パフォーマンス最適化 ===== */
.senior-image,
.main-bg-image {
    will-change: transform;
    transform: translateZ(0);
}

/* ===== 古いヒーローセクションを無効化 ===== */
.hero-combined,
.hero-image-only,
.hero-simple-modern,
.hero-jr-inspired {
    display: none !important;
}

/* ===== アクセシビリティ ===== */
@media (prefers-reduced-motion: reduce) {
    .senior-person,
    .message-bubble {
        animation: none !important;
    }
    
    .senior-image {
        transition: none !important;
    }
    
    .message-bubble {
        transition: none !important;
    }
}
