/* 施術ページのヒーローセクション モバイル最適化 */

/* モバイルでのヒーローセクション高さ調整 */
@media (max-width: 768px) {
    /* ヒーローセクションの基本スタイル */
    .hero {
        min-height: 300px !important; /* 400pxから300pxに削減 */
        position: relative;
        overflow: hidden;
    }
    
    .hero__content {
        padding: 2rem 1.5rem !important; /* パディングを削減 */
        text-align: center;
        width: 100%;
    }
    
    /* タイトルのサイズ調整 */
    .hero__title {
        font-size: 2rem !important; /* モバイルでより小さく */
        margin-bottom: 0.75rem !important;
        line-height: 1.3;
        text-align: center !important;
        width: 100%;
        display: block !important; /* inline-blockを上書き */
    }
    
    .hero__subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5;
    }
    
    /* バッジの調整 */
    .hero__badges {
        gap: 0.5rem !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .badge {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.75rem !important;
    }
}

/* デザイン性向上のための装飾要素 */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f8f5f2 0%, #fff 50%, #f8f5f2 100%);
}

/* 背景パターン */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(160, 136, 121, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(160, 136, 121, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(160, 136, 121, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* 装飾的な線 */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160, 136, 121, 0.3), transparent);
}

/* ヒーローコンテンツの装飾 */
.hero__content {
    position: relative;
    z-index: 1;
}

/* タイトルの装飾 */
.hero__title {
    position: relative;
    display: inline-block;
    color: #2c2c2c;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a08879, transparent);
    border-radius: 2px;
}

/* サブタイトルのスタイル */
.hero__subtitle {
    color: #6b7280;
    font-weight: 400;
    margin-top: 1.5rem;
}

/* バッジのデザイン改善 */
.hero__badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    background: linear-gradient(135deg, #a08879 0%, #b89a8c 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(160, 136, 121, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.badge:hover::before {
    left: 100%;
}

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

.hero__title {
    animation: fadeInUp 0.8s ease-out;
}

.hero__subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__badges {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* デスクトップでの調整 */
@media (min-width: 769px) {
    .hero {
        min-height: 450px;
    }
    
    .hero__content {
        padding: 4rem 2rem;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .hero__title::after {
        width: 80px;
        height: 4px;
    }
    
    .hero__subtitle {
        font-size: 1.25rem;
    }
    
    .badge {
        font-size: 1rem;
        padding: 0.625rem 1.5rem;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    }
    
    .hero__title {
        color: #f3f4f6;
    }
    
    .hero__subtitle {
        color: #9ca3af;
    }
}

/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
    .hero__title,
    .hero__subtitle,
    .hero__badges,
    .badge::before {
        animation: none;
        transition: none;
    }
}