/* Hero Section Styles */

/* Hero Section Container */
.section-hero .hero-section {
    position: relative;
    width: 100%;
    height: 850px;  /* 高さを大幅に増やす */
    margin: 80px 0 20px;
    background: transparent;
}

/* メインのhero部分 - 斜めにクリップ */
.section-hero .hero-main {
    position: relative;
    width: 100%;
    height: 800px;  /* 高さを増やす */
    overflow: hidden;
    /* 上下を斜めにカット - 角度をさらに大きく */
    clip-path: polygon(
        0 120px,    /* 左上 - より急な角度 */
        100% 0,     /* 右上 */
        100% 680px, /* 右下 - より急な角度 */
        0 800px     /* 左下 */
    );
}

/* 動画背景 */
.section-hero .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.section-hero .video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.6);  /* さらに拡大 */
    width: 177.77vh;  /* 16:9の横幅 */
    height: 100vh;    /* 16:9の高さ */
    min-width: 100%;
    min-height: 56.25vw;
}

/* コンテンツ */
.section-hero .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 20px;
}

.section-hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-hero .hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.section-hero .cta-container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.section-hero .cta-button {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-hero .cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}


/* 左右の白い枠 */
.section-hero .hero-border-left,
.section-hero .hero-border-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;  /* 大幅に太くする */
    background: white;
    z-index: 11;
}

.section-hero .hero-border-left {
    left: 0;
}

.section-hero .hero-border-right {
    right: 0;
}

/* タブレット用レスポンシブ */
@media (max-width: 1024px) {
    .section-hero .hero-border-left,
    .section-hero .hero-border-right {
        width: 20px;  /* タブレットでは細くする */
    }
    
    .section-hero h1 {
        font-size: 42px;
    }
    
    .section-hero .hero-subtitle {
        font-size: 18px;
    }
}

/* モバイル用レスポンシブ */
@media (max-width: 768px) {
    .section-hero .hero-section {
        height: 70vh !important;
        margin: 60px 0 0 !important;
        position: relative !important;
        background: transparent !important;
    }
    
    .section-hero .hero-main {
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        clip-path: polygon(
            0 15%,      /* 左上 */
            100% 0,     /* 右上 */
            100% 85%,   /* 右下 */
            0 100%      /* 左下 */
        ) !important;
    }

    /* 左右の白い枠 */
    .section-hero .hero-border-left,
    .section-hero .hero-border-right {
        width: 15px !important;
        background: white !important;
        z-index: 11 !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
    }
    
    .section-hero .hero-border-left {
        left: 0 !important;
    }
    
    .section-hero .hero-border-right {
        right: 0 !important;
    }

    /* 動画背景のコンテナ */
    .section-hero .video-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }
    
    /* 動画自体 - スマホ縦長用 */
    .section-hero .video-background iframe {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        /* 縦長にするため高さを大きく、幅は小さく */
        width: 200% !important;   /* 幅は2倍 */
        height: 600% !important;  /* 高さは6倍にして縦長に */
        transform: translate(-50%, -50%) !important;
    }

    .section-hero h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 12px;
        padding: 0 20px;
    }
    
    .section-hero .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
        padding: 0 20px;
    }

    .section-hero .cta-button {
        font-size: 15px;
        padding: 12px 28px;
    }

    .section-hero .cta-container {
        padding: 0 20px;
    }
}

/* 小型モバイル用 */
@media (max-width: 480px) {
    .section-hero .hero-section {
        height: 650px;  /* 高さを増やして斜めを強調 */
        margin: 50px 0 20px;  /* 下マージンを維持 */
    }
    
    .section-hero .hero-main {
        height: 630px;
        clip-path: polygon(
            0 100px,     /* 左上を下げて急な角度に */
            100% 0,      /* 右上は最上部 */
            100% 530px,  /* 右下を上げて急な角度に */
            0 630px      /* 左下は最下部 */
        );
    }
    
    /* 小型モバイルでも白い枠を維持 */
    .section-hero .hero-border-left,
    .section-hero .hero-border-right {
        width: 15px;  /* 少し太めに調整 */
    }
    
    .section-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .section-hero .hero-subtitle {
        font-size: 14px;
    }
    
    .section-hero .cta-button {
        font-size: 14px;
        padding: 10px 24px;
        width: 100%;
        max-width: 280px;
    }
}