/* ヒーローセクション専用CSS */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 背景画像設定 */
.hero-section.has-background-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 背景オーバーレイ */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* コンテンツエリア */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ページタイトル */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    display: block !important;
    width: 100%;
    text-align: center;
}

/* サブタイトル */
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
    display: block !important;
    width: 100%;
    text-align: center;
}

/* アニメーション */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* タブレット対応 */
@media screen and (max-width: 1024px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        max-width: 700px;
        padding: 0 30px;
    }
}

/* スマートフォン対応 */
@media screen and (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-content {
        max-width: 90%;
        padding: 0 20px;
    }
}

/* 小さなスマートフォン対応 */
@media screen and (max-width: 480px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* メインコンテンツとの区切り */
.hero-section + .main-content {
    margin-top: 0;
    padding-top: 0;
}

/* ヒーロー後のセクション調整 */
.hero-section + section,
.hero-section + .container,
.hero-section + main {
    margin-top: 0;
}

/* ヒーローセクション内の要素間隔調整 */
.hero-content > *:last-child {
    margin-bottom: 0;
}