/* ================================================
   ヒーローセクション専用CSS（クリーン版）
   2026-03-13 作成
================================================ */

/* ================================================
   基本スタイル（PC表示）
================================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

/* 背景：左側動画 + 右側漫画コマ */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右2分割 */
}

/* 左側：動画 */
.hero-video-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右側：漫画コマイラスト */
.hero-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 中央：スマホ画像 */
.hero-smartphone-center {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    width: 320px !important;
    max-width: 60% !important;
    max-height: 75% !important;
}

.hero-smartphone-center img {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

/* 縦書きテキスト共通 */
.hero-handwritten {
    position: absolute;
    z-index: 3;
    font-family: 'Zen Antique', 'Zen Kaku Gothic Antique', serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.12em;
    color: #E74C3C;
    background: white;
    padding: 18px 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
}

/* 1つ目のテキスト「採用を変える、漫画の力。」 */
.hero-handwritten-right {
    top: 20% !important;
    left: calc(50% + 185px) !important;
    right: auto !important;
    bottom: auto !important;
}

/* 2つ目のテキスト「企業の魅力を、"読まれる漫画"に。」 */
.hero-handwritten-left {
    top: 20% !important;
    left: calc(50% + 280px) !important;
    right: auto !important;
    bottom: auto !important;
}

/* ヒーローコンテンツ（ボタン） */
.hero-content {
    position: relative;
    z-index: 10;
    margin-top: 450px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================
   タブレット対応（768px〜1023px）
================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        height: 60vh;
        min-height: 500px;
        max-height: 700px;
    }
    
    .hero-smartphone-center {
        width: 260px !important;
        max-height: 70% !important;
    }
    
    .hero-handwritten {
        font-size: 18px !important;
        padding: 15px 10px !important;
    }
    
    .hero-handwritten-right {
        left: calc(50% + 155px) !important;
        right: auto !important;
    }
    
    .hero-handwritten-left {
        left: calc(50% + 235px) !important;
        right: auto !important;
    }
}

/* ================================================
   スマートフォン対応（767px以下）
================================================ */
@media (max-width: 767px) {
    .hero {
        height: auto;
        min-height: 500px;
        margin-top: 70px;
        padding: 20px 0;
    }
    
    /* 背景：縦並びに変更 */
    .hero-background {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    /* スマホ画像 */
    .hero-smartphone-center {
        width: 220px !important;
        max-width: 45% !important;
    }
    
    /* 縦書きテキスト - スマホ画像のすぐ横に配置 */
    .hero-handwritten {
        writing-mode: vertical-rl !important;
        text-orientation: upright !important;
        font-size: 13px !important;
        padding: 10px 6px !important;
        letter-spacing: 0.05em !important;
        line-height: 1.5 !important;
        white-space: nowrap !important;
        position: absolute !important;
        z-index: 3 !important;
    }
    
    /* 「採用を変える、漫画の力。」→ スマホ画像の左すぐ横、上端揃え */
    .hero-handwritten-right {
        top: calc(50% - 37.5%) !important;
        left: 15% !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    /* 「企業の魅力を、読まれる漫画に。」→ スマホ画像の右すぐ横、上端揃え */
    .hero-handwritten-left {
        top: calc(50% - 37.5%) !important;
        right: 15% !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    .hero-content {
        margin-top: 400px;
    }
    
    .hero-buttons {
        display: none;
    }
}

/* ================================================
   極小スマホ対応（480px以下）
================================================ */
@media (max-width: 480px) {
    .hero-smartphone-center {
        width: 180px !important;
        max-width: 40% !important;
    }
    
    .hero-handwritten {
        font-size: 11px !important;
        padding: 8px 5px !important;
    }
    
    /* 「採用を変える、漫画の力。」→ スマホ画像の左すぐ横、上端揃え */
    .hero-handwritten-right {
        top: calc(50% - 35%) !important;
        left: 10% !important;
    }
    
    /* 「企業の魅力を、読まれる漫画に。」→ スマホ画像の右すぐ横、上端揃え */
    .hero-handwritten-left {
        top: calc(50% - 35%) !important;
        right: 10% !important;
    }
}

/* ================================================
   超極小スマホ対応（375px以下）
================================================ */
@media (max-width: 375px) {
    .hero-smartphone-center {
        width: 160px !important;
        max-width: 38% !important;
    }
    
    .hero-handwritten {
        font-size: 10px !important;
        padding: 7px 4px !important;
    }
    
    /* 「採用を変える、漫画の力。」→ スマホ画像の左すぐ横、上端揃え */
    .hero-handwritten-right {
        top: calc(50% - 33%) !important;
        left: 8% !important;
    }
    
    /* 「企業の魅力を、読まれる漫画に。」→ スマホ画像の右すぐ横、上端揃え */
    .hero-handwritten-left {
        top: calc(50% - 33%) !important;
        right: 8% !important;
    }
}
