
.custom-header {
    /* background-color: #efefef; */
    /* background-color: #eaeaea; */
    background-color: #f3f3f3;
}

.custom-footer {
    background-color: #0358a9;
}

.custom-button {
    background-color: #2e9fd9;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.custom-button:hover {
    background-color: #2589c1;
}

.custom-button-gray {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.checkbox-lg {
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #000;
}

.radio-lg {
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #000;
}

.pentagon-steps {
    display: flex;
    flex-direction: row-reverse;  /* 右から左に並べる */
    justify-content: center;
    padding-top: 24px;
    width: fit-content;
    margin: 0 auto;
}

.step-item {
    position: relative;
}

.pentagon {
    width: 200px;
    height: 70px;
    position: relative;
    background-color: #e9ecef;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    margin-left: -30px;
    z-index: 2;
    transition: all 0.3s ease;
}

.pentagon::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 70px;
    background-color: #d4d4d4;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    margin-left: -5px;
    top: 0px;
    left: 2px;
    z-index: -1;
}

.pentagon.completed {
    background-color: #cfe2ff;
    color: #0d6efd;
}

.pentagon.completed::before {
    background-color: #e6efff;
}

.pentagon.active {
    background-color: #0358a9;
    color: white;
}

.pentagon.active::before {
    background-color: #0358a9;
}

.pentagon-content {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-55%, -50%);
    text-align: center;
    width: 100%;
}

.step-label {
    position: absolute;
    top: -30px;
    left: 35%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    font-weight: bold;
    color: #6c757d;
}

.step-label.active {
    color: #000;
}

.step-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.form-control::placeholder {
    opacity: 0.5;
}

.modal-half-right {
    position: fixed;
    top: 70px;
    right: 0;
    width: 50%;
    height: 100%;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
    .pentagon {
        width: 180px;
        height: 65px;
    }

    .pentagon::before {
        width: 180px;
        height: 65px;
    }

    .step-text {
        font-size: 0.95rem;  /* 1.1rem → 0.95rem */
    }

    .step-label {
        font-size: 1rem;    /* 1.2rem → 1rem */
    }
}

@media (max-width: 767px) {
    .pentagon {
        width: 150px;
        height: 55px;
        margin-left: -25px;
    }

    .pentagon::before {
        width: 150px;
        height: 55px;
        margin-left: -4px;
    }

    .step-text {
        font-size: 0.85rem;  /* 1rem → 0.85rem */
    }

    .step-label {
        font-size: 0.9rem;   /* 1rem → 0.9rem */
        top: -25px;
    }
}

@media (max-width: 575px) {
    .pentagon {
        width: 130px;
        height: 50px;
        margin-left: -20px;
    }

    .pentagon::before {
        width: 130px;
        height: 50px;
        margin-left: -4px;
    }

    .step-text {
        font-size: 0.8rem;  /* 0.9rem → 0.8rem */
    }

    .step-label {
        font-size: 0.8rem;  /* 0.9rem → 0.8rem */
        top: -20px;
    }
}

@media (max-width: 400px) {
    .pentagon {
        width: 110px;
        height: 45px;
        margin-left: -15px;
    }

    .pentagon::before {
        width: 110px;
        height: 45px;
        margin-left: -3px;
    }

    .step-text {
        font-size: 0.75rem;  /* 0.8rem → 0.75rem */
    }

    .step-label {
        font-size: 0.75rem;  /* 0.8rem → 0.75rem */
    }
}