/* ベーススタイル */
:root {
    --primary-white: #FEFEFE;
    --light-gray: #F5F5F5;
    --dark-bg: #0A0A0A;
    --accent-color: #FF4500;
    --accent-color-hover: #FF6B35;
    --accent-secondary: #00D9FF;
    --text-color: #1A1A1A;
    --text-color-light: #555555;
    --border-color: #E0E0E0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-organic: 0 4px 24px rgba(0, 0, 0, 0.12), 0 8px 48px rgba(0, 0, 0, 0.08);
    --shadow-intense: 0 12px 48px rgba(255, 69, 0, 0.15), 0 2px 12px rgba(0, 0, 0, 0.1);
    --transition-natural: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: all 0.35s ease-out;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 他のコンテンツの後ろに配置する */
    pointer-events: none; /* ユーザーの操作がキャンバスに影響しないようにする */
}

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

/* ヘッダー */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(254, 254, 254, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition-base);
}

.site-header.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 30px;
    position: relative;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-base);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-hover));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ドロップダウンメニュー */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    list-style: none;
    padding: 20px;
    border-radius: 5px;
    margin: 0;
    opacity: 0; /* 非表示状態 */
    visibility: hidden; /* 見えない状態 */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* スムーズなアニメーション */
    display: grid;
    grid-template-columns: repeat(3, auto); /* 3列グリッド */
    gap: 15px; /* アイテム間の余白 */
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap; /* テキストを1行で表示 */
}

.dropdown-content li a:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

/* ホバー時のドロップダウン表示 */
.dropdown:hover .dropdown-content {
    display: grid;
    opacity: 1;
    visibility: visible;
}


/* ヒーローセクション */
#hero {
    position: relative;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(244, 83, 39, 0.05) 0%, rgba(255, 114, 77, 0.05) 100%);
    position: relative;
    padding-top: 80px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    min-width: 160px;
    text-align: center;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

/* 他のセクションのスタイルも同様に最適化 */

/* フッター */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    height: 50px;
}

.company-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.company-info p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 1rem;
}

.company-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.company-info a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links img {
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(204, 214, 246, 0.1);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

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

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

/* アコーディオンスタイル */
.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 25px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover {
    background-color: var(--secondary-color);
}

.accordion-header[aria-expanded="true"] {
    background-color: var(--secondary-color);
}

.accordion-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: var(--accent-color);
    font-weight: bold;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: var(--white);
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 25px;
}

.accordion-content.active {
    max-height: 500px;
    padding: 25px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
    line-height: 1.5;
}

.accordion-content li::before {
    content: "→";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* 共通セクションスタイル */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

/* 研修の特徴セクション */
.features-section {
    padding: 100px 0;
    background-color: var(--white);
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.feature-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    padding: 30px 0;
    margin-bottom: 50px;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: slide 30s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ai-logo {
    height: 60px;
    margin: 0 30px;
    transition: filter 0.3s ease;
}

.ai-logo:hover {
    filter: brightness(1.2);
}

.business-description {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 50px;
    line-height: 1.8;
}

.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-study {
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    padding: 20px;
}

.case-study:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


.case-study-images {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.case-image {
    width: 48%;
    border-radius: 5px;
}

.case-study p {
    padding: 0 20px 20px;
    color: var(--text-color);
}

/* 2列表示に切り替え */
@media (min-width: 768px) {
    .case-studies {
        grid-template-columns: repeat(2, 1fr); /* 2列のレイアウト */
    }
}

/* デスクトップの大画面時に2列または3列 */
@media (min-width: 1200px) {
    .case-studies {
        grid-template-columns: repeat(2, 1fr); /* 大きな画面でも2列を維持 */
    }
}

/* コースセクション */
.course-section {
    padding: 100px 0;
    background-color: var(--white);
}

.course-section.advanced {
    background-color: #f8fafc;
}

.course-info {
    margin-bottom: 50px;
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card.price-card {
    background: linear-gradient(135deg, var(--accent-color), #ffed4e);
    color: var(--primary-color);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: inherit;
}

.stat-card p {
    font-size: 0.95rem;
    color: inherit;
    opacity: 0.8;
}

.course-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.course-category {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 600;
}

.course-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

/* 料金セクション */
.price-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.price-section .section-title {
    color: var(--white);
}

.price-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.price-amount {
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.price-unit {
    font-size: 2rem;
    vertical-align: super;
}

.price-tax {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.price-note {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.price-card .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.price-card .cta-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .price-amount {
        font-size: 3rem;
    }

    .price-unit {
        font-size: 1.5rem;
    }

    .price-card {
        padding: 40px 20px;
    }
}

/* FAQセクション */
.faq-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

/* お申込みセクション */
.apply-section {
    padding: 100px 0;
    background-color: var(--white);
}

/* お問い合わせセクション */
.contact-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.form-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* フォーム共通スタイル */
.form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.required {
    color: var(--error-color);
    font-weight: bold;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.checkbox-group label:hover {
    background-color: #f3f4f6;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 2px;
}

.submit-button {
    width: 100%;
    padding: 16px 24px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
}

.submit-button.loading .button-text {
    display: none;
}

.submit-button.loading .loading-spinner {
    display: inline;
}

/* トーストメッセージ */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--error-color);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .course-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .accordion-header {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .accordion-content.active {
        padding: 20px;
    }
    
    .form {
        padding: 25px 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .course-category {
        font-size: 1.2rem;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .footer-info {
        gap: 20px;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .company-info h3 {
        font-size: 1.3rem;
    }
    
    .company-info p {
        font-size: 0.9rem;
    }
}

/* パンフレットダウンロードボタン */
.brochure-download {
    text-align: center;
    margin-top: 40px;
    padding: 30px 0;
}

.brochure-button {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.brochure-button:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .brochure-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* 導入実績セクション */
.results-section {
    padding: 100px 0;
    background-color: var(--white);
}

.results-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
    line-height: 1.6;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.result-card {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.result-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.result-comment {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin-left: 20px;
    text-align: left;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .result-card {
        padding: 30px 20px;
    }
    
    .result-stats {
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .result-comment {
        margin-left: 0;
        padding-left: 15px;
    }
}