/* ========================================
   リセット & 基本スタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066CC;
    --secondary-color: #FF6B35;
    --ai-color: #9C27B0;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-gray: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 900;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(156, 39, 176, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-ai {
    background: linear-gradient(135deg, var(--ai-color) 0%, #7B1FA2 100%);
    color: white;
    padding: 1rem 2.5rem;
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary-large {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-primary-large:hover {
    background-color: #0052A3;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ========================================
   セクション共通
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* ========================================
   事業紹介セクション
======================================== */
.services-overview {
    padding: 5rem 0;
    background-color: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 1.5rem 1rem;
    color: var(--text-color);
}

.service-card p {
    padding: 0 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.service-link:hover {
    gap: 0.8rem;
}

.service-subtitle-small {
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-top: 0.3rem;
}

/* ========================================
   AI研修プログラム特設セクション
======================================== */
.ai-training-featured {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.ai-featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-featured-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--ai-color), #7B1FA2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ai-featured-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.ai-featured-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.ai-features {
    margin-bottom: 2rem;
}

.ai-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-feature-item i {
    color: var(--ai-color);
    font-size: 1.3rem;
}

.ai-courses-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.course-preview-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.course-level {
    display: block;
    font-weight: 700;
    color: var(--ai-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.course-preview-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   お問い合わせCTA
======================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052A3 100%);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.cta-phone i {
    font-size: 2rem;
}

.cta-phone > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.phone-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: #2C3E50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-address,
.footer-phone {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-business {
    margin-top: 1.5rem;
}

.footer-business ul {
    list-style: none;
    margin-top: 0.5rem;
}

.footer-business li {
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-business li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.footer-nav h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.7rem;
}

.footer-nav a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ========================================
   アニメーション
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list a {
        display: block;
        padding: 1.5rem 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .ai-featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-phone {
        display: none;
    }

    .hero {
        height: 500px;
    }

    .hero-content {
        height: 500px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .ai-courses-preview {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-phone {
        width: 100%;
        justify-content: center;
    }
}