/**
 * Front Page / Home Page Styles - V5
 * トップページ専用のスタイル
 *
 * @package YoungBush
 */

/* ========================================
   Hero Section - V5 ビジョンベースデザイン
======================================== */
.hero {
    
    padding: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #022b22 0%, #275d46 50%, #569578 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(86, 149, 120, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(39, 93, 70, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0.5;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: #ffffff;
}

.growth-partner {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    color: #ffffff;
}

.hero-vision {
    font-size: clamp(42px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 24px;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 500;
    color: #ffffff;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.hero-cta .btn {
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.hero-cta .btn-primary {
    color: #275d46;
    background: #ffffff;
    border: none;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-cta .btn-secondary {
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
}

.hero-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ビジュアルエレメント - AIネットワーク */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.ai-network-animation {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-globe {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-line {
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.node-pulse {
    animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { 
        r: 6;
        opacity: 0.9;
    }
    50% { 
        r: 8;
        opacity: 1;
    }
}

.center-node {
    animation: centerPulse 2s ease-in-out infinite;
}

@keyframes centerPulse {
    0%, 100% { 
        r: 10;
        fill: rgba(255,255,255,1);
    }
    50% { 
        r: 12;
        fill: rgba(86,149,120,1);
    }
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.icon-item {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.icon-item:nth-child(2) {
    animation-delay: 2s;
}

.icon-item:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 旧Hero要素（互換性のため） */
.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.3;
    animation: fadeInUp 0.8s ease;
    letter-spacing: -0.5px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #569578 0%, #7db89e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
}

.lead-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.8;
    font-weight: 400;
}

/* 実績ポイント（削除されているが互換性のため残す） */
.proof-points {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-item {
    text-align: left;
}

.proof-number {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
}

.proof-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================================
   Pain Points Section - 課題セクション
======================================== */
.pain-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.pain-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.pain-item {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.pain-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(39, 93, 70, 0.1);
}

.pain-item p {
    margin: 0;
    color: #343a40;
    font-size: 16px;
    line-height: 1.6;
}

.pain-icon {
    font-size: 28px;
    color: #569578;
    min-width: 40px;
    text-align: center;
}

/* ========================================
   Service Grid - サービスカード
======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #275d46, #569578);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(39, 93, 70, 0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.service-title {
    font-size: 20px;
    font-weight: bold;
    color: #022b22;
    margin-bottom: 15px;
    text-align: center;
}

.service-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.service-features {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.service-features li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 14px;
    color: #343a40;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #569578;
    font-weight: bold;
}

/* ========================================
   Reason Section - 選ばれる理由
======================================== */
.reason-section {
    background: linear-gradient(135deg, rgba(39, 93, 70, 0.02) 0%, rgba(86, 149, 120, 0.03) 100%);
    padding: 80px 0;
}

.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.reason-card {
    text-align: center;
    padding: 30px;
}

.reason-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #275d46;
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(39, 93, 70, 0.2);
}

.reason-title {
    font-size: 20px;
    font-weight: bold;
    color: #022b22;
    margin-bottom: 15px;
}

.reason-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* ========================================
   Case Studies - 事例紹介
======================================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(39, 93, 70, 0.12);
}

.case-header {
    background: linear-gradient(135deg, #275d46, #569578);
    color: #ffffff;
    padding: 20px;
}

.case-header h3 {
    color: #ffffff;
    margin: 0;
    margin-top: 10px;
}

.case-industry {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.case-body {
    padding: 30px;
}

.case-metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.case-metric:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}

.metric-label {
    color: #6c757d;
    font-size: 14px;
}

.metric-value {
    font-weight: bold;
    color: #275d46;
    font-size: 18px;
}

/* ========================================
   CTA Section - コールトゥアクション
======================================== */
.cta-section {
    background: linear-gradient(135deg, #275d46, #569578);
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.cta-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-white {
    background: #ffffff;
    color: #275d46;
    font-weight: bold;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
/* CTAセクション用のbtn-secondary */
.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: bold;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}
}

/* ========================================
   Animations
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-vision {
        font-size: 32px;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .proof-points {
        flex-direction: column;
        gap: 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .service-grid,
    .reason-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-text {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-white {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero-vision {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .growth-partner {
        font-size: 12px;
        padding: 6px 16px;
    }

    .pain-item {
        padding: 20px;
        gap: 15px;
    }

    .pain-item p {
        font-size: 14px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-text {
        font-size: 14px;
    }
}
/* --- TOP上部の白帯対策 --- */
body.home-page main { margin-top: 0 !important; }
body.home-page .hero { padding-top: 80px; }
