/* プロセスセクション基本スタイル */
.process-timeline {
    max-width: 1000px;
    margin: 6rem auto 0;
    position: relative;
}

/* PC版：横並びレイアウト（大画面） */
@media (min-width: 1201px) {
    .process-steps {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
    }

    .process-line {
        position: absolute;
        top: 32px;
        left: 90px;
        right: 90px;
        height: 4px;
        background-color: var(--primary);
        z-index: 0;
        transform-origin: left center;
    }

    .process-step {
        flex: 1;
        max-width: 180px;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .step-icon {
        width: 64px;
        height: 64px;
        background-color: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 2.2rem;
        margin: 0 auto 2rem;
        position: relative;
        border: 4px solid white;
        box-shadow: 0 4px 12px rgba(45, 91, 157, 0.2);
        overflow: visible;
    }

    .step-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: var(--primary-dark);
        text-align: center;
    }

    .step-description {
        font-size: 1.5rem;
        line-height: 1.6;
        color: var(--text);
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
        text-align: center;
    }
}

/* PC・大型タブレット版：中央揃えカードレイアウト（993px〜1200px） */
@media (min-width: 993px) and (max-width: 1200px) {
    .process-steps {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        position: relative;
        max-width: 700px;
        margin: 0 auto;
    }

    .process-line {
        position: absolute;
        top: 50px;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: calc(100% - 100px);
        background-color: var(--primary);
        z-index: 0;
    }

    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 650px;
        position: relative;
        z-index: 1;
        background-color: white;
        border-radius: 12px;
        padding: 3rem 2.5rem;
        min-height: 200px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .process-step:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .step-icon {
        width: 64px;
        height: 64px;
        background-color: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 2.2rem;
        margin: 0 auto 2rem;
        flex-shrink: 0;
        position: relative;
        border: 4px solid white;
        box-shadow: 0 4px 12px rgba(45, 91, 157, 0.2);
        overflow: visible;
    }

    .step-content {
        width: 100%;
        text-align: center;
    }

    .step-title {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--primary-dark);
        font-weight: 600;
        text-align: center;
    }

    .step-description {
        font-size: 1.7rem;
        line-height: 1.6;
        color: var(--text);
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
        text-align: center;
    }
}

/* タブレット版：中央揃えカードレイアウト（769px〜992px） */
@media (min-width: 769px) and (max-width: 992px) {
    .process-steps {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        position: relative;
        max-width: 600px;
        margin: 0 auto;
    }

    .process-line {
        position: absolute;
        top: 50px;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: calc(100% - 100px);
        background-color: var(--primary);
        z-index: 0;
    }

    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 550px;
        position: relative;
        z-index: 1;
        background-color: white;
        border-radius: 12px;
        padding: 3rem 2.5rem;
        min-height: 200px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .process-step:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .step-icon {
        width: 64px;
        height: 64px;
        background-color: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 2.2rem;
        margin: 0 auto 2rem;
        flex-shrink: 0;
        position: relative;
        border: 4px solid white;
        box-shadow: 0 4px 12px rgba(45, 91, 157, 0.2);
        overflow: visible;
    }

    .step-content {
        width: 100%;
        text-align: center;
    }

    .step-title {
        font-size: 1.9rem;
        margin-bottom: 1rem;
        color: var(--primary-dark);
        font-weight: 600;
    }

    .step-description {
        font-size: 1.6rem;
        line-height: 1.6;
        color: var(--text);
        margin: 0;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* スマホ版：中央揃えカードレイアウト */
@media (max-width: 768px) {
    .process-steps {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        align-items: center;
        position: relative;
        max-width: 500px;
        margin: 0 auto;
    }

    .process-line {
        position: absolute;
        top: 50px;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: calc(100% - 100px);
        background-color: var(--primary);
        z-index: 0;
    }

    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 450px;
        position: relative;
        z-index: 1;
        background-color: white;
        border-radius: 12px;
        padding: 3rem 2rem;
        min-height: 180px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .process-step:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .step-icon {
        width: 64px;
        height: 64px;
        background-color: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 2.2rem;
        margin: 0 auto 2rem;
        flex-shrink: 0;
        position: relative;
        border: 4px solid white;
        box-shadow: 0 4px 12px rgba(45, 91, 157, 0.2);
        overflow: visible;
    }

    .step-content {
        width: 100%;
        text-align: center;
    }

    .step-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: var(--primary-dark);
        font-weight: 600;
    }

    .step-description {
        font-size: 1.5rem;
        line-height: 1.6;
        color: var(--text);
        margin: 0;
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* 超小型デバイス対応 */
@media (max-width: 480px) {
    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .step-icon {
        /* margin-right: 0;
        margin-bottom: 1.5rem;
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
        overflow: visible; */
    }

    .step-content {
        width: 100%;
    }

    .step-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .step-description {
        font-size: 1.4rem;
    }

    .process-line {
        position: absolute;
        top: 40px;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: calc(100% - 80px);
        background-color: var(--primary);
        z-index: 0;
    }
}

/* 共通のステップ番号スタイル */
.step-icon::after {
    content: attr(data-step);
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(248, 160, 26, 0.4);
    z-index: 2;
}

/* ステップ番号の個別設定 */
.process-step[data-step="1"] .step-icon::after { content: "1"; }
.process-step[data-step="2"] .step-icon::after { content: "2"; }
.process-step[data-step="3"] .step-icon::after { content: "3"; }
.process-step[data-step="4"] .step-icon::after { content: "4"; }
.process-step[data-step="5"] .step-icon::after { content: "5"; }

/* 超小型デバイス用のステップ番号調整 */
@media (max-width: 480px) {
    .step-icon::after {
        top: -10px;
        right: -10px;
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
        border: 2px solid white;
    }
}

/* ホバーエフェクト（PC版とタブレット版） */
@media (min-width: 769px) {
    .process-step:hover .step-icon {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(45, 91, 157, 0.3);
    }

    .process-step:hover .step-title {
        color: var(--primary);
    }
}

/* 超大型画面での横並び強制 */
@media (min-width: 1401px) {
    .process-steps {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        gap: 2rem;
    }
    
    .process-line {
        position: absolute;
        top: 32px;
        left: 100px;
        right: 100px;
        height: 4px !important;
        width: auto !important;
        background-color: var(--primary);
        z-index: 0;
        transform-origin: left center;
    }
    
    .process-step {
        flex: 1;
        max-width: 200px;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        min-height: auto !important;
    }
}