/* ===== flowページ固有のスタイル ===== */

/* ページタイトルセクション - 背景画像のみ */
.page-title__bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                      url('../images/flow-bg.jpg');
}

/* 見出しセクション */
.intro {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-white);
}

.intro__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 40px 20px;
    border: 1px solid #f5f5f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro__content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 60px;
    height: 30px;
    background-color: var(--color-main);
    opacity: 0.3;
    transform: rotate(45deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.intro__content::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60px;
    height: 30px;
    background-color: var(--color-main);
    opacity: 0.3;
    transform: rotate(45deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.intro__title {
    font-size: var(--font-3xl);
    margin-bottom: 30px;
    color: var(--color-dark-gray);
    font-weight: bold;
}

.intro__text {
    line-height: 1.8;
    font-size: var(--font-md);
    color: var(--color-dark-gray);
}

/* フローセクション */
.flow {
    padding: var(--spacing-2xl) 0;
    background-color: #f0f4e8;
}

.flow__steps {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.flow__step {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: stretch;
}

.flow__step:last-child {
    margin-bottom: 0;
}

.flow__step:last-child .flow__arrow {
    display: none;
}

/* ステップ番号部分 */
.flow__step-header {
    width: 300px;
    background: var(--color-main);
    border-radius: 10px 0 0 10px;
    padding: 30px 25px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--color-white);
    position: relative;
    box-shadow: 0 4px 12px rgba(195, 74, 74, 0.3);
}

.flow__step-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: var(--font-2xl);
}

.flow__step-title {
    font-size: var(--font-lg);
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
}

.flow__step-subtitle {
    font-size: var(--font-sm);
    opacity: 0.9;
    margin-top: 5px;
}

/* コンテンツ部分（白色の右側エリア） */
.flow__step-content {
    background-color: var(--color-white);
    border-radius: 0 10px 10px 0;
    padding: 30px;
    flex: 1;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: none;
}

.flow__step-text {
    font-size: var(--font-md);
    line-height: 1.8;
    color: var(--color-dark-gray);
    margin: 0;
}

/* 矢印（緑色の三角形） */
.flow__arrow {
    position: absolute;
    left: 50%;
    bottom: -35px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--color-main);
    z-index: 10;
}

/* アイコンのカスタマイズ */
.flow__step:nth-child(1) .flow__step-icon {
    color: #2196f3;
}

.flow__step:nth-child(2) .flow__step-icon {
    color: #ff9800;
}

.flow__step:nth-child(3) .flow__step-icon {
    color: #9c27b0;
}

.flow__step:nth-child(4) .flow__step-icon {
    color: #f44336;
}

.flow__step:nth-child(5) .flow__step-icon {
    color: #4caf50;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .flow__step {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .flow__step-header {
        border-radius: 20px 20px 0 0;
        min-width: auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 20px 25px;
    }

    .flow__step-icon {
        margin-bottom: 0;
        margin-right: 15px;
        width: 40px;
        height: 40px;
        font-size: var(--font-xl);
    }

    .flow__step-content {
        border-radius: 0 0 20px 20px;
        padding: 25px;
    }

    .flow__step-text {
        font-size: var(--font-sm);
    }

    .flow__arrow {
        bottom: -15px;
        border-top: 15px solid var(--color-main);
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
    }
}

@media (max-width: 576px) {
    .flow__step-header {
        padding: 15px 20px;
    }

    .flow__step-icon {
        width: 35px;
        height: 35px;
        font-size: var(--font-lg);
        margin-right: 12px;
    }

    .flow__step-title {
        font-size: var(--font-lg);
    }

    .flow__step-subtitle {
        font-size: var(--font-xs);
    }

    .flow__step-content {
        padding: 20px;
    }

    .flow__step-text {
        font-size: var(--font-xs);
        line-height: 1.6;
    }

    .flow__arrow {
        bottom: -12px;
        border-top: 12px solid var(--color-main);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
    }
}

/* レスポンシブ対応 */
@media (max-width: 900px) {

    .intro__title {
        font-size: var(--font-2xl);
    }

    .intro__text {
        font-size: var(--font-sm);
    }
}

@media (max-width: 768px) {

    .flow__step {
        margin-bottom: 15px;
    }

    .flow__step-header {
        padding: 15px 20px;
    }

    .flow__step-title {
        font-size: var(--font-md);
    }

    .flow__step-content {
        padding: 20px;
    }

    .flow__arrow {
        bottom: -12px;
    }
}

@media (max-width: 576px) {

    .intro__content {
        padding: 30px 15px;
    }

    .intro__title {
        font-size: var(--font-xl);
        margin-bottom: 20px;
    }

    .intro__text {
        font-size: var(--font-sm);
    }

    .flow__step-number {
        width: 70px;
        height: 70px;
    }

    .flow__step-digit {
        font-size: var(--font-2xl);
    }

    .flow__step-content {
        padding: 20px;
    }

    .flow__step-title {
        font-size: var(--font-lg);
    }

    .flow__step-text {
        font-size: var(--font-xs);
    }
}
