/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes slideInArrow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ヘッダー */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.logo span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

.header-buttons {
    display: flex;
    gap: 1rem;
}

/* ボタン */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* メインビジュアル */
h2.jituyo{
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-left:1.5rem;
    font-weight: 600;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient-bg);
    color: var(--white);
    overflow: hidden;
}

.particles-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#particles-js canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 3;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex-direction: column;
}

.hero-visual {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.ai-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    font-size:2rem;
}

.diagram-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.diagram-element:nth-child(2) {
    animation-delay: -1.3s;
}

.diagram-element:nth-child(4) {
    animation-delay: -2.6s;
}

.diagram-element i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.pdf-icon i {
    color: #dc2626;
}

.ai-brain i {
    color: #7c3aed;
    animation: pulse 2s ease-in-out infinite;
}

.results i {
    color: #FFFFFF;
}

.arrow {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    animation: slideInArrow 2s ease-in-out infinite;
}

.arrow-2 {
    animation-delay: 1s;
}

/* セクション共通 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* 変革セクション */
.transformation {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.transformation-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
}

.floating-text-shape {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    white-space: nowrap;
    animation: slideUp linear infinite;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.floating-text-shape.circle {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    padding: 0;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
}

.floating-text-shape.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    width: 90px;
    height: 78px;
    padding: 0;
    font-size: 0.7rem;
    background: rgba(124, 58, 237, 0.1);
    border-color: #7c3aed;
    color: #7c3aed;
}

.floating-text-shape.triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    width: 80px;
    height: 70px;
    padding: 0;
    font-size: 0.7rem;
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    color: #06b6d4;
    padding-top: 20px;
}

.floating-text-shape.diamond {
    transform: rotate(45deg);
    width: 70px;
    height: 70px;
    padding: 0;
    font-size: 0.6rem;
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.floating-text-shape.diamond span {
    transform: rotate(-45deg);
    display: block;
}

/*AI-FAPSアニメーション*/
    /* テキスト全体のコンテナ */
    .title-container {
        /* アニメーション開始前にテキストが見えないように設定 */
        opacity: 0;
        /* アニメーションを適用 */
        animation: slideIn 1s ease-out 0.5s forwards;
    }
    
    /* テキスト本体のスタイル */
    .main-title {
        font-size: 2.5rem;
        color: #333;
        /* 下線（::after）を配置するための基準 */
        position: relative;
        padding-bottom: 10px; /* 下線とのスペース */
    }

    /* 1. 斜めスライドインのアニメーション */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translate(-50px, -50px);
        }
        to {
            opacity: 1;
            transform: translate(0, 0);
        }
    }

    /* 2. 強調する文字のスタイル */
    .highlight {
        /* アニメーションを適用 */
        animation: changeColor 0.5s ease-in-out forwards;
    }
    
    /* 文字の色変更アニメーション */
    @keyframes changeColor {
        from {
            color: #333; /* 開始時の色 */
        }
        to {
            color: #e74c3c; /* 終了時の色（赤） */
        }
    }

    /* 各文字のアニメーション開始を遅延させて、順番に色が変わるように見せる */
    .highlight:nth-of-type(1) { animation-delay: 1.5s; } /* A */
    .highlight:nth-of-type(2) { animation-delay: 1.7s; } /* I */
    .highlight:nth-of-type(3) { animation-delay: 1.9s; } /* F */
    .highlight:nth-of-type(4) { animation-delay: 2.1s; } /* A */
    .highlight:nth-of-type(5) { animation-delay: 2.3s; } /* P */
    .highlight:nth-of-type(6) { animation-delay: 2.5s; } /* S */


    /* 3. 下線のスタイルとアニメーション */
    h1::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #333;
        
        /* アニメーション前の状態（幅を0にする） */
        transform: scaleX(0);
        transform-origin: left; /* 左から右へ伸びるように設定 */

        /* アニメーションを適用（文字の色変更が終わった後に開始） */
        animation: slideUnderline 0.8s ease-out 2.8s forwards;
    }
    
    /* 下線がスライドインするアニメーション */
    @keyframes slideUnderline {
        from {
            transform: scaleX(0);
        }
        to {
            transform: scaleX(1);
        }
    }


/* スライドアップアニメーション */
@keyframes slideUp {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }
}

/* アニメーション時間のバリエーション */
.floating-text-shape:nth-child(odd) { 
    animation-duration: 15s; 
    animation-delay: 0s;
    left: 10% !important;
}
.floating-text-shape:nth-child(even) { 
    animation-duration: 18s; 
    animation-delay: 3s;
    left: 80% !important;
}
.floating-text-shape:nth-child(3n) { 
    animation-duration: 20s; 
    animation-delay: 6s;
    left: 50% !important;
}
.floating-text-shape:nth-child(4n) { 
    animation-duration: 16s; 
    animation-delay: 9s;
    left: 30% !important;
}
.floating-text-shape:nth-child(5n) { 
    animation-duration: 22s; 
    animation-delay: 12s;
    left: 70% !important;
}
.floating-text-shape:nth-child(6n) { 
    animation-duration: 17s; 
    animation-delay: 15s;
    left: 20% !important;
}
.floating-text-shape:nth-child(7n) { 
    animation-duration: 19s; 
    animation-delay: 18s;
    left: 60% !important;
}
.floating-text-shape:nth-child(8n) { 
    animation-duration: 21s; 
    animation-delay: 21s;
    left: 40% !important;
}

.transformation-content {
    position: relative;
    z-index: 2;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.comparison-item {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.comparison-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.before .comparison-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.after .comparison-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    animation: pulse 3s ease-in-out infinite;
}

.comparison-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.comparison-item ul {
    list-style: none;
    text-align: left;
}

.comparison-item li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.comparison-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.transformation-arrow {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    animation: slideInArrow 2s ease-in-out infinite;
}

/* 機能セクション */
.features {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 2rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    animation: pulse 1s ease-in-out;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

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

/* 変革メッセージセクション */
.transformation-message {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.transformation-message-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-content {
    text-align: center;
    z-index: 3;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

.main-message {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    position: relative;
}

.message-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation-fill-mode: forwards;
}

.from-era {
    color: rgba(255, 255, 255, 0.8);
    animation: messageSlideIn 1.2s ease-out 0.5s forwards;
}

.to-era {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #06b6d4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: messageSlideIn 1.2s ease-out 1s forwards, textGlow 3s ease-in-out 2s infinite;
}

.message-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    opacity: 0;
    animation: decorationFadeIn 1s ease-out 1.5s forwards;
}

.decoration-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: relative;
}

.decoration-line::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
    animation: lineFlow 2s ease-in-out infinite;
}

.ai-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: iconPulse 2s ease-in-out infinite;
}

.message-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
    animation: subtitleFadeIn 1s ease-out 2s forwards;
}

/* 背景要素 */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-size: 3rem;
    color: rgba(96, 165, 250, 0.1);
    animation: floatElement 8s ease-in-out infinite;
}

.element-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    color: rgba(168, 85, 247, 0.1);
}

.element-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    color: rgba(6, 182, 212, 0.1);
}

.element-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
    color: rgba(96, 165, 250, 0.1);
}

.element-4 {
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
    color: rgba(168, 85, 247, 0.1);
}

.element-5 {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
    color: rgba(6, 182, 212, 0.1);
}

/* パーティクル背景 */
.message-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.message-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 6s linear infinite;
}

.message-particles .particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.message-particles .particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.message-particles .particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.message-particles .particle:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.message-particles .particle:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.message-particles .particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 8s;
}

.message-particles .particle:nth-child(7) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 7s;
}

.message-particles .particle:nth-child(8) {
    left: 80%;
    animation-delay: 7s;
    animation-duration: 9s;
}

/* アニメーション定義 */
@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 0 40px rgba(6, 182, 212, 0.6);
    }
}

@keyframes decorationFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        color: var(--primary-color);
    }
    50% {
        transform: scale(1.1);
        color: #a855f7;
    }
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ステップセクション */
.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 3;
    margin: 0 auto;
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

/* steps2・steps3は1カラムで中央揃え */
#steps2 .step-content,
#steps3 .step-content {
    grid-template-columns: 1fr;
    justify-items: center;
}

.step-text{
    display:grid
}

.step1-img{
    width: 100%;
    height: 400px;
    background: url('../img/aifaps_step1.png') no-repeat center center;
    background-size: contain;
    margin: 2rem 0;
}

.step2-img{
    width: 100%;
    height: 400px;
    background: url('../img/aifaps_step2.png') no-repeat center center;
    background-size: contain;
    margin: 2rem 0;
}

.step3-img{
    width: 100%;
    height: 400px;
    background: url('../img/aifaps_step3.png') no-repeat center center;
    background-size: contain;
    margin: 2rem 0;
}

.steps {
    background: var(--bg-light);
    position: relative;
    padding: 0;
}

.steps-scroll-section {
    position: relative;
}

.steps-fixed-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    z-index: 10;
}

.steps-scroll-spacer {
    height: 300vh; /* 3倍の高さでスクロール空間を確保 */
}

/* ステップ進捗インジケーター */
.steps-progress {
    margin: 2rem 0 4rem;
}

.steps-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.steps-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 33.33%;
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.steps-progress-dots {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.progress-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.5s ease;
    cursor: pointer;
}

.progress-dot.active {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

/* ステップコンテンツ */
.steps-content-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.step-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.step-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.step-slide.prev {
    opacity: 0;
    transform: translateX(-100px);
}

.step-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.step-animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step 1 アニメーション */

        /* アニメーション全体のコンテナ */
        .aifaps-anime1-container {
            width: 100%;
            padding: 3rem 0;
            opacity: 0; /* JSでis-visibleが付くまで非表示 */
            transition: opacity 0.5s;
        }
        .aifaps-anime1-container.aifaps-anime1-is-visible {
            opacity: 1;
        }

        /* 1. タイトルのスライドイン */
        .aifaps-anime1-title {
            font-size: 1.75rem;
            color: #0a2540;
            margin-bottom: 2.5rem;
            font-weight: 700;
            /* アニメーション前の初期状態 */
            opacity: 0;
            transform: translateX(-50px);
        }

        .aifaps-anime1-container.aifaps-anime1-is-visible .aifaps-anime1-title {
            animation: aifaps-anime1-slideInTitle 0.8s ease-out 0.3s forwards;
        }

        @keyframes aifaps-anime1-slideInTitle {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        /* 2. 各ステップのフェードイン */
        .aifaps-anime1-step-box {
            background-color: #ffffff;
            border: 2px solid #003366;
            padding: 1.5rem 2rem;
            margin: 0 0 1.5rem;
            display: flex;
            align-items: center;
            width: 100%;
            /* アニメーション前の初期状態 */
            opacity: 0;
            transform: translateY(30px);
        }

        .aifaps-anime1-step-label {
            margin-right: 1.5rem;
            text-align: center;
        }

        .aifaps-anime1-step-label span:first-child {
            font-size: 0.9rem;
            color: #555;
            display: block;
        }

        .aifaps-anime1-step-label span:last-child {
            font-size: 2.5rem;
            color: #3498db;
            font-weight: 700;
            line-height: 1;
        }
        
        .aifaps-anime1-step-text {
            font-size: 1.25rem;
            font-weight: 700;
            color: #0a2540;
        }

        .aifaps-anime1-result-box {
            justify-content: center;
        }

        /*画像スライドショー*/
    .slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 2 / 1;
    margin: auto;
    background: #fff;
    }
    .slide img {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 100%;
    animation: slide-anime 12s ease infinite;
    }
    .slide img:nth-of-type(1) {animation-delay: 0s;}
    .slide img:nth-of-type(2) {animation-delay: 3s;}
    .slide img:nth-of-type(3) {animation-delay: 6s;}
    .slide img:nth-of-type(4) {animation-delay: 9s;}
    
    @keyframes slide-anime{
    0% {left: 100%;}
    2% {left: 0;}
    18% {left: 0;}
    20% {left: -100%;}
    25% {left: -100%;}
    28% {left: -200%;}
    100% {left: -200%;}
    }
        /* is-visibleクラスが付与されたらアニメーションを開始 */
        .aifaps-anime1-container.aifaps-anime1-is-visible #aifaps-anime1-step1 {
             animation: 
                aifaps-anime1-fadeInStep 0.7s ease-out 0.8s forwards,
                aifaps-anime1-addShadowOnly 0.8s ease-out 2.2s forwards;
        }
        .aifaps-anime1-container.aifaps-anime1-is-visible #aifaps-anime1-step2 { 
             animation: 
                aifaps-anime1-fadeInStep 0.7s ease-out 1.1s forwards,
                aifaps-anime1-slideAndShadow 0.8s ease-out 2.2s forwards;
        }
        .aifaps-anime1-container.aifaps-anime1-is-visible #aifaps-anime1-result { 
             animation: 
                aifaps-anime1-fadeInStep 0.7s ease-out 1.4s forwards,
                aifaps-anime1-slideAndShadowMore 0.8s ease-out 2.5s forwards;
        }

        @keyframes aifaps-anime1-fadeInStep {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes aifaps-anime1-addShadowOnly {
            to {
                box-shadow: 8px 8px 0px #003366a0;
            }
        }

        @keyframes aifaps-anime1-slideAndShadow {
            to {
                transform: translateX(20px);
                box-shadow: 8px 8px 0px #003366a0;
            }
        }
        
        @keyframes aifaps-anime1-slideAndShadowMore {
             to {
                transform: translateX(40px);
                box-shadow: 8px 8px 0px #003366a0;
            }
        }

.upload-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.pdf-icon {
    font-size: 4rem;
    color: #dc2626;
    animation: floatUp 3s ease-in-out infinite;
}

.upload-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s ease-in-out infinite;
}

.system-box {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

/* Step 2 アニメーション */

        /* アニメーション全体のコンテナ */
        .aifaps-anime2-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 3rem 5%;
            opacity: 0; /* JSでis-visibleが付くまで非表示 */
            transition: opacity 0.5s;
        }
        .aifaps-anime2-container.aifaps-anime2-is-visible {
            opacity: 1;
        }

        .aifaps-anime2-content-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            transform: scale(1);
            transform-origin: center;
            gap: 3rem;
        }

        /* 左側：メリットリスト */
        .aifaps-anime2-merits-section {
            width: 45%;
        }

        .aifaps-anime2-merits-section h2 {
            font-size: 1.5rem;
            color: #0a2540;
            margin-bottom: 2rem;
        }

        .aifaps-anime2-merit-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .aifaps-anime2-merit-item {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            font-size: 1.25rem;
            font-weight: 700;
            color: #0a2540;
            /* アニメーション前の初期状態 */
            opacity: 0;
            transform: translateX(-50px);
        }
        
        .aifaps-anime2-merit-number {
            font-size: 1.5rem;
            color: #3498db;
            margin-right: 1rem;
            font-weight: 700;
        }

        .aifaps-anime2-merit-text {
            position: relative;
            padding-bottom: 5px;
        }
        
        /* 下線のアニメーション */
        .aifaps-anime2-merit-text::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #3498db;
            transform: scaleX(0);
            transform-origin: left;
        }

        /* is-visibleクラスが付与されたらアニメーションを開始 */
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-merit-item:nth-child(1) { animation: aifaps-anime2-slideIn 0.8s ease-out 0.5s forwards; }
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-merit-item:nth-child(2) { animation: aifaps-anime2-slideIn 0.8s ease-out 1.0s forwards; }
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-merit-item:nth-child(3) { animation: aifaps-anime2-slideIn 0.8s ease-out 1.5s forwards; }

        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-merit-item:nth-child(1) .aifaps-anime2-merit-text::after { animation: aifaps-anime2-drawLine 0.6s ease-out 1.3s forwards; }
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-merit-item:nth-child(2) .aifaps-anime2-merit-text::after { animation: aifaps-anime2-drawLine 0.6s ease-out 1.8s forwards; }
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-merit-item:nth-child(3) .aifaps-anime2-merit-text::after { animation: aifaps-anime2-drawLine 0.6s ease-out 2.3s forwards; }


        @keyframes aifaps-anime2-slideIn {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        @keyframes aifaps-anime2-drawLine {
            to {
                transform: scaleX(1);
            }
        }

        /* 右側：円のアニメーション */
        .aifaps-anime2-circles-section {
            width: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 400px; /* 高さを確保 */
        }

        .aifaps-anime2-circle-container {
            position: relative;
            width: 300px;
            height: 300px;
        }

        .aifaps-anime2-center-circle {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100px;
            height: 100px;
            background-color: #003366;
            color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 700;
            transform: translate(-50%, -50%);
            z-index: 10;
            /* アニメーション前の初期状態 */
            opacity: 0;
        }
        
        .aifaps-anime2-satellite-group {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 1px;
            height: 1px;
            /* アニメーション前の初期状態 */
            opacity: 0;
        }
        
        .aifaps-anime2-line {
            position: absolute;
            top: 0;
            left: 0;
            width: 120px;
            height: 2px;
            background: #003366;
            transform-origin: left center;
        }

        .aifaps-anime2-satellite-circle {
            position: absolute;
            width: 120px;
            height: 120px;
            background-color: #d0d0d0;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #0a2540;
            font-weight: 700;
            top: -60px; /* (120px / 2) */
            left: 120px;
        }
        
        /* 円と線の配置 */
        .aifaps-anime2-item-1 { transform: rotate(0deg) scale(0.5); }
        .aifaps-anime2-item-2 { transform: rotate(120deg) scale(0.5); }
        .aifaps-anime2-item-3 { transform: rotate(240deg) scale(0.5); }
        
        /* 円の文字が回転しないように逆回転させる */
        .aifaps-anime2-item-2 .aifaps-anime2-satellite-circle {
            transform: rotate(-120deg);
        }
        .aifaps-anime2-item-3 .aifaps-anime2-satellite-circle {
            transform: rotate(-240deg);
        }

        /* is-visibleになったらアニメーション開始 */
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-center-circle {
            animation: aifaps-anime2-fadeIn 1s ease-out 0.5s forwards;
        }
        
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-item-1 {
            animation: aifaps-anime2-expandInItem1 1s ease-out 1.5s forwards;
        }
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-item-2 {
            animation: aifaps-anime2-expandInItem2 1s ease-out 1.5s forwards;
        }
        .aifaps-anime2-container.aifaps-anime2-is-visible .aifaps-anime2-item-3 {
            animation: aifaps-anime2-expandInItem3 1s ease-out 1.5s forwards;
        }

        @keyframes aifaps-anime2-fadeIn {
            to { opacity: 1; }
        }

        @keyframes aifaps-anime2-expandInItem1 {
            to {
                opacity: 1;
                transform: rotate(0deg) scale(1);
            }
        }
        @keyframes aifaps-anime2-expandInItem2 {
            to {
                opacity: 1;
                transform: rotate(120deg) scale(1);
            }
        }
        @keyframes aifaps-anime2-expandInItem3 {
            to {
                opacity: 1;
                transform: rotate(240deg) scale(1);
            }
        }


.processing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.ai-brain {
    position: relative;
    font-size: 4rem;
    color: #7c3aed;
    animation: pulse 2s ease-in-out infinite;
}

.processing-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wave {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.wave:nth-child(2) { animation-delay: 0.5s; }
.wave:nth-child(3) { animation-delay: 1s; }

.start-button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: glow 2s ease-in-out infinite alternate;
}

.step3-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.step3-subtitle{
    text-align: center;
}

h2.step3-subtitle{
    font-size: 2rem;
    color: #0a2540;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Step 3 アニメーション */

  #steps3 {
    position: relative; /* 疑似要素を配置する基準 */
    width: 100%;
    height: 100vh; /* セクションの高さを画面全体に */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* アニメーションがはみ出ないように */
  }

  /* 背景アニメーション用の疑似要素 */
  #steps3::before,
  #steps3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    opacity: 0.3; /* 少し控えめな表示に */
    z-index: -1; /* テキストの背面に配置 */
  }

  /* 外側の歯車 */
  #steps3::before {
    width: 50vmin; /* 画面サイズに合わせて調整 */
    height: 50vmin;
    border: 4px dashed #00aaff;
    box-shadow: 0 0 20px #00aaff, inset 0 0 20px #00aaff; /* 発光エフェクト */
    animation: rotate-clockwise 30s linear infinite;
  }

  /* 内側の歯車 */
  #steps3::after {
    width: 40vmin; /* 画面サイズに合わせて調整 */
    height: 40vmin;
    border: 4px solid #00aaff;
    animation: rotate-counter-clockwise 20s linear infinite;
  }

  /* 時計回りのアニメーション */
  @keyframes rotate-clockwise {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  /* 反時計回りのアニメーション */
  @keyframes rotate-counter-clockwise {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(-360deg);
    }
  }

/* アニメーションの親要素 */
.aifaps-anime3 {
  font-size: 2.5rem; /* 文字サイズ */
  font-weight: bold;
  color: #0A2540; /* 文字色 */
  text-align: center;
  visibility: hidden; /* アニメーション開始前に非表示 */
  /* slide-inアニメーションを1秒かけて実行し、終了後も状態を維持 */
  animation: slide-in 1s ease-out forwards;
}

/* 1. 斜め下からスライドインするアニメーションの定義 */
@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateY(50px) translateX(-20px);
    visibility: visible;
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
    visibility: visible;
  }
}

/* 各文字のspanタグ設定 */
.aifaps-anime3 span {
  position: relative;
  display: inline-block;
  overflow: hidden; /* キラッと光るエフェクトのため */
}
  
/* 2. 左から1文字ずつキラッと光るアニメーションの疑似要素 */
.aifaps-anime3 span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-25deg);
  /* shineアニメーションを2.5秒間隔で無限に繰り返す */
  animation: shine 2.5s infinite;
  animation-delay: inherit; /* 親要素の遅延設定を継承 */
}

/* キラッと光るアニメーションの定義 */
@keyframes shine {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* shineアニメーションの遅延設定（1文字ずつずらす） */
.aifaps-anime3 span:nth-child(1) { animation-delay: 1s; }
.aifaps-anime3 span:nth-child(2) { animation-delay: 1.05s; }
.aifaps-anime3 span:nth-child(3) { animation-delay: 1.1s; }
.aifaps-anime3 span:nth-child(4) { animation-delay: 1.15s; }
.aifaps-anime3 span:nth-child(5) { animation-delay: 1.2s; }
.aifaps-anime3 span:nth-child(6) { animation-delay: 1.25s; }
.aifaps-anime3 span:nth-child(7) { animation-delay: 1.3s; }
.aifaps-anime3 span:nth-child(8) { animation-delay: 1.35s; }
.aifaps-anime3 span:nth-child(9) { animation-delay: 1.4s; }
.aifaps-anime3 span:nth-child(10) { animation-delay: 1.45s; }
.aifaps-anime3 span:nth-child(11) { animation-delay: 1.5s; }
.aifaps-anime3 span:nth-child(12) { animation-delay: 1.55s; }
.aifaps-anime3 span:nth-child(13) { animation-delay: 1.6s; }
.aifaps-anime3 span:nth-child(14) { animation-delay: 1.65s; }
.aifaps-anime3 span:nth-child(15) { animation-delay: 1.7s; }
.aifaps-anime3 span:nth-child(16) { animation-delay: 1.75s; }
.aifaps-anime3 span:nth-child(17) { animation-delay: 1.8s; }
.aifaps-anime3 span:nth-child(18) { animation-delay: 1.85s; }
.aifaps-anime3 span:nth-child(19) { animation-delay: 1.9s; }
.aifaps-anime3 span:nth-child(20) { animation-delay: 1.95s; }
.aifaps-anime3 span:nth-child(21) { animation-delay: 2.0s; }
.aifaps-anime3 span:nth-child(22) { animation-delay: 2.05s; }
.aifaps-anime3 span:nth-child(23) { animation-delay: 2.1s; }
.aifaps-anime3 span:nth-child(24) { animation-delay: 2.15s; }
.aifaps-anime3 span:nth-child(25) { animation-delay: 2.2s; }
.aifaps-anime3 span:nth-child(26) { animation-delay: 2.25s; }
.aifaps-anime3 span:nth-child(27) { animation-delay: 2.3s; }
.aifaps-anime3 span:nth-child(28) { animation-delay: 2.35s; }
.aifaps-anime3 span:nth-child(29) { animation-delay: 2.4; }
.aifaps-anime3 span:nth-child(30) { animation-delay: 2.45s; }
.aifaps-anime3 span:nth-child(31) { animation-delay: 2.5s; }
.aifaps-anime3 span:nth-child(32) { animation-delay: 2.55s; }
.aifaps-anime3 span:nth-child(33) { animation-delay: 2.6s; }
.aifaps-anime3 span:nth-child(34) { animation-delay: 2.65s; }

       /* アニメーションのキーフレームを定義 */
        @keyframes slide-in-diagonal {
            0% {
                /* 開始時：左斜め上に移動し、透明にする */
                transform: translate(-80px, -80px);
                opacity: 0;
            }
            100% {
                /* 終了時：元の位置に戻り、不透明にする */
                transform: translate(0, 0);
                opacity: 1;
            }
        }

        /* アニメーションを適用する要素の初期状態と設定 */
        .animated-item {
            opacity: 0; /* 最初は透明 */
            /* animationプロパティ：アニメーション名 時間 イージング 終了後の状態 */
            animation: slide-in-diagonal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }

        /* 2番目以降の要素に遅延を設定して、順番に表示されるようにする */
        .animated-item:nth-child(2) {
            animation-delay: 0.5s; /* 0.5秒遅れて開始 */
        }
        .animated-item:nth-child(3) {
            animation-delay: 1s; /* 1秒遅れて開始 */
        }

        #step3-subtitle {
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 1rem; /* 要素間のスペース */
        }

.result-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.analysis-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInResult 0.5s ease-out;
    animation-fill-mode: both;
}

.result-item:nth-child(1) { animation-delay: 0.2s; }
.result-item:nth-child(2) { animation-delay: 0.4s; }
.result-item:nth-child(3) { animation-delay: 0.6s; }

.result-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.magic-effect {
    font-size: 3rem;
    color: #f59e0b;
    animation: magicSpin 3s ease-in-out infinite;
}

/* ステップコンテンツ */
.step-number {
    background: var(--gradient-primary);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.step-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.step-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-features {
    list-style: none;
    padding: 0;
}

.step-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.step-features i {
    color: #10b981;
    font-size: 0.9rem;
}

/* スクロールヒント */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-hint i {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

/* アニメーション定義 */
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.5); }
    100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.8); }
}

@keyframes slideInResult {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes magicSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
}

/* クラウドファンディングセクション */
.crowdfunding {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 2rem 0;
}

.crowdfunding-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: center;
}

.timeline {
    margin: 2rem 0;
}

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

.timeline-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.timeline-content {
    color: var(--text-dark);
    font-weight: 500;
}

.crowdfunding-note {
    background: rgba(37, 99, 235, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.funding-progress {
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px dashed var(--primary-color);
    animation: rotate 20s linear infinite;
}

.progress-text {
    text-align: center;
    color: var(--white);
}

.progress-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.progress-subtitle {
    display: block;
    font-size: 1rem;
}

.crowdfunding-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.disclaimer{
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

.jituyou {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* フッター */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 2rem;
}

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

.footer-info h4,
.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-contact a:visited, 
.header-buttons a:visited {
    color: #f7921d;
}

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

.fotter-sns {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

img.sns{
    width: 48px;
    height: 48px;
}

/* セクショントランジション */
.section-transition {
    position: relative;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    opacity: 1;
}

.section-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: 1;
}

.section-transition.section-entering {
    transform: translateY(30px);
    opacity: 0.8;
}

.section-transition.section-entering::before {
    opacity: 0;
}

.section-transition.section-active {
    transform: translateY(0);
    opacity: 1;
}

.section-transition.section-active::before {
    opacity: 0;
}

.section-transition.section-leaving {
    transform: translateY(-20px);
    opacity: 0.9;
}

.section-transition.section-leaving::before {
    opacity: 0;
}

/* セクション境界線アニメーション */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    transform: scaleX(0);
    transition: transform 0.8s ease;
    transform-origin: center;
}

.section-transition.section-active .section-divider {
    transform: scaleX(1);
}

/* パララックス効果 */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: transform 0.1s ease-out;
    z-index: -1;
}

/* 各セクション固有のトランジション */
.hero.section-transition {
    background-attachment: fixed;
}

.transformation.section-transition {
    transform-origin: center bottom;
}

.features.section-transition {
    transform-origin: center top;
}

.steps.section-transition {
    transform-origin: left center;
}

.crowdfunding.section-transition {
    transform-origin: right center;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.scroll-dot::after {
    content: attr(data-section);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-dot:hover::after {
    opacity: 1;
}

.scroll-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.scroll-dot.active::after {
    opacity: 1;
}

/* ウェーブトランジション */
.wave-transition {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="currentColor"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="currentColor"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59.18-8.65,112.28.22,168.56,26.84C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="currentColor"></path></svg>') repeat-x;
    background-size: 1200px 60px;
    animation: wave 10s ease-in-out infinite;
    opacity: 0.1;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50px);
    }
}

/* スクロール時の追加効果（ブラー効果を軽減） */
body.is-scrolling .section-transition {
    transition-duration: 0.3s;
}

body.fast-scroll .section-transition {
    transition-duration: 0.1s;
}

body.fast-scroll .section-transition.section-active {
    transition-duration: 0.3s;
}

/* スクロールアニメーション用クラス */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.animate-left {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.animate-right {
    opacity: 1;
    transform: translateX(0);
}

/* ===== ハンバーガーメニュー ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* モバイル用ボタン（デフォルト非表示） */
.header-buttons-mobile { display: none; }

/* ===== フルイドタイポグラフィ ===== */
.section-title { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.hero-title { font-size: clamp(1.6rem, 5vw, 2.8rem); }
.main-message { font-size: clamp(1.8rem, 5vw, 4rem); }
.main-title { font-size: clamp(1.2rem, 3.5vw, 2.5rem); }
h2.jituyo { font-size: clamp(1.4rem, 4vw, 2.8rem); }
.aifaps-anime3 { font-size: clamp(1rem, 3vw, 2.5rem); }
h2.step3-subtitle { font-size: clamp(1rem, 2.5vw, 2rem); }

/* ===== レスポンシブデザイン：タブレット (max-width: 900px) ===== */
@media (max-width: 900px) {
    /* ヘッダー */
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ヒーロー */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 7rem 0 3rem;
    }
    .hero-buttons {
        align-items: center;
    }

    /* 比較セクション */
    .comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .transformation-arrow i {
        display: inline-block;
        transform: rotate(90deg);
    }

    /* 全画面セクション */
    .transformation,
    .features,
    .crowdfunding {
        min-height: auto;
        padding: 4rem 0;
    }

    /* ステップセクション */
    .step-content {
        grid-template-columns: 1fr;
        padding: 4rem 20px 2rem;
        gap: 2rem;
    }
    .aifaps-anime1-step-box {
        margin: 0 auto 1.5rem;
        max-width: 600px;
    }
    .step-slide {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* アニメ2（メリット）横並び→縦 */
    .aifaps-anime2-content-wrapper {
        flex-direction: column;
        transform: scale(1);
    }
    .aifaps-anime2-merits-section {
        width: 100%;
    }
    .aifaps-anime2-circles-section {
        width: 100%;
        height: 300px;
    }

    /* クラウドファンディング */
    .crowdfunding-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* フッター */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    .fotter-sns {
        text-align: center;
    }

    /* スクロールインジケーター */
    .scroll-indicator {
        right: 15px;
        gap: 8px;
    }
    .scroll-dot {
        width: 10px;
        height: 10px;
    }
    .scroll-dot::after {
        display: none;
    }

    /* 背景要素 */
    .floating-text-shape {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
    .floating-text-shape.circle { width: 60px; height: 60px; font-size: 0.6rem; }
    .floating-text-shape.hexagon { width: 70px; height: 60px; font-size: 0.6rem; }
    .floating-text-shape.triangle { width: 60px; height: 50px; font-size: 0.6rem; padding-top: 15px; }
    .floating-text-shape.diamond { width: 50px; height: 50px; font-size: 0.5rem; }

    /* メッセージセクション */
    .message-decoration {
        gap: 1rem;
        margin: 2rem 0;
    }
    .decoration-line { width: 60px; }
    .ai-icon { font-size: 2rem; }
    .floating-element { font-size: 2rem; }

    /* スライドショー */
    .slide {
        width: 100%;
        max-width: 600px;
        height: auto;
        aspect-ratio: 2 / 1;
    }

    /* Step3 */
    .step3-subtitle {
        text-align: center;
    }

    /* ステップ1 アニメーション translateX を小さく */
    @keyframes aifaps-anime1-slideAndShadow {
        to {
            transform: translateX(10px);
            box-shadow: 8px 8px 0px #003366a0;
        }
    }
    @keyframes aifaps-anime1-slideAndShadowMore {
        to {
            transform: translateX(20px);
            box-shadow: 8px 8px 0px #003366a0;
        }
    }
}

/* ===== レスポンシブデザイン：モバイル (max-width: 600px) ===== */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    /* ハンバーガーメニュー表示 */
    .hamburger {
        display: flex;
    }
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1050;
        gap: 1.5rem;
    }
    .header-nav.open {
        right: 0;
    }
    .header-nav .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .header-buttons-desktop {
        display: none;
    }
    .header-buttons-mobile {
        display: block;
        margin-top: 1rem;
    }

    /* ヒーロー */
    .hero-content {
        padding: 6rem 0 2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-subtitle br {
        display: none;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-large {
        width: 100%;
        justify-content: center;
    }

    /* AI Diagram */
    .ai-diagram {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        font-size: 1.2rem;
    }
    .diagram-element {
        padding: 1rem;
        gap: 0.5rem;
    }
    .diagram-element i {
        font-size: 2rem;
    }
    .arrow i,
    .transformation-arrow i {
        display: inline-block;
        transform: rotate(90deg);
    }
    .arrow {
        font-size: 1.5rem;
    }

    /* 比較カード */
    .comparison-item {
        padding: 2rem;
    }

    /* ステップ1 */
    .aifaps-anime1-container {
        width: 100%;
        padding: 2rem 1rem;
    }
    .aifaps-anime1-step-box {
        width: 100%;
        padding: 1rem 1.2rem;
    }
    .aifaps-anime1-step-text {
        font-size: 1rem;
    }
    .aifaps-anime1-step-label span:last-child {
        font-size: 2rem;
    }

    /* スライドショー */
    .slide {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 1;
    }
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ステップ2 (メリット) */
    .aifaps-anime2-container {
        padding: 2rem 3% !important;
    }
    .aifaps-anime2-content-wrapper {
        transform: scale(1) !important;
    }
    .aifaps-anime2-merits-section h2 {
        font-size: 1.15rem;
    }
    .aifaps-anime2-merit-item {
        font-size: 1rem;
    }
    .aifaps-anime2-circle-container {
        width: 220px;
        height: 220px;
    }
    .aifaps-anime2-center-circle {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
    }
    .aifaps-anime2-satellite-circle {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
        top: -40px;
        left: 85px;
    }
    .aifaps-anime2-line {
        width: 85px;
    }
    .aifaps-anime2-circles-section {
        height: 250px;
    }

    /* ステップ3 */
    #steps3 {
        height: auto;
        min-height: 80vh;
        padding: 3rem 1rem;
    }
    .step3-subtitle {
        text-align: center;
    }

    /* クラウドファンディング */
    .crowdfunding-buttons {
        flex-direction: column;
        align-items: center;
    }
    .progress-circle {
        width: 150px;
        height: 150px;
    }
    .progress-circle::before {
        width: 170px;
        height: 170px;
    }

    /* メッセージセクション */
    .message-content {
        padding: 1.5rem;
    }
    .message-decoration {
        flex-direction: column;
        gap: 0.8rem;
    }
    .decoration-line {
        width: 80px;
        height: 1px;
    }
    .floating-element {
        font-size: 1.5rem;
    }

    /* 全画面セクション */
    .transformation,
    .features,
    .crowdfunding {
        min-height: auto;
        padding: 3rem 0;
    }

    /* フッター */
    .fotter-sns {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    img.sns {
        width: 36px;
        height: 36px;
    }

    /* ステップ1 アニメーションオフセット無効化 */
    @keyframes aifaps-anime1-slideAndShadow {
        to {
            transform: translateX(0);
            box-shadow: 6px 6px 0px #003366a0;
        }
    }
    @keyframes aifaps-anime1-slideAndShadowMore {
        to {
            transform: translateX(0);
            box-shadow: 6px 6px 0px #003366a0;
        }
    }
}